Skip to main content
IMFCapturePreviewSink::UpdateVideo method

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

pSrc [in]

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.

pDst [in]

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.

pBorderClr [in]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfcaptureengine.h

See also

IMFCapturePreviewSink