hi_mpi_vpc_roundview_stitching

Description

Delivers a surround-view stitching task.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

The Ascend 310P AI Processor does not support this API in the current version.

Restrictions

Surround-view stitching tasks cannot be concurrently delivered in one channel. A surround-view stitching task can be delivered through hi_mpi_vpc_roundview_stitching only after the call to hi_mpi_vpc_get_process_result.

Prototype

hi_s32 hi_mpi_vpc_roundview_stitching(hi_vpc_chn chn, hi_roundview_stitching_pic_param *roundview_stitching_pic_param, hi_s32 *task_id, hi_s32 milli_sec)

Parameters

Parameter

Input/Output

Description

chn

Input

Image processing channel ID, whose value range is [0, 256). The maximum number of channels is 256.

roundview_stitching_pic_param

Input

Input and output image information.

  • Input:
    • Number of input images: 4.
    • Input image format: YUV420SP and YVU420SP.
    • Input image resolution: [10 x 6, 4096 x 4096].
  • Output:
    • Number of output images: 1.
    • Output image format: YUV420SP, YVU420SP, RGB888, and BGR888.
    • Output image resolution: [10 x 6, 4096 x 4096].

milli_sec

Input

Timeout interval (ms). The surround-view stitching process is long. Therefore, you are advised to set this parameter to -1 or set the timeout period to a value greater than 10 ms.

  • -1: blocking mode.
  • 0: non-blocking mode.
  • > 0: timeout interval (timeout mode).

task_id

Output

Task ID, used to identify a task.

Returns

API Call Sequence

For details, see API Call Sequence.