TheoraDecoder Class Reference

#include <TheoraDecoder.h>

Collaboration diagram for TheoraDecoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TheoraDecoder (void)
 ~TheoraDecoder (void)
bool initCodec ()
 Initialise the internal theora decoder.
yuv_bufferdecodeTheora (StampedOggPacket *inPacket)
 Decode a theora packet returning a yuv_buffer struct. Now owns your packet.
bool isKeyFrame (StampedOggPacket *inPacket)
 Returns true if the packet is a keyframe.

Public Attributes

theora_info mTheoraInfo

Protected Member Functions

ogg_packet * simulateOldOggPacket (StampedOggPacket *inPacket)
 Moves the pointers around to make it look like a xiph ogg packet.
bool decodeHeader (StampedOggPacket *inHeaderPacket)
 Decodes a header packet and adjusts the internal state based on it.

Protected Attributes

theora_comment mTheoraComment
theora_state mTheoraState
yuv_buffer mYUVBuffer
StampedOggPacketmPartialPacket
unsigned long mHeadersSeen
bool mFirstPacket
bool mFirstHeader
unsigned long mPacketCount

Constructor & Destructor Documentation

TheoraDecoder::TheoraDecoder void   ) 
 

Definition at line 35 of file TheoraDecoder.cpp.

References true.

TheoraDecoder::~TheoraDecoder void   ) 
 

Definition at line 42 of file TheoraDecoder.cpp.


Member Function Documentation

bool TheoraDecoder::decodeHeader StampedOggPacket inHeaderPacket  )  [protected]
 

Decodes a header packet and adjusts the internal state based on it.

Definition at line 111 of file TheoraDecoder.cpp.

References mPacketCount, mTheoraComment, mTheoraInfo, simulateOldOggPacket(), and theora_decode_header().

Referenced by decodeTheora().

Here is the call graph for this function:

yuv_buffer * TheoraDecoder::decodeTheora StampedOggPacket inPacket  ) 
 

Decode a theora packet returning a yuv_buffer struct. Now owns your packet.

Definition at line 56 of file TheoraDecoder.cpp.

References decodeHeader(), mFirstPacket, mPacketCount, mTheoraInfo, mTheoraState, mYUVBuffer, simulateOldOggPacket(), theora_decode_init(), theora_decode_packetin(), and theora_decode_YUVout().

Referenced by TheoraDecodeFilter::Transform().

Here is the call graph for this function:

bool TheoraDecoder::initCodec  ) 
 

Initialise the internal theora decoder.

Definition at line 46 of file TheoraDecoder.cpp.

References mTheoraComment, mTheoraInfo, theora_comment_init(), and theora_info_init().

Referenced by TheoraDecodeFilter::TheoraDecodeFilter().

Here is the call graph for this function:

bool TheoraDecoder::isKeyFrame StampedOggPacket inPacket  ) 
 

Returns true if the packet is a keyframe.

Definition at line 102 of file TheoraDecoder.cpp.

References OggPacket::packetData(), and OggPacket::packetSize().

Referenced by TheoraDecodeFilter::Transform().

Here is the call graph for this function:

ogg_packet * TheoraDecoder::simulateOldOggPacket StampedOggPacket inPacket  )  [protected]
 

Moves the pointers around to make it look like a xiph ogg packet.

Definition at line 80 of file TheoraDecoder.cpp.

References StampedOggPacket::endTime(), mFirstHeader, OggPacket::packetData(), OggPacket::packetSize(), and OggPacket::setPacketData().

Referenced by decodeHeader(), and decodeTheora().

Here is the call graph for this function:


Member Data Documentation

bool TheoraDecoder::mFirstHeader [protected]
 

Definition at line 74 of file TheoraDecoder.h.

Referenced by simulateOldOggPacket().

bool TheoraDecoder::mFirstPacket [protected]
 

Definition at line 73 of file TheoraDecoder.h.

Referenced by decodeTheora().

unsigned long TheoraDecoder::mHeadersSeen [protected]
 

Definition at line 72 of file TheoraDecoder.h.

unsigned long TheoraDecoder::mPacketCount [protected]
 

Definition at line 75 of file TheoraDecoder.h.

Referenced by decodeHeader(), and decodeTheora().

StampedOggPacket* TheoraDecoder::mPartialPacket [protected]
 

Definition at line 71 of file TheoraDecoder.h.

theora_comment TheoraDecoder::mTheoraComment [protected]
 

Definition at line 67 of file TheoraDecoder.h.

Referenced by decodeHeader(), and initCodec().

theora_info TheoraDecoder::mTheoraInfo
 

Definition at line 57 of file TheoraDecoder.h.

Referenced by decodeHeader(), decodeTheora(), and initCodec().

theora_state TheoraDecoder::mTheoraState [protected]
 

Definition at line 68 of file TheoraDecoder.h.

Referenced by decodeTheora().

yuv_buffer TheoraDecoder::mYUVBuffer [protected]
 

Definition at line 69 of file TheoraDecoder.h.

Referenced by decodeTheora().


The documentation for this class was generated from the following files:
Generated on Tue Feb 15 15:05:08 2005 for oggdsf by  doxygen 1.3.9