IMFMediaEngineProtectedContent::TransferVideoFrame method (mfmediaengine.h)

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

[in] pDstSurf

A pointer to the IUnknown interface of the destination surface.

[in] pSrc

A pointer to an MFVideoNormalizedRect structure that specifies the source rectangle.

[in] pDst

A pointer to a RECT structure that specifies the destination rectangle.

[in] pBorderClr

A pointer to an MFARGB structure that specifies the border color.

[out] pFrameProtectionFlags

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

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfmediaengine.h

See also

IMFMediaEngineProtectedContent