Microsoft DirectX 8.0

IDVEnc Interface

This interface provides methods for setting and retrieving properties on the DV Video Encoder filter.

IUnknown methodsDescription
QueryInterfaceRetrieves pointers to supported interfaces.
AddRefIncrements the reference count.
ReleaseDecrements the reference count.
IDVEnc methodsDescription
get_IFormatResolutionRetrieves the encoding resolution.
put_IFormatResolutionSets the encoding resolution.

IDVEnc::get_IFormatResolution

IDVEnc Interface

Retrieves the encoding resolution.

Syntax

HRESULT get_IFormatResolution(
    int *VideoFormat,
    int *DVFormat,
    int *Resolution,
    BYTE fDVInfo,
    DVINFO *sDVInfo
);

Parameters

VideoFormat
[out] Pointer to a variable that receives a member of the DVENCODERVIDEOFORMAT enumeration, specifying the video standard in use (NTSC or PAL).
DVFormat
[out] Pointer to a variable that receives a member of the DVENCODERFORMAT enumeration, specifying the digital video (DV) format.
Resolution
[out] Pointer to a variable that receives a member of the DVENCODERRESOLUTION enumeration, specifying the video resolution.
fDVInfo
[in] 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.
sDVInfo
[out] 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.

IDVEnc::put_IFormatResolution

IDVEnc Interface

Sets the encoding resolution.

Syntax

HRESULT put_IFormatResolution(
    int VideoFormat,
    int DVFormat,
    int Resolution,
    BYTE fDVInfo,
    DVINFO *sDVInfo
);

Parameters

VideoFormat
[in] Member of the DVENCODERVIDEOFORMAT enumeration, specifying the video standard to use (NTSC or PAL).
DVFormat
[in] Member of the DVENCODERFORMAT enumeration, specifying the DV format.
Resolution
[in] Member of the DVENCODERRESOLUTION enumeration, specifying the video resolution.
fDVInfo
[in] 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.
sDVInfo
[in] 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.