IDVEnc::get_IFormatResolution method (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The get_IFormatResolution method retrieves the encoding resolution.

Syntax

HRESULT get_IFormatResolution(
  [out] int    *VideoFormat,
  [out] int    *DVFormat,
  [out] int    *Resolution,
  [in]  BYTE   fDVInfo,
  [out] DVINFO *sDVInfo
);

Parameters

[out] VideoFormat

Pointer to a variable that receives a member of the DVENCODERVIDEOFORMAT enumeration, specifying the video standard in use (NTSC or PAL).

[out] DVFormat

Pointer to a variable that receives a member of the DVENCODERFORMAT enumeration, specifying the digital video (DV) format.

[out] Resolution

Pointer to a variable that receives a member of the DVENCODERRESOLUTION enumeration, specifying the video resolution.

[in] fDVInfo

Boolean value specifying whether to retrieve the DVINFO structure that specifies the stream format. If TRUE, the stream format is returned in the sDVInfo parameter.

[out] sDVInfo

Pointer to a variable that receives a DVINFO structure containing the stream format. If fDVInfo is FALSE, this parameter is ignored.

Return value

Returns S_OK if successful. Otherwise, returns E_FAIL or another error code.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)
Library Strmiids.lib

See also

Error and Success Codes

IDVEnc Interface