Mercurial > libavcodec.hg
comparison snow.c @ 2232:960e3552e418 libavcodec
per picture psnr
author | michael |
---|---|
date | Wed, 15 Sep 2004 01:55:04 +0000 |
parents | 11d54cb7ac4e |
children | c46fed9b7575 |
comparison
equal
deleted
inserted
replaced
2231:c87bab25f89f | 2232:960e3552e418 |
---|---|
2811 int d= s->current_picture.data[plane_index][y*s->current_picture.linesize[plane_index] + x] - pict->data[plane_index][y*pict->linesize[plane_index] + x]; | 2811 int d= s->current_picture.data[plane_index][y*s->current_picture.linesize[plane_index] + x] - pict->data[plane_index][y*pict->linesize[plane_index] + x]; |
2812 error += d*d; | 2812 error += d*d; |
2813 } | 2813 } |
2814 } | 2814 } |
2815 s->avctx->error[plane_index] += error; | 2815 s->avctx->error[plane_index] += error; |
2816 s->avctx->error[3] += error; | 2816 s->current_picture.error[plane_index] = error; |
2817 } | 2817 } |
2818 } | 2818 } |
2819 | 2819 |
2820 if(s->last_picture.data[0]) | 2820 if(s->last_picture.data[0]) |
2821 avctx->release_buffer(avctx, &s->last_picture); | 2821 avctx->release_buffer(avctx, &s->last_picture); |