[tremor] Tremor Memory Footprint

Werner Sharp werner at sharp-software.com
Wed Nov 6 09:15:33 PST 2002



> > I'm using tremor in a Windows CE project that may be in a low memory
> > situation when decoding the Ogg file.   If there's not enough memory
> > available, tremor just crashes out because there's not any(?)
out-of-memory
> > checks.   Does anyone know if tremor has a general memory footprint
required
> > to decode a file?
>
> I think no such analysis has been done yet.  However you could easily add
> some checks for failed allocations and/or allocation accounting by
defining
> ogg_malloc/ogg_calloc/ogg_realloc/ogg_free wrappers (see os_types.h).

Thanks, but there's no exception handling on CE if that's what you were
thinking.

I have most places patched to handle it ok. I added out-of-memory checks to
the following functions...

vorbis_static_unpack
vorbis_info_floor
ogg_stream_init
ov_raw_seek

and that seemed to take care of the crashes I'm seeing.  I also added some
purging code ahead of the Ogg decompression.   This is really a stress test
case and if the application is this low on free memory (500kb or less left),
it's in trouble anyway.

-Werner

>
> --- >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 'tremor-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.
>

--- >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 'tremor-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 Tremor mailing list