From 4149cc2ce31dfb5485fe7a947c3f6356e0bd1583 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 1 Apr 2022 22:26:44 +0200 Subject: vo_gpu_next: apply film grain if such metadata is present --- video/out/vo_gpu_next.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/out') diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 8de5ab3c74..e6f6c8f415 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -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 -- cgit v1.2.3