]> granicus.if.org Git - libmatroska/commitdiff
add alphaMode for WebM
authorSteve Lhomme <slhomme@matroska.org>
Tue, 5 Feb 2013 17:56:40 +0000 (18:56 +0100)
committerSteve Lhomme <slhomme@matroska.org>
Tue, 5 Feb 2013 17:56:40 +0000 (18:56 +0100)
matroska/KaxSemantic.h
src/KaxSemantic.cpp

index 481ca66a2f986e18a9cac293db1f95bac778af76..070dfffd19c9f1b1d7081d2b89c554aa55191a06 100644 (file)
@@ -323,6 +323,9 @@ DECLARE_MKX_UINTEGER(KaxVideoFlagInterlaced)
 DECLARE_MKX_UINTEGER(KaxVideoStereoMode)
 };
 
+DECLARE_MKX_UINTEGER(KaxVideoAlphaMode)
+};
+
 DECLARE_MKX_UINTEGER(KaxOldStereoMode)
 public:
        filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault);
index d2df5172ab72c7f1c537cfcf15ab4df4958fe8f7..948070d7da19af16c0a6616d940f02a1a1acac39 100644 (file)
@@ -321,6 +321,7 @@ DEFINE_START_SEMANTIC(KaxTrackVideo)
 #if MATROSKA_VERSION >= 2\r
 DEFINE_SEMANTIC_ITEM(true, true, KaxVideoFlagInterlaced)\r
 DEFINE_SEMANTIC_ITEM(false, true, KaxVideoStereoMode)\r
+DEFINE_SEMANTIC_ITEM(false, true, KaxVideoAlphaMode)\r
 DEFINE_SEMANTIC_ITEM(false, true, KaxOldStereoMode) // not supported\r
 #endif // MATROSKA_VERSION\r
 DEFINE_SEMANTIC_ITEM(true, true, KaxVideoPixelWidth)\r
@@ -344,6 +345,7 @@ DEFINE_MKX_MASTER(KaxTrackVideo, 0xE0, 1, KaxTrackEntry, "TrackVideo");
 #if MATROSKA_VERSION >= 2\r
 DEFINE_MKX_UINTEGER_DEF(KaxVideoFlagInterlaced, 0x9A, 1, KaxTrackVideo, "VideoFlagInterlaced", 0);\r
 DEFINE_MKX_UINTEGER_DEF(KaxVideoStereoMode, 0x53B8, 2, KaxTrackVideo, "VideoStereoMode", 0);\r
+DEFINE_MKX_UINTEGER_DEF(KaxVideoAlphaMode, 0x53C0, 2, KaxTrackVideo, "VideoAlphaMode", 0);\r
 DEFINE_MKX_UINTEGER(KaxOldStereoMode, 0x53B9, 2, KaxTrackVideo, "OldStereoMode");\r
 #endif\r
 DEFINE_MKX_UINTEGER(KaxVideoPixelWidth, 0xB0, 1, KaxTrackVideo, "VideoPixelWidth");\r