avutil/film_grain_params: add av_film_grain_params_select()

Common utility function that can be used by all codecs to select the
right (any valid) film grain parameter set. In particular, this is
useful for AFGS1, which has support for multiple parameters.

However, it also performs parameter validation for H274.
This commit is contained in:
Niklas Haas
2024-03-15 12:15:11 +01:00
parent ea147f3b50
commit a9023377b2
4 changed files with 76 additions and 1 deletions

View File

@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07
API changes, most recent first:
2024-03-xx - xxxxxxxxxx - lavu 59.6.100 - film_grain_params.h
Add av_film_grain_params_select().
2024-03-xx - xxxxxxxxxx - lavu 59.5.100 - film_grain_params.h
Add AVFilmGrainParams.color_range, color_primaries, color_trc, color_space,
width, height, subsampling_x, subsampling_y, bit_depth_luma and