graphic_graphic_utils_lite:基于图形子系统的硬件适配与公共工具组件项目

Graphic fundamental components | 图形基础组件

Branch278Tags56
FilesLast commitLast update
5 years ago
5 years ago
10 months ago
9 months ago
1 year ago
5 years ago
1 year ago
5 years ago
2 years ago
3 years ago
3 years ago
1 year ago
3 years ago

Utils

Introduction

The Utils module defines the common data structure in the graphics subsystem and provides a lite OS adaptation layer, which includes the lock, thread, and file system.

Figure 1 Dependency between modules of the graphics subsystem

Directory Structure

/foundation/graphic/graphic_utils_lite
├── frameworks               # Framework code
│   ├── diagram              # 2d graphic engine implementation
│   │   ├── depiction        # Smooth curve point generation algorithm
│   │   ├── rasterizer       # rasterizer handling
│   │   ├── vertexgenerate   # vertex generation
│   │   └── vertexprimitive  # vertex primitive generation
│   └── hals                 # Hardware adaptation layer
├── interfaces               # APIs
│   ├── innerkits            # APIs between modules
│   │   └── hals             # APIs of the hardware adaptation layer
│   └── kits                 # External APIs
│       └── gfx_utils
└── test                     # Unit testing

Compilation and Building

# Generate the libgraphic_utils.so file in the out directory of the product folder through GN compilation.
hb build graphic_utils_lite

Description

Usage

  • Utils is used in UI, surface, and WMS modules. For details, see the related source code.
  • The test folder provides unit testing for each utils API. Refer to it for the usage of utils.

Repositories Involved

Graphic subsystem

window_window_manager_lite

graphic_surface_lite

arkui_ui_lite

Hals

Introduction

The Hals module adapts and encapsulates the functions related to the driver subsystem and platform, including FrameBuffer, graphics (GFX), and single instruction, multiple data (SIMD).

Figure 1 Dependency between modules of the graphics subsystem and that between graphics modules and the driver subsystem

Directory Structure

/foundation/graphic/graphic_utils_lite
├── frameworks      # Framework code
│   ├── hals        # Hardware adaptation layer
│   ├── linux       # Linux platform adaptation layer
│   ├── liteos      # LiteOS platform adaptation layer
│   └── windows     # Windows platform adaptation layer
├── interfaces      # APIs
│   ├── innerkits   # APIs between modules
│   │   └── hals    # APIs of the hardware adaptation layer
│   └── kits        # External APIs
└── test            # Unit testing

Compilation and Building

# Generate the libgraphic_hals.so file in the out directory of the product folder through GN compilation.
hb build graphic_utils_lite

Description

Usage

  • Hals is used in UI, surface, and WMS modules. For details, see the related source code.

Repositories Involved

Graphic subsystem

window_window_manager_lite

graphic_surface_lite

arkui_ui_lite

graphic_graphic_utils_lite

Introduction

Graphic fundamental components | 图形基础组件

Customize your domain