]> git.sesse.net Git - ffmpeg/commit
libdav1d: use film grain export flag to export AVFilmGrainParams side data
authorLynne <dev@lynne.ee>
Thu, 12 Nov 2020 11:48:20 +0000 (12:48 +0100)
committerLynne <dev@lynne.ee>
Wed, 25 Nov 2020 22:06:33 +0000 (23:06 +0100)
commitdd3486101825dbe956405b7d96a5c5ac7f866158
tree5632a64c49ce3be824572da2bb58a078eba5edfa
parentd243dd540a8a421e47b7ea5e55e0676ba7b54f29
libdav1d: use film grain export flag to export AVFilmGrainParams side data

This patch is relatively straightforward with one exception:
the decoder option flag.
The option was introduced to troubleshoot but its existence is conflicting
and redundant now that we have a codec-generic flag.
Hence this patch deprecates it.

The way it interacts with AV_CODEC_EXPORT_DATA_FILM_GRAIN is as follows:

If filmgrain is unset and AV_CODEC_EXPORT_DATA_FILM_GRAIN is
present, disable film grain application and export side data.

If filmgrain is set to 0, disable film grain and export side data.

If filmgrain is set to 1, apply film grain but export side data if
the AV_CODEC_EXPORT_DATA_FILM_GRAIN flag is set. This may result in
double film grain application, but the user has requested it by setting
both.
libavcodec/libdav1d.c