Commit 3ef0db07 authored by Debargha Mukherjee's avatar Debargha Mukherjee

Some fixes in reconintra

Change-Id: I0b0fa7c9853ce12d39ee21829686b308154b2c61
parent 02e73416
...@@ -372,14 +372,13 @@ static void dr_prediction_z1(uint8_t *dst, ptrdiff_t stride, int bs, ...@@ -372,14 +372,13 @@ static void dr_prediction_z1(uint8_t *dst, ptrdiff_t stride, int bs,
static void dr_prediction_z2(uint8_t *dst, ptrdiff_t stride, int bs, static void dr_prediction_z2(uint8_t *dst, ptrdiff_t stride, int bs,
const uint8_t *above, const uint8_t *left, const uint8_t *above, const uint8_t *left,
int dx, int dy, INTRA_FILTER filter_type) { int dx, int dy, INTRA_FILTER filter_type) {
int r, c, x, y, shift1, shift2, val, base1, base2, use_above; int r, c, x, y, shift1, shift2, val, base1, base2;
assert(dx > 0); assert(dx > 0);
assert(dy > 0); assert(dy > 0);
x = -dx; x = -dx;
for (r = 0; r < bs; ++r, x -= dx, dst += stride) { for (r = 0; r < bs; ++r, x -= dx, dst += stride) {
use_above = 0;
base1 = x >> 8; base1 = x >> 8;
y = (r << 8) - dy; y = (r << 8) - dy;
for (c = 0; c < bs; ++c, ++base1, y -= dy) { for (c = 0; c < bs; ++c, ++base1, y -= dy) {
...@@ -441,8 +440,8 @@ static void dr_prediction_z3(uint8_t *dst, ptrdiff_t stride, int bs, ...@@ -441,8 +440,8 @@ static void dr_prediction_z3(uint8_t *dst, ptrdiff_t stride, int bs,
len = VPXMIN(bs, 2 * bs - 1 - base); len = VPXMIN(bs, 2 * bs - 1 - base);
if (len <= 0) { if (len <= 0) {
for (i = r; r < bs; ++r) { for (r = 0; r < bs; ++r) {
dst[i * stride + c] = left[ 2 * bs - 1]; dst[r * stride + c] = left[ 2 * bs - 1];
} }
continue; continue;
} }
......
Markdown is supported
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