Freigeben über


IBDA_Encoder::SetParameters method (bdaiface.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

Sets the parameters for the Encoder Service.

Syntax

HRESULT SetParameters(
  [in] DWORD AudioBitrateMode,
  [in] DWORD AudioBitrate,
  [in] DWORD AudioMethodID,
  [in] DWORD AudioProgram,
  [in] DWORD VideoBitrateMode,
  [in] DWORD VideoBitrate,
  [in] DWORD VideoMethodID
);

Parameters

[in] AudioBitrateMode

The audio compression mode. The following values are defined.

Value Meaning
PBDA_Encoder_BitrateMode_Constant
0x00000001
Constant bit rate (CBR) mode.
PBDA_Encoder_BitrateMode_Variable
0x00000002
Variable bit rate (VBR) mode.
PBDA_Encoder_BitrateMode_Average
0x00000003
Average bit rate (ABR) mode.

[in] AudioBitrate

The audio bit rate.

[in] AudioMethodID

The active audio encoder method.

[in] AudioProgram

The audio program number.

[in] VideoBitrateMode

The video compression mode. For a list of values, see AudioBitrateMode.

[in] VideoBitrate

The video bit rate.

[in] VideoMethodID

The active video encoder method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows�7 [desktop apps only]
Minimum supported server Windows Server�2008�R2 [desktop apps only]
Target Platform Windows
Header bdaiface.h

See also

IBDA_Encoder