v4.2.17
Pre-release
Pre-release
主要修改内容:
(1)版本新增
- Android 端新增 harfbuzz 版本(带 -harfbuzz 后缀),用于支持多字节 emoji 表情的显示。
- 新增企业版 SDK(带 -enterprise 后缀),包含音频播放、素材加密,占位图一键替换视频,导出视频文件等高阶功能。
(2)AE 特性:
- 色相/饱和度(Hue/Saturation)
- 亮度和对比度(Brightness & Contrast)
- 3D 图层 (3D Layer)
(3)接口新增:
- 新增 PAGImageView 类:针对 UI 场景设计的专用播放组件,基于图片解码器+磁盘缓存模式,能够避免 OpenGL 跟 UI 视图桥接的额外开销,大幅降低内存和 CPU 占用。
- 新增 PAGDecoder 类:支持通过 PAGFile 或 组合的 PAGComposition 创建,将 PAG 当做标准图片解码器使用,快捷获取某一帧的渲染内容。
- PAGSurface 类:新增 copyPixelsTo 接口,支持将 PAGSurface 渲染的像素内容拷贝至业务方给定的内存地址。
(4)能力优化:
- 文本渲染支持含有多个 unicode 的 emoji 表情 (Android 侧需要使用 harfbuzz 版本)。
- DisplacementMap 现已支持所有图层类型,不限制用于 BMP 预合成图层。
- PAGView 播放首帧渲染优化,避免出现首帧跳帧播放。
- 优化存在多个图层交错引用同一个 BMP 预合成情况下的播放卡顿问题。
Main revisions:
(1)New version
- A new harfbuzz version (with -harfbuzz suffix) is added to Android to support the display of multi-byte emoji expressions.
- A new enterprise version SDK (with -enterprise suffix) is added, including audio playback, material encryption, one-click replacement of video with placeholder image, export of video files and other advanced functions.
(2)AE features:
- Hue/Saturation
- Brightness & Contrast
- 3D Layer
(3) New interface:
- Added PAGImageView class: a dedicated playback component designed for UI scenes. Based on the image decoder + disk cache mode, it can avoid the additional overhead of bridging OpenGL and UI views, and significantly reduce memory and CPU usage.
- Added PAGDecoder class: supports creation through PAGFile or PAGComposition combined, using PAG as a standard image decoder to quickly obtain the rendering content of a certain frame.
- PAGSurface class: Added copyPixelsTo interface to support copying the pixel content rendered by PAGSurface to the memory address given by the business party.
(4) Capability optimization:
- Text rendering supports emoji expressions containing multiple unicodes (the Android side requires the harfbuzz version).
- DisplacementMap now supports all layer types and is not restricted to BMP precomposed layers.
- The rendering of the first frame of PAGView playback is optimized to avoid skipping the first frame of playback.
- Optimize the playback lag issue when multiple layers interleave reference to the same BMP pre-synthesis.