OggRawAudioExtractorInputPin Class Reference

#include <OggRawAudioExtractorInputPin.h>

Inheritance diagram for OggRawAudioExtractorInputPin:

Inheritance graph
[legend]
Collaboration diagram for OggRawAudioExtractorInputPin:

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)
virtual LOOG_INT64 convertGranuleToTime (LOOG_INT64 inGranule)
virtual STDMETHODIMP GetAllocatorRequirements (ALLOCATOR_PROPERTIES *outRequestedProps)
virtual string getCodecIdentString ()
virtual string getCodecShortName ()
sOggRawAudioFormatBlock getFormatBlock ()
virtual LOOG_INT64 mustSeekBefore (LOOG_INT64 inGranule)
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
 OggRawAudioExtractorInputPin (OggRawAudioExtractorFilter *inParent, HRESULT *outHR)
virtual HRESULT SetMediaType (const CMediaType *inMediaType)
virtual IOggDecoder::eAcceptHeaderResult showHeaderPacket (OggPacket *inCodecHeaderPacket)
virtual ~OggRawAudioExtractorInputPin (void)

Protected Types

enum  eOggRawAudioSetupState {
  VSS_SEEN_NOTHING, VSS_SEEN_BOS, VSS_SEEN_COMMENT, VSS_ALL_HEADERS_SEEN,
  VSS_ERROR
}
enum  eRawAudioFormat {
  FMT_S8, FMT_U8, FMT_S16_LE, FMT_S16_BE,
  FMT_S24_LE, FMT_S24_BE, FMT_S32_LE, FMT_S32_BE,
  FMT_ULAW = 0x10, FMT_ALAW, FMT_FLT32_LE = 0x20, FMT_FLT32_BE,
  FMT_FLT64_LE, FMT_FLT64_BE
}

Protected Member Functions

bool handleHeaderPacket (OggPacket *inHeaderPack)

Protected Attributes

sOggRawAudioFormatBlock mFormatBlock
eOggRawAudioSetupState mSetupState

Static Protected Attributes

const unsigned long OGG_RAW_AUDIO_IDENT_HEADER_SIZE = 28
const unsigned long OGG_RAW_AUDIO_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 OggRawAudioExtractorInputPin::eOggRawAudioSetupState [protected]
 

Enumeration values:
VSS_SEEN_NOTHING 
VSS_SEEN_BOS 
VSS_SEEN_COMMENT 
VSS_ALL_HEADERS_SEEN 
VSS_ERROR 

Definition at line 35 of file OggRawAudioExtractorInputPin.h.

enum OggRawAudioExtractorInputPin::eRawAudioFormat [protected]
 

Enumeration values:
FMT_S8 
FMT_U8 
FMT_S16_LE 
FMT_S16_BE 
FMT_S24_LE 
FMT_S24_BE 
FMT_S32_LE 
FMT_S32_BE 
FMT_ULAW 
FMT_ALAW 
FMT_FLT32_LE 
FMT_FLT32_BE 
FMT_FLT64_LE 
FMT_FLT64_BE 

Definition at line 53 of file OggRawAudioExtractorInputPin.h.


Constructor & Destructor Documentation

OggRawAudioExtractorInputPin::OggRawAudioExtractorInputPin OggRawAudioExtractorFilter inParent,
HRESULT *  outHR
 

Definition at line 35 of file OggRawAudioExtractorInputPin.cpp.

OggRawAudioExtractorInputPin::~OggRawAudioExtractorInputPin void   )  [virtual]
 

Definition at line 43 of file OggRawAudioExtractorInputPin.cpp.


Member Function Documentation

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

Definition at line 78 of file OggRawAudioExtractorInputPin.cpp.

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

LOOG_INT64 OggRawAudioExtractorInputPin::convertGranuleToTime LOOG_INT64  inGranule  )  [virtual]
 

Implements IOggDecoder.

Definition at line 102 of file OggRawAudioExtractorInputPin.cpp.

References LOOG_INT64, mFormatBlock, and sOggRawAudioFormatBlock::samplesPerSec.

Referenced by OggRawAudioExtractorFilter::Receive().

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

Definition at line 93 of file OggRawAudioExtractorInputPin.cpp.

string OggRawAudioExtractorInputPin::getCodecIdentString  )  [virtual]
 

Implements IOggDecoder.

Definition at line 187 of file OggRawAudioExtractorInputPin.cpp.

string OggRawAudioExtractorInputPin::getCodecShortName  )  [virtual]
 

Implements IOggDecoder.

Definition at line 183 of file OggRawAudioExtractorInputPin.cpp.

sOggRawAudioFormatBlock OggRawAudioExtractorInputPin::getFormatBlock  )  [inline]
 

Definition at line 33 of file OggRawAudioExtractorInputPin.h.

Referenced by OggRawAudioExtractorFilter::GetMediaType(), and OggRawAudioExtractorFilter::Receive().

bool OggRawAudioExtractorInputPin::handleHeaderPacket OggPacket inHeaderPack  )  [protected]
 

Definition at line 141 of file OggRawAudioExtractorInputPin.cpp.

References sOggRawAudioFormatBlock::bitsPerSample, iBE_Math::charArrToULong(), FMT_S16_BE, FMT_S16_LE, FMT_S8, FMT_U8, sOggRawAudioFormatBlock::maxFramesPerPacket, mFormatBlock, sOggRawAudioFormatBlock::numChannels, sOggRawAudioFormatBlock::numHeaders, OggPacket::packetData(), and sOggRawAudioFormatBlock::samplesPerSec.

Referenced by showHeaderPacket().

Here is the call graph for this function:

LOOG_INT64 OggRawAudioExtractorInputPin::mustSeekBefore LOOG_INT64  inGranule  )  [virtual]
 

Implements IOggDecoder.

Definition at line 107 of file OggRawAudioExtractorInputPin.cpp.

References LOOG_INT64.

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

Definition at line 48 of file OggRawAudioExtractorInputPin.cpp.

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

Definition at line 64 of file OggRawAudioExtractorInputPin.cpp.

References CheckMediaType().

Here is the call graph for this function:

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

Implements IOggDecoder.

Definition at line 112 of file OggRawAudioExtractorInputPin.cpp.

References handleHeaderPacket(), 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

sOggRawAudioFormatBlock OggRawAudioExtractorInputPin::mFormatBlock [protected]
 

Definition at line 46 of file OggRawAudioExtractorInputPin.h.

Referenced by convertGranuleToTime(), and handleHeaderPacket().

eOggRawAudioSetupState OggRawAudioExtractorInputPin::mSetupState [protected]
 

Definition at line 43 of file OggRawAudioExtractorInputPin.h.

Referenced by showHeaderPacket().

const unsigned long OggRawAudioExtractorInputPin::OGG_RAW_AUDIO_IDENT_HEADER_SIZE = 28 [static, protected]
 

Definition at line 49 of file OggRawAudioExtractorInputPin.h.

const unsigned long OggRawAudioExtractorInputPin::OGG_RAW_AUDIO_NUM_BUFFERS = 50 [static, protected]
 

Definition at line 50 of file OggRawAudioExtractorInputPin.h.


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