AJA NTV2 SDK  17.6.0.2675
NTV2 SDK 17.6.0.2675
CImageAllocator Class Reference

#include <winutil.h>

Inheritance diagram for CImageAllocator:
[legend]
Collaboration diagram for CImageAllocator:
[legend]

Public Member Functions

 CImageAllocator (__inout CBaseFilter *pFilter, __in_opt LPCTSTR pName, __inout HRESULT *phr)
 
 STDMETHODIMP_ (ULONG) NonDelegatingAddRef()
 
 STDMETHODIMP_ (ULONG) NonDelegatingRelease()
 
void NotifyMediaType (__in CMediaType *pMediaType)
 
STDMETHODIMP SetProperties (__in ALLOCATOR_PROPERTIES *pRequest, __out ALLOCATOR_PROPERTIES *pActual)
 
- Public Member Functions inherited from CBaseAllocator
 CBaseAllocator (__in_opt LPCTSTR, __inout_opt LPUNKNOWN, __inout HRESULT *, BOOL bEvent=TRUE, BOOL fEnableReleaseCallback=FALSE)
 
virtual ~CBaseAllocator ()
 
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, __deref_out void **ppv)
 
STDMETHODIMP SetProperties (__in ALLOCATOR_PROPERTIES *pRequest, __out ALLOCATOR_PROPERTIES *pActual)
 
STDMETHODIMP GetProperties (__out ALLOCATOR_PROPERTIES *pProps)
 
STDMETHODIMP Commit ()
 
STDMETHODIMP Decommit ()
 
STDMETHODIMP GetBuffer (__deref_out IMediaSample **ppBuffer, __in_opt REFERENCE_TIME *pStartTime, __in_opt REFERENCE_TIME *pEndTime, DWORD dwFlags)
 
STDMETHODIMP ReleaseBuffer (IMediaSample *pBuffer)
 
STDMETHODIMP SetNotify (IMemAllocatorNotifyCallbackTemp *pNotify)
 
STDMETHODIMP GetFreeCount (__out LONG *plBuffersFree)
 
void NotifySample ()
 
void SetWaiting ()
 
- Public Member Functions inherited from CUnknown
 CUnknown (__in_opt LPCTSTR pName, __in_opt LPUNKNOWN pUnk)
 
virtual ~CUnknown ()
 
 CUnknown (__in_opt LPCTSTR Name, __in_opt LPUNKNOWN pUnk, __inout_opt HRESULT *phr)
 
LPUNKNOWN GetOwner () const
 
STDMETHODIMP NonDelegatingQueryInterface (REFIID, __deref_out void **)
 
 STDMETHODIMP_ (ULONG) NonDelegatingAddRef()
 
 STDMETHODIMP_ (ULONG) NonDelegatingRelease()
 
- Public Member Functions inherited from CBaseObject
 CBaseObject (__in_opt LPCTSTR pName)
 
 ~CBaseObject ()
 
- Public Member Functions inherited from CCritSec
 CCritSec ()
 
 ~CCritSec ()
 
void Lock ()
 
void Unlock ()
 

Protected Member Functions

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

Protected Attributes

CBaseFilterm_pFilter
 
CMediaTypem_pMediaType
 
- Protected Attributes inherited from CBaseAllocator
CSampleList m_lFree
 
HANDLE m_hSem
 
long m_lWaiting
 
long m_lCount
 
long m_lAllocated
 
long m_lSize
 
long m_lAlignment
 
long m_lPrefix
 
BOOL m_bChanged
 
BOOL m_bCommitted
 
BOOL m_bDecommitInProgress
 
IMemAllocatorNotifyCallbackTemp * m_pNotify
 
BOOL m_fEnableReleaseCallback
 
- Protected Attributes inherited from CUnknown
volatile LONG m_cRef
 

Additional Inherited Members

- Static Public Member Functions inherited from CBaseObject
static LONG ObjectsActive ()
 

Detailed Description

Definition at line 279 of file winutil.h.

Constructor & Destructor Documentation

◆ CImageAllocator()

CImageAllocator::CImageAllocator ( __inout CBaseFilter pFilter,
__in_opt LPCTSTR  pName,
__inout HRESULT *  phr 
)

Definition at line 1450 of file winutil.cpp.

Member Function Documentation

◆ Alloc()

HRESULT CImageAllocator::Alloc ( )
protectedvirtual

Reimplemented from CBaseAllocator.

Definition at line 1560 of file winutil.cpp.

◆ CheckSizes()

STDMETHODIMP CImageAllocator::CheckSizes ( __in ALLOCATOR_PROPERTIES *  pRequest)
protected

Definition at line 1497 of file winutil.cpp.

◆ CreateDIB()

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

Definition at line 1636 of file winutil.cpp.

◆ CreateImageSample()

CImageSample * CImageAllocator::CreateImageSample ( __in_bcount(Length) LPBYTE  pData,
LONG  Length 
)
protectedvirtual

Definition at line 1611 of file winutil.cpp.

◆ Free()

void CImageAllocator::Free ( )
protectedvirtual

Reimplemented from CBaseAllocator.

Definition at line 1476 of file winutil.cpp.

◆ NotifyMediaType()

void CImageAllocator::NotifyMediaType ( __in CMediaType pMediaType)

Definition at line 1693 of file winutil.cpp.

◆ SetProperties()

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

Definition at line 1536 of file winutil.cpp.

◆ STDMETHODIMP_() [1/2]

CImageAllocator::STDMETHODIMP_ ( ULONG  )

◆ STDMETHODIMP_() [2/2]

CImageAllocator::STDMETHODIMP_ ( ULONG  )

Member Data Documentation

◆ m_pFilter

CBaseFilter* CImageAllocator::m_pFilter
protected

Definition at line 283 of file winutil.h.

◆ m_pMediaType

CMediaType* CImageAllocator::m_pMediaType
protected

Definition at line 284 of file winutil.h.


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