Add PAG export support in viewer: PNG sequence, single frame PNG and APNG formats#2755
Add PAG export support in viewer: PNG sequence, single frame PNG and APNG formats#2755shlzxjp merged 42 commits intoTencent:mainfrom
Conversation
… recommended by the viewer to be 6.2.0
| if (extraParams.contains("exportFrame")) { | ||
| exportFrame = extraParams.value("exportFrame").toInt(); | ||
| } | ||
| task = new PAGExportPNGTask(pagFile, path, exportFrame); |
There was a problem hiding this comment.
这里只new创建了task,没有释放是因为在qml将task与progressWindow的task属性绑定起来了,当progressWindow的task变化时,会在后续的某个时间点自动释放task
| } | ||
|
|
||
| auto PAGExportAPNGTask::onFrameFlush(double progress) -> void { | ||
| PAGExportPNGTask::onFrameFlush(progress * 0.9); |
There was a problem hiding this comment.
这里将progress*0.9是因为导出apng之前是先将pag文件导出为png序列帧,然后再将png合并为apng,剩下的0.1的进度会在合并apng完毕之后补齐
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2755 +/- ##
==========================================
- Coverage 77.40% 77.37% -0.04%
==========================================
Files 419 419
Lines 22270 22270
Branches 6366 6366
==========================================
- Hits 17239 17232 -7
- Misses 3777 3778 +1
- Partials 1254 1260 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
这个文件可以不用review,是直接嵌入的第三方库源码,只简单的修改了一下
There was a problem hiding this comment.
这个文件可以不用review,是直接嵌入的第三方库源码,只简单的修改了一下
There was a problem hiding this comment.
这个文件可以不用review,是直接嵌入的第三方库源码,只简单的修改了一下
There was a problem hiding this comment.
这个文件可以不用review,是直接嵌入的第三方库源码,只简单的修改了一下
1、viewer支持将pag文件导出为png序列帧
2、viewer支持将pag文件的某一帧导出为png文件
3、viewer支持将pag文件导出为apng文件