MT2523 API Reference  LinkIt SDK v4
Enum
HAL » G2D

Overview

Enumerations

enum  hal_g2d_status_t {
  HAL_G2D_STATUS_HW_ERROR = -6,
  HAL_G2D_STATUS_NOT_SUPPORTEDED_COLOR_FORMAT = -5,
  HAL_G2D_STATUS_INVALID_PARAMETER = -4,
  HAL_G2D_STATUS_NOT_SUPPORTED = -3,
  HAL_G2D_STATUS_BUSY = 0,
  HAL_G2D_STATUS_OK = 1
}
 This enum defines the return status of the G2D API. More...
 
enum  hal_g2d_codec_type_t { HAL_G2D_CODEC_TYPE_HW = 0 }
 This enum defines the G2D codec type. More...
 
enum  hal_g2d_get_handle_mode_t {
  HAL_G2D_GET_HANDLE_MODE_BLOCKING = 0,
  HAL_G2D_GET_HANDLE_MODE_NON_BLOCKING
}
 This enum defines the G2D get handle mode. More...
 
enum  hal_g2d_color_format_t {
  HAL_G2D_COLOR_FORMAT_RGB565 = 0,
  HAL_G2D_COLOR_FORMAT_RGB888,
  HAL_G2D_COLOR_FORMAT_BGR888,
  HAL_G2D_COLOR_FORMAT_ARGB8565,
  HAL_G2D_COLOR_FORMAT_ARGB6666,
  HAL_G2D_COLOR_FORMAT_ARGB8888,
  HAL_G2D_COLOR_FORMAT_PARGB8565,
  HAL_G2D_COLOR_FORMAT_PARGB6666,
  HAL_G2D_COLOR_FORMAT_PARGB8888,
  HAL_G2D_COLOR_FORMAT_UYVY
}
 This enum defines the G2D color format. More...
 
enum  hal_g2d_supported_function_t {
  HAL_G2D_SUPPORTED_FUNCTION_BITBLT = 0,
  HAL_G2D_SUPPORTED_FUNCTION_RECTFILL,
  HAL_G2D_SUPPORTED_FUNCTION_FONT,
  HAL_G2D_SUPPORTED_FUNCTION_OVERLAY,
  HAL_G2D_SUPPORTED_FUNCTION_DITHERING
}
 This enum defines the G2D supported functions. More...
 
enum  hal_g2d_overlay_layer_t {
  HAL_G2D_OVERLAY_LAYER0 = 0,
  HAL_G2D_OVERLAY_LAYER1 = 1,
  HAL_G2D_OVERLAY_LAYER2 = 2,
  HAL_G2D_OVERLAY_LAYER3 = 3
}
 This enum defines the G2D overlay layer. More...
 
enum  hal_g2d_overlay_layer_function_t {
  HAL_G2D_OVERLAY_LAYER_FUNCTION_FONT = 0,
  HAL_G2D_OVERLAY_LAYER_FUNCTION_RECTFILL,
  HAL_G2D_OVERLAY_LAYER_FUNCTION_BUFFER
}
 This enum defines the G2D overlay layer function. More...
 
enum  hal_g2d_rotate_angle_t {
  HAL_G2D_ROTATE_ANGLE_0 = 0,
  HAL_G2D_ROTATE_ANGLE_90,
  HAL_G2D_ROTATE_ANGLE_180,
  HAL_G2D_ROTATE_ANGLE_270,
  HAL_G2D_ROTATE_ANGLE_MIRROR_0,
  HAL_G2D_ROTATE_ANGLE_MIRROR_90,
  HAL_G2D_ROTATE_ANGLE_MIRROR_180,
  HAL_G2D_ROTATE_ANGLE_MIRROR_270
}
 This enum defines the G2D rotation angle. More...
 
enum  hal_g2d_font_format_t {
  HAL_G2D_FONT_FORMAT_1_BIT = 0,
  HAL_G2D_FONT_FORMAT_2_BIT,
  HAL_G2D_FONT_FORMAT_4_BIT,
  HAL_G2D_FONT_FORMAT_8_BIT
}
 This enum defines the G2D font format. More...
 
enum  hal_g2d_dithering_mode_t {
  HAL_G2D_DITHERING_MODE_DISABLE = 0,
  HAL_G2D_DITHERING_MODE_RANDOM,
  HAL_G2D_DITHERING_MODE_FIXED_PATTERN
}
 This enum defines the G2D dithering mode. More...
 

Enumeration Type Documentation

This enum defines the G2D codec type.

Enumerator
HAL_G2D_CODEC_TYPE_HW 

