AJA NTV2 SDK  18.0.0.2717
NTV2 SDK 18.0.0.2717
CMemAllocator Class Reference

#include <amfilter.h>

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

Public Member Functions

STDMETHODIMP SetProperties (__in ALLOCATOR_PROPERTIES *pRequest, __out ALLOCATOR_PROPERTIES *pActual)
 
 CMemAllocator (__in_opt LPCTSTR, __inout_opt LPUNKNOWN, __inout HRESULT *)
 
 ~CMemAllocator ()
 
- 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 ()
 

Static Public Member Functions

static CUnknownCreateInstance (__inout_opt LPUNKNOWN, __inout HRESULT *)
 
- Static Public Member Functions inherited from CBaseObject
static LONG ObjectsActive ()
 

Protected Member Functions

void Free (void)
 
void ReallyFree (void)
 
HRESULT Alloc (void)
 

Protected Attributes

LPBYTE m_pBuffer
 
- 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
 

Detailed Description

Definition at line 1537 of file amfilter.h.

Constructor & Destructor Documentation

◆ CMemAllocator()

CMemAllocator::CMemAllocator ( __in_opt LPCTSTR  pName,
__inout_opt LPUNKNOWN  pUnk,
__inout HRESULT *  phr 
)

Definition at line 5025 of file amfilter.cpp.

◆ ~CMemAllocator()

CMemAllocator::~CMemAllocator ( )

Definition at line 5271 of file amfilter.cpp.

Member Function Documentation

◆ Alloc()

HRESULT CMemAllocator::Alloc ( void  )
protectedvirtual

Reimplemented from CBaseAllocator.

Definition at line 5122 of file amfilter.cpp.

◆ CreateInstance()

CUnknown * CMemAllocator::CreateInstance ( __inout_opt LPUNKNOWN  pUnk,
__inout HRESULT *  phr 
)
static

Definition at line 5019 of file amfilter.cpp.

◆ Free()

void CMemAllocator::Free ( void  )
protectedvirtual

Reimplemented from CBaseAllocator.

Definition at line 5232 of file amfilter.cpp.

◆ ReallyFree()

void CMemAllocator::ReallyFree ( void  )
protected

Definition at line 5241 of file amfilter.cpp.

◆ SetProperties()

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

Definition at line 5050 of file amfilter.cpp.

Member Data Documentation

◆ m_pBuffer

LPBYTE CMemAllocator::m_pBuffer
protected

Definition at line 1542 of file amfilter.h.


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