IMFASFStreamSelector::BitrateToStepNumber method

Retrieves the index of a bandwidth step that is appropriate for a specified bit rate. This method is used for multiple bit rate (MBR) content.

Syntax


HRESULT BitrateToStepNumber(
  [in]   DWORD dwBitrate,
  [out]  DWORD *pdwStepNum
);

Parameters

dwBitrate [in]

The bit rate to find a bandwidth step for.

pdwStepNum [out]

Receives the step number. Use this number to retrieve information about the step by calling IMFASFStreamSelector::GetBandwidthStep.

Return value

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

Return codeDescription
S_OK

The method succeeded.

 

Remarks

In a streaming multiple bit rate (MBR) scenario, call this method with the current data rate of the network connection to determine the correct step to use. You can also call this method periodically throughout streaming to ensure that the best step is used.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wmcontainer.h

Library

Mfuuid.lib

See also

IMFASFStreamSelector

 

 

Community Additions

ADD
Show:
© 2014 Microsoft