hi_mpi_vo_set_chn_param

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

The Atlas Training Series Product does not support this API.

Description

This API works with the VPSS function (by calling hi_mpi_sys_bind to bind with the VPSS). After the aspect ratio parameters are configured by calling this API, the VPSS implements the aspect ratio based on the parameter settings.

Restrictions

  • This is a dynamic API. That is, you can call it when a VO device is enabled and the corresponding video layer and channel attribute are configured.
  • When the partition mode of the video layer is set to HI_VO_PARTITION_MODE_MULTI by calling hi_mpi_vo_set_video_layer_attr, the working mode of the VPSS channel is set to HI_VPSS_CHN_MODE_AUTO by calling hi_mpi_vpss_set_chn_attr, and the aspect ratio of the input image is different from that of the channel, you can set the parameters by calling this API. Otherwise, the parameter settings are invalid.
  • Currently, this API does not support multiple processes.

Prototype

hi_s32 hi_mpi_vo_set_chn_param(hi_vo_layer layer, hi_vo_chn chn, const hi_vo_chn_param *chn_param)

Parameters

Parameter

Input/Output

Description

layer

Input

Video layer ID.

Value range: [0, 9)

Graphics layers and cascade video layers are not supported.

chn

Input

VO channel ID.

Value range: [0, 64)

chn_param

Input

Pointer to video channel parameters.

Returns