hi_mpi_vo_set_chn_frame_rate

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Sets the display frame rate of a specified VO channel.

Restrictions

  • Before calling this API, you need to set the attributes of a VO channel by calling hi_mpi_vo_set_chn_attr. Otherwise, an error code indicating failure is returned.
  • Calling hi_mpi_vo_enable_chn will reset the channel to play at the normal speed. Therefore, you need to call this API to control the play after the channel is enabled.
  • If the channel is disabled, calling hi_mpi_vo_set_chn_attr will reset the channel frame rate to the display frame rate.

    The channel frame rate is the frame rate at which the channel processes image data, while the display frame rate is the frame rate of the display device. The display frame rate can be configured when the video layer attributes are set by calling hi_mpi_vo_set_video_layer_attr.

  • When the VO is bound to the VPSS, the frame rate set by calling this API takes effect.
  • Currently, this API does not support multiple processes.

Prototype

hi_s32 hi_mpi_vo_set_chn_frame_rate(hi_vo_layer layer, hi_vo_layer chn, hi_s32 frame_rate)

Parameters

Parameter

Input/Output

Description

layer

Input

Video layer ID.

Value range: [0, 9)

This parameter is valid only when layer is set to 0 or 1.

chn

Input

VO channel ID.

Value range: [0, 64)

frame_rate

Input

Channel frame rate. The frame rate can be set to Nx, where N is any integer in the range of [1,64] and x is the device frame rate.

Returns