diff options
author | Lynne <dev@lynne.ee> | 2020-11-12 12:44:30 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2020-11-25 23:06:33 +0100 |
commit | 4f9ee87253e021f43b1eaf40e57c2fb10af2be88 (patch) | |
tree | b12ab4e0962d81bc2ad539f8051f639c70d24e18 /libavutil/frame.h | |
parent | 5b1ccd748a7c5317172981151a36711772455368 (diff) | |
download | ffmpeg-4f9ee87253e021f43b1eaf40e57c2fb10af2be88.tar.gz |
libavutil: introduce AVFilmGrainParams side data
This patch introduces a new frame side data type AVFilmGrainParams for use
with video codecs which support it.
It can save a lot of memory used for duplicate processed reference frames and
reduce copies when applying film grain during presentation.
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r-- | libavutil/frame.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h index 3bd240fc97..392315f40f 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -192,6 +192,12 @@ enum AVFrameSideDataType { * uuid_iso_iec_11578 followed by AVFrameSideData.size - 16 bytes of user_data_payload_byte. */ AV_FRAME_DATA_SEI_UNREGISTERED, + + /** + * Film grain parameters for a frame, described by AVFilmGrainParameters. + * Must be present for every frame which should have film grain applied. + */ + AV_FRAME_DATA_FILM_GRAIN_PARAMS, }; enum AVActiveFormatDescription { |