Logo Search packages:      
Sourcecode: libtheora version File versions  Download package

int th_packet_isheader ( ogg_packet *  _op  ) 

Determines whether a Theora packet is a header or not. This function does no verification beyond checking the packet type bit, so it should not be used for bitstream identification; use th_decode_headerin() for that. As per the Theora specification, an empty (0-byte) packet is treated as a data packet (a delta frame with no coded blocks).

_op An ogg_packet containing encoded Theora data.
Return values:
1 The packet is a header packet
0 The packet is a video data packet.

Definition at line 373 of file internal.c.

Referenced by theora_packet_isheader().

  return _op->bytes>0?_op->packet[0]>>7:0;

Generated by  Doxygen 1.6.0   Back to index