From: Steve Lhomme Date: Tue, 5 Feb 2013 17:56:40 +0000 (+0100) Subject: add alphaMode for WebM X-Git-Tag: release-1.4.0~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3f1214c13c8f3e75965a19b1c38e5b9de182085;p=libmatroska add alphaMode for WebM --- diff --git a/matroska/KaxSemantic.h b/matroska/KaxSemantic.h index 481ca66..070dfff 100644 --- a/matroska/KaxSemantic.h +++ b/matroska/KaxSemantic.h @@ -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); diff --git a/src/KaxSemantic.cpp b/src/KaxSemantic.cpp index d2df517..948070d 100644 --- a/src/KaxSemantic.cpp +++ b/src/KaxSemantic.cpp @@ -321,6 +321,7 @@ DEFINE_START_SEMANTIC(KaxTrackVideo) #if MATROSKA_VERSION >= 2 DEFINE_SEMANTIC_ITEM(true, true, KaxVideoFlagInterlaced) DEFINE_SEMANTIC_ITEM(false, true, KaxVideoStereoMode) +DEFINE_SEMANTIC_ITEM(false, true, KaxVideoAlphaMode) DEFINE_SEMANTIC_ITEM(false, true, KaxOldStereoMode) // not supported #endif // MATROSKA_VERSION DEFINE_SEMANTIC_ITEM(true, true, KaxVideoPixelWidth) @@ -344,6 +345,7 @@ DEFINE_MKX_MASTER(KaxTrackVideo, 0xE0, 1, KaxTrackEntry, "TrackVideo"); #if MATROSKA_VERSION >= 2 DEFINE_MKX_UINTEGER_DEF(KaxVideoFlagInterlaced, 0x9A, 1, KaxTrackVideo, "VideoFlagInterlaced", 0); DEFINE_MKX_UINTEGER_DEF(KaxVideoStereoMode, 0x53B8, 2, KaxTrackVideo, "VideoStereoMode", 0); +DEFINE_MKX_UINTEGER_DEF(KaxVideoAlphaMode, 0x53C0, 2, KaxTrackVideo, "VideoAlphaMode", 0); DEFINE_MKX_UINTEGER(KaxOldStereoMode, 0x53B9, 2, KaxTrackVideo, "OldStereoMode"); #endif DEFINE_MKX_UINTEGER(KaxVideoPixelWidth, 0xB0, 1, KaxTrackVideo, "VideoPixelWidth");