Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFMediaEngineProtectedContent::TransferVideoFrame method

Copies a protected video frame to a DXGI surface.


HRESULT TransferVideoFrame(
  [in]        IUnknown              *pDstSurf,
  [in]  const MFVideoNormalizedRect *pSrc,
  [in]  const RECT                  *pDst,
  [in]  const MFARGB                *pBorderClr,
  [out]       DWORD                 *pFrameProtectionFlags


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.


For protected content, call this method instead of the IMFMediaEngine::TransferVideoFrame method.


Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]



See also




© 2017 Microsoft