vo_gpu_next: apply film grain if such metadata is present

This commit is contained in:
Lynne 2022-04-01 22:26:44 +02:00 committed by Niklas Haas
parent 7230550191
commit 4149cc2ce3
1 changed files with 5 additions and 0 deletions

View File

@ -686,6 +686,11 @@ static bool map_frame(pl_gpu gpu, pl_tex *tex, const struct pl_source_frame *src
}
#endif
#ifdef PL_HAVE_LAV_FILM_GRAIN
if (mpi->film_grain)
pl_film_grain_from_av(&frame->film_grain, (AVFilmGrainParams *) mpi->film_grain->data);
#endif
// Compute a unique signature for any attached ICC profile. Wasteful in
// theory if the ICC profile is the same for multiple frames, but in
// practice ICC profiles are overwhelmingly going to be attached to