ref: 59f29f5e3fe96c883f174bd55ece875eda60745a
parent: 9a0e6941824ee40b180b3f3a90e547921081ddcb
parent: 2fb9b635bbd96975345d2cf5584bfc26f7f1f95f
author: Jingning Han <[email protected]>
date: Wed Jan 7 06:30:15 EST 2015
Merge "Fix denoiser chroma component initialization"
--- a/vp9/encoder/vp9_denoiser.c
+++ b/vp9/encoder/vp9_denoiser.c
@@ -485,15 +485,13 @@
uint8_t *u = yuv->u_buffer;
uint8_t *v = yuv->v_buffer;
- // The '/2's are there because we have a 440 buffer, but we want to output
- // 420.
- for (r = 0; r < yuv->uv_height / 2; ++r) {
- for (c = 0; c < yuv->uv_width / 2; ++c) {
+ for (r = 0; r < yuv->uv_height; ++r) {
+ for (c = 0; c < yuv->uv_width; ++c) {
u[c] = UINT8_MAX / 2;
v[c] = UINT8_MAX / 2;
}
- u += yuv->uv_stride + yuv->uv_width / 2;
- v += yuv->uv_stride + yuv->uv_width / 2;
+ u += yuv->uv_stride;
+ v += yuv->uv_stride;
}
}
#endif