OGMDecodeInputPin Class Reference

#include <OGMDecodeInputPin.h>

Inheritance diagram for OGMDecodeInputPin:

Inheritance graph
[legend]
Collaboration diagram for OGMDecodeInputPin:

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
}
enum  eOGMMediaType { OGM_VIDEO_TYPE, OGM_AUDIO_TYPE, OGM_TEXT_TYPE, OGM_UNKNOWN_TYPE }

Public Member Functions

virtual HRESULT CheckMediaType (const CMediaType *inMediaType)
virtual LOOG_INT64 convertGranuleToTime (LOOG_INT64 inGranule)
virtual STDMETHODIMP GetAllocatorRequirements (ALLOCATOR_PROPERTIES *outRequestedProps)
WAVEFORMATEX * getAudioFormatBlock ()
virtual string getCodecIdentString ()
virtual string getCodecShortName ()
eOGMMediaType getOGMMediaType ()
VIDEOINFOHEADER * getVideoFormatBlock ()
virtual LOOG_INT64 mustSeekBefore (LOOG_INT64 inGranule)
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
 OGMDecodeInputPin (OGMDecodeFilter *inParent, HRESULT *outHR)
virtual HRESULT SetMediaType (const CMediaType *inMediaType)
virtual IOggDecoder::eAcceptHeaderResult showHeaderPacket (OggPacket *inCodecHeaderPacket)
virtual ~OGMDecodeInputPin (void)

Protected Types

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

Protected Member Functions

bool handleAudioHeaderPacket (OggPacket *inHeaderPack)
bool handleHeaderPacket (OggPacket *inHeaderPack)
bool handleTextHeaderPacket (OggPacket *inHeaderPack)
bool handleVideoHeaderPacket (OggPacket *inHeaderPack)

Protected Attributes

WAVEFORMATEX * mAudioFormatBlock
__int64 mGranuleRateDenominator
__int64 mGranuleRateNumerator
eOGMMediaType mOGMMediaType
eOGMSetupState mSetupState
VIDEOINFOHEADER * mVideoFormatBlock

Static Protected Attributes

const unsigned long OGM_BUFFER_SIZE = 1024*512*3
const unsigned long OGM_IDENT_HEADER_SIZE = 57
const unsigned long OGM_NUM_BUFFERS = 50

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 OGMDecodeInputPin::eOGMMediaType
 

Enumeration values:
OGM_VIDEO_TYPE 
OGM_AUDIO_TYPE 
OGM_TEXT_TYPE 
OGM_UNKNOWN_TYPE 

Definition at line 62 of file OGMDecodeInputPin.h.

Referenced by getOGMMediaType().

enum OGMDecodeInputPin::eOGMSetupState [protected]
 

Enumeration values:
VSS_SEEN_NOTHING 
VSS_SEEN_BOS 
VSS_SEEN_COMMENT 
VSS_ALL_HEADERS_SEEN 
VSS_ERROR 

Definition at line 73 of file OGMDecodeInputPin.h.


Constructor & Destructor Documentation

OGMDecodeInputPin::OGMDecodeInputPin OGMDecodeFilter inParent,
HRESULT *  outHR
 

Definition at line 35 of file OGMDecodeInputPin.cpp.

OGMDecodeInputPin::~OGMDecodeInputPin void   )  [virtual]
 

Definition at line 47 of file OGMDecodeInputPin.cpp.


Member Function Documentation

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

Definition at line 82 of file OGMDecodeInputPin.cpp.

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

LOOG_INT64 OGMDecodeInputPin::convertGranuleToTime LOOG_INT64  inGranule  )  [virtual]
 

Implements IOggDecoder.

Definition at line 117 of file OGMDecodeInputPin.cpp.

References LOOG_INT64, mAudioFormatBlock, mVideoFormatBlock, OGM_AUDIO_TYPE, OGM_TEXT_TYPE, and OGM_VIDEO_TYPE.

Referenced by OGMDecodeFilter::Receive().

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

Definition at line 108 of file OGMDecodeInputPin.cpp.

WAVEFORMATEX* OGMDecodeInputPin::getAudioFormatBlock  )  [inline]
 

Definition at line 71 of file OGMDecodeInputPin.h.

Referenced by OGMDecodeFilter::GetMediaType().

string OGMDecodeInputPin::getCodecIdentString  )  [virtual]
 

Implements IOggDecoder.

Definition at line 349 of file OGMDecodeInputPin.cpp.

string OGMDecodeInputPin::getCodecShortName  )  [virtual]
 

Implements IOggDecoder.

Definition at line 344 of file OGMDecodeInputPin.cpp.

eOGMMediaType OGMDecodeInputPin::getOGMMediaType  )  [inline]
 

