[Tremor] Piece-meal Vorbis decode
Sam Man
sam.manchali at gmail.com
Thu Oct 20 01:39:53 PDT 2005
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 ??
On 10/19/05, Michael Smith <msmith at xiph.org> wrote:
>
> > In this respect, the Ogg file seems like a stream. How do I decode the
> > file if ov_open(..) expects a file pointer (I can't point to a partial
> file
> > with a file pointer, can I?)? Is there a way to decode Ogg streams where
> > the compressed data comes in streaming in a limited fashion?
>
> You presumably want ov_open_callbacks(), which will allow you to feed
> data into the decoder however you want. If you don't want to support
> seeking, you can just return errors from seek/tell, and just return
> data with each read() call. How you do that is up to you.
>
> You should also be able to do seeking, but that's obviously a little
> more work - you might skip it to begin with.
>
> Mike
> _______________________________________________
> Tremor mailing list
> Tremor at xiph.org
> http://lists.xiph.org/mailman/listinfo/tremor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/tremor/attachments/20051020/256dd77b/attachment.htm
More information about the Tremor
mailing list