IMFMediaEngineProtectedContent::TransferVideoFrame method

Copies a protected video frame to a DXGI surface.

Syntax

HRESULT TransferVideoFrame(
  IUnknown                    *pDstSurf,
  const MFVideoNormalizedRect *pSrc,
  const RECT                  *pDst,
  const MFARGB                *pBorderClr,
  DWORD                       *pFrameProtectionFlags
);

Parameters

pDstSurf

A pointer to the IUnknown interface of the destination surface.

pSrc

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

pDst

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

pBorderClr

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

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

   
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