IBufferManager::AllocBuffer
The AllocBuffer method allocates a buffer for the transform to use.
Syntax
HRESULT AllocBuffer(
FORMAT_TYPE type,
IBuffer** ppBuffer
);
Parameters
type
[in] One or more FORMAT_TYPE values specifying the type of buffer to create.
ppBuffer
[out] Pointer to a new IBuffer interface pointer to use. The application must release this interface when it is no longer needed.
Return Values
The method returns an HRESULT of S_OK for success, or a standard COM error code for failure.
Remarks
The AllocBuffer method should be for temporary use only, because the output buffer is provided to the transform by Windows Movie Maker. Do not cache this buffer between calls to IMediaTransform::Process, for reasons described in the Process method documentation.
Requirements
Client: Windows Vista
Header: Include gputransformplugin.h and GPUPipelineTime.h.
Library: Use GPUPipelineVC7.lib (for Visual Studio .NET) or GPUPipelineVC8.lib (for Visual Studio 2005).
See Also