cannam@86: cannam@86: cannam@86: cannam@86: libogg - function - ogg_stream_pagein cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:

libogg documentation

libogg release 1.3.0 - 20110804

cannam@86: cannam@86:

ogg_stream_pagein

cannam@86: cannam@86:

declared in "ogg/ogg.h";

cannam@86: cannam@86:

This function adds a complete page to the bitstream. cannam@86:

In a typical decoding situation, this function would be called after using ogg_sync_pageout to create a valid ogg_page struct. cannam@86:

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

cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:
cannam@86:

cannam@86: int ogg_stream_pagein(ogg_stream_state *os, ogg_page *og);
cannam@86: 
cannam@86:
cannam@86: cannam@86:

Parameters

cannam@86:
cannam@86:
os
cannam@86:
Pointer to a previously declared ogg_stream struct, which represents the current logical bitstream.
cannam@86:
og
cannam@86:
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. cannam@86:
cannam@86: cannam@86: cannam@86:

Return Values

cannam@86:
cannam@86:
  • -1 indicates failure. This means that the serial number of the page did not match the serial number of the bitstream, the page version was incorrect, or an internal error accurred.
  • cannam@86:
  • cannam@86: 0 means that the page was successfully submitted to the bitstream.
  • cannam@86:
    cannam@86:

    cannam@86: cannam@86:

    cannam@86:


    cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:

    copyright © 2000-2011 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.3.0 - 20110804

    cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: