Microsoft DirectX 8.1 (C++)

CImageAllocator Class

CImageAllocator Class Hierarchy

The CImageAllocator class is inherited from the CBaseAllocator class, which allocates sample buffers in shared memory. The number, size, and alignment of blocks are determined when the connected output pin calls CImageAllocator::SetProperties (which implements IMemAllocator::SetProperties). The shared memory blocks are used in subsequent calls to the Microsoft® Win32® CreateDIBSection function. The output pin can then fill these buffers with data, and the buffers will be handed to GDI using BitBlt.

Protected Data Members

m_pFilter Owning filter of this object.
m_pMediaType Current media type format.

Member Functions

Alloc Allocates the samples through CreateDIBSection.
CheckSizes Checks the allocator requirements.
CImageAllocator Constructs a CImageAllocator object.
CreateDIB Creates a device-independent bitmap (DIB).
Free Releases and deletes the resources for any samples allocated.
NotifyMediaType Notifies the allocator of the agreed media type.

Overridable Member Functions

CreateImageSample Creates a sample.

Implemented INonDelegatingUnknown Methods

NonDelegatingAddRef Increments the reference count for an interface.
NonDelegatingRelease Decrements the reference count for an interface.

Implemented IMemAllocator Methods

SetProperties Specifies the buffering requirements for the allocator.