Commit a5e4ca83 authored by James Zern's avatar James Zern
Browse files

build_intra_predictors*: reduce above_data size

currently this needs to be 2x (NEED_ABOVERIGHT) the size of the largest
block (32) + 1 (for above_left). reduce the buffer size from 128 + 16
(alignment) to 64 + 16.

Change-Id: Idaca1806c7e1214e9437de24e15edc2ebf18f95d
parent 6d227137
...@@ -658,7 +658,7 @@ static void build_intra_predictors_high(const MACROBLOCKD *xd, ...@@ -658,7 +658,7 @@ static void build_intra_predictors_high(const MACROBLOCKD *xd,
uint16_t *dst = CONVERT_TO_SHORTPTR(dst8); uint16_t *dst = CONVERT_TO_SHORTPTR(dst8);
uint16_t *ref = CONVERT_TO_SHORTPTR(ref8); uint16_t *ref = CONVERT_TO_SHORTPTR(ref8);
DECLARE_ALIGNED(16, uint16_t, left_col[32]); DECLARE_ALIGNED(16, uint16_t, left_col[32]);
DECLARE_ALIGNED(16, uint16_t, above_data[128 + 16]); DECLARE_ALIGNED(16, uint16_t, above_data[64 + 16]);
uint16_t *above_row = above_data + 16; uint16_t *above_row = above_data + 16;
const uint16_t *const_above_row = above_row; const uint16_t *const_above_row = above_row;
const int bs = 4 << tx_size; const int bs = 4 << tx_size;
...@@ -781,7 +781,7 @@ static void build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref, ...@@ -781,7 +781,7 @@ static void build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref,
int plane) { int plane) {
int i; int i;
DECLARE_ALIGNED(16, uint8_t, left_col[32]); DECLARE_ALIGNED(16, uint8_t, left_col[32]);
DECLARE_ALIGNED(16, uint8_t, above_data[128 + 16]); DECLARE_ALIGNED(16, uint8_t, above_data[64 + 16]);
uint8_t *above_row = above_data + 16; uint8_t *above_row = above_data + 16;
const uint8_t *const_above_row = above_row; const uint8_t *const_above_row = above_row;
const int bs = 4 << tx_size; const int bs = 4 << tx_size;
......
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