hi_mpi_vo_pause_chn

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Pauses a specified VO channel.

Prototype

hi_s32 hi_mpi_vo_pause_chn(hi_vo_layer layer, hi_vo_chn chn)

Parameters

Parameter

Input/Output

Description

layer

Input

VO 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)

Returns

Restrictions

  • This API can be called only after the channel is enabled by calling hi_mpi_vo_enable_chn.
  • If the partition mode of the video layer is set to HI_VO_PARTITION_MODE_SINGLE by calling hi_mpi_vo_set_video_layer_attr, the specified channel cannot be paused. In this case, the parameters set by calling this API are invalid, but the video display result is not affected.
  • When video images are sent to a specified output channel for display by calling hi_mpi_vo_send_frame, at least two frames need to be rotated (that is, two hi_video_frame_info structure variables need to be defined). Otherwise, the pause function is invalid.
  • A channel can be paused repeatedly, and no error code indicating failure is returned.
  • Currently, this API does not support multiple processes.