hi_mpi_vi_set_pipe_pre_crop
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
☓ |
|
☓ |
|
√ |
|
☓ |
|
☓ |
Function Description
Sets the cropping attributes of a physical VI pipe at the input end. The cropping is performed before the VI device outputs data to the VI pipe for processing.
Prototype
hi_s32 hi_mpi_vi_set_pipe_pre_crop(hi_vi_pipe vi_pipe, const hi_crop_info *crop_info)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
vi_pipe |
Input |
Pipe ID. Value range: [0, 12) |
crop_info |
Input |
Attributes of the cropped region. |
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.
- This API must be called before the hi_mpi_vi_start_pipe API is called to start the pipe. After the pipe is started, this API cannot be called.
Parent topic: VI