IMFCapturePreviewSink::UpdateVideo method (mfcaptureengine.h)

Updates the video frame. Call this method when the preview window receives a WM_PAINT or WM_SIZE message.

Syntax

HRESULT UpdateVideo(
  [in] const MFVideoNormalizedRect *pSrc,
  [in] const RECT                  *pDst,
  [in] const COLORREF              *pBorderClr
);

Parameters

[in] pSrc

A pointer to an MFVideoNormalizedRect structure that specifies the source rectangle. The source rectangle defines the area of the video frame that is displayed. If this parameter is NULL, the entire video frame is displayed.

[in] pDst

A pointer to a RECT structure that specifies the destination rectangle. The destination rectangle defines the area of the window or DirectComposition visual where the video is drawn.

[in] pBorderClr

The border color. Use the RGB macro to create this value.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfcaptureengine.h

See also

IMFCapturePreviewSink