[FFmpeg-cvslog] avcodec/snowenc: Export quality/pict_type/PSNR stats through side data

Michael Niedermayer git at videolan.org
Tue Jul 28 02:33:41 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Jul 28 02:17:39 2015 +0200| [1ca042a14b9347d191eb4abf8dc74ac48db272fd] | committer: Michael Niedermayer

avcodec/snowenc: Export quality/pict_type/PSNR stats through side data

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/snowenc.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index 134c8c1..16c7e05 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -1850,6 +1850,11 @@ redo_frame:
 
     emms_c();
 
+    ff_side_data_set_encoder_stats(pkt, s->current_picture->quality,
+                                   s->current_picture->error,
+                                   (s->avctx->flags&AV_CODEC_FLAG_PSNR) ? 4 : 0,
+                                   s->current_picture->pict_type);
+
     pkt->size = ff_rac_terminate(c);
     if (s->current_picture->key_frame)
         pkt->flags |= AV_PKT_FLAG_KEY;



More information about the ffmpeg-cvslog mailing list