diff options
author | Monty <xiphmont@xiph.org> | 2002-11-25 20:20:21 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2002-11-25 20:20:21 +0000 |
commit | a80cb134d84683d6c4961e2c33fddf3a24b378fa (patch) | |
tree | dde7bef0db946578a750469aaf3f6af46273cc04 /floor1.c | |
parent | bbef83c423f7438bc8f4108107b06450b6731dd9 (diff) | |
download | tremor-a80cb134d84683d6c4961e2c33fddf3a24b378fa.tar.gz |
Memory behavior tuning. Average heap usage from 250kB -> 155kB. Much more
requires the newer zero-copy libogg2 backport and on-the-fly codebook decode.
git-svn-id: https://svn.xiph.org/trunk/Tremor@4120 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'floor1.c')
-rw-r--r-- | floor1.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -28,9 +28,7 @@ #define floor1_rangedB 140 /* floor 1 fixed at -140dB to 0dB range */ typedef struct { - int sorted_index[VIF_POSIT+2]; int forward_index[VIF_POSIT+2]; - int reverse_index[VIF_POSIT+2]; int hineighbor[VIF_POSIT]; int loneighbor[VIF_POSIT]; @@ -151,10 +149,6 @@ static vorbis_look_floor *floor1_look(vorbis_dsp_state *vd,vorbis_info_mode *mi, /* points from sort order back to range number */ for(i=0;i<n;i++)look->forward_index[i]=sortpointer[i]-info->postlist; - /* points from range order to sorted position */ - for(i=0;i<n;i++)look->reverse_index[look->forward_index[i]]=i; - /* we actually need the post values too */ - for(i=0;i<n;i++)look->sorted_index[i]=info->postlist[look->forward_index[i]]; /* quantize values to multiplier spec */ switch(info->mult){ |