DEFINE_VIDEOFORMATDESC(video_format::x1080p2997 ,1920, 1080, video_mode::progressive, 30000, 1001, L"1080p2997"),\r
DEFINE_VIDEOFORMATDESC(video_format::x1080p3000 ,1920, 1080, video_mode::progressive, 30, 1, L"1080p3000"),\r
DEFINE_VIDEOFORMATDESC(video_format::x1080p5000 ,1920, 1080, video_mode::progressive, 50, 1, L"1080p5000"),\r
- DEFINE_VIDEOFORMATDESC(video_format::invalid ,0, 0, video_mode::count, 1, 1, L"invalid")\r
+ DEFINE_VIDEOFORMATDESC(video_format::invalid ,0, 0, video_mode::progressive, 1, 1, L"invalid")\r
};\r
\r
const video_format_desc& video_format_desc::get(video_format::type format) \r
{ \r
enum type\r
{\r
- progressive = 0,\r
- lower,\r
- upper,\r
- count\r
+ lower = 1,\r
+ upper = 2,\r
+ progressive = 3 // NOTE: progressive == lower | upper;\r
};\r
\r
static std::wstring print(video_mode::type value)\r
</producers>\r
<channels>\r
<channel>\r
- <video-mode>1080p5000</video-mode>\r
+ <video-mode>1080i5000</video-mode>\r
<consumers>\r
<decklink>\r
<device>1</device>\r
<low-latency>true</low-latency>\r
<embedded-audio>true</embedded-audio>\r
</decklink>\r
- </consumers>\r
- </channel>\r
- <channel>\r
- <video-mode>1080p5000</video-mode>\r
- <consumers>\r
- <decklink>\r
- <device>2</device>\r
- <low-latency>true</low-latency>\r
- <embedded-audio>true</embedded-audio>\r
- </decklink>\r
+ <screen>\r
+ <device>1</device>\r
+ </screen>\r
</consumers>\r
</channel>\r
</channels>\r
#define WIN32_LEAN_AND_MEAN\r
\r
#include <windows.h>\r
+#include <winnt.h>\r
#include <mmsystem.h>\r
#include <atlbase.h>\r
\r
CASPAR_LOG(info) << L"FFMPEG-swscale " << caspar::get_swscale_version();\r
CASPAR_LOG(info) << L"OpenGL " << caspar::core::ogl_device::get_version() << "\n\n";\r
}\r
- \r
+\r
+LONG WINAPI UserUnhandledExceptionFilter(EXCEPTION_POINTERS* info)\r
+{\r
+ CASPAR_LOG(fatal) << L"#######################\n UNHANDLED EXCEPTION: \n" \r
+ << L"Adress:" << info->ExceptionRecord->ExceptionAddress << L"\n"\r
+ << L"Code:" << info->ExceptionRecord->ExceptionCode << L"\n"\r
+ << L"Flag:" << info->ExceptionRecord->ExceptionFlags << L"\n"\r
+ << L"Info:" << info->ExceptionRecord->ExceptionInformation << L"\n"\r
+ << L"Continuing execution. \n#######################";\r
+\r
+ return EXCEPTION_CONTINUE_EXECUTION;\r
+}\r
+\r
int main(int argc, wchar_t* argv[])\r
{ \r
static_assert(sizeof(void*) == 4, "64-bit code generation is not supported.");\r
\r
+ SetUnhandledExceptionFilter(UserUnhandledExceptionFilter);\r
+\r
CASPAR_LOG(info) << L"Type \"q\" to close application";\r
\r
CASPAR_LOG(info) << L"THIS IS AN ALPHA BUILD";\r