MFCreateWICBitmapBuffer function
Creates a media buffer object that manages a Windows Imaging Component (WIC) bitmap.
Syntax
HRESULT MFCreateWICBitmapBuffer( _In_ REFIID riid, _In_ IUnknown *punkSurface, _Out_ IMFMediaBuffer **ppBuffer );
Parameters
- riid [in]
-
Set this parameter to
__uuidof(IWICBitmap). - punkSurface [in]
-
A pointer to the IUnknown interface of the bitmap surface. The bitmap surface must be a WIC bitmap that exposes the IWICBitmap interface.
- ppBuffer [out]
-
Receives a pointer to the IMFMediaBuffer interface. The caller must release the interface.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Show: