CMMLDecodeInputPin Class Reference

#include <CMMLDecodeInputPin.h>

Inheritance diagram for CMMLDecodeInputPin:

Inheritance graph
[legend]
Collaboration diagram for CMMLDecodeInputPin:

Collaboration graph
[legend]
List of all members.

Public Types

enum  eAcceptHeaderResult {
  AHR_ALL_HEADERS_RECEIVED, AHR_MORE_HEADERS_TO_COME, AHR_INVALID_HEADER, AHR_UNEXPECTED,
  AHR_NULL_POINTER
}

Public Member Functions

virtual HRESULT CheckMediaType (const CMediaType *inMediaType)
 CMMLDecodeInputPin (CMMLDecodeFilter *inParent, HRESULT *outHR)
virtual LOOG_INT64 convertGranuleToTime (LOOG_INT64 inGranule)
virtual STDMETHODIMP GetAllocatorRequirements (ALLOCATOR_PROPERTIES *outRequestedProps)
sCMMLFormatBlockgetCMMLFormatBlock ()
virtual string getCodecIdentString ()
virtual string getCodecShortName ()
virtual LOOG_INT64 mustSeekBefore (LOOG_INT64 inGranule)
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
virtual HRESULT SetMediaType (const CMediaType *inMediaType)
virtual IOggDecoder::eAcceptHeaderResult showHeaderPacket (OggPacket *inCodecHeaderPacket)
virtual ~CMMLDecodeInputPin (void)

Protected Types

enum  eOGMSetupState {
  VSS_SEEN_NOTHING, VSS_SEEN_BOS, VSS_SEEN_XML_HEADER, VSS_ALL_HEADERS_SEEN,
  VSS_ERROR
}

Protected Member Functions

bool handleHeaderPacket (OggPacket *inHeaderPack)

Protected Attributes

sCMMLFormatBlockmCMMLFormatBlock
OggPacketmCMMLHeadPacket
eOGMSetupState mSetupState

Static Protected Attributes

const unsigned long CMML_BUFFER_SIZE = 1024*256
const unsigned long CMML_IDENT_HEADER_SIZE = 29
const unsigned long CMML_NUM_BUFFERS = 15

Member Enumeration Documentation

enum IOggDecoder::eAcceptHeaderResult [inherited]
 

Enumeration values:
AHR_ALL_HEADERS_RECEIVED 
AHR_MORE_HEADERS_TO_COME 
AHR_INVALID_HEADER 
AHR_UNEXPECTED 
AHR_NULL_POINTER 

Definition at line 20 of file IOggDecoder.h.

enum CMMLDecodeInputPin::eOGMSetupState [protected]
 

Enumeration values:
VSS_SEEN_NOTHING 
VSS_SEEN_BOS 
VSS_SEEN_XML_HEADER 
VSS_ALL_HEADERS_SEEN 
VSS_ERROR 

Definition at line 64 of file CMMLDecodeInputPin.h.


Constructor & Destructor Documentation

CMMLDecodeInputPin::CMMLDecodeInputPin CMMLDecodeFilter inParent,
HRESULT *  outHR
 

Definition at line 36 of file CMMLDecodeInputPin.cpp.

CMMLDecodeInputPin::~CMMLDecodeInputPin void   )  [virtual]
 

Definition at line 45 of file CMMLDecodeInputPin.cpp.


Member Function Documentation

HRESULT CMMLDecodeInputPin::CheckMediaType const CMediaType *  inMediaType  )  [virtual]
 

Definition at line 81 of file CMMLDecodeInputPin.cpp.

Referenced by CMMLDecodeFilter::CheckInputType(), and SetMediaType().

LOOG_INT64 CMMLDecodeInputPin::convertGranuleToTime LOOG_INT64  inGranule  )  [virtual]
 

Implements IOggDecoder.

Definition at line 105 of file CMMLDecodeInputPin.cpp.

References sCMMLFormatBlock::granuleDenominator, sCMMLFormatBlock::granuleNumerator, sCMMLFormatBlock::granuleSplitBits, LOOG_INT64, and mCMMLFormatBlock.

