Commit 5a69cd2d authored by Urvang Joshi's avatar Urvang Joshi
Browse files

Encoder: Reduce max resident set size by 23%

We reduce max stack size from 16 to 8.

Memory reduction:
- peak usage for 1080p video: 2.328 GB → 1.788 GB
- sizeof ref_mv_stack: 6144 → 3072
- sizeof(MB_MODE_INFO_EXT): 6456 → 3384
- sizeof(PICK_MODE_CONTEXT):8056 → 5000
- sizeof(PC_TREE): 201440 → 125040

Compression performance is roughly neutral:
- AWCY objective-1-fast: +0.03
- Google lowres: 0.0
- Google midres: -0.006

BUG=aomedia:940

Change-Id: Ifd38359c58e40b1c94552c5034618da8ce510f62
parent aff479fa
......@@ -676,7 +676,7 @@ typedef enum ATTRIBUTE_PACKED {
/* Segment Feature Masks */
#define MAX_MV_REF_CANDIDATES 2
#define MAX_REF_MV_STACK_SIZE 16
#define MAX_REF_MV_STACK_SIZE 8
#if CONFIG_EXT_PARTITION
#define REF_CAT_LEVEL 640
#else
......
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