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

int theora_packet_iskeyframe ( ogg_packet *  op )

Report whether a theora packet is a keyframe or not

Parameters:
opAn ogg_packet containing encoded theora data.
Return values:
1The packet contains a keyframe image
0The packet is contains an interframe delta
-1The packet is not an image data packet at all

Thus function was added in the 1.0alpha4 release.

Definition at line 437 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 */
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index