From d346ef4dbc99c5737b9d020a83daa4497e2a4970 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Sat, 11 Mar 2006 07:45:56 +0000 Subject: Correct cut-and-paste errors and further clarify memory ownership in the documentation for ogg_stream_pageout(). svn path=/trunk/ogg/; revision=10993 --- doc/libogg/ogg_stream_pageout.html | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) (limited to 'doc/libogg') diff --git a/doc/libogg/ogg_stream_pageout.html b/doc/libogg/ogg_stream_pageout.html index c703382..1894391 100644 --- a/doc/libogg/ogg_stream_pageout.html +++ b/doc/libogg/ogg_stream_pageout.html @@ -9,7 +9,7 @@ - +

libogg documentation

libogg release 1.0 - 20000615

libogg release 1.1.4 - 20060310

@@ -17,9 +17,22 @@

declared in "ogg/ogg.h";

-

This function forms packets into pages. If -

In a typical encoding situation, this would be called after using ogg_stream_packetin to submit data packets to the bitstream. -

Internally, this function breaks the page into packet segments in preparation for outputting a valid packet to the codec decoding layer. +

This function forms packets into pages.

+ +

In a typical encoding situation, this would be called after using ogg_stream_packetin() to submit +data packets to the bitstream. Internally, this function assembles +the accumulated packet bodies into an Ogg page suitable for writing +to a stream.

+ +

This function will only return a page when a "reasonable" amount of +packet data is available. Normally this is appropriate since it +limits the overhead of the Ogg page headers in the bitstream, and so +calling ogg_stream_pageout() after ogg_stream_packetin() should be the +common case. Call ogg_stream_flush() +if immediate page generation is desired. This may be occasionally +necessary, for example, to limit the temporal latency of a variable +bitrate stream.



@@ -37,14 +50,18 @@ int ogg_stream_pageout(ogg_stream_state *os,
os
Pointer to a previously declared ogg_stream struct, which represents the current logical bitstream.
og
-
Pointer to a page of data. The data inside this page is being submitted to the streaming layer in order to be allocated into packets. +
Pointer to an ogg_page structure to fill +in. Data pointed to is owned by libogg. The structure is valid until the +next call to ogg_stream_pageout(), ogg_stream_packetin(), or +ogg_stream_flush().

Return Values

-
  • Zero means that insufficient data has accumulated to fill a page.
  • -
  • Non-zero means that a page has been completed and flushed.
  • +
  • Zero means that insufficient data has accumulated to fill a page. In +this case og is not modified.
  • +
  • Non-zero means that a page has been completed and returned.
  • @@ -52,11 +69,11 @@ int ogg_stream_pageout(ogg_stream_state *os,


    - + - +

    copyright © 2000 xiph.org

    copyright © 2000-2006 xiph.org

    Ogg Vorbis
    team@xiph.org

    libogg documentation

    libogg release 1.0 - 20000615

    libogg release 1.1.4 - 20060310

    -- cgit v1.2.1