summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHarinarayanan K K <harinarayanan.kk@ittiam.com>2015-06-19 14:44:42 +0530
committerMarco Nelissen <marcone@google.com>2015-06-25 08:25:54 -0700
commitd3e18f0c8854c258021be1e603d8f50a241698a7 (patch)
tree764886f3bf2623f22c9023fc3bc1d1230e083de2 /test
parenta4e933db7a70e5c55cdad22600952fcb042122aa (diff)
downloadandroid_external_libavc-d3e18f0c8854c258021be1e603d8f50a241698a7.tar.gz
android_external_libavc-d3e18f0c8854c258021be1e603d8f50a241698a7.tar.bz2
android_external_libavc-d3e18f0c8854c258021be1e603d8f50a241698a7.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 'test')
-rw-r--r--test/encoder/recon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/encoder/recon.c b/test/encoder/recon.c
index 7b347f3..d177a62 100644
--- a/test/encoder/recon.c
+++ b/test/encoder/recon.c
@@ -161,7 +161,7 @@ void init_raw_buf_descr(app_ctxt_t *ps_app_ctxt, iv_raw_buf_t *ps_raw_buf, UWORD
/* All the pointers and dimensions are initialized here
* to support change in resolution from the application */
- luma_size = ALIGN16(ps_app_ctxt->u4_max_wd) * ALIGN16(ps_app_ctxt->u4_max_ht);
+ luma_size = ps_app_ctxt->u4_max_wd * ps_app_ctxt->u4_max_ht;
chroma_size = (luma_size) / 4;
ps_raw_buf->apv_bufs[0] = pu1_buf;