Skip to content

v4.2.55

Compare
Choose a tag to compare
@kevingpqi123 kevingpqi123 released this 12 Apr 12:11
· 81 commits to release/4.2 since this release

主要修改内容:
(1)AE 特性新增支持

  • 3D 图层 (3D Layer)
  • 色相/饱和度(Hue/Saturation)
  • 亮度和对比度(Brightness & Contrast)

(2)接口新增

  • 新增 PAGImageView 类:针对 UI 场景设计的专用播放组件,基于图片解码器+磁盘缓存模式,能够避免 OpenGL 跟 UI 视图桥接的额外开销,大幅降低内存和 CPU 占用
  • 新增 PAGDecoder 类:支持通过 PAGFile 或 组合的 PAGComposition 创建,将 PAG 当做标准图片解码器使用,快捷获取某一帧的渲染内容
  • PAGSurface 类:新增 copyPixelsTo 接口,支持将 PAGSurface 渲染的像素内容拷贝至业务方给定的内存地址

(3)能力新增

  • 占位图替换视频,视频文件可以像普通图片一样一键替换到指定的占位图上,快速实现视频模板能力
  • 导出视频文件,替换占位图或修改文本之后的 PAG 动效可以快速导出成视频文件
  • 音频播放,内置音频播放能力,包含 PAG 素材自带的音频以及用户替换的视频包含的音频轨道
  • 素材加密播放,支持通过桌面 PAGViewer 工具加密后的 PAG 素材进行授权播放

(4)桌面端配套工具

  • macOS 平台导出插件和桌面预览工具全面支持苹果 M1 芯片架构
  • 桌面端预览工具支持素材加密以及批量添加水印的能力

(5)能力优化

  • 文本渲染支持含有多个 unicode 的 emoji 表情 (Android 端需要使用带 harfbuzz 后缀的版本)
  • DisplacementMap 现已支持所有图层类型,不限制用于 BMP 预合成图层
  • PAGView 首帧播放渲染优化,避免出现首帧跳帧的情况
  • 优化存在多个图层交错引用同一个 BMP 预合成情况下的播放卡顿问题

(6)问题修复:

  • iOS 平台前后台切换偶现 crash 修复
  • PAGImageView 反馈问题修复

Main revisions:
(1)New support for AE features

  • 3D Layer
  • Hue/Saturation
  • Brightness & Contrast

(2)New interface added

  • Added PAGImageView class: a dedicated playback component designed for UI scenarios. 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: it 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

(3)New capabilities

  • Placeholder image replaces video. The video file can be replaced on the specified placeholder image with one click just like an ordinary image, quickly realizing the video template capability.
  • Export video files. The PAG animation after replacing the placeholder image or modifying the text can be quickly exported into a video file.
  • Audio playback. The built-in audio playback capability includes the audio that comes with the PAG material and the audio track contained in the user-replaced video
  • Encrypted material playback capability. It supports authorized playback of PAG materials encrypted through the desktop PAGViewer tool

(4) Desktop supporting tools

  • macOS platform export plug-in and desktop preview tool fully support Apple M1 chip architecture
  • The desktop preview tool supports material encryption and the ability to add watermarks in batches

(5) Capability optimization

  • Text rendering supports emoji expressions containing multiple unicodes (Android needs to use the version with harfbuzz suffix)
  • DisplacementMap now supports all layer types and is not restricted to BMP composition layers
  • PAGView first frame playback rendering optimization to avoid frame skipping in the first frame
  • Optimize the playback lag problem when multiple layers interleave and reference the same BMP composition.

(6) Problem fix:

  • Fix for occasional crashes when switching between front and back on the iOS platform
  • Fix the PAGImageView feedback issues