Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

nsOggCodecState Class Reference

#include <nsOggCodecState.h>

Inheritance diagram for nsOggCodecState:
Collaboration diagram for nsOggCodecState:

List of all members.

Public Types

enum  CodecType { TYPE_VORBIS = 0, TYPE_THEORA = 1, TYPE_SKELETON = 2, TYPE_UNKNOWN = 3 }

Public Member Functions

 nsOggCodecState (ogg_page *aBosPage)
virtual ~nsOggCodecState ()
virtual CodecType GetType ()
virtual PRBool DecodeHeader (ogg_packet *aPacket)
virtual PRInt64 Time (PRInt64 granulepos)
virtual PRInt64 StartTime (PRInt64 granulepos)
virtual PRBool Init ()
PRBool DoneReadingHeaders ()
void Deactivate ()
virtual nsresult Reset ()
void AddToBuffer (ogg_page *aPage)
PRBool PageInFromBuffer ()

Static Public Member Functions

static nsOggCodecStateCreate (ogg_page *aPage)

Public Attributes

PRUint64 mPacketCount
PRUint32 mSerial
ogg_stream_state mState
nsPageQueue mBuffer
PRPackedBool mActive
PRPackedBool mDoneReadingHeaders

Member Enumeration Documentation

Enumerator:
TYPE_VORBIS 
TYPE_THEORA 
TYPE_SKELETON 
TYPE_UNKNOWN 

Constructor & Destructor Documentation

nsOggCodecState::nsOggCodecState ( ogg_page aBosPage  ) 
virtual nsOggCodecState::~nsOggCodecState (  )  [virtual]

Member Function Documentation

void nsOggCodecState::AddToBuffer ( ogg_page aPage  )  [inline]
static nsOggCodecState* nsOggCodecState::Create ( ogg_page aPage  )  [static]
void nsOggCodecState::Deactivate (  )  [inline]
virtual PRBool nsOggCodecState::DecodeHeader ( ogg_packet aPacket  )  [inline, virtual]

Reimplemented in nsVorbisState, nsTheoraState, and nsSkeletonState.

PRBool nsOggCodecState::DoneReadingHeaders (  )  [inline]
virtual CodecType nsOggCodecState::GetType (  )  [inline, virtual]

Reimplemented in nsVorbisState, nsTheoraState, and nsSkeletonState.

virtual PRBool nsOggCodecState::Init (  )  [virtual]

Reimplemented in nsVorbisState, nsTheoraState, and nsSkeletonState.

PRBool nsOggCodecState::PageInFromBuffer (  ) 
virtual nsresult nsOggCodecState::Reset (  )  [virtual]

Reimplemented in nsVorbisState.

virtual PRInt64 nsOggCodecState::StartTime ( PRInt64  granulepos  )  [inline, virtual]

Reimplemented in nsTheoraState.

virtual PRInt64 nsOggCodecState::Time ( PRInt64  granulepos  )  [inline, virtual]

Reimplemented in nsVorbisState, nsTheoraState, and nsSkeletonState.


Member Data Documentation


The documentation for this class was generated from the following file: