summaryrefslogtreecommitdiff
path: root/vp8/encoder
diff options
context:
space:
mode:
authorPaul Wilkins <paulwilkins@google.com>2010-07-16 15:57:17 +0100
committerPaul Wilkins <paulwilkins@google.com>2010-07-16 15:57:17 +0100
commit7c938f4d3cfebf68e93b0bfa4debc89a202d267a (patch)
tree06760649a45d38df53c20456ba9193d4755c6ad1 /vp8/encoder
parentfd0d7ff4c155b94d3f322addc7b66234b6908cc6 (diff)
downloadlibvpx-7c938f4d3cfebf68e93b0bfa4debc89a202d267a.tar
libvpx-7c938f4d3cfebf68e93b0bfa4debc89a202d267a.tar.gz
libvpx-7c938f4d3cfebf68e93b0bfa4debc89a202d267a.tar.bz2
libvpx-7c938f4d3cfebf68e93b0bfa4debc89a202d267a.zip
Fix: Incorrect 'cols' calculation in temporal filter.
Change-Id: I37f10fbe4fbb505c1d34980a59af3e817c287e22
Diffstat (limited to 'vp8/encoder')
-rw-r--r--vp8/encoder/onyx_if.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index f331a4ba2..a51f754a3 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -3218,6 +3218,7 @@ void write_cx_frame_to_file(YV12_BUFFER_CONFIG *frame, int this_frame)
#if VP8_TEMPORAL_ALT_REF
static void vp8cx_temp_blur1_c
(
+ VP8_COMP *cpi,
unsigned char **frames,
int frame_count,
unsigned char *src,
@@ -3236,17 +3237,16 @@ static void vp8cx_temp_blur1_c
int modifier = 0;
int i, j, k;
int block_ofset;
- int Cols, Rows;
+ int cols;
unsigned char Shift = (block_size == 16) ? 4 : 3;
- Cols = width / block_size;
- Rows = height / block_size;
+ cols = cpi->common.mb_cols;
for (i = 0; i < height; i++)
{
- block_ofset = (i >> Shift) * Cols;
+ block_ofset = (i >> Shift) * cols;
- for (j = 0; j < Cols; j ++)
+ for (j = 0; j < cols; j ++)
{
if (motion_map_ptr[block_ofset] > 2)
{
@@ -3436,6 +3436,7 @@ static void vp8cx_temp_filter_c
// Blur Y
vp8cx_temp_blur1_c(
+ cpi,
cpi->frames,
frames_to_blur,
temp_source_buffer->y_buffer, // cpi->Source->y_buffer,
@@ -3460,6 +3461,7 @@ static void vp8cx_temp_filter_c
// Blur U
vp8cx_temp_blur1_c(
+ cpi,
cpi->frames,
frames_to_blur,
temp_source_buffer->u_buffer,
@@ -3484,6 +3486,7 @@ static void vp8cx_temp_filter_c
// Blur V
vp8cx_temp_blur1_c(
+ cpi,
cpi->frames,
frames_to_blur,
temp_source_buffer->v_buffer,