hi_mpi_vi_set_pipe_frame_dump_attr

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

Sets the dump attributes of a physical VI pipe.

Prototype

hi_s32 hi_mpi_vi_set_pipe_frame_dump_attr(hi_vi_pipe vi_pipe, const hi_vi_frame_dump_attr *dump_attr)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

Physical pipe ID.

Value range: [0, 4)

dump_attr

Input

Dump attributes of a physical VI pipe.

Returns

Restrictions

  • To dump data in different pixel formats, you can call the hi_mpi_vi_create_pipe API to specify the pixel format when creating a pipe before dumping. The pixel format must be aligned with the actual output format of the sensor module.
  • To dump the cropped image, you can call the hi_mpi_vi_set_pipe_pre_crop API to set the pipe cropping before dumping.
  • To dump compressed or non-compressed images, you can call the hi_mpi_vi_create_pipe API to specify the compression type when creating a pipe before dumping.
  • Virtual pipes are not supported.
  • If the current API is called after the pipe is started by calling hi_mpi_vi_start_pipe, the images that are not fetched by calling hi_mpi_vi_get_pipe_frame in the internal buffer are cleared.

See Also

For details about the API call sequence, see Video Data Obtaining.