# HG changeset patch # User michael # Date 1230995703 0 # Node ID 531ddfe8a832a6bde963ee5b63efff5db52dcd22 # Parent cea216e44ee38a0b60b8cdff734f8ac66cd2f248 Add enum AVSubtitleType diff -r cea216e44ee3 -r 531ddfe8a832 avcodec.h --- a/avcodec.h Sat Jan 03 00:46:17 2009 +0000 +++ b/avcodec.h Sat Jan 03 15:15:03 2009 +0000 @@ -2375,6 +2375,24 @@ } 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;