#include <winutil.h>

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 CImageSample * | CreateImageSample (LPBYTE pData, LONG Length) |
Protected Attributes | |
| CBaseFilter * | m_pFilter |
| CMediaType * | m_pMediaType |
Definition at line 219 of file winutil.h.
| CImageAllocator::CImageAllocator | ( | CBaseFilter * | pFilter, | |
| TCHAR * | pName, | |||
| HRESULT * | phr | |||
| ) |
| HRESULT CImageAllocator::Alloc | ( | void | ) | [protected, virtual] |
Reimplemented from CBaseAllocator.
Definition at line 1195 of file winutil.cpp.
References CBaseAllocator::CSampleList::Add(), CBaseAllocator::Alloc(), ASSERT, CreateDIB(), CreateImageSample(), E_OUTOFMEMORY, EXECUTE_ASSERT, FAILED, tagDIBDATA::hBitmap, tagDIBDATA::hMapping, hr, HRESULT, CBaseAllocator::m_lAllocated, CBaseAllocator::m_lCount, CBaseAllocator::m_lFree, CBaseAllocator::m_lSize, m_pMediaType, NULL, tagDIBDATA::pBase, and CImageSample::SetDIBData().
| void CImageAllocator::Free | ( | void | ) | [protected, virtual] |
Reimplemented from CBaseAllocator.
Definition at line 1128 of file winutil.cpp.
References ASSERT, EXECUTE_ASSERT, CBaseAllocator::CSampleList::GetCount(), CImageSample::GetDIBData(), tagDIBDATA::hBitmap, tagDIBDATA::hMapping, CBaseAllocator::m_lAllocated, CBaseAllocator::m_lFree, and CBaseAllocator::CSampleList::RemoveHead().
Definition at line 1261 of file winutil.cpp.
References DbgBreak, tagDIBDATA::DibSection, EXECUTE_ASSERT, CMediaType::Format(), GetLastError(), tagDIBDATA::hBitmap, tagDIBDATA::hMapping, hMEMORY, m_pMediaType, NULL, PALETTE_VERSION, tagDIBDATA::PaletteVersion, and tagDIBDATA::pBase.
Referenced by Alloc().
| 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] |
| void CImageAllocator::NotifyMediaType | ( | CMediaType * | 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().
CBaseFilter* CImageAllocator::m_pFilter [protected] |
CMediaType* CImageAllocator::m_pMediaType [protected] |
Definition at line 224 of file winutil.h.
Referenced by Alloc(), CheckSizes(), CreateDIB(), and NotifyMediaType().
1.5.6