hi_mpi_vo_set_video_layer_attr

Applicability

Product

Supported

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

Description

Sets the attributes of a video layer.

Prototype

hi_s32 hi_mpi_vo_set_video_layer_attr(hi_vo_layer layer, const hi_vo_video_layer_attr *layer_attr)

Parameters

Parameter

Input/Output

Description

layer

Input

VO layer ID.

Value range: [0, 9)

Graphics layers and cascade video layers are not supported.

layer_attr

Input

Pointer to the structure of the attributes of a video layer.

Returns

Restrictions

  • You can set the attributes of a video layer only when the device bound to the video layer is enabled.
  • You can set the attributes of a video layer (except x and y of display_rect in layer_attr in single mode) only when the video layer is disabled.
  • Currently, this API does not support multiple processes.

See Also

For the API call sequence, see Video Decoding, Processing, and Display (NVR Scenario).