diff options
author | James Almer <jamrial@gmail.com> | 2020-02-02 19:12:08 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-02-22 23:19:07 -0300 |
commit | d005a7cdfd8762d436dc5d3ec12bab4f96781c4f (patch) | |
tree | 315e6cddf141a09b0af26cbd301976a5cf46027b /libavcodec/avcodec.h | |
parent | c6666894914ba8be1193ed81e9b6b737c68c29b6 (diff) |
avcodec: add an AVCodecContext flag to export PRFT side data on demand
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index ba0fdd3493..82dce38bb8 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1110,6 +1110,10 @@ typedef struct RcOverride{ * Export motion vectors through frame side data */ #define AV_CODEC_EXPORT_DATA_MVS (1 << 0) +/** + * Export encoder Producer Reference Time through packet side data + */ +#define AV_CODEC_EXPORT_DATA_PRFT (1 << 1) /** * Pan Scan area. @@ -1430,7 +1434,9 @@ enum AVPacketSideDataType { AV_PKT_DATA_AFD, /** - * Producer Reference Time data corresponding to the AVProducerReferenceTime struct. + * Producer Reference Time data corresponding to the AVProducerReferenceTime struct, + * usually exported by some encoders (on demand through the prft flag set in the + * AVCodecContext export_side_data field). */ AV_PKT_DATA_PRFT, |