mirror of
https://github.com/openharmony/graphic_graphic_cangjie_wrapper.git
synced 2026-07-01 22:33:59 -04:00
merge fix_readme into master
Adjust the architecture
Created-by: pupuHan
Commit-by: liuhan
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)
### 二、建议测试周期和提测地址
建议测试完成时间:xxxx.xx.xx
投产上线时间:xxxx.xx.xx
提测地址:CI环境/压测环境
测试账号:
### 三、变更内容
* 3.1 关联PR列表
* 3.2 数据库和部署说明
1. 常规更新
2. 重启unicorn
3. 重启sidekiq
4. 迁移任务:是否有迁移任务,没有写 "无"
5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"
* 3.4 其他技术优化内容(做了什么,变更了什么)
- 重构了 xxxx 代码
- xxxx 算法优化
* 3.5 废弃通知(什么字段、方法弃用?)
* 3.6 后向不兼容变更(是否有无法向后兼容的变更?)
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
自测测试结论:
### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
检查点:
| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx | 否 | 需要 | 不需要 |
| | | | |
接口测试:
性能测试:
并发测试:
其他:
See merge request: openharmony-sig/graphic_graphic_cangjie_wrapper!18
This commit is contained in:
@@ -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
@@ -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 |
Reference in New Issue
Block a user