hi_tde_quick_copy

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Adds a quick copy command to a specified TDE job to copy the operation area of the source bitmap to that of the destination bitmap.

Restrictions

  • Before calling this API, call hi_tde_open to open the TDE device and call hi_tde_begin_job to obtain a valid job handle.
  • The area size, length, and width range is [1, 4096].
  • If the destination bitmap contains the operation area, no other operation is required. If the operation area intersects with the destination bitmap, the operation area is cropped. The valid operation area is the gray intersection part. If the specified operation area does not intersect with the bitmap, the relationship between the bitmap and the operation area is shown in the following figure.

  • Quick copy does not support format conversion. The source bitmap and destination bitmap must be the same format. Currently, only the ARGB8888 format is supported.
  • Fast copy does not support resizing. If the sizes of the source and destination operation areas are different, copy and transfer are performed based on the smallest common area of the source and destination operation area.
  • The specified operation area must have a common area with the specified bitmap. Otherwise, an error code is returned.
  • This API does not support multiple processes.

Prototype

hi_s32 hi_tde_quick_copy(hi_s32 handle, const hi_tde_single_src*single_src)

Parameters

Parameter

Input/Output

Description

handle

Input

Handle to a TDE job.

single_src

Input

Defines the information about the single-source bitmap area and destination bitmap area.

Returns