[vorbis-dev] ogg vorbis dynamic memory allocation.

Segher Boessenkool segher at chello.nl
Mon Jul 2 18:33:37 PDT 2001



Firelight Multimedia wrote:
> 
> > > > That's 40.5k (roughly), for these buffers only...  So my 48k
> stands.
> > > > But anyway, 48k or 880k doesn't compare very nice for us...
> > >
> > > well 2816+9216+4608+9216+4608+4608 = 34.25k actually :)
> >
> > ...except your math is kind of funky?
> 
> Sigh so 2816 was meant to be 4608 equalling 36k...  so how funky is your
> maths if you got 40.5k

      > > #define SBLIMIT         32
      > > #define SSLIMIT         18
      > > #define MAXFRAMESIZE    1792
 4608 > > unsigned char bsspace[2][MAXFRAMESIZE+512];
 9216 > > float  hybrid_block[2][2][SBLIMIT*SSLIMIT];
 9216 > > float  synth_buffs[2][2][0x120];
 9216 > > float  block[2][2][SBLIMIT * SSLIMIT];
 4608 > > float  hybridIn[2][SBLIMIT][SSLIMIT];
 4608 > > float  hybridOut[2][SSLIMIT][SBLIMIT];
----- +
41472 = 40.5k

convinced now?

Segher

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list