diff options
author | Lynne <dev@lynne.ee> | 2022-04-01 22:26:44 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-04-05 15:02:18 +0200 |
commit | 4149cc2ce31dfb5485fe7a947c3f6356e0bd1583 (patch) | |
tree | 6dc89ea9e9d66ca98c47c071de519733ea0b4bbe /video/out | |
parent | 723055019128a4ab2016e88286d8ecaba64f8497 (diff) | |
download | mpv-4149cc2ce31dfb5485fe7a947c3f6356e0bd1583.tar.bz2 mpv-4149cc2ce31dfb5485fe7a947c3f6356e0bd1583.tar.xz |
vo_gpu_next: apply film grain if such metadata is present
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |