IBufferManager::AllocBuffer method
The AllocBuffer method allocates a buffer for the transform to use.
HRESULT AllocBuffer(
[in] FORMAT_TYPE type,
[out] IBuffer **ppBuffer
);
-
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.
The method returns an HRESULT of S_OK for success, or a standard COM error code for failure.
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.
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|
Library |
|