Freigeben über


IMFVideoDisplayControl::GetVideoPosition Method

Gets the source and destination rectangles for the video.

Syntax

HRESULT GetVideoPosition(
  [out]  MFVideoNormalizedRect *pnrcSource,
  [out]  LPRECT prcDest
);

Parameter

  • pnrcSource [out]
    Pointer to an MFVideoNormalizedRect structure that receives the source rectangle.

  • prcDest [out]
    Receives the current destination rectangle.

Rückgabewert

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Rückgabecode Beschreibung
S_OK

The method succeeded.

E_POINTER

One or more required parameters are NULL.

MF_E_SHUTDOWN

The video renderer has been shut down.

 

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Evr.h

Bibliothek

Strmiids.lib

Siehe auch

IMFVideoDisplayControl

Enhanced Video Renderer

Using the Video Display Controls