[SCM] libav/experimental: edge bugfix 1-1.3% lower bitrate and +0.01 PSNR (foremen at 352x288 qscale=1, 8)

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:41:18 UTC 2013


The following commit has been merged in the experimental branch:
commit 64886072f56a143e5c61dc0faab26f5f43c7c19f
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Aug 25 00:26:01 2004 +0000

    edge bugfix
    1-1.3% lower bitrate and +0.01 PSNR (foremen at 352x288 qscale=1,8)
    
    Originally committed as revision 3414 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index 6b8081b..73be310 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -2642,10 +2642,18 @@ static int encode_init(AVCodecContext *avctx)
 
 static int frame_start(SnowContext *s){
    AVFrame tmp;
+   int w= s->avctx->width; //FIXME round up to x16 ?
+   int h= s->avctx->height;
 
    if(s->keyframe)
         reset_contexts(s);
  
+    if(s->current_picture.data[0]){
+        draw_edges(s->current_picture.data[0], s->current_picture.linesize[0], w   , h   , EDGE_WIDTH  );
+        draw_edges(s->current_picture.data[1], s->current_picture.linesize[1], w>>1, h>>1, EDGE_WIDTH/2);
+        draw_edges(s->current_picture.data[2], s->current_picture.linesize[2], w>>1, h>>1, EDGE_WIDTH/2);
+    }
+
     tmp= s->last_picture;
     s->last_picture= s->current_picture;
     s->current_picture= tmp;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list