diff options
author | John Koleszar <jkoleszar@google.com> | 2010-12-13 10:11:42 -0500 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2010-12-13 16:37:37 -0500 |
commit | b7b1e6fb55c6b12ccd078a20cb9855f6734931b5 (patch) | |
tree | 628b6cf97a5bf02b95a533cfca31e51e3343e3fe /vp8/encoder/tokenize.c | |
parent | 0ced701487583049635386c801b415b4255eec86 (diff) | |
download | libvpx-b7b1e6fb55c6b12ccd078a20cb9855f6734931b5.tar libvpx-b7b1e6fb55c6b12ccd078a20cb9855f6734931b5.tar.gz libvpx-b7b1e6fb55c6b12ccd078a20cb9855f6734931b5.tar.bz2 libvpx-b7b1e6fb55c6b12ccd078a20cb9855f6734931b5.zip |
Reduce size of TOKENEXTRA struct
Change the size of structure elements to reduce memory utilization.
Removed the 'section' member entirely, as it is set but never read.
Change-Id: Iad043830392fb4168cb3cd6075fb0eb70c7f691c
Diffstat (limited to 'vp8/encoder/tokenize.c')
-rw-r--r-- | vp8/encoder/tokenize.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/vp8/encoder/tokenize.c b/vp8/encoder/tokenize.c index e4da83379..50dabf4a5 100644 --- a/vp8/encoder/tokenize.c +++ b/vp8/encoder/tokenize.c @@ -131,9 +131,6 @@ static void tokenize2nd_order_b t->Token = x; t->context_tree = cpi->common.fc.coef_probs [type] [band] [pt]; - - t->section = frametype * BLOCK_TYPES * 2 + 2 * type + (c == 0); - t->skip_eob_node = pt == 0 && ((band > 0 && type > 0) || (band > 1 && type == 0)); ++cpi->coef_counts [type] [band] [pt] [x]; @@ -184,8 +181,6 @@ static void tokenize1st_order_b t->Token = x; t->context_tree = cpi->common.fc.coef_probs [type] [band] [pt]; - - t->section = frametype * BLOCK_TYPES * 2 + 2 * type + (c == 0); t->skip_eob_node = pt == 0 && ((band > 0 && type > 0) || (band > 1 && type == 0)); ++cpi->coef_counts [type] [band] [pt] [x]; @@ -434,7 +429,6 @@ static __inline void stuff2nd_order_b t->Token = DCT_EOB_TOKEN; t->context_tree = cpi->common.fc.coef_probs [1] [0] [pt]; - t->section = 11; t->skip_eob_node = 0; ++cpi->coef_counts [1] [0] [pt] [DCT_EOB_TOKEN]; ++t; @@ -465,7 +459,6 @@ static __inline void stuff1st_order_b t->Token = DCT_EOB_TOKEN; t->context_tree = cpi->common.fc.coef_probs [0] [1] [pt]; - t->section = 8; t->skip_eob_node = 0; ++cpi->coef_counts [0] [1] [pt] [DCT_EOB_TOKEN]; ++t; @@ -495,7 +488,6 @@ void stuff1st_order_buv t->Token = DCT_EOB_TOKEN; t->context_tree = cpi->common.fc.coef_probs [2] [0] [pt]; - t->section = 13; t->skip_eob_node = 0; ++cpi->coef_counts[2] [0] [pt] [DCT_EOB_TOKEN]; ++t; |