Releases: Tencent/libpag
v4.1.41
主要修改内容:
(1)PAGView 渲染优化,确保首帧渲染,避免出现初始播放跳帧问题;
(2)修复 Android 平台 vivo V1901A 渲染异常问题;
(3)修复 Android 平台内存不足时文件解码失败引起的 crash;
(4)修复 Android 平台内存不足时线程创建 crash 问题
Main revisions:
(1)PAGView rendering optimization ensures the rendering of the first frame and avoids the problem of frame skipping during initial playback;
(2)Fix the abnormal rendering problem of vivo V1901A on Android platform;
(3) Fix the crash caused by file decoding failure when the Android platform has insufficient memory;
(4)Fix the thread creation crash problem when the Android platform has insufficient memory
v4.1.29
4.1 正式版本发布,相对于 PAG 4.0 版本,主要修改内容:
(1)平台支持: 新增支持微信小程序(完整版本)
(2)AE 特性新增支持:
- 图层样式-渐变叠加、蒙版羽化和不透明度、亮度轨道遮罩/亮度轨道反转遮罩
- 文本路径选项:路径、反转路径、垂直于路径、强制对齐、首字边距、末字边距
(3)API 更新:
- PAGText API 层面增加支持 leading 和 tracking 修改;
- PAGView 增加 makeSnapshot 接口,支持在 PAGView 层面获取单帧渲染数据
(4)性能优化:“图层样式-投影” 使用新的模糊算法,相比之前,性能提升约 30%
(5)制品库变更:
- iOS 端移除 avmv7 架构支持
- 从 4.1 版本开始,版本号位数由之前的 4 位修改为 3 位
(6)问题修复
- 修复文本渲染模糊问题
- 修复 Android 平台外部字体注册获取失败 crash 问题;
- 修复 Android 平台 ManagerFragment 获取失败引起的 crash 问题
- 修复 Android 平台部分特效场景使用 crash 问题
- 修复内存申请失败引起的 pag 文件解码 crash 问题
- 修复 Android 平台 glBufferData 使用过程中的 OOM 问题
The official version 4.1 is released. Compared with the PAG 4.0 version, the main revisions are:
(1)Platform support: Added support for WeChat Mini Program (full version)
(2)New support for AE features:
- Layer Styles - Gradient Overlay, Mask Feather and Opacity, Brightness Track Mask/Brightness Track Reverse Mask
- Text path options: Path, Reverse Path, Perpendicular to Path, Forced Alignment, First Margin, Last Margin
(3)API update:
- PAGText API level adds support for leading and tracking modifications;
- PAGView adds a makeSnapshot interface to support obtaining single-frame rendering data at the PAGView level.
(4)Performance optimization: "Layer Style - Projection" uses a new blur algorithm, which improves performance by about 30% compared to before.
(5) Prebuilt library changes:
- Remove avmv7 architecture support on iOS
- Starting from version 4.1, the number of digits in the version number has been changed from the previous 4 digits to 3 digits.
(6) Issue fixes
- Fix text rendering blur issue
- Fix the crash issue of failed external font registration and acquisition on Android platform;
- Fix the crash issue caused by failure to obtain ManagerFragment on Android platform
- Fix the crash issue when using some special effects scenarios on the Android platform
- Fix pag file decoding crash caused by memory application failure
- Fix the OOM issue during the use of glBufferData on the Android platform
v4.1.12
主要修改内容:
(1)修复文本渲染模糊问题;
(2) Web 平台 BMP 预合成分辨率大于 4K 时关闭变速功能;
(3)修复 Android 平台外部字体注册获取失败 crash 问题;
(4)修复 Android 平台内存不足线程创建失败 crash 问题;
(5)修复 Android 平台 ManagerFragment 获取失败引起的 crash 问题
Main revisions:
(1) Fix text rendering blur problem;
(2)Turn off the variable speed function when the Web platform BMP composition resolution is greater than 4K;
(3)Fix the crash issue of failed registration and acquisition of external fonts on the Android platform;
(4)Fix the crash issue of thread creation failure due to insufficient memory on the Android platform;
(5)Fix the crash issue caused by failure to obtain ManagerFragment on Android platform
v4.0.5.82
主要修改内容:
(1)修复 Android 平台外部字体注册获取失败 crash 问题;
(2)修复 Android 平台内存不足线程创建失败 crash 问题;
(3)修复 Android 平台 ManagerFragment 获取失败引起的 crash 问题
Main revisions:
(1) Fixed the crash issue of failed registration and acquisition of external fonts on the Android platform;
(2)Fix the crash issue of thread creation failure due to insufficient memory on the Android platform;
(3) Fix the crash issue caused by failure to obtain ManagerFragment on Android platform
v4.1.8
主要修改内容:
(1)AE 特性新增支持:
- 图层样式-渐变叠加、蒙版羽化和不透明度、亮度轨道遮罩/亮度轨道反转遮罩
- 文本路径选项:路径、反转路径、垂直于路径、强制对齐、首字边距、末字边距
(2)PAGText API 层面增加支持 leading 和 tracking 修改;
(3)性能优化:“图层样式-投影” 使用新的模糊算法,相比之前,性能提升约 30%
(4)iOS 端移除 avmv7 架构支持;
(5)从 4.1 版本开始,版本号位数由之前的 4 位修改为 3 位
Main revisions:
(1) New support for AE features:
- Layer Styles - Gradient Overlay, Mask Feather and Opacity, Brightness Track Mask/Brightness Track Reverse Mask
- Text path options: Path, Reverse Path, Perpendicular to Path, Forced Alignment, First Margin, Last Margin
(2) PAGText API level adds support for leading and tracking modifications;
(3)Performance optimization: "Layer Style - Projection" uses a new blur algorithm, which improves performance by about 30% compared to before.
(4)Remove avmv7 architecture support on iOS;
(5) Starting from version 4.1, the number of digits in the version number has been changed from the previous 4 digits to 3 digits.
v4.0.5.79
主要修改内容:
(1)修复 iOS 端部分场景 crash;
(2)修复 Android 端多线程操作crash;
(3)修复 带 Mask 图层图片渲染模糊问题;
(4)修复 Android PAGView 播放过程中设置setComposition(null)crash 问题;
(5)回退 Android 侧 StrictMode 编译警告修改(会引起文本渲染首次绘制无法显示)
Main revisions:
(1)Fix crash in some scenarios on iOS;
(2) Fix multi-threaded operation crash on Android;
(3)Fix the rendering blur problem of images with Mask layer;
(4) Fix the crash issue of setComposition (null) during Android PAGView playback;
(5)Fallback the StrictMode compilation warning modification on the Android side (which will cause text rendering to fail to be displayed for the first time)
v4.0.5.66
主要修改内容:
(1) 字体注册允许 fontStyle 传空匹配, 对齐 PAG 3.0 版本逻辑;
(2)修复 Andorid 侧 PAGView 尺寸改变渲染异常问题;
(3)修复 Android 侧 INSTALL_FAILED_CONFLICTING_PROVIDER 报错导致无法安装 APP 问题;
(4)修复 Android 侧 StrictMode 开启编译警告
Main revisions:
(1) Font registration allows fontStyle to pass empty matching and align PAG 3.0 version logic;
(2) Fix the abnormal rendering issue when the size of PAGView on Andorid side changes;
(3) Fix the issue where the APP cannot be installed due to the INSTALL_FAILED_CONFLICTING_PROVIDER error on the Android side;
(4) Fix Android side StrictMode enabled compilation warning
v4.0.5.51
主要修改内容:
(1)PAGViewListener 增加 onAnimationUpdate方法,增加动效播放过程中单帧渲染回调接口;
(2)修改 Android 侧 ConcurrentModificationException crash;
(3)iOS 侧内部类 AppMonitor 修改为 PAGAppMonitor,防止类名冲突;
(4)修复 Android 侧 onAnimationEnd方法回调异常;
(5)PAGView setComposition方法支持子线程调用;
(6)修复填充模式场景下 PAGView 渲染异常;
(7)修复部分场景下文本动画渲染异常;
(8)修复部分含有 BMP 预合成的 pag 文件在华为手机上渲染黑边问题
注: 从此版本开始,PAG 在 Android 和 iOS 端的 SDK 中会增加数据上报。上报内容:App 名称和 App ID(Bundle ID或PackageName)。上报频率:每个 SDK 新版本仅上报一次。
这些信息仅用于分析 PAG 方案的普及情况,不涉及任何业务方运营数据也完全无法用于定位用户侧个人信息,因此不会影响业务方在隐私合规性方面的审查要求。整个上报流程通过了腾讯法务团队的严格检测和审查,并按照相关法律要求已披露至对外公开的个人信息保护规则声明中,详细说明请查阅:https://privacy.qq.com/document/preview/01e79d0cc7a2427ba774b88c6beff0fd
Main revisions:
(1)PAGViewListener adds the onAnimationUpdate method and adds a single-frame rendering callback interface during animation playback;
(2)Modify the Android side ConcurrentModificationException crash;
(3)The internal class AppMonitor on the iOS side is modified to PAGAppMonitor to prevent class name conflicts;
(4)Fix the callback exception in onAnimationEnd method on Android side;
(5)The PAGView setComposition method supports sub-thread calls;
(6) Fix PAGView rendering exception in fill mode scenarios;
(7)Fix text animation rendering exception in some scenarios;
(8) Fix the issue that some pag files containing BMP composition render black edges on Huawei mobile phones
Note: Starting from this version, PAG will add data reporting in the SDK on Android and iOS. Reported content: App name and App ID (Bundle ID or PackageName). Reporting frequency: Each new SDK version will be reported only once.
This information is only used to analyze the popularity of the PAG scheme. It does not involve any business side operational data and cannot be used to locate user-side personal information. Therefore, it will not affect the business side's review requirements for privacy compliance. The entire reporting process has passed the strict testing and review of Tencent’s legal team, and has been disclosed in the public statement of personal information protection rules in accordance with relevant legal requirements. For detailed instructions, please refer to: https://privacy.qq.com/document/preview/01e79d0cc7a2427ba774b88c6beff0fd
v4.0.5.17_release_20220704
主要修改内容:
(1)Android 侧修改软解注册的时机,解决部分场景软解无效问题;
(2)完善 PAGView 刷新逻辑,修复 PAGView remove 后 add 无法播放问题;
(3)Windows 端支持读取系统字体;
(4)Web 端修改:
- PAGSurface 上 "fromCanvas" 替代 "FromCanvas" , "fromTexture"替代"FromTexture" , "fromRenderTarget" 替代 "FromRenderTarget"
- PAGComposition 上 "make" 替代 "Mak".
- PAGSolidLayer 上 "make" 替代 "Make".
- PAGImageLayer 上 "make" 替代 "Make".
- 增加 “BackendContext" 类
- libpag 上增加 "SDKVersion"接口用于获取版本号
- PAGView 上增加 "onAnimationUpdate" 事件,增加 "setComposition" , "matrix" , "setMatrix" , "getLayersUnderPoint" 函数接口
- 支持注销软件解码器
- 当获取 PAGLayer 会返回对应类型的 TypeLayer
Main revisions:
(1)The Android side modifies the timing of soft decryption registration to solve the issue of invalid soft decryption in some scenarios;
(2) Improve PAGView refresh logic and fix the issue that add cannot play after PAGView remove;
(3)Windows supports reading system fonts;
(4)Web side modification:
- On PAGSurface, "from Canvas" replaces "FromCanvas", "from Texture" replaces "FromTexture", and "from RenderTarget" replaces"FromRenderTarget"
- "make" replaces "Make" on PAGComposition.
- "make" replaces "Make" on PAGSolidLayer.
- "make" replaces "Make" on PAGImageLayer.
- Add "BackendContext" class
- Add "SDKVersion" interface to libpag to obtain version number
- Add "onAnimationUpdate" event to PAGView, add "setComposition" , "matrix" , "setMatrix" , "getLayersUnderPoint" function interface
- Support unregistering software decoders
- When getting PAGLayer, the corresponding type of TypeLayer will be returned.
v4.0.5.11_release_20220602
主要修改内容:
(1)修改Android侧JNI crash问题;
(2)修复web端文本渲染异常问题
Main revisions:
(1)Modify the JNI crash issue on Android side;
(2)Fix the abnormal text rendering issue on the web side