ISoftwareBitmapNativeFactory::CreateFromMF2DBuffer2 method
Creates an ISoftwareBitmapNative from the provided IMF2DBuffer2.
Syntax
HRESULT CreateFromMF2DBuffer2( [in] IMF2DBuffer2 *data, [in] REFGUID subtype, [in] UINT32 width, [in] UINT32 height, [in] BOOL forceReadOnly, [in, optional] const MFVideoArea *minDisplayAperture, [in] REFIID riid, [out] LPVOID *ppv );
Parameters
- data [in]
-
Type: IMF2DBuffer2*
The source buffer containing a two-dimensional surface, such as a video frame.
- subtype [in]
-
Type: REFGUID
A GUID specifying the video subtype of the source buffer.
- width [in]
-
Type: UINT32
The width of the source surface.
- height [in]
-
Type: UINT32
The height of the source surface.
- forceReadOnly [in]
-
Type: BOOL
A value indicating whether the created software bitmap is read-only.
Note The read-only access applies only to the Windows RuntimeSoftwareBitmap wrapper. Access to the underlying Media Foundation buffer is not restricted. - minDisplayAperture [in, optional]
-
Type: const MFVideoArea*
The rectangular area within the surface that contains valid image data. Use NULL if the full frame is valid.
- riid [in]
-
Type: REFIID
The IID of the ISoftwareBitmapNative interface.
- ppv [out]
-
Type: LPVOID*
When this method returns successfully, contains the requested interface.
Return value
Type: HRESULT
Returns S_OK on successful completion.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
See also