HRESULT CMMLDecodeInputPin::GetAllocatorRequirements ALLOCATOR_PROPERTIES *  outRequestedProps  )  [virtual]
 

Definition at line 96 of file CMMLDecodeInputPin.cpp.

sCMMLFormatBlock* CMMLDecodeInputPin::getCMMLFormatBlock  )  [inline]
 

Definition at line 62 of file CMMLDecodeInputPin.h.

string CMMLDecodeInputPin::getCodecIdentString  )  [virtual]
 

Implements IOggDecoder.

Definition at line 173 of file CMMLDecodeInputPin.cpp.

string CMMLDecodeInputPin::getCodecShortName  )  [virtual]
 

Implements IOggDecoder.

Definition at line 169 of file CMMLDecodeInputPin.cpp.

bool CMMLDecodeInputPin::handleHeaderPacket OggPacket inHeaderPack  )  [protected]
 

Definition at line 156 of file CMMLDecodeInputPin.cpp.

References iLE_Math::CharArrToInt64(), sCMMLFormatBlock::granuleDenominator, sCMMLFormatBlock::granuleNumerator, sCMMLFormatBlock::granuleSplitBits, mCMMLFormatBlock, and OggPacket::packetData().

Referenced by showHeaderPacket().

Here is the call graph for this function:

LOOG_INT64 CMMLDecodeInputPin::mustSeekBefore LOOG_INT64  inGranule  )  [virtual]
 

Implements IOggDecoder.

Definition at line 114 of file CMMLDecodeInputPin.cpp.

References LOOG_INT64.

STDMETHODIMP CMMLDecodeInputPin::NonDelegatingQueryInterface REFIID  riid,
void **  ppv
 

Definition at line 51 of file CMMLDecodeInputPin.cpp.

HRESULT CMMLDecodeInputPin::SetMediaType const CMediaType *  inMediaType  )  [virtual]
 

Definition at line 67 of file CMMLDecodeInputPin.cpp.

References CheckMediaType().

Here is the call graph for this function:

IOggDecoder::eAcceptHeaderResult CMMLDecodeInputPin::showHeaderPacket OggPacket inCodecHeaderPacket  )  [virtual]
 

Implements IOggDecoder.

Definition at line 119 of file CMMLDecodeInputPin.cpp.

References OggPacket::clone(), handleHeaderPacket(), mCMMLHeadPacket, mSetupState, OggPacket::packetData(), VSS_ALL_HEADERS_SEEN, VSS_ERROR, VSS_SEEN_BOS, VSS_SEEN_NOTHING, and VSS_SEEN_XML_HEADER.

Here is the call graph for this function:


Member Data Documentation

const unsigned long CMMLDecodeInputPin::CMML_BUFFER_SIZE = 1024*256 [static, protected]
 

Definition at line 81 of file CMMLDecodeInputPin.h.

const unsigned long CMMLDecodeInputPin::CMML_IDENT_HEADER_SIZE = 29 [static, protected]
 

Definition at line 79 of file CMMLDecodeInputPin.h.

const unsigned long CMMLDecodeInputPin::CMML_NUM_BUFFERS = 15 [static, protected]
 

Definition at line 80 of file CMMLDecodeInputPin.h.

sCMMLFormatBlock* CMMLDecodeInputPin::mCMMLFormatBlock [protected]
 

Definition at line 75 of file CMMLDecodeInputPin.h.

Referenced by convertGranuleToTime(), and handleHeaderPacket().

OggPacket* CMMLDecodeInputPin::mCMMLHeadPacket [protected]
 

Definition at line 77 of file CMMLDecodeInputPin.h.

Referenced by showHeaderPacket().

eOGMSetupState CMMLDecodeInputPin::mSetupState [protected]
 

Definition at line 72 of file CMMLDecodeInputPin.h.

Referenced by showHeaderPacket().


The documentation for this class was generated from the following files:
Generated on Fri Feb 17 00:00:07 2006 for oggdsf by  doxygen 1.3.9