hi_mpi_vo_send_frame

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

Sends video images to a specified output channel for display.

Prototype

hi_s32 hi_mpi_vo_send_frame(hi_vo_layer layer, hi_vo_chn chn, const hi_video_frame_info *frame_info, hi_s32 milli_sec)

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)

frame_info

Input

Pointer to video data information.

In single mode, the width and height of the picture read by the user cannot be greater than those of the target channel.

milli_sec

Input

Timeout parameter. Value options are as follows (only 0 is supported):
  • -1: The block mode is used until pictures are transmitted.
  • 0: non-blocking mode
  • > 0: timeout interval, in milliseconds. If a timeout occurs, the waiting stops.

Returns

Restrictions

  • Before calling this API, ensure that the channel is enabled.
  • The input video data information must comply with the VO data. The configured width and height must be consistent with those of the actual image. They cannot be fewer than 32 pixels and must be 2 pixel-aligned.
  • In single mode, only one channel can be displayed. Therefore, after the channel priority is set by calling hi_mpi_vo_set_chn_attr, only the channel with the highest priority is displayed.
  • Currently, this API does not support multiple processes.
  • Currently, only the single mode is supported. The multi mode is reserved and is not intercepted currently.