Logo Search packages:      
Sourcecode: libtheora version File versions

int theora_packet_iskeyframe ( ogg_packet *  op  ) 

Report whether a theora packet is a keyframe or not

Parameters:
op An ogg_packet containing encoded theora data.
Return values:
1 The packet contains a keyframe image
0 The packet is contains an interframe delta
-1 the packet is not an image data packet at all
Thus function was added in the 1.0alpha4 release.

Definition at line 429 of file toplevel.c.

References theora_packet_iskeyframe().

Referenced by theora_packet_iskeyframe().

{
  if (op->packet[0] & 0x80) return -1; /* not a data packet */
  return (op->packet[0] & 0x40) ? 0 : 1; /* inter or intra */
}


Generated by  Doxygen 1.6.0   Back to index