hi_mpi_vo_send_frame
The
The
Description
Sends video images to a specified output channel for display.
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.
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 |
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) |
frame_info |
Input |
Pointer to video data information. In single mode, the width and height of the image read by the user cannot be greater than those of the target channel. |
milli_sec |
Input |
Timeout parameter. The options are as follows (only 0 is supported now):
|
Returns
- 0: success
- Other values: failure. For details, see VO Return Codes.
Parent topic: VO