Adjust the architecture

Signed-off-by: liuhan <liuhan53@huawei.com>
This commit is contained in:
liuhan
2025-09-25 21:46:05 +08:00
parent 0377f91910
commit a12e48cd4e
4 changed files with 21 additions and 25 deletions
+12 -14
View File
@@ -2,7 +2,7 @@
## Introduction
The graphic_cangjie_wrapper is a Cangjie API encapsulated on OpenHarmony based on Graphic_2D capabilities. Provides Cangjie color management capability API. The currently open file management Cangjie interface only supports standard devices.
The graphic_cangjie_wrapper is a Cangjie API encapsulated on OpenHarmony for application developers to provide Cangjie color management capability API. The currently open file management Cangjie interface only supports standard devices.
## System Architecture
@@ -15,17 +15,16 @@ As shown in the architecture diagram:
Interface layer description:
- Color Management API: Cangjie public interfaces based on color management encapsulation exposed to users.
- Color Management API: Cangjie public interfaces based on color management encapsulation exposed to developers.
Framework layer description:
- Color Management Wrapper: Provide gamut-dependent configuration capabilities.
- Cangjie graphics FFI interface definition: Responsible for defining the C language interoperable Cangjie interface, which is used to realize Cangjie graphics.
- Color Management Wrapper: Provide gamut-dependent configuration capabilities. This encapsulation layer is a Cangjie encapsulation implementation of color management functionality based on graphic_2d.
Cangjie Graphics Dependencies:
- graphic_2d: Provides C language interfaces that can be called by the graphics Cangjie interface to complete image effects, rendering effects and other effects processing capabilities, including: multi-effect series and parallel processing, adding rendering effects, control interaction effects and other related capabilities during layout.
- Cangjie ark interop: Encapsulates public interfaces for C language interoperation, and provides Cangjie tag class implementation for annotating Cangjie APIs, as well as providing BusinessException exception class definitions thrown to users.
- graphic_2d: Provides native functionality implementation of image effects, rendering effects and other effects processing capabilities that can be called by the graphics Cangjie wrapper, including: multi-effect series and parallel processing, adding rendering effects, control interaction effects and other related capabilities during layout.
- Cangjie Interop: Encapsulates public interfaces for C language interoperation, and provides Cangjie tag class implementation for annotating Cangjie APIs, as well as providing BusinessException exception class definitions thrown to users.
- Cangjie DFX: Responsible for providing log interfaces, providing Cangjie interfaces that can be called by the graphics Cangjie interface to print logs at critical paths.
## Directory Structure
@@ -40,7 +39,6 @@ foundation/graphic/graphic_cangjie_wrapper
│ └── color_space_manager # Color management module
└── test # Cangjie test code
└── color_manager # Color management tests
└── test # Color management test project
```
## Usage Guidelines
@@ -49,17 +47,17 @@ The current Cangjie Graphics interface provides only Color Management.
Color management, including creating standard color spaces and custom color spaces, as well as methods for obtaining color space related information. Supports developers in setting/getting color space related information in image processing and camera management.
For Graphic-related APIs, please refer to [Color Management API](https://gitcode.com/openharmony-sig/arkcompiler_cangjie_ark_interop/blob/master/doc/API_Reference/source_en/apis/ArkGraphics2D/cj-apis-color_manager.md).
For usage guidelines, please refer to [Color Management Development Guide](https://gitcode.com/openharmony-sig/arkcompiler_cangjie_ark_interop/blob/master/doc/Dev_Guide/source_en/graphics/cj-color-manager-development-guide.md).
## Constraints
Compared with the API capabilities provided by ArkTS, the following functions are not supported at the moment:
Compared with the API capabilities provided by ArkTS, the following functions are not supported:
- The rendering capabilities of the UI framework.
- 2D rendering, 3D rendering and rendering engine management.
- Related capabilities of the animation engine.
- Ability to process image effects, rendering effects.
- The display and memory management capabilities.
- [Image processing capabilities for image effects and rendering effects](https://gitcode.com/openharmony/docs/blob/master/en/application-dev/reference/apis-arkgraphics2d/js-apis-effectKit.md).
- [Variable frame rate feature for self-drawing UI](https://gitcode.com/openharmony/docs/blob/master/en/application-dev/reference/apis-arkgraphics2d/js-apis-graphics-displaySync.md).
- [HDR (High Dynamic Range) capability](https://gitcode.com/openharmony/docs/blob/master/en/application-dev/reference/apis-arkgraphics2d/js-apis-hdrCapability.md)
- [Text layout and font management capabilities](https://gitcode.com/openharmony/docs/blob/master/en/application-dev/reference/apis-arkgraphics2d/js-apis-graphics-text.md).
- [Effect cascading capability](https://gitcode.com/openharmony/docs/blob/master/en/application-dev/reference/apis-arkgraphics2d/js-apis-uiEffect.md)
## Code Contribution
+9 -11
View File
@@ -2,7 +2,7 @@
## 简介
图形图像仓颉接口是在OpenHarmony上面向开发者进行应用开发使用Graphic_2D能力封装的仓颉API实现。提供了仓颉的色彩管理能力API,当前开放的文件管理仓颉接口仅支持standard设备。
图形图像仓颉封装为OpenHarmony应用开发者提供了仓颉的色彩管理能力API,当前开放的文件管理仓颉接口仅支持standard设备。
## 系统架构
@@ -20,13 +20,12 @@
框架层说明:
- 色彩管理封装:提供色域相关配置能力。该封装层是基于graphic_2d对色彩管理功能进行的仓颉封装实现。
- 仓颉图形图像FFI接口定义:负责定义被Cangjie语言调用的C语言互操作接口,用于实现仓颉图形图像能力。
仓颉图形图像依赖部件引用说明:
- graphic_2d:提供可被图形图像仓颉接口调用的完成图片效果、渲染特效等效果处理的能力的C语言接口,包括:多效果的串联、并联处理,在布局时加入渲染特效、控件交互特效等相关能力。
- 仓颉互操作:封装C语言互操作公共接口,并提供仓颉标签类实现用于对仓颉API进行标注,以及提供抛向用户的BusinessException异常类定义。
- 仓颉DFX:负责提供日志接口,提供可被图形图像仓颉接口调用的在关键路径处打印日志能力的仓颉接口。
- graphic_2d:提供可被图形图像仓颉封装调用的图片效果、渲染特效等效果处理的能力的native功能实现,包括:多效果的串联、并联处理,在布局时加入渲染特效、控件交互特效等相关能力。
- cangjie_ark_interop:封装C语言互操作公共接口,并提供仓颉标签类实现用于对仓颉API进行标注,以及提供抛向用户的BusinessException异常类定义。
- hiviewdfx_cangjie_wrapper:负责提供日志接口,提供可被图形图像仓颉接口调用的在关键路径处打印日志能力的仓颉接口。
## 目录
@@ -40,7 +39,6 @@ foundation/graphic/graphic_cangjie_wrapper
│ └── color_space_manager # 色彩管理模块
└── test # 仓颉测试代码
└── color_manager # 色彩管理测试
└── test # 色彩管理测试工程
```
## 使用说明
@@ -55,11 +53,11 @@ foundation/graphic/graphic_cangjie_wrapper
与ArkTS提供的API能力相比,暂不支持以下功能:
- UI框架的绘制能力
- 2D渲染、3D渲染和渲染引擎的管理
- 动画引擎的相关能力。
- 图片效果、渲染特效能力
- 显示与内存管理能力。
- [图片处理能力图片效果、渲染特效功能](https://gitcode.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkgraphics2d/js-apis-effectKit.md)
- [自绘制UI的可变帧率功能](https://gitcode.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkgraphics2d/js-apis-graphics-displaySync.md)
- [HDR(高动态显示范围)功能](https://gitcode.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkgraphics2d/js-apis-hdrCapability.md)
- [文本布局和字体管理功能](https://gitcode.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkgraphics2d/js-apis-graphics-text.md)
- [效果级联功能](https://gitcode.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkgraphics2d/js-apis-uiEffect.md)
## 参与贡献
Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 64 KiB