CMediaType Class Reference

#include <mtype.h>

List of all members.

Public Member Functions

 ~CMediaType ()
 CMediaType ()
 CMediaType (const GUID *majortype)
 CMediaType (const AM_MEDIA_TYPE &)
 CMediaType (const CMediaType &)
CMediaTypeoperator= (const CMediaType &)
CMediaTypeoperator= (const AM_MEDIA_TYPE &)
BOOL operator== (const CMediaType &) const
BOOL operator!= (const CMediaType &) const
BOOL IsValid () const
const GUID * Type () const
void SetType (const GUID *)
const GUID * Subtype () const
void SetSubtype (const GUID *)
BOOL IsFixedSize () const
BOOL IsTemporalCompressed () const
ULONG GetSampleSize () const
void SetSampleSize (ULONG sz)
void SetVariableSize ()
void SetTemporalCompression (BOOL bCompressed)
BYTEFormat () const
ULONG FormatLength () const
void SetFormatType (const GUID *)
const GUID * FormatType () const
BOOL SetFormat (BYTE *pFormat, ULONG length)
void ResetFormatBuffer ()
BYTEAllocFormatBuffer (ULONG length)
BYTEReallocFormatBuffer (ULONG length)
void InitMediaType ()
BOOL MatchesPartial (const CMediaType *ppartial) const
BOOL IsPartiallySpecified (void) const


Detailed Description

Definition at line 9 of file mtype.h.


Constructor & Destructor Documentation

CMediaType::~CMediaType (  ) 

Definition at line 9 of file mtype.cpp.

References FreeMediaType().

CMediaType::CMediaType (  ) 

Definition at line 13 of file mtype.cpp.

References InitMediaType().

CMediaType::CMediaType ( const GUID *  majortype  ) 

Definition at line 18 of file mtype.cpp.

References InitMediaType().

CMediaType::CMediaType ( const AM_MEDIA_TYPE &  rt  ) 

Definition at line 24 of file mtype.cpp.

References CopyMediaType().

CMediaType::CMediaType ( const CMediaType rt  ) 

Definition at line 29 of file mtype.cpp.

References CopyMediaType().


Member Function Documentation

CMediaType & CMediaType::operator= ( const CMediaType rt  ) 

Definition at line 45 of file mtype.cpp.

CMediaType & CMediaType::operator= ( const AM_MEDIA_TYPE &  rt  ) 

Definition at line 35 of file mtype.cpp.

References CopyMediaType(), and FreeMediaType().

BOOL CMediaType::operator== ( const CMediaType rt  )  const

Definition at line 52 of file mtype.cpp.

References TRUE.

BOOL CMediaType::operator!= ( const CMediaType rt  )  const

Definition at line 70 of file mtype.cpp.

References FALSE, and TRUE.

BOOL CMediaType::IsValid (  )  const

Definition at line 81 of file mtype.cpp.

Referenced by CTransformOutputPin::SetMediaType().

const GUID* CMediaType::Type (  )  const [inline]

Definition at line 27 of file mtype.h.

Referenced by CImageDisplay::CheckMediaType().

void CMediaType::SetType ( const GUID *  ptype  ) 

Definition at line 87 of file mtype.cpp.

const GUID* CMediaType::Subtype (  )  const [inline]

Definition at line 29 of file mtype.h.

Referenced by CImageDisplay::CheckMediaType().

void CMediaType::SetSubtype ( const GUID *  ptype  ) 

Definition at line 93 of file mtype.cpp.

BOOL CMediaType::IsFixedSize (  )  const [inline]

Definition at line 32 of file mtype.h.

Referenced by GetSampleSize().

BOOL CMediaType::IsTemporalCompressed (  )  const [inline]

Definition at line 33 of file mtype.h.

ULONG CMediaType::GetSampleSize (  )  const

Definition at line 99 of file mtype.cpp.

References IsFixedSize().

void CMediaType::SetSampleSize ( ULONG  sz  ) 

Definition at line 108 of file mtype.cpp.

References SetVariableSize(), and TRUE.

void CMediaType::SetVariableSize (  ) 

Definition at line 118 of file mtype.cpp.

References FALSE.

Referenced by SetSampleSize().

void CMediaType::SetTemporalCompression ( BOOL  bCompressed  ) 

Definition at line 123 of file mtype.cpp.

BYTE* CMediaType::Format (  )  const [inline]

ULONG CMediaType::FormatLength (  )  const [inline]

Definition at line 44 of file mtype.h.

Referenced by CImageDisplay::CheckMediaType(), and CImagePalette::CopyPalette().

void CMediaType::SetFormatType ( const GUID *  pformattype  ) 

Definition at line 139 of file mtype.cpp.

const GUID* CMediaType::FormatType (  )  const [inline]

Definition at line 47 of file mtype.h.

Referenced by CImageDisplay::CheckMediaType().

BOOL CMediaType::SetFormat ( BYTE pFormat,
ULONG  length 
)

Definition at line 128 of file mtype.cpp.

References AllocFormatBuffer(), ASSERT, FALSE, NULL, and TRUE.

void CMediaType::ResetFormatBuffer (  ) 

Definition at line 144 of file mtype.cpp.

References NULL.

BYTE * CMediaType::AllocFormatBuffer ( ULONG  length  ) 

Definition at line 154 of file mtype.cpp.

References ASSERT, and NULL.

Referenced by SetFormat().

BYTE * CMediaType::ReallocFormatBuffer ( ULONG  length  ) 

Definition at line 185 of file mtype.cpp.

References ASSERT, and NULL.

Referenced by CImagePalette::CopyPalette().

void CMediaType::InitMediaType (  ) 

Definition at line 217 of file mtype.cpp.

References TRUE.

Referenced by CMediaType().

BOOL CMediaType::MatchesPartial ( const CMediaType ppartial  )  const

Definition at line 236 of file mtype.cpp.

References FALSE, and TRUE.

BOOL CMediaType::IsPartiallySpecified ( void   )  const

Definition at line 225 of file mtype.cpp.

References FALSE, and TRUE.

Referenced by CBasePin::AgreeMediaType().


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

Generated on Sun May 25 00:20:49 2008 by  doxygen 1.5.6