hi_mpi_vo_set_chn_param

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

This MPI must be used together with the VPSS function (the VO is bound to the VPSS by calling hi_mpi_sys_bind). You can set the aspect ratio parameters by calling this MPI. The VPSS implements the aspect ratio function based on the parameters configured by calling this MPI.

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. That is, you can call it when a VO device is enabled and the corresponding video layer and channel attribute are configured.
  • When the split 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 of the VPSS, and the aspect ratio of the input image is different from that of the channel, you can set the parameters by calling this MPI. Otherwise, the parameter settings are invalid.
  • Currently, this API does not support multiple processes.