IDVEnc::put_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 put_IFormatResolution
method sets the encoding resolution.
Syntax
HRESULT put_IFormatResolution(
[in] int VideoFormat,
[in] int DVFormat,
[in] int Resolution,
[in] BYTE fDVInfo,
[in] DVINFO *sDVInfo
);
Parameters
[in] VideoFormat
Member of the DVENCODERVIDEOFORMAT enumeration, specifying the video standard to use (NTSC or PAL).
[in] DVFormat
Member of the DVENCODERFORMAT enumeration, specifying the DV format.
[in] Resolution
Member of the DVENCODERRESOLUTION enumeration, specifying the video resolution.
[in] fDVInfo
Boolean value specifying whether the sDVInfo parameter contains a valid DVINFO structure. To set the stream format, set this parameter to TRUE and specify the format chunk with the sDVInfo parameter.
[in] sDVInfo
If fDVInfo is TRUE, must point to a DVINFO structure that describes the stream format.
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 |