diff options
author | Harinarayanan K K <harinarayanan.kk@ittiam.com> | 2015-06-19 14:44:42 +0530 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2015-06-24 21:04:04 +0000 |
commit | 6cb6772805d86c66848b15a54926e396daed06b1 (patch) | |
tree | cd4505ae77079c48db1dfc38600d449c97c5b960 /encoder/ih264e_encode_header.c | |
parent | 461adb94c9972c032095f16d0d071006a2fed447 (diff) | |
download | android_external_libavc-6cb6772805d86c66848b15a54926e396daed06b1.tar.gz android_external_libavc-6cb6772805d86c66848b15a54926e396daed06b1.tar.bz2 android_external_libavc-6cb6772805d86c66848b15a54926e396daed06b1.zip |
Reduced memory requirements.
Buffer allocation is based on minimum level required for the
input resolution rather than the input max level.
Number of maximum context sets can be set to 1 to reduce
memory usage.
Added a macro ENC_MIN_PU_SIZE for minimum size of
inter prediction unit supported by encoder.
Changed the maximum constraint on number of MBs for NMB
processing to width in Mbs.
Change-Id: I5a9255e93935d90c13262681aafc772aedf8ae81
Diffstat (limited to 'encoder/ih264e_encode_header.c')
-rw-r--r-- | encoder/ih264e_encode_header.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/encoder/ih264e_encode_header.c b/encoder/ih264e_encode_header.c index 2a895b1..6c96e63 100644 --- a/encoder/ih264e_encode_header.c +++ b/encoder/ih264e_encode_header.c @@ -90,6 +90,7 @@ #include "ih264e_encode_header.h" #include "ih264_common_tables.h" #include "ih264_macros.h" +#include "ih264e_utils.h" /*****************************************************************************/ @@ -686,17 +687,8 @@ IH264E_ERROR_T ih264e_populate_sps(codec_t *ps_codec, sps_t *ps_sps) } /* level */ - ps_sps->u1_level_idc = ps_cfg->u4_max_level; -// i4_err_code = ih264e_get_level(ps_cfg, &level_idc); -// if (i4_err_code == IH264E_SUCCESS) -// { -// ps_sps->u1_level_idc = level_idc; -// -// } -// else -// { -// return i4_err_code; -// } + ps_sps->u1_level_idc = MAX(ps_cfg->u4_max_level, + (UWORD32)ih264e_get_min_level(ps_cfg->u4_max_wd, ps_cfg->u4_max_ht)); /* constrained flags */ /* |