[FFmpeg-cvslog] vf_tonemap: Update hdr metadata with the new peak value

Vittorio Giovara git at videolan.org
Mon Aug 6 21:54:00 EEST 2018


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Jul 25 17:45:46 2018 +0200| [aa8e5eecac97dd3c87518e0accfb96dea05066c8] | committer: Vittorio Giovara

vf_tonemap: Update hdr metadata with the new peak value

Less effective than the approach in vf_tonemap_opencl because there
is no peak detection, but it's still a good idea to implement this.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aa8e5eecac97dd3c87518e0accfb96dea05066c8
---

 libavfilter/vf_tonemap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c
index b62532946b..98a2c4bd23 100644
--- a/libavfilter/vf_tonemap.c
+++ b/libavfilter/vf_tonemap.c
@@ -265,6 +265,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
 
     av_frame_free(&in);
 
+    ff_update_hdr_metadata(out, peak);
+
     return ff_filter_frame(outlink, out);
 }
 



More information about the ffmpeg-cvslog mailing list