IMFMediaEngineProtectedContent::TransferVideoFrame method
Copies a protected video frame to a DXGI surface.
Syntax
HRESULT TransferVideoFrame( [in] IUnknown *pDstSurf, [in] const MFVideoNormalizedRect *pSrc, [in] const RECT *pDst, [in] const MFARGB *pBorderClr, [out] DWORD *pFrameProtectionFlags );
Parameters
- pDstSurf [in]
-
A pointer to the IUnknown interface of the destination surface.
- pSrc [in]
-
A pointer to an MFVideoNormalizedRect structure that specifies the source rectangle.
- pDst [in]
-
A pointer to a RECT structure that specifies the destination rectangle.
- pBorderClr [in]
-
A pointer to an MFARGB structure that specifies the border color.
- pFrameProtectionFlags [out]
-
Receives a bitwise OR of zero or more flags from the MF_MEDIA_ENGINE_FRAME_PROTECTION_FLAGS enumeration. These flags indicate which content protections the application must apply before presenting the surface.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
For protected content, call this method instead of the IMFMediaEngine::TransferVideoFrame method.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
See also