Chris@1: Chris@1: Chris@1:
Chris@1:libogg documentation |
Chris@1: libogg release 1.3.0 - 20110804 |
Chris@1:
declared in "ogg/ogg.h";
Chris@1: Chris@1:This function forms packets into pages.
Chris@1: Chris@1:In a typical encoding situation, this would be called after using ogg_stream_packetin() to submit Chris@1: data packets to the bitstream. Internally, this function assembles Chris@1: the accumulated packet bodies into an Ogg page suitable for writing Chris@1: to a stream. The function is typically called in a loop until there Chris@1: are no more pages ready for output.
Chris@1: Chris@1:This function will only return a page when a "reasonable" amount of Chris@1: packet data is available. Normally this is appropriate since it Chris@1: limits the overhead of the Ogg page headers in the bitstream, and so Chris@1: calling ogg_stream_pageout() after ogg_stream_packetin() should be the Chris@1: common case. Call ogg_stream_flush() Chris@1: if immediate page generation is desired. This may be occasionally Chris@1: necessary, for example, to limit the temporal latency of a variable Chris@1: bitrate stream.
Chris@1: Chris@1:
Chris@1: Chris@1: int ogg_stream_pageout(ogg_stream_state *os, ogg_page *og); Chris@1:Chris@1: |
Chris@1:
Chris@1:Chris@1:Zero means that insufficient data has accumulated to fill a page, or an internal error occurred. In Chris@1: this case og is not modified. Chris@1:Non-zero means that a page has been completed and returned. Chris@1:
Chris@1:
Chris@1:
Chris@1:
copyright © 2000-2010 xiph.org |
Chris@1: Chris@1: |
libogg documentation |
Chris@1: libogg release 1.3.0 - 20110804 |
Chris@1: