Commit 316a6235 authored by Zoe Liu's avatar Zoe Liu
Browse files

Reduce the unnecessary array size

For partition types pruning in ext-partition-types, horz_rd and
vert_rd are used to store the RD costs for the two blocks in
horizontal partition and vertical partition. Hence array size of
2 is sufficient for either array.

Change-Id: I3471ac573665410af4c5b4af3c54bc60fe8c0195
parent f57a937c
...@@ -2208,8 +2208,8 @@ static void rd_pick_partition(const AV1_COMP *const cpi, ThreadData *td, ...@@ -2208,8 +2208,8 @@ static void rd_pick_partition(const AV1_COMP *const cpi, ThreadData *td,
int do_rectangular_split = 1; int do_rectangular_split = 1;
#if CONFIG_EXT_PARTITION_TYPES #if CONFIG_EXT_PARTITION_TYPES
int64_t split_rd[4] = { 0, 0, 0, 0 }; int64_t split_rd[4] = { 0, 0, 0, 0 };
int64_t horz_rd[4] = { 0, 0 }; int64_t horz_rd[2] = { 0, 0 };
int64_t vert_rd[4] = { 0, 0 }; int64_t vert_rd[2] = { 0, 0 };
#endif // CONFIG_EXT_PARTITION_TYPES #endif // CONFIG_EXT_PARTITION_TYPES
#if CONFIG_EXT_PARTITION_TYPES #if CONFIG_EXT_PARTITION_TYPES
BLOCK_SIZE bsize2 = get_subsize(bsize, PARTITION_SPLIT); BLOCK_SIZE bsize2 = get_subsize(bsize, PARTITION_SPLIT);
......
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