hi_mpi_vi_set_pipe_frame_dump_attr
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
☓ |
|
|
☓ |
|
|
√ |
|
|
☓ |
|
|
☓ |
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
- 0: success
- Other values: failure. For details, see VI Return Codes.
Restrictions
- Before calling this API, you must call the hi_mpi_vi_create_pipe API to create a pipe.
- 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.
Parent topic: VI