Home | History | Annotate | Download | only in encoder

Lines Matching refs:source

4  *  Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
8 * be found in the AUTHORS file in the root of the source tree.
33 double vp8_calc_psnr(YV12_BUFFER_CONFIG *source, YV12_BUFFER_CONFIG *dest, double *YPsnr, double *UPsnr, double *VPsnr, double *sq_error)
40 unsigned char *src = source->y_buffer;
47 for (i = 0; i < source->y_height; i++)
50 for (j = 0; j < source->y_width; j++)
56 src += source->y_stride;
61 *YPsnr = vp8_mse2psnr(source->y_height * source->y_width, 255.0, Total);
67 src = source->u_buffer;
70 for (i = 0; i < source->uv_height; i++)
73 for (j = 0; j < source->uv_width; j++)
79 src += source->uv_stride;
84 *UPsnr = vp8_mse2psnr(source->uv_height * source->uv_width, 255.0, Total);
90 src = source->v_buffer;
93 for (i = 0; i < source->uv_height; i++)
96 for (j = 0; j < source->uv_width; j++)
102 src += source->uv_stride;
107 *VPsnr = vp8_mse2psnr(source->uv_height * source->uv_width, 255.0, Total);
112 frame_psnr = vp8_mse2psnr(source->y_height * source->y_width * 3 / 2 , 255.0, grand_total);