hi_tde_quick_fill

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Adds the quick fill command to a specified TDE job to fill the operation area of the destination bitmap with the specified color value. For details, see the following figure.

Prototype

hi_s32 hi_tde_quick_fill(hi_s32 handle, const hi_tde_none_src *none_src, hi_u32 fill_data)

Parameters

Parameter

Input/Output

Description

handle

Input

Handle to a TDE job.

none_src

Input

Defines the bitmap information of the none-source bitmap operation area.

fill_data

Input

Filling color.

Returns

Restrictions

  • Before calling this API, call hi_tde_open to open the TDE device and call hi_tde_begin_job to obtain a valid task handle.
  • The area size, length, and width range is [1, 4096].
  • The specified operation area must have a common area with the specified bitmap. Otherwise, an error code is returned.
  • Currently, only the ARGB8888 format is supported.
  • This API does not support multiple processes.