Skip to content

Commit

Permalink
Merge pull request #205 from robUx4/1x-chaptercodecids
Browse files Browse the repository at this point in the history
[1.x] use a single enum for the Chapter Codec IDs
  • Loading branch information
mbunkus authored Jan 25, 2025
2 parents 74bdf2d + 3bb05e4 commit fa0ecda
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions matroska/KaxSemantic.h
Original file line number Diff line number Diff line change
Expand Up @@ -908,22 +908,6 @@ typedef enum {
MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP = 3, // Octets in `ContentCompSettings` ((#contentcompsettings-element)) have been stripped from each frame.
} MatroskaTrackEncodingCompAlgo;

/**
*This `ChapterTranslate` applies to this chapter codec of the given chapter edition(s); see (#chapprocesscodecid-element).
*/
typedef enum {
MATROSKA_CHAPTERTRANSLATECODEC_MATROSKA_SCRIPT = 0, // Chapter commands using the Matroska Script codec.
MATROSKA_CHAPTERTRANSLATECODEC_DVD_MENU = 1, // Chapter commands using the DVD-like codec.
} MatroskaChapterTranslateCodec;

/**
*This `TrackTranslate` applies to this chapter codec of the given chapter edition(s); see (#chapprocesscodecid-element).
*/
typedef enum {
MATROSKA_TRACKTRANSLATECODEC_MATROSKA_SCRIPT = 0, // Chapter commands using the Matroska Script codec.
MATROSKA_TRACKTRANSLATECODEC_DVD_MENU = 1, // Chapter commands using the DVD-like codec.
} MatroskaTrackTranslateCodec;

/**
*Specify whether the video frames in this track are interlaced.
*/
Expand Down Expand Up @@ -1211,6 +1195,14 @@ typedef enum {
MATROSKA_CHAPTERSKIPTYPE_ADVERTISEMENT = 6, // Advertisement within the content.
} MatroskaChapterSkipType;

/**
*Contains the type of the codec used for processing.
*/
typedef enum {
MATROSKA_CHAPPROCESSCODECID_MATROSKA_SCRIPT = 0, // Chapter commands using the Matroska Script codec.
MATROSKA_CHAPPROCESSCODECID_DVD_MENU = 1, // Chapter commands using the DVD-like codec.
} MatroskaChapProcessCodecID;

/**
*Defines when the process command **SHOULD** be handled
*/
Expand Down

0 comments on commit fa0ecda

Please sign in to comment.