hi_mpi_vi_set_pipe_frame_dump_attr

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

☓

Atlas A3 training products / Atlas A3 inference products

☓

Atlas A2 training products / Atlas A2 inference products

☓

Atlas 200I/500 A2 inference products

√

Atlas inference products

☓

Atlas training products

☓

Function

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 specify the pixel format when creating a pipe by calling hi_mpi_vi_create_pipe before dumping data. The pixel format must be aligned with the actual output format of the sensor module.
  • To dump cropped images, you can call hi_mpi_vi_set_pipe_pre_crop to set pipe cropping before dumping.
  • To dump compressed or non-compressed images, you can specify the compression type when creating a pipe by calling hi_mpi_vi_create_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.

Reference

For the API call sequence, see Video Data Obtaining.