Share via


IBufferManager::AllocBuffer method

The AllocBuffer method allocates a buffer for the transform to use.

Syntax

HRESULT AllocBuffer(
  [in]  FORMAT_TYPE type,
  [out] 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 value

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

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
GPUPipelineTime.h
Library
GPUPipelineVC8.lib (Visual Studio 2005);
GPUPipelineVC7.lib (Visual Studio .NET)

See also

IBufferManager Interface