ref: 0e59dad0deeac1f17602d1edc8fb88f5f9604520
parent: cf793a32bd82a8f0bc435962700afc39eec6ebb6
parent: 6dab4d205e5c3cb51fc104109359a41f9c1b9111
author: John Koleszar <jkoleszar@google.com>
date: Fri May 10 12:56:45 EDT 2013
Merge "Fix 4:2:0 assumptions in debug plane output" into experimental
--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -1949,8 +1949,8 @@
pkt.data.psnr.samples[0] = width * height;
pkt.data.psnr.samples[1] = width * height;
- width = (width + 1) / 2;
- height = (height + 1) / 2;
+ width = orig->uv_width;
+ height = orig->uv_height;
sse = calc_plane_error(orig->u_buffer, orig->uv_stride,
recon->u_buffer, recon->uv_stride,
@@ -2104,7 +2104,7 @@
} while (--h);
src = s->u_buffer;
- h = (cm->height + 1) / 2;
+ h = s->uv_height;
do {
fwrite(src, s->uv_width, 1, yuv_rec_file);
@@ -2112,7 +2112,7 @@
} while (--h);
src = s->v_buffer;
- h = (cm->height + 1) / 2;
+ h = s->uv_height;
do {
fwrite(src, s->uv_width, 1, yuv_rec_file);
--
⑨