hi_mpi_vo_set_video_layer_attr
The
The
Description
Sets the attributes of a video layer.
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.
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 |
Video 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
- 0: success
- Other values: failure. For details, see VO Return Codes.
Parent topic: VO