Add enum AVSubtitleType
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Jan 2009 15:15:03 +0000 (15:15 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Jan 2009 15:15:03 +0000 (15:15 +0000)
Originally committed as revision 16410 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/avcodec.h

index 4dbfa1e..a409f15 100644 (file)
@@ -2375,6 +2375,24 @@ typedef struct AVPaletteControl {
 
 } AVPaletteControl attribute_deprecated;
 
+enum AVSubtitleType {
+    SUBTITLE_NONE,
+
+    SUBTITLE_BITMAP,                ///< A bitmap, pict will be set
+
+    /**
+     * Plain text, the text field must be set by the decoder and is
+     * authoritative. ass and pict fields may contain approximations.
+     */
+    SUBTITLE_TEXT,
+
+    /**
+     * Formatted text, the ass field must be set by the decoder and is
+     * authoritative. pict and text fields may contain approximations.
+     */
+    SUBTITLE_ASS,
+};
+
 typedef struct AVSubtitleRect {
     uint16_t x;
     uint16_t y;