hi_mpi_vo_set_chn_param

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

☓

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

☓

Function

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

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

VO 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

Restrictions

  • This is a dynamic API. This means 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.