diff --git a/spectool/schema_2_kaxsemantic_cpp.xsl b/spectool/schema_2_kaxsemantic_cpp.xsl index 756f1822..25c4d074 100644 --- a/spectool/schema_2_kaxsemantic_cpp.xsl +++ b/spectool/schema_2_kaxsemantic_cpp.xsl @@ -29,9 +29,36 @@ namespace libmatroska { +// available in all Matroska/WebM/DivX version static constexpr const MatroskaProfile VERSION_ALL_MATROSKA = {true, true, 0, MatroskaProfile::ANY_VERSION}; +// available in all versions of Matroska but not WebM or DivX +static constexpr const MatroskaProfile VERSION_MATROSKA_ONLY = {false, false, 0}; +// not available in any version on Matroska, WebM or DivX static constexpr const MatroskaProfile VERSION_DEPRECATED = {false, false, MatroskaProfile::ANY_VERSION, 0}; +// element specific to DivX static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, MatroskaProfile::ANY_VERSION, 0}; +// available in all Matroska/WebM/DivX since version 2 +static constexpr const MatroskaProfile VERSION_SINCE_V2 = {true, true, 2}; +// available since version 2 of Matroska but not WebM or DivX +static constexpr const MatroskaProfile VERSION_MATROSKA_SINCE_V2 = {false, false, 2}; +// available since version 3 of Matroska but not WebM or DivX +static constexpr const MatroskaProfile VERSION_MATROSKA_SINCE_V3 = {false, false, 3}; +// available since version 4 of Matroska but not WebM or DivX +static constexpr const MatroskaProfile VERSION_MATROSKA_SINCE_V4 = {false, false, 4}; +// available since version 5 of Matroska but not WebM or DivX +static constexpr const MatroskaProfile VERSION_MATROSKA_SINCE_V5 = {false, false, 5}; +// available since version 2 of Matroska and WebM but not DivX +static constexpr const MatroskaProfile VERSION_WEBM_SINCE_V2 = {true, false, 2}; +// available since version 3 of Matroska and WebM but not DivX +static constexpr const MatroskaProfile VERSION_WEBM_SINCE_V3 = {true, false, 3}; +// available since version 4 of Matroska and WebM but not DivX +static constexpr const MatroskaProfile VERSION_WEBM_SINCE_V4 = {true, false, 4}; +// available since version 1 and 2 of Matroska but not WebM or DivX +static constexpr const MatroskaProfile VERSION_MATROSKA_UP_TO_V2 = {false, false, 0, 2}; +// available since version 1, 2 and 3 of Matroska but not WebM or DivX +static constexpr const MatroskaProfile VERSION_MATROSKA_UP_TO_V3 = {false, false, 0, 3}; +// available since version 1, 2, 3 and 4 of Matroska and WebM but not DivX +static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0, 4}; @@ -485,6 +512,18 @@ static constexpr const MatroskaProfile VERSION_DIVX_ONLY = {false, true, Matr VERSION_ALL_MATROSKA VERSION_DEPRECATED VERSION_DIVX_ONLY + VERSION_MATROSKA_ONLY + VERSION_MATROSKA_SINCE_V2 + VERSION_MATROSKA_SINCE_V3 + VERSION_MATROSKA_SINCE_V4 + VERSION_MATROSKA_SINCE_V5 + VERSION_SINCE_V2 + VERSION_WEBM_SINCE_V2 + VERSION_WEBM_SINCE_V3 + VERSION_WEBM_SINCE_V4 + VERSION_MATROSKA_UP_TO_V2 + VERSION_MATROSKA_UP_TO_V3 + VERSION_WEBM_UP_TO_V4 MatroskaProfile(