hi_mpi_vi_create_pipe

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

x

Atlas A2 training products / Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

Atlas inference products

x

Atlas training products

x

Description

Creates a VI pipe.

Prototype

hi_s32 hi_mpi_vi_create_pipe(hi_vi_pipe vi_pipe, hi_vi_pipe_attr *pipe_attr)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

Pipe ID.

Value range: [0, 12)

pipe_attr

Input

Pointer to the pipe attribute structure.

Static attributes.

Returns

Restrictions

  • The attributes such as size, pixel_format, and bit_width of the physical pipe must be the same as those of the VI device. Otherwise, an error occurs.
  • The same pipe ID cannot be created repeatedly.
  • Data compression is supported as long as the input image width is within the width supported by the pipe. Only pipe 0 and pipe 1 support compression. When the size of the input image is greater than 4096 pixels, compression is not supported.
  • In WDR mode, multiple physical pipes must be created and bound to the same device that is enabled with WDR. During the switchover, all the physical pipes that are bound to the device must be destroyed and then recreated. Do not use the physical pipes that have been used last time but have not been destroyed. Otherwise, errors may occur.

See Also

For the API call sequence, see Video Data Obtaining.