hi_mpi_vi_create_pipe

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Creates a VI pipe.

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.

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