[Tremor] Piece-meal Vorbis decode

Michael Smith msmith at xiph.org
Thu Oct 20 02:59:13 PDT 2005


On 10/20/05, Sam Man <sam.manchali at gmail.com> wrote:
> hi Michael,
> Got it, but how is it going to affect the decoding time ?? can u give an
> approximation of the amount of extra % of CPU time taken by returning errors
> to the seek and tell function calls ???
> How is it going to affect the low-mem decoder ??

It will make no difference.

Internally, in fact, ov_open() just calls ov_open_callbacks() with a
set of callbacks appropriate for reading files.

Returning errors from your seek/tell functions will actually cause
very slightly less memory consumption and make opening the file
slightly faster, since it doesn't then need to build all the
datastructures needed for seeking.

Mike


More information about the Tremor mailing list