X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Favcodec.h;h=5dc4b73e72449c2d9352ba21f5c9b2fd8724eb71;hb=22ebbda637257a432c99330ca4c6024665418f0e;hp=f4fe05618ee6a4bdf79510bff5608f907af7bf2f;hpb=2ef37691a0597529280dcb5be90325687eadac26;p=ffmpeg diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index f4fe05618ee..5dc4b73e724 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -835,6 +835,10 @@ typedef struct RcOverride{ * Do not skip samples and export skip information as frame side data */ #define AV_CODEC_FLAG2_SKIP_MANUAL (1 << 29) +/** + * Do not reset ASS ReadOrder field on flush (subtitles decoding) + */ +#define AV_CODEC_FLAG2_RO_FLUSH_NOOP (1 << 30) /* Unsupported options : * Syntax Arithmetic coding (SAC) @@ -1408,6 +1412,13 @@ enum AVPacketSideDataType { * information from the demuxer to the corresponding muxer. */ AV_PKT_DATA_MPEGTS_STREAM_ID, + + /** + * Mastering display metadata (based on SMPTE-2086:2014). This metadata + * should be associated with a video stream and containts data in the form + * of the AVMasteringDisplayMetadata struct. + */ + AV_PKT_DATA_MASTERING_DISPLAY_METADATA }; #define AV_PKT_DATA_QUALITY_FACTOR AV_PKT_DATA_QUALITY_STATS //DEPRECATED @@ -3278,6 +3289,12 @@ typedef struct AVCodecContext { #define FF_SUB_CHARENC_MODE_AUTOMATIC 0 ///< libavcodec will select the mode itself #define FF_SUB_CHARENC_MODE_PRE_DECODER 1 ///< the AVPacket data needs to be recoded to UTF-8 before being fed to the decoder, requires iconv + int sub_text_format; +#define FF_SUB_TEXT_FMT_ASS 0 +#if FF_API_ASS_TIMING +#define FF_SUB_TEXT_FMT_ASS_WITH_TIMINGS 1 +#endif + /** * Skip processing alpha if supported by codec. * Note that if the format uses pre-multiplied alpha (common with VP6,