hi_mpi_vi_set_vi_vpss_mode
The
The
Description
Sets the working modes of the VI and VPSS modules, including online mode and offline mode.
Restrictions
You must call this API after calling hi_mpi_sys_init and before creating a VI pipe and VPSS group. The following table describes different modes.
Mode |
VI Working Mode (Between the FE and BE in the VI) |
VPSS Working Mode (Between the VI and VPSS) |
|---|---|---|
Online |
After the FE processing in the VI module is complete, the video streams are directly sent to the BE for further processing without being written to the DDR. In VI online mode, the concurrency specification is reduced to one channel. It is not supported by the current version. |
After the VI processing is complete, the video streams are directly sent to the VPSS for further processing without being written to the DDR. In this mode, the VI channel does not generate image data. The final image data needs to be obtained from the VPSS channel. |
Offline |
After the FE processing in the VI module is complete, the video streams are output and written to the DDR. The BE reads the images from the DDR for further processing. |
After the VI processing is complete, the video streams are output and written to the DDR and the image data can be obtained from the VI channel. In offline mode, you can also bind the VI channel to the VPSS by calling hi_mpi_sys_bind. In this case, the bound VPSS automatically reads images from the DDR for further processing. |
Prototype
hi_s32 hi_mpi_vi_set_vi_vpss_mode(const hi_vi_vpss_mode *vi_vpss_mode)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
vi_vpss_mode |
Input |
VI and VPSS working modes. |
Returns
- 0: success
- Other values: failure. For details, see VI Return Codes.