Commit 54293ee3 authored by Adrian Grange's avatar Adrian Grange
Browse files

Fix calc_highbd_psnr

Should use the crop dimensions of the frame rather
than the extended size.

Change-Id: I49ed041a46ff0753d43e074020857b7ff2f95e17
parent 2b0ed084
...@@ -2002,8 +2002,10 @@ static void calc_highbd_psnr(const YV12_BUFFER_CONFIG *a, ...@@ -2002,8 +2002,10 @@ static void calc_highbd_psnr(const YV12_BUFFER_CONFIG *a,
PSNR_STATS *psnr, PSNR_STATS *psnr,
unsigned int bit_depth, unsigned int bit_depth,
unsigned int in_bit_depth) { unsigned int in_bit_depth) {
const int widths[3] = {a->y_width, a->uv_width, a->uv_width }; const int widths[3] =
const int heights[3] = {a->y_height, a->uv_height, a->uv_height}; {a->y_crop_width, a->uv_crop_width, a->uv_crop_width };
const int heights[3] =
{a->y_crop_height, a->uv_crop_height, a->uv_crop_height};
const uint8_t *a_planes[3] = {a->y_buffer, a->u_buffer, a->v_buffer }; const uint8_t *a_planes[3] = {a->y_buffer, a->u_buffer, a->v_buffer };
const int a_strides[3] = {a->y_stride, a->uv_stride, a->uv_stride}; const int a_strides[3] = {a->y_stride, a->uv_stride, a->uv_stride};
const uint8_t *b_planes[3] = {b->y_buffer, b->u_buffer, b->v_buffer }; const uint8_t *b_planes[3] = {b->y_buffer, b->u_buffer, b->v_buffer };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment