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 encoding process. Chris@1:
Chris@1: All the libogg specific functions are declared in "ogg/ogg.h". Chris@1:
Chris@1:
When encoding, the encoding engine will output raw packets which must be placed into an Ogg bitstream. Chris@1:
Raw packets are inserted into the stream, and an ogg_page is output when enough packets have been written to create a full page. The pages output are pointers to buffered packet segments, and can then be written out and saved as an ogg stream. Chris@1:
There are a couple of basic steps: Chris@1:
function | Chris@1:purpose | Chris@1:|
ogg_stream_packetin | Chris@1:Submits a raw packet to the streaming layer, so that it can be formed into a page. | Chris@1:|
ogg_stream_iovecin | Chris@1:iovec version of ogg_stream_packetin() above. | Chris@1:|
ogg_stream_pageout | Chris@1:Outputs a completed page if the stream contains enough packets to form a full page. | Chris@1: |
ogg_stream_pageout_fill | Chris@1:Similar to ogg_stream_pageout(), but specifies a page spill threshold in bytes. Chris@1: | |
ogg_stream_flush | Chris@1:Forces any remaining packets in the stream to be returned as a page of any size. | Chris@1: |
ogg_stream_flush_fill | Chris@1:Similar to ogg_stream_flush(), but specifies a page spill threshold in bytes. | Chris@1: |
copyright © 2000-2011 Xiph.Org |
Chris@1: Chris@1: |
libogg documentation |
Chris@1: libogg release 1.3.0 - 20110804 |
Chris@1: