summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_encoder.c
diff options
context:
space:
mode:
authorAdrian Grange <agrange@google.com>2015-02-27 14:02:49 -0800
committerAdrian Grange <agrange@google.com>2015-02-27 14:05:02 -0800
commit54293ee3c7be3fd1b7880e2049fd07370a52d10f (patch)
tree9cd0dfa53b1787109483a2ec10689762057faa0b /vp9/encoder/vp9_encoder.c
parent2b0ed0842fca7b646f75e67388162903ce8f2ef6 (diff)
downloadlibvpx-54293ee3c7be3fd1b7880e2049fd07370a52d10f.tar
libvpx-54293ee3c7be3fd1b7880e2049fd07370a52d10f.tar.gz
libvpx-54293ee3c7be3fd1b7880e2049fd07370a52d10f.tar.bz2
libvpx-54293ee3c7be3fd1b7880e2049fd07370a52d10f.zip
Fix calc_highbd_psnr
Should use the crop dimensions of the frame rather than the extended size. Change-Id: I49ed041a46ff0753d43e074020857b7ff2f95e17
Diffstat (limited to 'vp9/encoder/vp9_encoder.c')
-rw-r--r--vp9/encoder/vp9_encoder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c
index 17eb75a9e..bd7e0b64c 100644
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -2002,8 +2002,10 @@ static void calc_highbd_psnr(const YV12_BUFFER_CONFIG *a,
PSNR_STATS *psnr,
unsigned int bit_depth,
unsigned int in_bit_depth) {
- const int widths[3] = {a->y_width, a->uv_width, a->uv_width };
- const int heights[3] = {a->y_height, a->uv_height, a->uv_height};
+ const int widths[3] =
+ {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 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 };