]> git.sesse.net Git - casparcg/blobdiff - modules/decklink/util/util.h
2.0. Updated namespaces.
[casparcg] / modules / decklink / util / util.h
index 9321a7781072cb29416b441e616866168bd3a33d..09bca51967ca77e19e1f19d2e0c71570f3bdc3da 100644 (file)
 #pragma once\r
 \r
 #include <common/exception/exceptions.h>\r
+#include <common/log/log.h>\r
 #include <core/video_format.h>\r
 \r
 #include "../interop/DeckLinkAPI_h.h"\r
 \r
+#include <boost/lexical_cast.hpp>\r
+\r
 #include <atlbase.h>\r
 \r
-namespace caspar { \r
+#include <string>\r
+\r
+namespace caspar { namespace decklink {\r
        \r
 static BMDDisplayMode get_decklink_video_format(core::video_format::type fmt) \r
 {\r
@@ -47,6 +52,7 @@ static BMDDisplayMode get_decklink_video_format(core::video_format::type fmt)
        case core::video_format::x1080p2500:    return bmdModeHD1080p25;\r
        case core::video_format::x1080p2997:    return bmdModeHD1080p2997;\r
        case core::video_format::x1080p3000:    return bmdModeHD1080p30;\r
+       case core::video_format::x1080p5000:    return bmdModeHD1080p50;\r
        default:                                                                return (BMDDisplayMode)ULONG_MAX;\r
        }\r
 }\r
@@ -68,6 +74,7 @@ static core::video_format::type get_caspar_video_format(BMDDisplayMode fmt)
        case bmdModeHD1080p25:                                  return core::video_format::x1080p2500;  \r
        case bmdModeHD1080p2997:                                return core::video_format::x1080p2997;  \r
        case bmdModeHD1080p30:                                  return core::video_format::x1080p3000;  \r
+       case bmdModeHD1080p50:                                  return core::video_format::x1080p5000;  \r
        default:                                                                return core::video_format::invalid;     \r
        }\r
 }\r
@@ -145,4 +152,4 @@ static std::wstring get_model_name(const T& device)
        return std::wstring(pModelName);\r
 }\r
 \r
-}
\ No newline at end of file
+}}
\ No newline at end of file