AJA NTV2 SDK  18.0.0.2717
NTV2 SDK 18.0.0.2717
CBaseAllocator Class Reference

#include <amfilter.h>

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

Public Member Functions

 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

virtual void Free (void) PURE
 
virtual HRESULT Alloc (void)
 

Protected Attributes

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
 

Friends

class CSampleList
 

Additional Inherited Members

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

Detailed Description

Definition at line 1339 of file amfilter.h.

Constructor & Destructor Documentation

◆ CBaseAllocator()

CBaseAllocator::CBaseAllocator ( __in_opt LPCTSTR  pName,
__inout_opt LPUNKNOWN  pUnk,
__inout HRESULT *  phr,
BOOL  bEvent = TRUE,
BOOL  fEnableReleaseCallback = FALSE 
)

Definition at line 4552 of file amfilter.cpp.

◆ ~CBaseAllocator()

CBaseAllocator::~CBaseAllocator ( )
virtual

Definition at line 4621 of file amfilter.cpp.

Member Function Documentation

◆ Alloc()

HRESULT CBaseAllocator::Alloc ( void  )
protectedvirtual

Reimplemented in CMemAllocator, and CImageAllocator.

Definition at line 4973 of file amfilter.cpp.

◆ Commit()

STDMETHODIMP CBaseAllocator::Commit ( )

Definition at line 4882 of file amfilter.cpp.

◆ Decommit()

STDMETHODIMP CBaseAllocator::Decommit ( )

Definition at line 4921 of file amfilter.cpp.

◆ Free()

virtual void CBaseAllocator::Free ( void  )
protectedvirtual

Reimplemented in CMemAllocator, and CImageAllocator.

◆ GetBuffer()

HRESULT CBaseAllocator::GetBuffer ( __deref_out IMediaSample **  ppBuffer,
__in_opt REFERENCE_TIME *  pStartTime,
__in_opt REFERENCE_TIME *  pEndTime,
DWORD  dwFlags 
)

Definition at line 4731 of file amfilter.cpp.

◆ GetFreeCount()

STDMETHODIMP CBaseAllocator::GetFreeCount ( __out LONG *  plBuffersFree)

Definition at line 4861 of file amfilter.cpp.

◆ GetProperties()

STDMETHODIMP CBaseAllocator::GetProperties ( __out ALLOCATOR_PROPERTIES *  pProps)

Definition at line 4712 of file amfilter.cpp.

◆ NonDelegatingQueryInterface()

STDMETHODIMP CBaseAllocator::NonDelegatingQueryInterface ( REFIID  riid,
__deref_out void **  ppv 
)

Definition at line 4644 of file amfilter.cpp.

◆ NotifySample()

void CBaseAllocator::NotifySample ( )

Definition at line 4872 of file amfilter.cpp.

◆ ReleaseBuffer()

STDMETHODIMP CBaseAllocator::ReleaseBuffer ( IMediaSample *  pBuffer)

Definition at line 4791 of file amfilter.cpp.

◆ SetNotify()

STDMETHODIMP CBaseAllocator::SetNotify ( IMemAllocatorNotifyCallbackTemp *  pNotify)

Definition at line 4844 of file amfilter.cpp.

◆ SetProperties()

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

Definition at line 4663 of file amfilter.cpp.

◆ SetWaiting()

void CBaseAllocator::SetWaiting ( )
inline

Definition at line 1514 of file amfilter.h.

Friends And Related Function Documentation

◆ CSampleList

friend class CSampleList
friend

Definition at line 1343 of file amfilter.h.

Member Data Documentation

◆ m_bChanged

BOOL CBaseAllocator::m_bChanged
protected

Definition at line 1435 of file amfilter.h.

◆ m_bCommitted

BOOL CBaseAllocator::m_bCommitted
protected

Definition at line 1438 of file amfilter.h.

◆ m_bDecommitInProgress

BOOL CBaseAllocator::m_bDecommitInProgress
protected

Definition at line 1441 of file amfilter.h.

◆ m_fEnableReleaseCallback

BOOL CBaseAllocator::m_fEnableReleaseCallback
protected

Definition at line 1446 of file amfilter.h.

◆ m_hSem

HANDLE CBaseAllocator::m_hSem
protected

Definition at line 1428 of file amfilter.h.

◆ m_lAlignment

long CBaseAllocator::m_lAlignment
protected

Definition at line 1433 of file amfilter.h.

◆ m_lAllocated

long CBaseAllocator::m_lAllocated
protected

Definition at line 1431 of file amfilter.h.

◆ m_lCount

long CBaseAllocator::m_lCount
protected

Definition at line 1430 of file amfilter.h.

◆ m_lFree

CSampleList CBaseAllocator::m_lFree
protected

Definition at line 1390 of file amfilter.h.

◆ m_lPrefix

long CBaseAllocator::m_lPrefix
protected

Definition at line 1434 of file amfilter.h.

◆ m_lSize

long CBaseAllocator::m_lSize
protected

Definition at line 1432 of file amfilter.h.

◆ m_lWaiting

long CBaseAllocator::m_lWaiting
protected

Definition at line 1429 of file amfilter.h.

◆ m_pNotify

IMemAllocatorNotifyCallbackTemp* CBaseAllocator::m_pNotify
protected

Definition at line 1444 of file amfilter.h.


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