Mercurial > libavcodec.hg
changeset 2187:eedd352930b2 libavcodec
edge bugfix
1-1.3% lower bitrate and +0.01 PSNR (foremen@352x288 qscale=1,8)
author | michael |
---|---|
date | Wed, 25 Aug 2004 00:26:01 +0000 |
parents | be0ad4f3e8ea |
children | 226d0a39347d |
files | snow.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/snow.c Wed Aug 25 00:01:34 2004 +0000 +++ b/snow.c Wed Aug 25 00:26:01 2004 +0000 @@ -2642,10 +2642,18 @@ 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;