Chris@1: Chris@1: Chris@1: Chris@1: libogg - function - ogg_stream_packetin Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

libogg documentation

libogg release 1.3.0 - 20110804

Chris@1: Chris@1:

ogg_stream_packetin

Chris@1: Chris@1:

declared in "ogg/ogg.h";

Chris@1: Chris@1:

This function submits a packet to the bitstream for page Chris@1: encapsulation. After this is called, more packets can be submitted, Chris@1: or pages can be written out.

Chris@1: Chris@1:

In a typical encoding situation, this should be used after filling a Chris@1: packet with data. Chris@1: The data in the packet is copied into the internal storage managed by Chris@1: the ogg_stream_state, so the caller Chris@1: is free to alter the contents of op after this call has returned. Chris@1: Chris@1:

Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:
Chris@1:

Chris@1: int ogg_stream_packetin(ogg_stream_state *os,ogg_packet *op);
Chris@1: 
Chris@1:
Chris@1: Chris@1:

Parameters

Chris@1:
Chris@1:
os
Chris@1:
Pointer to a previously declared ogg_stream_state struct.
Chris@1:
op
Chris@1:
Pointer to the packet we are putting into the bitstream. Chris@1:
Chris@1: Chris@1: Chris@1:

Return Values

Chris@1:
Chris@1:
  • Chris@1: 0 returned on success. -1 returned in the event of internal error.
  • Chris@1:
    Chris@1:

    Chris@1: Chris@1:

    Chris@1:


    Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

    copyright © 2000-2011 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.3.0 - 20110804

    Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: