DirectShow DirectShow 레퍼런스 DirectShow base class base class 레퍼런스 CMemAllocator   [목차열람] [주소복사] [슬롯비우기]
CMemAllocator 클래스
 
Microsoft DirectX 9.0

CMemAllocator 클래스

CMemAllocator 클래스의 계층

IMemAllocator 인터페이스를 지원 하는 할당자를 처리 한다.

이 클래스는 CBaseAllocator 로부터 파생한다. 할당자의 더 자세한 정보는,CBaseAllocator 의 문서를 참조할것.

요건

헤더: Amfilter.h 로 선언해, Streams.h 를 인클루드 한다.

라이브러리: Strmbase.lib (리테일 빌드) 또는 Strmbasd.lib (디버그 빌드).

프로텍트 멤버 변수  
m_pBuffer 버퍼를 저장 하는 메모리 블록의 포인터.
프로텍트 메서드  
Free 플레이스홀더 메서드. 데코밋트 처리시에 호출된다.
ReallyFree 버퍼의 메모리를 릴리즈 한다.
Alloc 버퍼에 메모리를 할당한다.
퍼블릭 메서드  
CMemAllocator 생성자 메서드.
~CMemAllocator 소멸자 메서드.
CreateInstance CMemAllocator 클래스의 새로운 인스턴스를 생성 한다.
IMemAllocator 메서드  
SetProperties 할당하는 버퍼의 수와 각 버퍼의 사이즈를 지정한다.

↑TOP