Definition at line 69 of file OGMDecodeInputPin.h.

References eOGMMediaType.

Referenced by OGMDecodeFilter::GetMediaType().

VIDEOINFOHEADER* OGMDecodeInputPin::getVideoFormatBlock  )  [inline]
 

Definition at line 70 of file OGMDecodeInputPin.h.

Referenced by OGMDecodeFilter::GetMediaType().

bool OGMDecodeInputPin::handleAudioHeaderPacket OggPacket inHeaderPack  )  [protected]
 

Definition at line 203 of file OGMDecodeInputPin.cpp.

References iLE_Math::CharArrToInt64(), iLE_Math::charArrToULong(), iLE_Math::charArrToUShort(), mAudioFormatBlock, and OggPacket::packetData().

Referenced by handleHeaderPacket().

Here is the call graph for this function:

bool OGMDecodeInputPin::handleHeaderPacket OggPacket inHeaderPack  )  [protected]
 

Definition at line 179 of file OGMDecodeInputPin.cpp.

References handleAudioHeaderPacket(), handleTextHeaderPacket(), handleVideoHeaderPacket(), OGM_AUDIO_TYPE, OGM_TEXT_TYPE, and OGM_VIDEO_TYPE.

Referenced by showHeaderPacket().

Here is the call graph for this function:

bool OGMDecodeInputPin::handleTextHeaderPacket OggPacket inHeaderPack  )  [protected]
 

Definition at line 195 of file OGMDecodeInputPin.cpp.

References iLE_Math::CharArrToInt64(), mGranuleRateDenominator, mGranuleRateNumerator, and OggPacket::packetData().

Referenced by handleHeaderPacket().

Here is the call graph for this function:

bool OGMDecodeInputPin::handleVideoHeaderPacket OggPacket inHeaderPack  )  [protected]
 

Definition at line 267 of file OGMDecodeInputPin.cpp.

References iLE_Math::CharArrToInt64(), iLE_Math::charArrToULong(), mVideoFormatBlock, and OggPacket::packetData().

Referenced by handleHeaderPacket().

Here is the call graph for this function:

LOOG_INT64 OGMDecodeInputPin::mustSeekBefore LOOG_INT64  inGranule  )  [virtual]
 

Implements IOggDecoder.

Definition at line 132 of file OGMDecodeInputPin.cpp.

References LOOG_INT64.

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

Definition at line 52 of file OGMDecodeInputPin.cpp.

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

Definition at line 68 of file OGMDecodeInputPin.cpp.

References CheckMediaType().

Here is the call graph for this function:

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

Implements IOggDecoder.

Definition at line 137 of file OGMDecodeInputPin.cpp.

References handleHeaderPacket(), mOGMMediaType, mSetupState, OggPacket::packetData(), VSS_ALL_HEADERS_SEEN, VSS_ERROR, VSS_SEEN_BOS, and VSS_SEEN_NOTHING.

Here is the call graph for this function:


Member Data Documentation

WAVEFORMATEX* OGMDecodeInputPin::mAudioFormatBlock [protected]
 

Definition at line 90 of file OGMDecodeInputPin.h.

Referenced by convertGranuleToTime(), and handleAudioHeaderPacket().

__int64 OGMDecodeInputPin::mGranuleRateDenominator [protected]
 

Definition at line 92 of file OGMDecodeInputPin.h.

Referenced by handleTextHeaderPacket().

__int64 OGMDecodeInputPin::mGranuleRateNumerator [protected]
 

Definition at line 91 of file OGMDecodeInputPin.h.

Referenced by handleTextHeaderPacket().

eOGMMediaType OGMDecodeInputPin::mOGMMediaType [protected]
 

Definition at line 81 of file OGMDecodeInputPin.h.

Referenced by showHeaderPacket().

eOGMSetupState OGMDecodeInputPin::mSetupState [protected]
 

Definition at line 83 of file OGMDecodeInputPin.h.

Referenced by showHeaderPacket().

VIDEOINFOHEADER* OGMDecodeInputPin::mVideoFormatBlock [protected]
 

Definition at line 89 of file OGMDecodeInputPin.h.

Referenced by convertGranuleToTime(), and handleVideoHeaderPacket().

const unsigned long OGMDecodeInputPin::OGM_BUFFER_SIZE = 1024*512*3 [static, protected]
 

Definition at line 96 of file OGMDecodeInputPin.h.

const unsigned long OGMDecodeInputPin::OGM_IDENT_HEADER_SIZE = 57 [static, protected]
 

Definition at line 94 of file OGMDecodeInputPin.h.

const unsigned long OGMDecodeInputPin::OGM_NUM_BUFFERS = 50 [static, protected]
 

Definition at line 95 of file OGMDecodeInputPin.h.


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