Hardware codec.

This enum defines the G2D color format.

Enumerator
HAL_G2D_COLOR_FORMAT_RGB565 

RGB565.

HAL_G2D_COLOR_FORMAT_RGB888 

RGB888.

HAL_G2D_COLOR_FORMAT_BGR888 

BGR888.

HAL_G2D_COLOR_FORMAT_ARGB8565 

ARGB8565.

HAL_G2D_COLOR_FORMAT_ARGB6666 

ARGB6666.

HAL_G2D_COLOR_FORMAT_ARGB8888 

ARGB8888.

HAL_G2D_COLOR_FORMAT_PARGB8565 

PARGB8565.

HAL_G2D_COLOR_FORMAT_PARGB6666 

PARGB6666.

HAL_G2D_COLOR_FORMAT_PARGB8888 

PARGB8888.

HAL_G2D_COLOR_FORMAT_UYVY 

UYVY.

This enum defines the G2D dithering mode.

Enumerator
HAL_G2D_DITHERING_MODE_DISABLE 

Disable dithering.

HAL_G2D_DITHERING_MODE_RANDOM 

Random dithering.

HAL_G2D_DITHERING_MODE_FIXED_PATTERN 

Fixed-pattern dithering.

This enum defines the G2D font format.

Enumerator
HAL_G2D_FONT_FORMAT_1_BIT 

1-bit per font pixel.

HAL_G2D_FONT_FORMAT_2_BIT 

2-bit per font pixel.

HAL_G2D_FONT_FORMAT_4_BIT 

4-bit per font pixel.

HAL_G2D_FONT_FORMAT_8_BIT 

8-bit per font pixel.

This enum defines the G2D get handle mode.

Enumerator
HAL_G2D_GET_HANDLE_MODE_BLOCKING 

Blocking mode.

HAL_G2D_GET_HANDLE_MODE_NON_BLOCKING 

Non Blocking mode.

This enum defines the G2D overlay layer function.

Enumerator
HAL_G2D_OVERLAY_LAYER_FUNCTION_FONT 

Font.

HAL_G2D_OVERLAY_LAYER_FUNCTION_RECTFILL 

Rectangle fill.

HAL_G2D_OVERLAY_LAYER_FUNCTION_BUFFER 

Buffer.

This enum defines the G2D overlay layer.

Enumerator
HAL_G2D_OVERLAY_LAYER0 

Layer 0.

HAL_G2D_OVERLAY_LAYER1 

Layer 1.

HAL_G2D_OVERLAY_LAYER2 

Layer 2.

HAL_G2D_OVERLAY_LAYER3 

Layer 3.

This enum defines the G2D rotation angle.

Enumerator
HAL_G2D_ROTATE_ANGLE_0 

No rotation.

HAL_G2D_ROTATE_ANGLE_90 

Rotate 90 degrees.

HAL_G2D_ROTATE_ANGLE_180 

Rotate 180 degrees.

HAL_G2D_ROTATE_ANGLE_270 

Rotate 270 degrees.

HAL_G2D_ROTATE_ANGLE_MIRROR_0 

Mirror.

HAL_G2D_ROTATE_ANGLE_MIRROR_90 

Mirror and then rotate 90 degrees.

HAL_G2D_ROTATE_ANGLE_MIRROR_180 

Mirror and then rotate 180 degrees.

HAL_G2D_ROTATE_ANGLE_MIRROR_270 

Mirror and then rotate 270 degrees.

This enum defines the return status of the G2D API.

Enumerator
HAL_G2D_STATUS_HW_ERROR 

Hardware error.

HAL_G2D_STATUS_NOT_SUPPORTEDED_COLOR_FORMAT 

Unsupported color format.

HAL_G2D_STATUS_INVALID_PARAMETER 

Invalid parameter, such as failed on the range check.

HAL_G2D_STATUS_NOT_SUPPORTED 

The G2D function is not supported.

HAL_G2D_STATUS_BUSY 

The G2D hardware is busy.

HAL_G2D_STATUS_OK 

Successful.

This enum defines the G2D supported functions.

Enumerator
HAL_G2D_SUPPORTED_FUNCTION_BITBLT 

Bitblt function.

HAL_G2D_SUPPORTED_FUNCTION_RECTFILL 

Rectfill function.

HAL_G2D_SUPPORTED_FUNCTION_FONT 

Font function.

HAL_G2D_SUPPORTED_FUNCTION_OVERLAY 

Overlay function.

HAL_G2D_SUPPORTED_FUNCTION_DITHERING 

Dithering function.