hi_mpi_vi_get_pipe_frame
Applicability
|
Product |
Supported |
|---|---|
|
|
x |
|
|
x |
|
|
√ |
|
|
x |
|
|
x |
Description
Obtains the data of a physical VI pipe.
Prototype
hi_s32 hi_mpi_vi_get_pipe_frame(hi_vi_pipe vi_pipe, hi_video_frame_info *frame_info, hi_s32 milli_sec)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
vi_pipe |
Input |
Physical pipe ID. Value range: [0, 4) |
|
frame_info |
Output |
Pointer to the VI pipe data. |
|
milli_sec |
Input |
Timeout parameter.
|
Returns
- 0: success
- Other values: failure. For details, see VI Return Codes.
Restrictions
- This API can be called only after a VI pipe is created by calling hi_mpi_vi_create_pipe.
- Call hi_mpi_vi_set_pipe_frame_dump_attr to enable the dump function and set the depth. Otherwise, no temporary buffer space is reserved internally. As a result, no image data can be obtained.
- Virtual pipes are not supported.
Parent topic: VI