Chris@1: Chris@1: Chris@1:
Chris@1:libogg documentation |
Chris@1: libogg release 1.3.0 - 20110804 |
Chris@1:
Libogg contains a set of functions used in the decoding process. Chris@1:
Chris@1: All the libogg specific functions are declared in "ogg/ogg.h". Chris@1:
Chris@1:
Decoding is based around the ogg synchronization layer. The ogg_sync_state struct coordinates between incoming data and the decoder. We read data into the synchronization layer, submit the data to the stream, and output raw packets to the decoder. Chris@1:
Decoding through the Ogg layer follows a specific logical sequence. A read loop follows these logical steps: Chris@1:
In practice, streams are more complex, and Ogg also must handle headers, incomplete or dropped pages, and other errors in input.
Chris@1:
Chris@1:
Chris@1:
function | Chris@1:purpose | Chris@1:|
ogg_sync_init | Chris@1:Initializes an Ogg bitstream. | Chris@1:|
ogg_sync_clear | Chris@1:Clears the status information from the synchronization struct. | Chris@1: |
ogg_sync_reset | Chris@1:Resets the synchronization status to initial values. | Chris@1:|
ogg_sync_destroy | Chris@1:Frees the synchronization struct. | Chris@1:|
ogg_sync_check | Chris@1:Check for asynchronous errors. | Chris@1:|
ogg_sync_buffer | Chris@1:Exposes a buffer from the synchronization layer in order to read data. | Chris@1:|
ogg_sync_wrote | Chris@1:Tells the synchronization layer how many bytes were written into the buffer. | Chris@1:|
ogg_sync_pageseek | Chris@1:Finds the borders of pages and resynchronizes the stream. | Chris@1:|
ogg_sync_pageout | Chris@1:Outputs a page from the synchronization layer. | Chris@1:|
ogg_stream_pagein | Chris@1:Submits a complete page to the stream layer. | Chris@1:|
ogg_stream_packetout | Chris@1:Outputs a packet to the codec-specific decoding engine. | Chris@1:|
ogg_stream_packetpeek | Chris@1:Provides access to the next packet in the bitstream without Chris@1: advancing decoding. | Chris@1:
copyright © 2000-2011 Xiph.Org |
Chris@1: Chris@1: |
libogg documentation |
Chris@1: libogg release 1.3.0 - 20110804 |
Chris@1: