hi_mpi_vo_bind_layer

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

Binds a video layer or graphics layer to a device. Video layer binding is not supported in the current version.

Prototype

hi_s32 hi_mpi_vo_bind_layer(hi_vo_layer layer, hi_vo_dev dev)

Parameters

Parameter

Input/Output

Description

layer

Input

Video/Graphics layer ID.

Value range: [0,9)

dev

Input

VO device ID.

Value range: [0, 2)

Returns

Restrictions

  • The existing binding relationship of a graphics layer cannot be re-bound. You need to unbind it and then bind it again.
  • If a graphics layer is enabled, you cannot bind it by calling this API.
  • For graphics layers, only G2, G3, and G4 can call this API. G0 and G1 are fixedly bound and cannot be modified.
  • Graphics layer G2 and G3 can be bound to DHD0 or DHD1. G4 can be bound to DHD1 or not. G3 and G4 cannot be bound to DHD1 at the same time.
  • Currently, this API does not support multiple processes.