Skip to main content

OH_AVTranscoderConfig_SetDstVideoBitrate

Function OH_AVTranscoderConfig_SetDstVideoBitrate 

Source
pub unsafe extern "C" fn OH_AVTranscoderConfig_SetDstVideoBitrate(
    config: *mut OH_AVTranscoder_Config,
    bitrate: i32,
) -> OH_AVErrCode
Available on crate feature api-20 only.
Expand description

Set destination video bitrate.

§Arguments

{OH_AVTranscoder_Config*} config Pointer to an OH_AVTranscoder_Config instance

{int32_t} bitrate Destination video bitrate.

§Returns

  • Function result code. [AV_ERR_OK] if the execution is successful. [AV_ERR_INVALID_VAL] if input config is nullptr or bitrate value is invalid.

Available since API-level: 20