CImageAllocator Class Reference

#include <winutil.h>

Inheritance diagram for CImageAllocator:

CBaseAllocator CUnknown CCritSec CBaseObject

List of all members.

Public Member Functions

 CImageAllocator (CBaseFilter *pFilter, TCHAR *pName, HRESULT *phr)
 STDMETHODIMP_ (ULONG) NonDelegatingAddRef()
 STDMETHODIMP_ (ULONG) NonDelegatingRelease()
void NotifyMediaType (CMediaType *pMediaType)
STDMETHODIMP SetProperties (ALLOCATOR_PROPERTIES *pRequest, ALLOCATOR_PROPERTIES *pActual)

Protected Member Functions

HRESULT Alloc ()
void Free ()
HRESULT CreateDIB (LONG InSize, DIBDATA &DibData)
STDMETHODIMP CheckSizes (ALLOCATOR_PROPERTIES *pRequest)
virtual CImageSampleCreateImageSample (LPBYTE pData, LONG Length)

Protected Attributes

CBaseFilterm_pFilter
CMediaTypem_pMediaType


Detailed Description

Definition at line 219 of file winutil.h.


Constructor & Destructor Documentation

CImageAllocator::CImageAllocator ( CBaseFilter pFilter,
TCHAR pName,
HRESULT *  phr 
)

Definition at line 1111 of file winutil.cpp.

References ASSERT.


Member Function Documentation

HRESULT CImageAllocator::Alloc ( void   )  [protected, virtual]

void CImageAllocator::Free ( void   )  [protected, virtual]

HRESULT CImageAllocator::CreateDIB ( LONG  InSize,
DIBDATA DibData 
) [protected]

STDMETHODIMP CImageAllocator::CheckSizes ( ALLOCATOR_PROPERTIES *  pRequest  )  [protected]

Definition at line 1146 of file winutil.cpp.

References E_INVALIDARG, CMediaType::Format(), m_pMediaType, and NULL.

Referenced by SetProperties().

CImageSample * CImageAllocator::CreateImageSample ( LPBYTE  pData,
LONG  Length 
) [protected, virtual]

Definition at line 1241 of file winutil.cpp.

References FAILED, hr, HRESULT, LONG, NAME, and NULL.

Referenced by Alloc().

CImageAllocator::STDMETHODIMP_ ( ULONG   ) 

Reimplemented from CUnknown.

CImageAllocator::STDMETHODIMP_ ( ULONG   ) 

Reimplemented from CUnknown.

void CImageAllocator::NotifyMediaType ( CMediaType pMediaType  ) 

Definition at line 1315 of file winutil.cpp.

References m_pMediaType.

STDMETHODIMP CImageAllocator::SetProperties ( ALLOCATOR_PROPERTIES *  pRequest,
ALLOCATOR_PROPERTIES *  pActual 
)

Reimplemented from CBaseAllocator.

Definition at line 1180 of file winutil.cpp.

References CheckSizes(), FAILED, hr, HRESULT, and CBaseAllocator::SetProperties().


Member Data Documentation

Definition at line 223 of file winutil.h.

Referenced by STDMETHODIMP_().

Definition at line 224 of file winutil.h.

Referenced by Alloc(), CheckSizes(), CreateDIB(), and NotifyMediaType().


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

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