比较提交

..
作者 SHA1 备注 提交日期
mac b6f73ebb66 release: record the verified 1.21.2 mosaic and tracking installer 2026-11-08 18:25:42 +08:00
mac 6a979f16a8 fix: reject mask tracking when the host has no valid reference frame 2026-11-08 18:16:02 +08:00
mac 4b7e348ff5 perf: bound local mosaic rendering and skip unused tracking grayscale 2026-11-08 17:56:14 +08:00
mac f07b116398 docs: publish 1.21.1 article and verify installer download 2026-11-08 17:37:29 +08:00
mac 9a3559172d docs: verify 1.21.1 release download and source recovery 2026-11-08 17:08:22 +08:00
mac ad4e5e7a82 release: record the verified 1.21.1 installer 2026-11-08 17:06:18 +08:00
mac 2bab7347a5 docs: retain the parallel cache investigation handoff 2026-11-08 17:04:59 +08:00
mac 6959c21820 docs: verify installed 1.21.1 scope replay and face rendering 2026-11-08 17:04:14 +08:00
mac 28453f8a57 docs: record persistent FxPlug cache feasibility 2026-11-08 17:02:34 +08:00
mac 98d80970e8 fix: replay the last presented scope frame at the clip out point 2026-11-08 16:57:15 +08:00
mac c791ddcb76 fix: match paused scope samples at timeline frame cadence 2026-11-08 16:48:43 +08:00
mac 8a434b8e40 fix: replay paused scopes and bound per-pixel face masks 2026-11-08 16:41:55 +08:00
mac cdf6ddc1d7 docs: verify 1.21.0 release download and source recovery 2026-11-08 16:30:19 +08:00
mac 3a5ead0ce0 release: record 1.21.0 preview performance and verified installer 2026-11-08 16:26:54 +08:00
mac 90e512aabe perf: bound preview memory and reuse layer admission 2026-11-08 16:15:11 +08:00
mac c2c71f3dbc test: exercise neutral GPU readback with Metal texture uploads 2026-11-08 16:13:35 +08:00
mac ccc34734e3 perf: defer unused GPU work and streamline preview rendering 2026-11-08 16:10:13 +08:00
mac c9e4d3f330 docs: record default render performance audit 2026-11-08 15:58:02 +08:00
mac ad9ee19bf8 docs: record verified spider-scope release and recovery 2026-11-08 15:44:21 +08:00
共修改 57 个文件,包含 2807 行新增和 280 行删除

没有与搜索条件相匹配的文件

+19
查看文件
@@ -0,0 +1,19 @@
{
"title": "大鱼调色 1.21.1 公测版|首开波形修复与人脸肤色保护提速",
"content": "<!-- wp:paragraph -->\n<p>大鱼调色是适用于 Final Cut Pro 和 Motion 的原生 FxPlug 4 调色插件。1.21.1(构建 117)公测版修复片尾暂停时首次打开控制面板没有波形的问题,并加快了人脸肤色保护的预览渲染。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>本文主下载已更新为 1.21.1(构建 117)。同一个 PKG 已包含“大鱼调色”整合效果和全部 16 个独立模块效果,以及所需的完整主 App,无需另外下载安装独立模块。</strong></p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>官方原始安装包不加密,不限制安装数量。</strong> 安装和使用无需登录、激活码或机器码。原始 PKG 可以原样转发,请保持安装包完整。禁止二次加密或加上一机一码后分发。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.21.1 首开波形与人脸肤色保护优化</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p><strong>片尾暂停时,打开控制面板即可显示波形。</strong>在 Final Cut Pro 12.4 中,用 60p 素材和 25p 项目复测。停在片尾首次打开及同帧重开,亮度波形、RGB 分列、直方图和矢量图都自动显示,每种各有 57,600 个有效取样。两次打开都无需移动播放头或修改调色。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>开启人脸肤色保护后,减少轮廓计算。</strong>GPU 在实际脸部轮廓的外接范围内计算精细蒙版,保留眼、眉和嘴部的排除规则。下表是 Mac mini M4 上同一人像、开启人脸肤色保护的单帧渲染中位数。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:table -->\n<figure class=\"wp-block-table\"><table><thead><tr><th>分辨率</th><th>优化前</th><th>1.21.1</th></tr></thead><tbody><tr><td>1080p</td><td>308.08 毫秒</td><td>13.47 毫秒</td></tr><tr><td>4K</td><td>1176.07 毫秒</td><td>22.22 毫秒</td></tr></tbody></table></figure>\n<!-- /wp:table -->\n\n<!-- wp:paragraph -->\n<p>每组计时取 12 帧,六组对照的末帧逐字节一致。表中耗时只覆盖插件的肤色保护渲染。正式安装版通过 1008 项原生检查,PKG 已签名、公证并通过 20 项展开检查。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.19.1 默认预览卡顿修复</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p>修复整合效果在刚添加、未调整任何参数时明显拖慢预览的问题。默认状态不再执行无效的人脸检测和整帧人脸轮廓蒙版运算;已有参数、预设及模板继续兼容。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>在本机 Apple M4 的相同人像基准中,1080p 单帧平均渲染耗时由约 324 毫秒降至 5.2 毫秒,4K 由约 1249 毫秒降至 17 毫秒。这组数据记录 1.19.1 的默认效果渲染。已启用人脸肤色保护的对照见上方 1.21.1 更新。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>正式版本通过 994 项检查,并在 Final Cut Pro 12.4 中重新添加整合效果复测默认播放。安装包已签名、公证,包含整合效果、16 个独立模块和对应预览图。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">新增独立模块示意</h2>\n<!-- /wp:heading -->\n\n<!-- wp:image {\"id\":15879,\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full\"><img src=\"https://dayu.media/wp-content/uploads/2026/11/1793978887-775df3c76d48009.png\" alt=\"Final Cut Pro 效果浏览器中的大鱼调色独立模块,包括基础调整、曲线、HSL、肤色保护与 CST 色彩空间转换\" class=\"wp-image-15879\" width=\"1364\" height=\"748\" /><figcaption class=\"wp-element-caption\">Final Cut Pro「效果 → 大鱼调色」中的独立模块示意</figcaption></figure>\n<!-- /wp:image -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.19.0 全 Apple Vision 跟踪</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p><strong>马赛克蒙版改用 Apple Vision 目标跟踪。</strong>先在“局部马赛克”菜单中勾选目标蒙版,再到控制面板逐个执行正向、反向或双向跟踪。转身时保留蒙版的宽高比例,减少框过度变窄。已有轨迹不会自动改变,需要重新跟踪。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>短时丢失后尝试重新找到目标。</strong>丢失时冻结最后确认的外观,根据之前运动做最多约 0.8 秒的暂时预测;连续两次确认目标后,再用丢失前后位置补齐中间轨迹。超过范围仍未确认则停止,末尾未确认预测不保存为正常关键帧,补齐的片段会提示复核。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>本版同时修复控制面板延后布局访问已释放视图时的插件服务闪退。正式安装后通过 979Line truncated
"excerpt": "大鱼调色 1.21.1(117)修复片尾暂停时首次打开控制面板不显示波形的问题,并加快人脸肤色保护渲染。Mac mini M4 同一人像的 4K 单帧中位数从 1176.07 降至 22.22 毫秒。",
"resource": {
"cao_original_filename": "大鱼调色-1.21.1.pkg"
},
"seo": {
"title": {
"value": "大鱼调色 1.21.1 公测版|首开波形修复与人脸肤色保护提速"
},
"description": {
"value": "大鱼调色 1.21.1 公测版适用于 Final Cut Pro 和 Motion。FCP 实测片尾首次打开控制面板即显示四种示波器。Mac mini M4 的 4K 人脸肤色保护单帧渲染中位数由 1176.07 降至 22.22 毫秒。原始 PKG 已签名公证,包含整合效果和 16 个独立模块。"
},
"keywords": {
"value": "大鱼调色,Final Cut Pro,Motion,FxPlug4,调色插件,仿制图章,蒙版跟踪,逐帧预览,示波器,人脸肤色保护"
}
}
}
+16
查看文件
@@ -0,0 +1,16 @@
# 大鱼调色 1.21.0(114)
- GPU 管线在工具首次使用时准备。未调整的独立效果可跳过通用调色和查找纹理,中性画面保留透明度、负值和超白。
- 无蒙版的 CST 合并两次全帧处理。示波器取样与最终输出共用 GPU 提交,保留暂停帧缓存。
- 检查器减少重复读参和布局更新,连续修改参数时减少宿主往返。
Apple Silicon,macOS 14.6 或更高版本。安装前保存并退出 Final Cut Pro 和 Motion。正式安装版通过 1050 项原生检查,包含 21 组独立 CST 对照。Final Cut Pro 12.4 实测播放、混合滑杆、复位和四种示波器。
| 项目 | 内容 |
| --- | --- |
| 实际编译提交 | `90e512aabe72fff30046b4bf18d6a35f91c0c113` |
| 安装包 | `大鱼调色-1.21.0.pkg` |
| 字节数 | 44508770 |
| SHA-256 | `ec1a57f23bf369d7a7841848d71d8ab78a7c229cbb5abe1c502e9964f87dbbcb` |
| APP 公证 | `505ed5a4-7b32-49a2-8eef-70c7757a98b4` |
| PKG 公证 | `29d5f921-6cd4-48a4-856a-2632f9a85e2b` |
+15
查看文件
@@ -0,0 +1,15 @@
# 大鱼调色 1.21.1(117)
- 修复控制面板在片尾暂停时首开没有波形。FCP 12.4 用 60p 素材和 25p 项目实测,首次打开及同帧重开均自动显示四种示波器。
- 人脸肤色保护的 Metal 轮廓计算限制到脸部外接范围。M4 同一公开人像的单帧渲染中位数,1080p 从 308.08 降至 13.47 ms,4K 从 1176.07 降至 22.22 ms。六组对照末帧逐字节一致。
Apple Silicon,macOS 14.6 或更高版本。安装前保存并退出 Final Cut Pro 和 Motion。已通过 1008 项正式安装原生检查与 20 项 PKG 展开检查。
| 项目 | 内容 |
| --- | --- |
| 实际编译提交 | `98d80970e83e30e4883a76d8f740f2fca5d05e7c` |
| 安装包 | `大鱼调色-1.21.1.pkg` |
| 字节数 | 44509639 |
| SHA-256 | `bdc63a1b1030ccad6960031cb9f2ec8297aa90f8d4acce2057eb5ba7750a289b` |
| APP 公证 | `eeda9002-5e87-4a33-83d3-9163a14283ba` |
| PKG 公证 | `dbddc544-aa94-4279-8f92-37597c264313` |
+16
查看文件
@@ -0,0 +1,16 @@
# 大鱼调色 1.21.2(119)
- 局部马赛克的 Metal 渲染跳过钢笔轮廓外的逐段计算,无人脸命中时跳过马赛克通道。M4 4K 双钢笔蒙版中位数从 42.75 降到 13.84 ms。
- 指定目标追踪省去不需要的整帧灰度处理。M4 4K 取图预处理中位数从 6.00 降到 3.54 ms。相同输入的 192 张渲染输出及 24 张彩色追踪输入逐字节一致。
- 检查宿主参考时间,避免对无效时间发起分析。FCP 12.4 的有效画面复测写入 27 个正向轨迹键和 284 个双向轨迹键,并核对随动遮挡。
Apple Silicon,macOS 14.6 或更高版本。安装前保存并退出 Final Cut Pro 和 Motion。已通过 1010 项正式安装原生检查、17 套模板核对和 20 项安装包展开检查。耗时为渲染或取图阶段测试。
| 项目 | 内容 |
| --- | --- |
| 实际编译提交 | `6a979f16a828e17284c8f04647c79ac65811d3dc` |
| 安装包 | `大鱼调色-1.21.2.pkg` |
| 字节数 | 44509704 |
| SHA-256 | `01ee76d2302d0d1fc54b1ff5a3397c386467324db5f391d0b5dfd48c1e93b9df` |
| APP 公证 | `7344dd1a-62ba-4e82-8dc1-36cb220c4942` |
| PKG 公证 | `add05c02-616e-471f-a53a-8aa7c230ef52` |
+34
查看文件
@@ -1,3 +1,37 @@
# 2026-11-08 首次示波器和人脸肤色保护 1.21.1(117)
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。实际编译提交 `98d80970e83e30e4883a76d8f740f2fca5d05e7c`,发行标签 `v1.21.1-scope-face-20261108` 指向 `ad4e5e7a823bb451f45755d0ab331f08f6211239`。独立 HTTPS 检出核对编译节点 812 个及发行节点 817 个文件的内容,构建输入一致,Git 完整性通过,无 LFS 指针或子模块。[恢复记录](verification/Recovery1.21.1.json)
克隆后以 `git switch --detach <完整提交>` 恢复编译源码。Xcode 27.1、FxPlug SDK 4.3.5、Apple Silicon、macOS 14.6+。使用 `tools/deliver.py` 执行 Release 构建、签名、公证和安装。正式路径 `/Library/Plug-Ins/FxPlug/大鱼调色.app`,主 ID `com.dayu.color`,服务 `com.dayu.color.XPC`,团队 B3W25FX5H5。证书私钥和公证登录单独恢复。FCP 12.4 用暂停在片尾的 60p 素材与 25p 项目确认首开和重开四种示波器。正式安装原生检查 1008 项通过。[安装](verification/Delivery1.21.1.json) · [宿主](verification/HostScopes1.21.1.json)
`Packaging/build_pkg.py` 使用正式 APP 打包。PKG 公证 `dbddc544-aa94-4279-8f92-37597c264313` Accepted,20 项展开验包通过。包 44509639 字节,SHA-256 `bdc63a1b1030ccad6960031cb9f2ec8297aa90f8d4acce2057eb5ba7750a289b`。公测 Release **415** 的附件 **61** 已完成草稿和发布后下载校验。[发行页](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.21.1-scope-face-20261108) · [验包](verification/Package1.21.1.json) · [附件验证](verification/Release1.21.1.json) · [开发交接](开发交接.md)
---
# 2026-11-08 流畅性优化 1.21.0(114)
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。实际编译提交 `90e512aabe72fff30046b4bf18d6a35f91c0c113`,发行标签 `v1.21.0-fluidity-20261108` 指向 `3a5ead0ce07eb2ed3009490af316b9edec186c62`。独立 HTTPS 恢复核对 805 与 810 个文件的 Git 哈希,构建输入一致,Git 完整性通过,无 LFS 指针或子模块。[恢复记录](verification/Recovery1.21.0.json)
用 Xcode 27.1、FxPlug SDK 4.3.5、Apple Silicon 和锁定的 ColorManagement 依赖恢复。检出上述编译提交后使用 `tools/deliver.py` 构建、签名、公证并从正式路径验收,再通过 `Packaging/build_pkg.py` 生成正式 PKG。主 ID `com.dayu.color`,服务 `com.dayu.color.XPC`,团队 B3W25FX5H5,固定安装 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。发布证书、私钥、公证 profile 与 Git 登录独立恢复。
APP 公证 `505ed5a4-7b32-49a2-8eef-70c7757a98b4` Accepted,1050 项正式安装原生检查及 FCP 12.4 播放、调参与示波器验收通过。PKG 公证 `29d5f921-6cd4-48a4-856a-2632f9a85e2b` Accepted,20 项验包、192 条载荷权限、票据和 Gatekeeper 通过。安装包 44508770 字节,SHA-256 `ec1a57f23bf369d7a7841848d71d8ab78a7c229cbb5abe1c502e9964f87dbbcb`。本机通过独立安装 APP 验收。[安装](verification/Delivery1.21.0.json) · [FCP](verification/HostFluidity1.21.0.json) · [验包](verification/Package1.21.0.json)
Release **414** 的安装包附件 **60** 已发布。草稿和发布后均完整下载核对字节数及 SHA-256。[发行页](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.21.0-fluidity-20261108) · [附件地址与核验](verification/Release1.21.0.json) · [开发交接](开发交接.md)
---
# 2026-11-08 蜘蛛盘矢量示波器 1.20.2(113)
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。实际编译提交 `046411ba8b2c2bf8549601b2e5a080fd9dccd31b`,发行标签 `v1.20.2-spider-scope-20261108` 指向 `bc9021271d5e4992a6a63011e4ff197812029ab3`。独立远端克隆分别核对 798 与 802 个跟踪文件,Git 完整性通过,无 LFS 指针或子模块,发行标签与编译节点的构建输入一致。[恢复记录](verification/Recovery1.20.2.json)
恢复 Git 登录后克隆仓库,用 `git switch --detach <完整编译提交>` 还原工程。Xcode 27.1、FxPlug SDK 4.3.5、Apple Silicon、macOS 14.6+ 与锁定的 ColorManagement 依赖。使用 `tools/deliver.py` 构建、签名、公证及正式安装,完成 FCP 验收后输入 complete。主 ID `com.dayu.color`、服务 `com.dayu.color.XPC`、团队 B3W25FX5H5,唯一正式安装 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。证书、私钥与公证凭据独立恢复。
APP 公证 `e8c27c08-a78e-4be2-9adf-235e7bfad1f6` Accepted,1002 项正式安装检查通过,FCP 12.4 已在同一实片帧核对网格提亮及两处肤色线方向。安装包用 `Packaging/build_pkg.py` 从已验证的正式 APP 生成,公证 `1a6834df-840f-47da-9ee8-be6a0a808fee` Accepted,20 项展开验包、192 条载荷权限及票据通过。本机正式 APP 独立安装,验收未再次执行 PKG 安装脚本。[正式安装](verification/Delivery1.20.2.json) · [FCP 实看](verification/HostSpiderScope1.20.2.json) · [验包](verification/Package1.20.2.json)
Release **413** 保存安装包附件 **59**,大小 44505420 字节,SHA-256 `8edd792c6a9be629263baee68c4c3e7b67221ffd1e995bd8c9ab1f753eefd2b4`。草稿附件及发布后附件均完整下载验证。[Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.20.2-spider-scope-20261108) · [安装包下载](https://dayu.media/git/dayu/dayu-color/releases/download/v1.20.2-spider-scope-20261108/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.20.2.pkg) · [发行记录](verification/Release1.20.2.json) · [开发交接](开发交接.md)
---
# 2026-11-06 默认整合效果预览修复 1.19.1(110)
编译节点 `3642a1dba6cbbc4423bd6928944e0e95d76d9cfa` 已保存于 `https://dayu.media/git/dayu/dayu-color.git` 的 main。独立 HTTPS 克隆、分离检出与 778 个跟踪文件逐字节核对及 Git 完整性通过;无 LFS/子模块,未重复第三方冷构建。使用原 Xcode 27.1、FxPlug SDK 4.3.5、Release 和已有 ColorManagement 锁定依赖;`tools/deliver.py` 负责固定路径交付。签名、公证凭据不在仓库。
+13 -5
查看文件
@@ -6,6 +6,7 @@
#include <algorithm>
#include <vector>
#include <cmath>
#import <CommonCrypto/CommonDigest.h>
@interface DYDiagnosticTile : FxImageTile
- (instancetype)initWithDevice:(id<MTLDevice>)device width:(NSUInteger)width height:(NSUInteger)height;
@end
@@ -13,12 +14,14 @@
- (void)prepareFaceSupport:(FxImageTile*)source;
@end
static NSUInteger faceCalls=0;
static double facePreparationMs=0;
@interface DYPreviewBenchmarkRenderer : DYRenderer
@end
@implementation DYPreviewBenchmarkRenderer
- (void)prepareFaceSupport:(FxImageTile*)source {faceCalls++;[super prepareFaceSupport:source];}
- (void)prepareFaceSupport:(FxImageTile*)source {faceCalls++;double start=CACurrentMediaTime();[super prepareFaceSupport:source];facePreparationMs+=(CACurrentMediaTime()-start)*1000;}
@end
int main(int argc,const char*argv[]){@autoreleasepool{
bool activeFace=argc>1&&strcmp(argv[1],"--active-face")==0;
id<MTLDevice> gpu=MTLCreateSystemDefaultDevice();NSMutableArray *rows=[NSMutableArray array];
NSBitmapImageRep *portrait=(NSBitmapImageRep*)[NSBitmapImageRep imageRepWithContentsOfFile:@"tools/fixtures/astronaut.png"];
if(portrait.pixelsWide!=512||portrait.pixelsHigh!=512){fputs("Missing 512x512 public portrait fixture\n",stderr);return 1;}
@@ -30,17 +33,22 @@ int main(int argc,const char*argv[]){@autoreleasepool{
const auto reference=pixels;
id<MTLTexture> input=[src metalTextureForDevice:gpu];[input replaceRegion:MTLRegionMake2D(0,0,width,height) mipmapLevel:0 withBytes:pixels.data() bytesPerRow:width*8];
for(int mode=0;mode<3;mode++){@autoreleasepool{
DYRenderer *renderer=[DYPreviewBenchmarkRenderer new];DYUniforms u;DYDefaultUniforms(&u);if(mode==1)u.skinFaceOnly=0;if(mode==2){u.skinProtection.x=0;u.skinFaceOnly=0;}
std::vector<double> milliseconds;NSUInteger before=faceCalls;NSError *error=nil;BOOL ok=YES;
DYRenderer *renderer=[DYPreviewBenchmarkRenderer new];DYUniforms u;DYDefaultUniforms(&u);if(activeFace){u=DYToolUniforms(@{@"type":@"hsl"});u.hslHueA=(DYFloat4){40,40,40,40};u.hslHueB=u.hslHueA;u.skinProtection=(DYFloat3){1,100,28};u.skinFaceOnly=1;}if(mode==1)u.skinFaceOnly=0;if(mode==2){u.skinProtection.x=0;u.skinFaceOnly=0;}
facePreparationMs=0;std::vector<double> milliseconds;NSUInteger before=faceCalls;NSError *error=nil;BOOL ok=YES;
for(int i=0;i<14;i++){@autoreleasepool{
// A different real input each frame prevents the face raster cache from
// disguising unnecessary inference as a still-frame-only workload.
for(size_t p=0;p<pixels.size();p++)pixels[p]=p%4==3?reference[p]:(__fp16)(reference[p]*(.92+i*.01));[input replaceRegion:MTLRegionMake2D(0,0,width,height) mipmapLevel:0 withBytes:pixels.data() bytesPerRow:width*8];
double start=CACurrentMediaTime();ok=[renderer renderSource:src destination:dst uniforms:u paths:@{} spider:nil tools:nil colorManagement:nil hostPrimaries:-1 error:&error];
if(!ok){fprintf(stderr,"%s\n",error.description.UTF8String);return 1;}if(i>=2)milliseconds.push_back((CACurrentMediaTime()-start)*1000);
if(!ok){fprintf(stderr,"%s\n",error.description.UTF8String);return 1;}if(i==1)facePreparationMs=0;if(i>=2)milliseconds.push_back((CACurrentMediaTime()-start)*1000);
}}
std::sort(milliseconds.begin(),milliseconds.end());double sum=0;for(double v:milliseconds)sum+=v;
[rows addObject:@{@"width":@(width),@"height":@(height),@"mode":@[@"default",@"faceOnlyOff",@"skinOff"][mode],@"frames":@(milliseconds.size()),@"meanMs":@(sum/milliseconds.size()),@"medianMs":@(milliseconds[milliseconds.size()/2]),@"maxMs":@(milliseconds.back()),@"faceCalls":@(faceCalls-before)}];[renderer release];
id<MTLTexture> output=[dst metalTextureForDevice:gpu];
[output getBytes:pixels.data() bytesPerRow:width*8 fromRegion:MTLRegionMake2D(0,0,width,height) mipmapLevel:0];
unsigned char digest[CC_SHA256_DIGEST_LENGTH];
CC_SHA256(pixels.data(),(CC_LONG)(pixels.size()*sizeof(__fp16)),digest);
NSMutableString *hash=[NSMutableString string];for(unsigned char byte:digest)[hash appendFormat:@"%02x",byte];
[rows addObject:@{@"width":@(width),@"height":@(height),@"mode":@[activeFace?@"faceOnly":@"default",@"faceOnlyOff",@"skinOff"][mode],@"outputSHA256":hash,@"meanFacePreparationMs":@(facePreparationMs/milliseconds.size()),@"frames":@(milliseconds.size()),@"meanMs":@(sum/milliseconds.size()),@"medianMs":@(milliseconds[milliseconds.size()/2]),@"maxMs":@(milliseconds.back()),@"faceCalls":@(faceCalls-before)}];[renderer release];
}}[src release];[dst release];
}}
NSData *json=[NSJSONSerialization dataWithJSONObject:@{@"gpu":gpu.name,@"cases":rows} options:NSJSONWritingPrettyPrinted error:nil];fwrite(json.bytes,1,json.length,stdout);puts("");[gpu release];return 0;
+8 -4
查看文件
@@ -2,13 +2,15 @@
"""Link a headless benchmark against existing Release objects and run it."""
from pathlib import Path
import argparse, plistlib, subprocess
p=argparse.ArgumentParser();p.add_argument('--output',type=Path,required=True);a=p.parse_args()
p=argparse.ArgumentParser();p.add_argument('--output',type=Path,required=True);p.add_argument('--resources',type=Path);p.add_argument('--active-face',action='store_true');a=p.parse_args()
root=Path(__file__).resolve().parent.parent
cache=Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color')
objects=cache/'DerivedData/Build/Intermediates.noindex/大鱼调色.build/Release/XPC Service.build/Objects-normal/arm64'
work=cache/'performance-1.19.1/benchmark.bundle/Contents';(work/'MacOS').mkdir(parents=True,exist_ok=True)
resources=Path('/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/Resources')
if not (work/'Resources').exists():(work/'Resources').symlink_to(resources)
resources=a.resources or Path('/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/Resources')
resource_link=work/'Resources'
if resource_link.is_symlink():resource_link.unlink()
resource_link.symlink_to(resources.resolve(strict=True))
(work/'Info.plist').write_bytes(plistlib.dumps({'CFBundleExecutable':'benchmark','CFBundleIdentifier':'com.dayu.color.headless-benchmark','CFBundlePackageType':'BNDL'}))
cmd=['xcrun','clang++','-std=c++17','-O2','-mmacosx-version-min=14.6','-fno-objc-arc','-F/Library/Developer/SDKs/FxPlug.sdk/Library/Frameworks','-F/Library/Developer/Frameworks',str(root/'tools/benchmark_default_preview.mm')]
cmd += [str(x) for x in objects.glob('*.o') if x.name!='main.o' and not x.name.endswith('_lto.o')]
@@ -16,5 +18,7 @@ cmd += ['@'+str(cache/'cms-runtime/bridge-link.rsp')]
for f in ['Metal','MetalPerformanceShaders','Vision','QuartzCore','Accelerate','PluginManager','Foundation','AppKit','FxPlug','Security','CoreVideo','IOSurface','CoreMedia','CoreImage','CoreGraphics','ImageIO','UniformTypeIdentifiers','AVFoundation']:cmd+=['-framework',f]
cmd+=['-lcompression','-lz','-Wl,-rpath,/Library/Developer/Frameworks','-o',str(work/'MacOS/benchmark')]
subprocess.run(cmd,check=True,cwd=root)
with a.output.open('w') as out:subprocess.run([str(work/'MacOS/benchmark')],stdout=out,check=True,cwd=root)
benchmark=[str(work/'MacOS/benchmark')]
if a.active_face:benchmark.append('--active-face')
with a.output.open('w') as out:subprocess.run(benchmark,stdout=out,check=True,cwd=root)
print(a.output)
+70
查看文件
@@ -0,0 +1,70 @@
{
"version": "1.21.1",
"build": 117,
"articleID": 15792,
"url": "https://dayu.media/15792/",
"title": "大鱼调色 1.21.1 公测版|首开波形修复与人脸肤色保护提速",
"status": "publish",
"previousVersion": "1.19.1",
"fieldsMatch": true,
"preservedFields": [
"id",
"url",
"status",
"author",
"categories",
"tags",
"featured_media",
"prices and member access",
"original images",
"video and both covers",
"FCPX synchronization configuration",
"SEO enable switches"
],
"resourceChangedKeys": [
"cao_downurl",
"cao_original_filename"
],
"originalFilename": "大鱼调色-1.21.1.pkg",
"bytes": 44509639,
"sha256": "bdc63a1b1030ccad6960031cb9f2ec8297aa90f8d4acce2057eb5ba7750a289b",
"fullPackageDownloadVerified": true,
"downloadStaplerValid": true,
"downloadSignatureAndGatekeeperPassed": true,
"independentModuleCount": 16,
"integratedEffectCount": 1,
"packageAppAndEffectFilesVerified": true,
"frontend": [
{
"request": "normal",
"status": 200,
"titleMatch": true,
"descriptionSingleAndExact": true,
"keywordsSingleAndExact": true,
"scopeResultsAndBenchmarkTablePresent": true,
"all16ModulesPresent": true,
"originalImagesPresent": true,
"codeBlockPresent": true,
"priceAndMemberDisplayPresent": true,
"mainPackageURLNotExposed": true
},
{
"request": "fresh",
"status": 200,
"titleMatch": true,
"descriptionSingleAndExact": true,
"keywordsSingleAndExact": true,
"scopeResultsAndBenchmarkTablePresent": true,
"all16ModulesPresent": true,
"originalImagesPresent": true,
"codeBlockPresent": true,
"priceAndMemberDisplayPresent": true,
"mainPackageURLNotExposed": true
}
],
"bodyImageCount": 5,
"idempotencyKey": "dayu-color-1211-build117-article15792-20261108",
"appUpdateChannelChanged": false,
"backendSourceModified": false,
"checkedAt": "2026-11-08T17:37:28.928622+08:00"
}
+19
查看文件
@@ -0,0 +1,19 @@
{
"version": "1.20.2",
"build": 113,
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"formalPackage": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.20.2.pkg",
"registeredPaths": [
" com.dayu.color.XPC(1.1)\t35786B49-0554-4495-8E95-47C2CE9ADB64\t2026-11-08 07:38:01 +0000\t/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit"
],
"removedVerifiedTaskCopies": [
"/Volumes/备份/大鱼调色/发行包/大鱼调色-1.20.0.pkg",
"/Volumes/备份/大鱼调色/发行包/大鱼调色-1.20.1.pkg",
"/Volumes/备份/大鱼调色-1.20.2.pkg",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/spider-scope-1.20.0/1.20.0 蜘蛛盘验收.fcpxml"
],
"buildAppRemoved": true,
"notaryZipRemoved": true,
"temporaryRecoveryClonesRemoved": true,
"scope": "仅本轮生成的产物和本产品正式路径"
}
+5 -6
查看文件
@@ -2,13 +2,13 @@
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.20.2",
"build": "113",
"version": "1.21.2",
"build": "119",
"team": "B3W25FX5H5",
"notaryID": "e8c27c08-a78e-4be2-9adf-235e7bfad1f6",
"notaryID": "7344dd1a-62ba-4e82-8dc1-36cb220c4942",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "046411ba8b2c2bf8549601b2e5a080fd9dccd31b",
"sourceCommit": "6a979f16a828e17284c8f04647c79ac65811d3dc",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"installedTemplateSHA256": {
@@ -64,6 +64,5 @@
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "2f96cf158e6a274bce146b7a97141344c6e68e1185f7ac5df7991b0e854e2793",
"hostVerification": "verification/HostSpiderScope1.20.2.json"
"shaderSHA256": "65a75993de08f7be4fce3d76f24a80b7e677bd51f877f7d11333f360813b8ffd"
}
+70
查看文件
@@ -0,0 +1,70 @@
{
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.21.0",
"build": "114",
"team": "B3W25FX5H5",
"notaryID": "505ed5a4-7b32-49a2-8eef-70c7757a98b4",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "90e512aabe72fff30046b4bf18d6a35f91c0c113",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"installedTemplateSHA256": {
"大鱼调色/大鱼调色.moef": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "e4612f58eee5bf07a0a44cc5f6d65f9ca207b7f6946da938ed05f7d254ca7924",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "68e91d3747a119e684f659093cb520a7fbd495336e8a1552316e52031e975ad5",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "ca6a584dd168990870fa774df8ba3fcfce5ad2e8de4d28bd656057fdaa1dbdca",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "06fdf5964f487a7cca3d6dce6e68013d3c0ba5b5c73c4bb392c7b58f5d916212",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "595f722d3ac99555d4e22611907b6273a3fb36fea59b8949be58eb1f7d319501",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "97bcbf240f86f485299c298d90f9339aa87a2751cef475e3d6a1637144d4ab13",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "3f235de32384a3b268982609583702d28470ed91c756f1b13947454f22bf3fc0",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "c49877ada4fa0ac49fa497b62f3a3e09bfe15f0d73b352bdfbeb0a9a2b7b1aad",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "6015ecc2cc89116b05d601df920ae674bad9ad4c6e7bad1f0eac889e08cda60d",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "b653b0981e0975605d2857a87bd495885d3370d3e9bcd9dc3a59b0012bf1f79e",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "96f2d1fc2fe5ed2a8eabdf3a3bf5eb7fff145d55a0ce05807dcd834d2b8e9b32",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "be935b1e399e2a47394b54b24fc2e32eb0622ae0cd28f83e1d2d895c3c1133d6",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "7c5889c052534edd0043f439f59fe31a987c9c626d9097ce7f3d7280a888b1e3",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "a559c654976ce711d01ef5b81ccaf01df8d81a9de501780cccc519fb72c4b7f2",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "5ddb7e97d718d1b78cbc162b042aed1debdd0fecd12b8596590d5de5307c19ae",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "96d684ec87cbef801316abd83a1c247360d9adf9dca52ae84881c400c898f1da",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "336e24998cd785ea976fbe4da11da3e8c76854373cdc9f57200f2dcb42a1f3ff",
"hostVerification": "verification/HostFluidity1.21.0.json",
"installedNativeChecks": 1050
}
+69
查看文件
@@ -0,0 +1,69 @@
{
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.21.1",
"build": "117",
"team": "B3W25FX5H5",
"notaryID": "eeda9002-5e87-4a33-83d3-9163a14283ba",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "98d80970e83e30e4883a76d8f740f2fca5d05e7c",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"installedTemplateSHA256": {
"大鱼调色/大鱼调色.moef": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "e4612f58eee5bf07a0a44cc5f6d65f9ca207b7f6946da938ed05f7d254ca7924",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "68e91d3747a119e684f659093cb520a7fbd495336e8a1552316e52031e975ad5",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "ca6a584dd168990870fa774df8ba3fcfce5ad2e8de4d28bd656057fdaa1dbdca",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "06fdf5964f487a7cca3d6dce6e68013d3c0ba5b5c73c4bb392c7b58f5d916212",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "595f722d3ac99555d4e22611907b6273a3fb36fea59b8949be58eb1f7d319501",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "97bcbf240f86f485299c298d90f9339aa87a2751cef475e3d6a1637144d4ab13",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "3f235de32384a3b268982609583702d28470ed91c756f1b13947454f22bf3fc0",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "c49877ada4fa0ac49fa497b62f3a3e09bfe15f0d73b352bdfbeb0a9a2b7b1aad",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "6015ecc2cc89116b05d601df920ae674bad9ad4c6e7bad1f0eac889e08cda60d",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "b653b0981e0975605d2857a87bd495885d3370d3e9bcd9dc3a59b0012bf1f79e",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "96f2d1fc2fe5ed2a8eabdf3a3bf5eb7fff145d55a0ce05807dcd834d2b8e9b32",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "be935b1e399e2a47394b54b24fc2e32eb0622ae0cd28f83e1d2d895c3c1133d6",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "7c5889c052534edd0043f439f59fe31a987c9c626d9097ce7f3d7280a888b1e3",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "a559c654976ce711d01ef5b81ccaf01df8d81a9de501780cccc519fb72c4b7f2",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "5ddb7e97d718d1b78cbc162b042aed1debdd0fecd12b8596590d5de5307c19ae",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "96d684ec87cbef801316abd83a1c247360d9adf9dca52ae84881c400c898f1da",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "eeaec9798e2c51371886bb718942dd259e3bf1cc40abe5b2d7cb8552c240e0a3",
"hostVerification": "verification/HostScopes1.21.1.json"
}
+68
查看文件
@@ -0,0 +1,68 @@
{
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.21.2",
"build": "119",
"team": "B3W25FX5H5",
"notaryID": "7344dd1a-62ba-4e82-8dc1-36cb220c4942",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "6a979f16a828e17284c8f04647c79ac65811d3dc",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"installedTemplateSHA256": {
"大鱼调色/大鱼调色.moef": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "e4612f58eee5bf07a0a44cc5f6d65f9ca207b7f6946da938ed05f7d254ca7924",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "68e91d3747a119e684f659093cb520a7fbd495336e8a1552316e52031e975ad5",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "ca6a584dd168990870fa774df8ba3fcfce5ad2e8de4d28bd656057fdaa1dbdca",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "06fdf5964f487a7cca3d6dce6e68013d3c0ba5b5c73c4bb392c7b58f5d916212",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "595f722d3ac99555d4e22611907b6273a3fb36fea59b8949be58eb1f7d319501",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "97bcbf240f86f485299c298d90f9339aa87a2751cef475e3d6a1637144d4ab13",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "3f235de32384a3b268982609583702d28470ed91c756f1b13947454f22bf3fc0",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "c49877ada4fa0ac49fa497b62f3a3e09bfe15f0d73b352bdfbeb0a9a2b7b1aad",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "6015ecc2cc89116b05d601df920ae674bad9ad4c6e7bad1f0eac889e08cda60d",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "b653b0981e0975605d2857a87bd495885d3370d3e9bcd9dc3a59b0012bf1f79e",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "96f2d1fc2fe5ed2a8eabdf3a3bf5eb7fff145d55a0ce05807dcd834d2b8e9b32",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "be935b1e399e2a47394b54b24fc2e32eb0622ae0cd28f83e1d2d895c3c1133d6",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "7c5889c052534edd0043f439f59fe31a987c9c626d9097ce7f3d7280a888b1e3",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "a559c654976ce711d01ef5b81ccaf01df8d81a9de501780cccc519fb72c4b7f2",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "5ddb7e97d718d1b78cbc162b042aed1debdd0fecd12b8596590d5de5307c19ae",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "96d684ec87cbef801316abd83a1c247360d9adf9dca52ae84881c400c898f1da",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "65a75993de08f7be4fce3d76f24a80b7e677bd51f877f7d11333f360813b8ffd"
}
+184
查看文件
@@ -0,0 +1,184 @@
{
"baseline": "90e512aabe72fff30046b4bf18d6a35f91c0c113",
"candidate": "8a434b8e4011f95f5d50990121277246aec65a2f",
"gpu": "Apple M4",
"fixture": "tools/fixtures/astronaut.png",
"method": "tools/benchmark_default_preview.py --active-face. Each build uses its matching Release shader and objects on 14 changing portrait composites. Two warm-up frames, texture uploads and final readback are excluded from the timing.",
"comparisons": [
{
"width": 1920,
"height": 1080,
"mode": "faceOnly",
"frames": 12,
"finalFrameSHA256": "e6243ebb29e3778fa4c0828b93324a31f4643faaea7e4a8aa97081a558011b18",
"v114": {
"meanMs": 308.30573611092404,
"medianMs": 308.07770833416726,
"maxMs": 316.09224999920116,
"meanFacePreparationMs": 13.373555555517669,
"faceCalls": 14
},
"v115": {
"meanMs": 10.158368055575314,
"medianMs": 10.065916667372221,
"maxMs": 11.779374999605352,
"meanFacePreparationMs": 5.837899305637014,
"faceCalls": 14
},
"v117": {
"meanMs": 13.59154861135418,
"medianMs": 13.470375000906643,
"maxMs": 15.359875000285683,
"meanFacePreparationMs": 6.5340416667822865,
"faceCalls": 14
}
},
{
"width": 1920,
"height": 1080,
"mode": "faceOnlyOff",
"frames": 12,
"finalFrameSHA256": "68eb2cd3996450a7d15edd9fd398765e8369a24bfd4ae25c27f0916a7a557744",
"v114": {
"meanMs": 2.3187118052495257,
"medianMs": 2.3012083329376765,
"maxMs": 2.6237083329760935,
"meanFacePreparationMs": 0,
"faceCalls": 0
},
"v115": {
"meanMs": 1.9883472229291026,
"medianMs": 1.9398750009713694,
"maxMs": 2.3892916651675478,
"meanFacePreparationMs": 0,
"faceCalls": 0
},
"v117": {
"meanMs": 3.7836736106934645,
"medianMs": 3.410833334783092,
"maxMs": 6.202958331414266,
"meanFacePreparationMs": 0,
"faceCalls": 0
}
},
{
"width": 1920,
"height": 1080,
"mode": "skinOff",
"frames": 12,
"finalFrameSHA256": "300fe047231f2f572329513a5d9493eeb7f714cac9d7b4e40e3f3ec061bd0381",
"v114": {
"meanMs": 2.0912881933933627,
"medianMs": 2.1390833317127544,
"maxMs": 2.2235416654439177,
"meanFacePreparationMs": 0,
"faceCalls": 0
},
"v115": {
"meanMs": 2.2363229163602227,
"medianMs": 2.3059166669554543,
"maxMs": 3.0276666657300666,
"meanFacePreparationMs": 0,
"faceCalls": 0
},
"v117": {
"meanMs": 2.102399305840663,
"medianMs": 1.9790833321167156,
"maxMs": 3.614625002228422,
"meanFacePreparationMs": 0,
"faceCalls": 0
}
},
{
"width": 3840,
"height": 2160,
"mode": "faceOnly",
"frames": 12,
"finalFrameSHA256": "1f4de48b9ae6c545621f40282d7555de4f9874e720848264880b346545ddf663",
"v114": {
"meanMs": 1175.5770451397136,
"medianMs": 1176.069416665996,
"maxMs": 1192.969041665492,
"meanFacePreparationMs": 10.734715277976647,
"faceCalls": 14
},
"v115": {
"meanMs": 21.639291665754474,
"medianMs": 21.775416666059755,
"maxMs": 22.465166668553138,
"meanFacePreparationMs": 7.241062499815598,
"faceCalls": 14
},
"v117": {
"meanMs": 21.49463889024143,
"medianMs": 22.22158333461266,
"maxMs": 22.881708333443385,
"meanFacePreparationMs": 7.329100694732915,
"faceCalls": 14
}
},
{
"width": 3840,
"height": 2160,
"mode": "faceOnlyOff",
"frames": 12,
"finalFrameSHA256": "0b98f3023588476cc080bcb41dd82f956384dd6e29566d07967c4d05fac0f597",
"v114": {
"meanMs": 5.920302083419908,
"medianMs": 5.840916666784324,
"maxMs": 6.964291664189659,
"meanFacePreparationMs": 0,
"faceCalls": 0
},
"v115": {
"meanMs": 6.547465278041879,
"medianMs": 6.366833331412636,
"maxMs": 7.717041666182922,
"meanFacePreparationMs": 0,
"faceCalls": 0
},
"v117": {
"meanMs": 5.85294097224202,
"medianMs": 5.64716666485765,
"maxMs": 8.285833333502524,
"meanFacePreparationMs": 0,
"faceCalls": 0
}
},
{
"width": 3840,
"height": 2160,
"mode": "skinOff",
"frames": 12,
"finalFrameSHA256": "0bfcf04c7fcbfa3e65ab975454664d74a63dc6d76edcf58587846183ed868de7",
"v114": {
"meanMs": 5.590642361312348,
"medianMs": 5.473875000461703,
"maxMs": 6.687500001135049,
"meanFacePreparationMs": 0,
"faceCalls": 0
},
"v115": {
"meanMs": 6.408263889170485,
"medianMs": 6.493083332316019,
"maxMs": 7.324791669816477,
"meanFacePreparationMs": 0,
"faceCalls": 0
},
"v117": {
"meanMs": 6.226100694220804,
"medianMs": 5.571749999944586,
"maxMs": 8.708833331183996,
"meanFacePreparationMs": 0,
"faceCalls": 0
}
}
],
"finalOutputsByteIdentical": true,
"limitations": [
"Standalone HSL with an active hue change and three skin settings. Times cover renderer execution.",
"Face preparation includes the Core Image thumbnail, cache comparison and Vision request. The first two calls are excluded from timings.",
"No new benchmark claim for face mosaic or tracking."
],
"finalRelease": "98d80970e83e30e4883a76d8f740f2fca5d05e7c"
}
+297
查看文件
@@ -0,0 +1,297 @@
{
"version": "1.21.0",
"build": 114,
"compiledSource": "90e512aabe72fff30046b4bf18d6a35f91c0c113",
"baselineVersion": "1.20.2",
"baselineBuild": 113,
"baselineSource": "046411ba8b2c2bf8549601b2e5a080fd9dccd31b",
"gpu": "Apple M4",
"method": "Headless Release renderer and IOSurface textures. Baseline renderer rebuilt from the unchanged 1.20.2 renderer source with its installed metallib. Candidate linked from the final build objects; metallib byte-matched to the installed build. 22 changing synthetic RGBA16Float frames per case, with partial and zero alpha, extended highlights and negative RGB. Source upload and host state preparation excluded. Measured renderer wall time includes final scope readback with the panel closed. Skipped 6 frames and recorded the middle of the remaining 16. Alternated test order. HSL source uses a bottom-left origin and other cases use top-left.",
"modes": {
"integrated": "Untouched integrated settings including default Sony CST",
"neutralHSL": "Untouched standalone HSL",
"activeBasic": "Integrated settings with +0.25 basic exposure"
},
"measurements": [
{
"build": 113,
"pair": "a",
"cases": [
{
"maxMs": 12.938208335981471,
"computePipelines": 16,
"firstMs": 77.44212499892456,
"width": 1920,
"mode": "integrated",
"medianMs": 7.354083332757
},
{
"maxMs": 2.787833334878087,
"computePipelines": 16,
"firstMs": 5.399999998189742,
"width": 1920,
"mode": "neutralHSL",
"medianMs": 2.0991666642657947
},
{
"maxMs": 6.76562499938882,
"computePipelines": 16,
"firstMs": 6.076875000871951,
"width": 1920,
"mode": "activeBasic",
"medianMs": 4.969249999703607
},
{
"maxMs": 29.241708332847338,
"computePipelines": 16,
"firstMs": 33.40008333179867,
"width": 3840,
"mode": "integrated",
"medianMs": 23.035124999296386
},
{
"maxMs": 8.66854166451958,
"computePipelines": 16,
"firstMs": 7.010708333837101,
"width": 3840,
"mode": "neutralHSL",
"medianMs": 7.675666667637415
},
{
"maxMs": 25.247833335015457,
"computePipelines": 16,
"firstMs": 24.129375000484288,
"width": 3840,
"mode": "activeBasic",
"medianMs": 19.690958331921138
}
]
},
{
"build": 114,
"pair": "a",
"cases": [
{
"maxMs": 6.538916666613659,
"computePipelines": 3,
"firstMs": 9.243958334991476,
"width": 1920,
"mode": "integrated",
"medianMs": 4.636333331291098
},
{
"maxMs": 2.6706666649261024,
"computePipelines": 3,
"firstMs": 5.093541665701196,
"width": 1920,
"mode": "neutralHSL",
"medianMs": 1.3894583316869102
},
{
"maxMs": 5.872749999980442,
"computePipelines": 3,
"firstMs": 66.25158333190484,
"width": 1920,
"mode": "activeBasic",
"medianMs": 4.331708332756534
},
{
"maxMs": 24.4553749980696,
"computePipelines": 3,
"firstMs": 25.604499998735264,
"width": 3840,
"mode": "integrated",
"medianMs": 15.133749999222346
},
{
"maxMs": 8.956791665696073,
"computePipelines": 3,
"firstMs": 6.821791666880017,
"width": 3840,
"mode": "neutralHSL",
"medianMs": 6.765833335521165
},
{
"maxMs": 17.701708333333954,
"computePipelines": 3,
"firstMs": 31.818916664633434,
"width": 3840,
"mode": "activeBasic",
"medianMs": 15.026791668788064
}
]
},
{
"build": 114,
"pair": "b",
"cases": [
{
"maxMs": 6.47824999759905,
"computePipelines": 3,
"firstMs": 8.391749997826992,
"width": 1920,
"mode": "integrated",
"medianMs": 3.9361249982903246
},
{
"maxMs": 3.493458334560273,
"computePipelines": 3,
"firstMs": 3.163458331982838,
"width": 1920,
"mode": "neutralHSL",
"medianMs": 1.6217500015045516
},
{
"maxMs": 11.122041665657889,
"computePipelines": 3,
"firstMs": 70.30949999898439,
"width": 1920,
"mode": "activeBasic",
"medianMs": 8.894208334822906
},
{
"maxMs": 22.29845833426225,
"computePipelines": 3,
"firstMs": 29.890708334278315,
"width": 3840,
"mode": "integrated",
"medianMs": 19.29470833420055
},
{
"maxMs": 3.057958332647104,
"computePipelines": 3,
"firstMs": 6.649041664786637,
"width": 3840,
"mode": "neutralHSL",
"medianMs": 2.682041664229473
},
{
"maxMs": 16.54995833450812,
"computePipelines": 3,
"firstMs": 22.187250000570202,
"width": 3840,
"mode": "activeBasic",
"medianMs": 14.910999998392072
}
]
},
{
"build": 113,
"pair": "b",
"cases": [
{
"maxMs": 8.093041666143108,
"computePipelines": 16,
"firstMs": 69.24862499727169,
"width": 1920,
"mode": "integrated",
"medianMs": 5.378374997235369
},
{
"maxMs": 3.8760833340347745,
"computePipelines": 16,
"firstMs": 5.63374999910593,
"width": 1920,
"mode": "neutralHSL",
"medianMs": 2.3266249991138466
},
{
"maxMs": 13.359000000491505,
"computePipelines": 16,
"firstMs": 6.309416665317258,
"width": 1920,
"mode": "activeBasic",
"medianMs": 8.464666665531695
},
{
"maxMs": 19.337375000759494,
"computePipelines": 16,
"firstMs": 23.844416664360324,
"width": 3840,
"mode": "integrated",
"medianMs": 17.469708331191214
},
{
"maxMs": 7.565374999103369,
"computePipelines": 16,
"firstMs": 6.806416666222503,
"width": 3840,
"mode": "neutralHSL",
"medianMs": 5.443375001050299
},
{
"maxMs": 21.247958331514383,
"computePipelines": 16,
"firstMs": 31.353166665212484,
"width": 3840,
"mode": "activeBasic",
"medianMs": 19.150083335262025
}
]
}
],
"exactLastFrameAndScopeSHA256": {
"a": {
"neutralHSL-1920.scope": "d443c82467d99bd6a88b846cd17a8b200aadc04000c9c7e3d13d37807d69b4b6",
"neutralHSL-3840.rgba16": "0ac067de6dbdafb632c22e19e46e9d96beb8c24d0138249949127460587a32c5",
"neutralHSL-1920.rgba16": "7247fe37fcf4ec2b3077b0c44e602a0b4031b76dd52f012b6301dabd56e1d051",
"integrated-1920.scope": "52f199d89d01220a3fca7472f61ccb3d828bb433ba411edd665a4c3169d834eb",
"activeBasic-3840.scope": "0108d9d7c89d8c60b3b8bbfb8f31853227d378a4253f8e3c3a009d72ffadeb3f",
"activeBasic-3840.rgba16": "8e094cc3639aaf3c0d1f3ff5725b0ecb85f80f7a3633c46c545fbd20fcc96bd9",
"activeBasic-1920.scope": "cf6ec23848953f6fca09f3ff35e1bc5d6515549dc7d1d061bdd98c7cbfd3fe33",
"integrated-1920.rgba16": "d6792912c85837afec62e56629ef749ff6a29594ba57e07eba4aa9cd64040546",
"integrated-3840.scope": "ec7f0cfba144c6662422b1804a483953ad7615f0d03aa6a60bd847f99c187af0",
"activeBasic-1920.rgba16": "b5dc08cfb483b8a657e4e7cbbac9ad456ac670a6ad7af842b2599b87d08d7358",
"integrated-3840.rgba16": "3a68492e8ea37b3ed93daaa9bc20a8ce24bbd475adf76fa45db4867900216330",
"neutralHSL-3840.scope": "5f576ba137f4f43b5106c132a4cfd7fb3297dc471b5224926f3f0040745d00dc"
},
"b": {
"neutralHSL-1920.scope": "d443c82467d99bd6a88b846cd17a8b200aadc04000c9c7e3d13d37807d69b4b6",
"neutralHSL-3840.rgba16": "0ac067de6dbdafb632c22e19e46e9d96beb8c24d0138249949127460587a32c5",
"neutralHSL-1920.rgba16": "7247fe37fcf4ec2b3077b0c44e602a0b4031b76dd52f012b6301dabd56e1d051",
"integrated-1920.scope": "52f199d89d01220a3fca7472f61ccb3d828bb433ba411edd665a4c3169d834eb",
"activeBasic-3840.scope": "0108d9d7c89d8c60b3b8bbfb8f31853227d378a4253f8e3c3a009d72ffadeb3f",
"activeBasic-3840.rgba16": "8e094cc3639aaf3c0d1f3ff5725b0ecb85f80f7a3633c46c545fbd20fcc96bd9",
"activeBasic-1920.scope": "cf6ec23848953f6fca09f3ff35e1bc5d6515549dc7d1d061bdd98c7cbfd3fe33",
"integrated-1920.rgba16": "d6792912c85837afec62e56629ef749ff6a29594ba57e07eba4aa9cd64040546",
"integrated-3840.scope": "ec7f0cfba144c6662422b1804a483953ad7615f0d03aa6a60bd847f99c187af0",
"activeBasic-1920.rgba16": "b5dc08cfb483b8a657e4e7cbbac9ad456ac670a6ad7af842b2599b87d08d7358",
"integrated-3840.rgba16": "3a68492e8ea37b3ed93daaa9bc20a8ce24bbd475adf76fa45db4867900216330",
"neutralHSL-3840.scope": "5f576ba137f4f43b5106c132a4cfd7fb3297dc471b5224926f3f0040745d00dc"
}
},
"installedNativeChecks": 1050,
"independentCSTReferenceCases": 21,
"focusedNativeResults": [
{
"error": "",
"name": "neutral-preview-frame",
"pass": true
},
{
"changedComponents": 0,
"maxAbsoluteError": 0,
"name": "neutral-direct-preserves-hdr-negative-and-alpha",
"nonfiniteComponents": 0,
"nonzeroComponents": 9832,
"pass": true
},
{
"name": "neutral-render-defers-unused-gpu-pipelines",
"pass": true
},
{
"name": "final-scope-captured-with-neutral-output",
"pass": true
},
{
"name": "final-scope-inline-matches-separate-capture",
"pass": true
}
],
"limitations": [
"First-render times are affected by Metal compilation caches and machine scheduling; they are informational.",
"Warm wall time varied by run, especially the 4K CST path. No FCP presentation FPS or drop count was measured.",
"Six last-frame comparisons in each pair, not an exhaustive comparison of all parameter combinations."
]
}
+30
查看文件
@@ -0,0 +1,30 @@
{
"version": "1.21.0",
"build": 114,
"compiledSource": "90e512aabe72fff30046b4bf18d6a35f91c0c113",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"host": "Final Cut Pro 12.4",
"servicePID": 13297,
"project": "Existing independent default-preview QA duplicate",
"format": "1080p 25p",
"checks": {
"installedInspectorVersion": "1.21.0",
"existingEffect": "Standalone spider effect",
"playbackStart": "00:00:00:00",
"playbackEnd": "00:00:11:09",
"inspectorSlider": "Spider mix 1.00 → 0.50 → 1.00 via reset",
"workspaceSlider": "Spider mix 1.00 → 0.50 → 1.00 via reset",
"workspaceScopes": "Waveform, parade, histogram and vectorscope each reported 57,600 valid sRGB display-reference samples after rendering the edited/reset frame",
"installedNativeChecks": 1050,
"templates": 17
},
"firstScopeOpen": {
"requestedSeconds": 11.383333333,
"cachedSeconds": 11.36,
"observation": "Waiting until the next actual render; no stale frame substituted."
},
"limits": [
"FCP drop count, continuous drag latency, host Undo, same-time workspace reopen, Motion and full export not confirmed in this pass.",
"The real host playback used the standalone spider effect. Integrated default CST and inactive HSL were covered by the renderer benchmark and installed integration checks."
]
}
@@ -0,0 +1,37 @@
{
"version": "1.21.2",
"build": 119,
"compiledSource": "6a979f16a828e17284c8f04647c79ac65811d3dc",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"appNotaryID": "7344dd1a-62ba-4e82-8dc1-36cb220c4942",
"formalNativeChecks": 1010,
"installedTemplateCount": 17,
"metalLibraryIdenticalToMeasuredBuild118": true,
"host": "Final Cut Pro 12.4",
"hostPID": 21320,
"pluginPID": 21334,
"project": "独立资源库副本内的 1.19.0 Vision 全跟踪验收",
"projectFormat": "1080p 25p, native 4K 60p source",
"checks": {
"referenceTimelineTimecode": "00:00:10:07",
"sourceReferenceTimeSeconds": 10.309,
"forwardKeys": 27,
"bidirectionalKeys": 284,
"lastBackwardPreviewSeconds": 0.029,
"workerLog": "dayu_object_track_worker main=0, no full-size Gray8 at seed because cached reference was absent",
"trackedMosaicVisuallyConfirmedAt": "00:00:11:04",
"originalProjectEdited": false,
"invalidHostTimeGuardNativeRegressionPassed": true,
"hostQuitNormally": true
},
"rejectedBuild118": {
"appNotaryID": "0b88e5d9-211c-4d64-9b2c-fb540253d433",
"visionAndMosaicBenchmarksPass": true,
"failure": "FCP returned a non-numeric reference time during the bidirectional start request. Process samples show synchronous FxPlug calls waiting on each other before desiredAnalysisTimeRange returned. No frame reached the tracking kernel.",
"recovery": "Terminated only the hung product XPC after a normal quit and SIGTERM did not respond. FCP exited, was reopened to verify the independent QA copy, and then quit normally. Build 117 was restored before installing 119.",
"firstInstalledTest": "An unrelated external LUT activation timing check exceeded 150ms once (200.9ms) and passed on the same signed product after retry (75.9ms)."
},
"limits": [
"One motion clip. Valid frame tracking and a rendered tracked mosaic spot check; full privacy coverage, host FPS, total analysis latency, Motion and export were not measured."
]
}
+39
查看文件
@@ -0,0 +1,39 @@
{
"version": "1.21.1",
"build": 117,
"compiledSource": "98d80970e83e30e4883a76d8f740f2fca5d05e7c",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"host": "Final Cut Pro 12.4",
"servicePID": 17330,
"project": "Existing independent default-preview QA duplicate",
"format": "1080p 25p with native 60p source",
"effect": "Standalone HSL",
"playhead": "00:00:11:09",
"firstOpen": {
"rawActionTimeSeconds": 11.4,
"cachedRenderTimeSeconds": 11.36,
"nativeFrameDurationSeconds": 0.016666666666666666,
"exclusiveEnd": true,
"cacheReplayed": true,
"scopeSamplesPerPlot": 57600
},
"reopen": {
"samePlayhead": true,
"cacheReplayed": true,
"scopeSamplesPerPlot": 57600
},
"plots": [
"Luma waveform",
"RGB parade",
"Histogram",
"Vectorscope"
],
"noParameterEditOrPlayheadMoveBetweenOpens": true,
"nativeChecks": 1008,
"templates": 17,
"evidence": "Cold-reopened FCP. Each panel AX read showed all four populated scope plots, and the installed service logged replay=1 for both opens.",
"limits": [
"Performance numbers come from the separate native renderer benchmark.",
"Motion, export and live face-tracking latency were outside this host check."
]
}
+51 -14
查看文件
@@ -1,6 +1,6 @@
{
"bundlePath": "/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit",
"checks": 1002,
"checks": 1010,
"gpu": "Apple M4",
"limitations": [
"Finite states and a 64x48 frame; live FCP discovery, inspector interaction, timeline persistence and real host export require separate acceptance.",
@@ -12,7 +12,7 @@
"error": "未提供错误信息",
"name": "runtime-directory",
"pass": true,
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/DFD3CB29-145A-46CE-A78E-3232106A83D4"
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/D01710AF-B75E-4ED0-A7B3-2D90239BBFD4"
},
{
"descriptors": 285,
@@ -356,6 +356,31 @@
"name": "idle-preview-empty-extra-skin-does-not-trigger-face-work",
"pass": true
},
{
"error": "",
"name": "neutral-preview-frame",
"pass": true
},
{
"changedComponents": 0,
"maxAbsoluteError": 0,
"name": "neutral-direct-preserves-hdr-negative-and-alpha",
"nonfiniteComponents": 0,
"nonzeroComponents": 9832,
"pass": true
},
{
"name": "neutral-render-defers-unused-gpu-pipelines",
"pass": true
},
{
"name": "final-scope-captured-with-neutral-output",
"pass": true
},
{
"name": "final-scope-inline-matches-separate-capture",
"pass": true
},
{
"error": "",
"name": "blackwhite-full-render",
@@ -968,7 +993,7 @@
"error": "未提供错误信息",
"name": "renderer-export-33cube",
"pass": true,
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/DFD3CB29-145A-46CE-A78E-3232106A83D4/diagnostic-export.cube"
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/D01710AF-B75E-4ED0-A7B3-2D90239BBFD4/diagnostic-export.cube"
},
{
"bytes": 1186074,
@@ -988,7 +1013,7 @@
},
{
"heartbeats": 1,
"maximumGapMS": 76.41433333628811,
"maximumGapMS": 72.45583333133254,
"name": "external-activation-main-loop-responsive",
"pass": true
},
@@ -1431,6 +1456,10 @@
"name": "scope-interior-time-is-never-replaced-by-previous-frame",
"pass": true
},
{
"name": "scope-exclusive-end-rejects-older-or-beyond-end-output",
"pass": true
},
{
"name": "scope-after-end-is-not-silently-clamped",
"pass": true
@@ -1475,7 +1504,7 @@
"closePixels": 128,
"name": "workspace-offscreen-compact-icons-and-close-render-pixels",
"pass": true,
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/DFD3CB29-145A-46CE-A78E-3232106A83D4/workspace-topbar.png",
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/D01710AF-B75E-4ED0-A7B3-2D90239BBFD4/workspace-topbar.png",
"toolbarPixels": 3867
},
{
@@ -1546,7 +1575,7 @@
},
{
"name": "workspace-independent-style-fixture-inserted",
"node": "605374AC-F96A-4155-B4BF-433929B3FC20",
"node": "9A4844BD-028E-44FD-87C7-CE5F2B93AA52",
"pass": true,
"validDocument": true
},
@@ -1555,10 +1584,10 @@
"error": "none",
"name": "workspace-independent-style1-writes-target-node-inside-undo",
"nodePaths": {
"look0": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/DFD3CB29-145A-46CE-A78E-3232106A83D4/node.cube"
"look0": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/D01710AF-B75E-4ED0-A7B3-2D90239BBFD4/node.cube"
},
"pass": true,
"rootStyle1": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/DFD3CB29-145A-46CE-A78E-3232106A83D4/user-new.cube",
"rootStyle1": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/D01710AF-B75E-4ED0-A7B3-2D90239BBFD4/user-new.cube",
"undoStartsAfter": 3,
"undoStartsBefore": 2,
"written": true
@@ -1593,7 +1622,7 @@
"pass": true
},
{
"name": "workspace-opening-paused-frame-replays-cached-final-output-without-render-or-parameter-edit",
"name": "workspace-opening-at-exclusive-end-replays-last-presented-project-frame",
"pass": true
},
{
@@ -2058,7 +2087,7 @@
"pass": true
},
{
"changedComponents": 2377,
"changedComponents": 1463,
"maxAbsoluteError": 0.0009765625,
"name": "anchored-prefix-preserves-whites-statistics-and-spatial-base-input",
"nonfiniteComponents": 0,
@@ -2066,7 +2095,7 @@
"pass": true
},
{
"changedComponents": 252,
"changedComponents": 38,
"maxAbsoluteError": 0.0009765625,
"name": "anchored-legacy-input-lut-remains-available-to-spatial-neighbors",
"nonfiniteComponents": 0,
@@ -2074,7 +2103,7 @@
"pass": true
},
{
"changedComponents": 2240,
"changedComponents": 1678,
"maxAbsoluteError": 0.0009765625,
"name": "anchored-original-color-mask-keeps-post-cst-source-reference",
"nonfiniteComponents": 0,
@@ -2760,6 +2789,10 @@
"name": "print-with-grain-still-rejected-by-static-cube",
"pass": true
},
{
"name": "tracking-invalid-host-time-does-not-start-analysis",
"pass": true
},
{
"name": "tracking-renders-valid-source-before-analysis",
"pass": true
@@ -2872,6 +2905,10 @@
"previousReadbackBytes": 33177600,
"readbackBytes": 8294400
},
{
"name": "mosaic-tracking-4k-color-input-matches-without-gray-buffer",
"pass": true
},
{
"name": "shared-tracking-same-mask-switches-global-hsl-spider-without-interruption",
"pass": true
@@ -4592,7 +4629,7 @@
{
"name": "viewer-real-osc-draws-minimal-curve-on-clear-canvas",
"pass": true,
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/DFD3CB29-145A-46CE-A78E-3232106A83D4/viewer-workspace.png"
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/D01710AF-B75E-4ED0-A7B3-2D90239BBFD4/viewer-workspace.png"
},
{
"name": "canvas-hsl-plot-captures-outside-and-commits-one-undo",
@@ -4991,6 +5028,6 @@
"pass": true
}
],
"runtimePath": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/DFD3CB29-145A-46CE-A78E-3232106A83D4",
"runtimePath": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/D01710AF-B75E-4ED0-A7B3-2D90239BBFD4",
"scope": "Native model and renderer integration with real Metal/IOSurface textures and fake FxPlug host selectors; no GUI or live host document."
}
+563
查看文件
@@ -0,0 +1,563 @@
{
"hostHardware": "Mac mini M4",
"baselineBuild": 117,
"baselineCompiledSource": "98d80970e83e30e4883a76d8f740f2fca5d05e7c",
"measuredCandidateBuild": 118,
"measuredCandidateCompiledSource": "4b7e348ff5a69a5255e3a7b3a34b96dac182568f",
"renderMethod": "Release renderer objects paired with the matching signed build Metal resource. RGBA16Float frames, neutral grading, 48-pixel block reference, 14 exposure-varying inputs per case, 2 warmup frames discarded. Portrait cases use tools/fixtures/astronaut.png on a gradient, no-face uses the gradient. GPU upload and output SHA-256 readback excluded.",
"maskFixture": "Rotated 0.63 rad, .29 by .37 masks, feather .25. Bezier has four curved nodes (96 flattened edges). Multi-mask union and invert with nondefault input/output levels included.",
"trackingCaptureMethod": "Time Metal preprocessing plus CPU copy only, full Gray8 and RGBA capture versus RGBA-only capture. SHA-256 of each 640x360 color input.",
"identicalPixelFrames": 192,
"identicalColorTrackingInputs": 24,
"samples": [
{
"width": 1920,
"height": 1080,
"mode": "disabled",
"sha256PerFrame": [
"ba4b35218b2f92f7d935d944acf8bef952410c2d90cd982f50c21093ecde188b",
"96acbf3666bc7bd94ef93d2ee7f87154e6d1d40ac243c7ae4ee39c80a3950d04",
"f9ed1f0a22a908ee20a4ee101d2172af9d7f470393dcc8629f357b8340954a50",
"155fcd1409f3a5fa3760d8165a685c4fe47c6bb244319208c8265dafcc1c2fd9",
"9a97abedb73024452e210778da2969799dadd534967938801b311bcebf781961",
"a8d2b7692d6911fd1b36a3bcc9bb2d6392d6dece6122133d4df3d27baf7c1b13",
"b78cfa54b68323282bca63600df9beb8362a6f8af5ca9e0df874e1a14b70c2bc",
"d7fcaaec84253bf7db1b65543f98092397fdbcab70a6af2df5c4e0a63b190ea9",
"3ef7fa7cfaa709ec06c69cc592461da52f754453718ee396a5e7187b512227ae",
"a6482b6e8b7bc37b4a49127f23d6af51ce2c76d1985a8d398d23016ada35f4b6",
"8cc7816b0ef310f9317c814d8cccf41cddd1c8833a567890c611c6e440e58a7d",
"6c0b418385b9755070ece48e89c0bda5e6b316391ade4191d74997730baf0ab2"
],
"baselineMedianMs": 2.0491,
"candidateMedianMs": 1.8956,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 1920,
"height": 1080,
"mode": "face",
"sha256PerFrame": [
"ed421e6d48af413f65a5f0b75a965332f66a73eba7fd9fe9d6e990327a71de3d",
"aa41151a6b8f0aac3a867ce5a7454bbb72b4fbdb0f2394a412160f1d784252a7",
"4b56856f356eb368460c88d35fa1c32bd19680b405d6b76509c88c5ed37a0d99",
"62c410cb2341ab7298f8dad5e39638fdb7024f42fa07cd2a68d50e6fc4d1912e",
"203771a3e935156f6a2a6b939d67b02136449184263ac1352481948e74b6e61f",
"d6724373c2c985763f552d90cdc3dde713d868f84bd7e10933566a118bcbba9d",
"0214454efce6281a1c0224467b8173159ee138e4a2872d345776cce3c9c9f3b7",
"fadc129a39f84679c5338cdf7e0fc995c9933c774b0a05e09bdfe849b8dbff7c",
"fde8f1e4b7ab88921c1b20554036bdbb026167e5ea3f7ee47aec7b73be8038b5",
"d6d93f5f9c9649a4adcba4761f170d4626bc2fd5a9ea91ca7a3fad3997503faf",
"b2eeeb35953a90d9d8a2ec8a4483e1b3f4b12b42678aec83da1f67144bf23de3",
"5f242c8819919c4835b00e090614cbed760d454c998d7a4cd3ca458b68483fff"
],
"baselineMedianMs": 11.2305,
"candidateMedianMs": 10.8694,
"baselineMeanFacePrepMs": 7.4263,
"candidateMeanFacePrepMs": 7.2425,
"lastFrameFaceCount": 1
},
{
"width": 1920,
"height": 1080,
"mode": "no-face",
"sha256PerFrame": [
"ebc9765c1b88ee3747f9fe33326f6c56162c22da14f1d2f9b50fab3900141a60",
"ee53366bdfbf5d9bbb4fe14998dd754066d12d6c02bde94c1aa8ba9f58afe18f",
"4ab88d1638f9552fb121ecdb7926e677171b2af7c6ebab417705a77ec9520f3d",
"ade59b6c2ada3ffd4276e94e6f3aa2f614fefd096a580f9f4aa8280c33c9340c",
"f2d972148198efe7e8e95475f2ab236cf70a099e0cc85f44c4409e7e5a5a6907",
"61985304447a3d57586adff3ed6a2c8de3a98a9a3c451548f633c5c686893190",
"32f5553cbf50589a913d5becfbed40120f3a24e7e5b510f081131facc8f4794d",
"260544e020ba00ed84067b49749f7a137fe6db21afa5017877578dce11e5fdc6",
"802d14d21cfde4caa90fe77814c7fc14f6ce9f07f959d93ea30eb84471a1a16e",
"a9e48a54f9f9acfcff9318fc04b3f20bb0902672b308fd34705ef4a0ee69c0d0",
"b185927c15463b03a93a9fe166bab9b8b87da72b74716da6f5bc8da765d17cbd",
"36fe78ac4a23828544fd1ae7c572fec0790f5c05869a64f94cf97f13ef939ac4"
],
"baselineMedianMs": 9.524,
"candidateMedianMs": 7.6674,
"baselineMeanFacePrepMs": 5.7434,
"candidateMeanFacePrepMs": 6.0188,
"lastFrameFaceCount": 0
},
{
"width": 1920,
"height": 1080,
"mode": "rectangle",
"sha256PerFrame": [
"285fc52e14b4c3814adf733e8938586855e90ff43135cacd15ecbb8533b668e6",
"3f664e248938bf15b8ff71d4702b6697747c788b6725008dff1894dbe19ac73e",
"27bff118d583c712ea66770ae8332784739c0f3dfb31fcc88742332a04c5b2e1",
"d93c1d2969abe4e4b8214e27e2e1514a8832299fa7e5fd1b27f59ea96a068172",
"43a1b62de57354d681f09c12bd37bce18f57895f8977ee885db20a67b4a91b42",
"4a081e0e306944de26d8f079a4be0b0f1c2fc34c9245a24e0e297d045b80d3b3",
"6042028e264ed52977b2b76107d2295da76c2ffa6da8759db2fb00040c96e249",
"019a1a340875fea6269756b07a6d0949c5f1d94d0d6b07aba4d835fdd5319189",
"aac85a0b4cd3c0651db01b7d9711bf277fb8cb9ff16fd02018a2161ba88d3096",
"33b8b8671a289986b8588687b5d90f6c242b376cfb0dbb6523e877f30eababb6",
"e30609e8c4e3aad4cf4ca268d76b0e49e05186ccd6675e7e31d8dd1373060dbc",
"86591d1a9b64d87ec3160d184ee0720a3860500231094bc18051a9019437efd3"
],
"baselineMedianMs": 3.4063,
"candidateMedianMs": 3.1885,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 1920,
"height": 1080,
"mode": "bezier",
"sha256PerFrame": [
"f6ecf4c801e5c810ffda4a7bbcadda14b0bd370ce5ded2a9da7c96eaaa9ceb1d",
"06545206d582aa150de747846cd9b13aa93a49b86330ac9cdc5a426369292eef",
"534d0fb917f656f49743aa7d56622eb19b419e4a2596a645db8b9245446d7efd",
"5064f7664a5eb9da58f8fa04d1766ddde040014dd29a3ecc562a94a61e1536f6",
"cfee6f55ed591d5d4edcff4f8df6368ca4d17a3bc8a3a66517899cbd11cb7e8e",
"fc33f486e21eb19494b723824d2a148605dce41594d5f1ae8cfd83b16879521d",
"ff7f5663572be81bc377d94a5a1310a4daf58fad7632f612d796ad97dccf3116",
"9a66e7bc4fbe6a190e08d701627489e8bd2f9f31e73c57421b2a7e6626553aa5",
"bcb499bb7855b1cc5c5e3d43fad29c91f0d34f69df7b561a857438f883d2c276",
"bcf623f1daea8a0a2143e147cbafb7112d58f754bb6ad13d54152f3d025b7795",
"78f75ac0dd2bafefdc84a0d8b16eb8f1225481f6517e5366599e6ec0b5dc3af7",
"93ae3e9daefd17c5abe4ae4ed67da73d031995a4ba5bbdfecc25a2f6fa656b48"
],
"baselineMedianMs": 6.6744,
"candidateMedianMs": 3.465,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 1920,
"height": 1080,
"mode": "bezier-inverted-levels",
"sha256PerFrame": [
"2863321e0c62d7905a41e04c61f64c5ddcdf5c88af94aaf22e87cf71996145c4",
"09b809b566ad777a9f24963f609b5f0258d0cbffdbfadc2c4dc3ca77e12278d4",
"35ab4f6c14da7ef9614cf2fe4945dcaa0ff0ae906607456e4a135dbfafbdf0a3",
"4659732fcbedd01c3e423516dc2823c480683a9e4b578738f2f3ac8059cadab0",
"c0deae7c6042e9c47c908d246733697b5b78c805b1d2bfa7a144f5f7deab7f44",
"e845d96b203b223d408a8699cd4d4e04f79770abd808682438d1dd5475d32dd1",
"a39688be0bb53f9772c12ff9da9598eed56952cc3e0dc8e04336e8cbb05f9fe7",
"f0cb1ab9ffd307de703a925cf4d9303728e2709673101546adac0e458e2df593",
"33475ca42c4190d091e0aa6552ad09b34556c2cf37e3ad1f2314e95ba9f2b9fc",
"a8a11becbdc0ad34b7a83eae1838a293eab6cdafbf78f9e3b7d4854b4ac44dd5",
"99b9f899605450e94be7f4cae6f162f8739f279438b0a3a1bb40026e58971b48",
"613512897c753d1cff83aecf5197d648182064be424126eb151ac4517b4e91e3"
],
"baselineMedianMs": 6.7219,
"candidateMedianMs": 3.8155,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 1920,
"height": 1080,
"mode": "two-beziers",
"sha256PerFrame": [
"d57d29fc496e8381ae77c91dd7849867cacc3f34ae53b25bb53afebf5358f1d8",
"37c5324cf33802aa015c4636335871189c117faa87764399d20bff1dc4ff6d0d",
"58dee3403bf538ddee73bce81d854401ea9a955f098e6d40956a22c34668a4e6",
"7ea446eca9972ec6d501d24d2ea4c3554c10deb218c39e4c4a603e145c121d56",
"d0be4e2b11cd6db2b1de30d2c7f743326e09b3b723317739ea568cdd9543de78",
"0035e2fae56bb5d9d646676a94169326066de64279dd3d0f76b8d3e5116af6c3",
"574f1bce494e39ca864c1c030450be7435262b33f02b81090a2c35e6148de50e",
"6574600d92bb8c3518a2ec367c683079cc9cbc36ce9cf1cad133665a7f9e66ac",
"2624decc4a4ece5bcd4096e0e55b78a8d171a54aab6fbe9b6b2fd841b4321661",
"f54d187fb02fdde946ccc8ad025081210af5d56ef7c6a6ccdd1bd8d90e98f428",
"679d2d395d81defd67d1634021a54f465546694411977eea15e8f1e0f4839df3",
"d99beff58dc5220d9cd4b74d1c67d7e07d547b6f0308b9766c6f6233c47ff793"
],
"baselineMedianMs": 10.5445,
"candidateMedianMs": 3.8275,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 1920,
"height": 1080,
"mode": "luma-key",
"sha256PerFrame": [
"d0588b4b17174cbab85df121b3d7b743b7f3dd5965f5ec491c098245911f3fe1",
"94a6cd034600a1d6dc1377cd9f9c3cb8fa6c2e0c6c388dbad21709e053c57969",
"21d3658545ecaef29cd7f0fd36b3f6d4625641fdf35ea9ae547cd9ffb62e6c93",
"b62910ff54f9b76e5fcf25e62647b02189c516f9ab5401b7427a6b031e626d6c",
"b5e40dfa0f0a46fada0d6dcae1a8f798725e0ddd596a3b87eabf71ce3c2c8d4e",
"fe5e4526fe2eabd51ee38aceeddf4d82bc8b181b5801f7eea7a01d5627c8d990",
"eee2ece8b49070cc05d674512fb1a6f0e8df385e24d7a3bfda84b1934bfe734b",
"efd8536f0d6d8412be29c7cd22b8d9593ec5d175cb534a4f908ec4d314cc0da5",
"66c1b408abb527374773a301d5b08604f3bb300858aa6d62d62df0f148c5c981",
"49d811c8a1c82a29c61f27c9aeb456f7547cfc7831c09c07b6d98fb7f7fa50d1",
"be7e00c448f528a7fce866c55867da938c394a4a47e486c4c81e1ffba26604f9",
"d306d6ff654ebf25a0ac4233cbfc99a4ef96b72bd22804f40a613e276e18fbf7"
],
"baselineMedianMs": 3.0707,
"candidateMedianMs": 3.3053,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 1920,
"height": 1080,
"mode": "tracking-color-capture",
"sha256PerFrame": [
"e9c6a6323ac7a1d8691e0dbc06f65b074ce17e951424e29af6243244ca08485c",
"6461653245d5586429c7a853e3b8b0b135a6e5c5164e6cc9760b0255744bec5e",
"4c8088f312f8f34d82483a6b7303e909b02322ade93dcc66db6c8f2f4d3b1aad",
"50f2ea73f3a9cb2b04aa97d0d6720a6d6a547cd72dd1717435d9f53924bbed03",
"b6cdf5d0807d8c8ee1db419dcd96563ac8b0b7ae08d7adab2059f2ac199280d5",
"dd48ab20e649240503813bb07facadb23eef69f70c48c829fe571c34ffc844e4",
"01f765a772e2505a338897b9a6ce7c464e56b49d44f91deeb85d98092726670d",
"475e4426812c009a82f5fdd936a3dad3ac5b52069049fba9fc8dcf9bc0301978",
"631c8876ae53b8ca717882861f087ff58323a3e2126b1569600a91e83dc78b21",
"cadaa2a45cc48df66b50007da1b1c4f7d09b733a10b75b1b6a7a0219efe71723",
"ab21cfc3173ace8dfe6ef53056a9719c6b09370b7183c45d12059822742ca687",
"cce1e796b788c2170cda90c82740f93a745faff07c042abe57f563d8c0631307"
],
"baselineMedianMs": 2.1842,
"candidateMedianMs": 1.4864,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 3840,
"height": 2160,
"mode": "disabled",
"sha256PerFrame": [
"13d00b63247d515e4c280e051af5ac0a9897d825c7b8d07bee36679c3519db26",
"706114b30fff3b096ceac22703db822a76fec9c59aa84a834988b4f6e7730721",
"77c89c96403cad855ada59c28599a2664b654481e4206e1f90ac87cb40c91855",
"87f3d1de8f93b168b30a51c2460c3770d1faaae60c2a6b407bc72e2f4bc6215f",
"c91e776400b18f6a8deb48691e2f9d96b9b019b8fed89bf1ae51f84bbe475894",
"fe4b5a48b918e1ba4b783992358a9c1483c4c2ae5e1e90336ce8c20d786d71dd",
"550010d45a4d3ed59260a043281614e8dfe51e3a340172e00edb6cd3f9ec2ef7",
"baab665823b778c7f75e6eaabfb45944298d3c8f126bf956b9f9e4dc351316b1",
"1cbc39557d1b1e61acaa8072fe236990569ef31d85e0e74dbbe31976982bfa7f",
"515a2caed58d276b4037526dbd08fa7af68c835f3bb33130a76185da8d221a82",
"755611b5e8287968ec46e26799bab2f1b8e4a78bbe03ef745b5b40652996e958",
"8084ee7a481cccd93b2079cf8ea3a7df8c6254426825e2102d4fccec4142f68f"
],
"baselineMedianMs": 2.3486,
"candidateMedianMs": 2.8794,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 3840,
"height": 2160,
"mode": "face",
"sha256PerFrame": [
"bb07338cc69acc52e48382c098a85ecdf680e8d58300e06d413cb3ce4e913cab",
"adcb76118ca8563a5dc6b97f2d8155a6222f579942f0dd6ff5ae52af1a4e8339",
"0c6224f3347c4006aa2a0ab14691ed10d263050b7616a7b921840448eaba39c7",
"1a1f08702cfa9d514594f89fbaff0902daeb96f712ed32d934236b2a7aed4e43",
"877297cf004f3b349b6db6eb3091f1d3222f410b73ab427315b793a75985b662",
"3026defb94ca568dea3d1a78eca8089a2d7c640af11206861459c548eb7d4def",
"7641ae566af65eb809b62db4842b793604741a7e4a3a6d326825011ec9fddd52",
"a5cb5b3b55ed6516a7648f09a9ea8ac7c3eced6727f46438f9fa658bb82f546d",
"b7500fc3e20f342e9af3522712b19dadaf5c69c343acdf70ec8f7c1eee0251ea",
"9a3c4a867a917b1e3a9318e0ed91529727beae96a4146e72344767223814ee6e",
"d67e6c6d5fc0c2476b1fb83019306ef65877bbd311c6c562bdc82574646f098b",
"f5b89d9bd55b35205740825149294817c539b591828b3d56ab79ece6f006c2ec"
],
"baselineMedianMs": 19.4166,
"candidateMedianMs": 17.3704,
"baselineMeanFacePrepMs": 7.9817,
"candidateMeanFacePrepMs": 7.4955,
"lastFrameFaceCount": 1
},
{
"width": 3840,
"height": 2160,
"mode": "no-face",
"sha256PerFrame": [
"81c7f46031dc06d414c0677e42be2f87ed06e52738dd3ca8fbf7e61da774c42b",
"40fd16ee84824da4d557e987fa0b210235a641259affdb810791a9a1d00dcf6b",
"7d6eb058262f7cb9bf7efb44209745affe81b1f8a6493b9039f99ac34662115e",
"e8669c9f5328411831ac00cf1a513e9eccd7722a25e1f4cfb7b9bc1acc2057ee",
"5f47e263a9fbbc2d5ded8ecccb59345b1cf8a1c945ffe34c4b3b591d15b90290",
"c74a2681a7412488331cc7dca7608cde0e9f08f69ea95724d1b9b05b8e126ecf",
"25feb473777d247800708a35b963a494fb6eeecd70e2ad10a572b46aa47ccb21",
"390496a21426a2fd69100a212daa63e7abec0e0ad35c52c8210c4e79973e096a",
"cf2f27700d03fb40e6700fb51fd47ff9f518ec547a3156e451a92ffa0cbbb4a8",
"cbfa8e2e3e52f72d56056544db1c21d021fffa4656103344707f76c9b092dbad",
"7a055eeab00c8d2af3e76b5b1b2f635eb29c787397c8cadbde0aff4410fce39f",
"b56af0ceb8022ab6234bf5b5fd1c566daa971b3d2ce6e3eba94a02eb3a844b32"
],
"baselineMedianMs": 16.8995,
"candidateMedianMs": 9.4632,
"baselineMeanFacePrepMs": 7.0774,
"candidateMeanFacePrepMs": 6.2985,
"lastFrameFaceCount": 0
},
{
"width": 3840,
"height": 2160,
"mode": "rectangle",
"sha256PerFrame": [
"4825372c5c72ea1f137fd76115099dc9b94e685789ac84900a26ef8c551beb79",
"6aec6be418a908d1a16a7a2e6b10c2575d8c02616ba7b7e71a87367b35885a0e",
"09f983656fc8c0348d501fc1581e8504dae63697fc03b142b1fea087a4c6860c",
"a918f735ca7d47d57698f48adb81d8924c3d4f3fd54f119668ee8afc315f4c6e",
"6552cfc7666e3d4f452e6cfa8109f8e8edd275fe6193904310d2059efeb4d5e4",
"f8a510ea67bffcbc1be76f3519790147c99248c1a8d94743fa7368189f2c152d",
"59cb745b0df7571f085dccb84523df14d797b9935819e7f34b64961114a3e5c1",
"c7b3725330c7f46c2603040f32deb817559fad3c5cf6a7c1ce8d613b80f59f27",
"6b220dad3a32f836e96a437bad9f6a2adae6855faf9afc8f25adc12b1cf9b5a7",
"75c1fe50b026a27fbd5f043abd7f8e22069f9352a40fffdbf6e4b75b93d16c35",
"2b328eb8a37549967adf0e081cf283685ad20cd09e7aca83085df290178f16d3",
"1e13e3d3ec55e97f4049dd7659d1531435aa4f98ac5311515b594c7adae73ad8"
],
"baselineMedianMs": 10.3827,
"candidateMedianMs": 9.5718,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 3840,
"height": 2160,
"mode": "bezier",
"sha256PerFrame": [
"b6d7b5b1272c131959096bc94c8280531d338b8633538d9e23be1fe08982d80b",
"bc61402f9875e08f2581c2e0963f787f50a4c4ddee37f0f89d61e11330283653",
"305fc2567418ebf3647892cd8e11260590bb4694bda0a47eb76475eb5ca425b1",
"2e59cf6b6527a4517e85645ec36f32b987ab46b1e4367c1aea263a784dd80512",
"cbff79ad114f16f5666ac41a6efb0a91556198f79821e81ae432ca41f3d0407d",
"d24fb3db559cb44e54a1c35dc02009078dd4cc74eae388ce20c691f05ff89c41",
"d6050c7538b462096f5f24d3d5c718ff1de6870fd55acf4f37faf13d17a4ed1e",
"82193ee84dda9717b28533d09c4ae6b3d5c97985268a112e62f8384a9a6defe8",
"02a202343ff8160ee5b9e17dcbfacb567e49e0f5231561c546781959d4645a70",
"dcb15d92cd542dd2dc9cc59bf1113143b4b58106a46e93afdf9be034e279d0af",
"72c7f160157d7f3f3506319328b19d901f1a621113e679fec2b5acb9a8c98977",
"e1e3b3433b7b81b0ab2646d6a79d64e3af8518c2de21e1581a7c0ad500ed5608"
],
"baselineMedianMs": 25.2492,
"candidateMedianMs": 13.2389,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 3840,
"height": 2160,
"mode": "bezier-inverted-levels",
"sha256PerFrame": [
"365df048a18085c3c5b64b765954b74e09d9c4ee16be9e54f64f9d174eca9aa8",
"a18dc25a18a9e4c785e3d91805e3e0cbd110de6d911b840382971fcb1e6da5a6",
"a5dcb78f08cd5fa84db5b5bd1d96dbe6f136f7ea5eed66fc44552e045cd8b6b5",
"3a9e251a57fb1d91102052ab77623f288904bf807f84ba65dcc7ef0abe0c20b2",
"a09b4962ffa3609993847a5608fbc3f33ea41eb2a5b26b46a058e731c7aa2d7d",
"9b1d693fcb871f7df6fb6e10c05665446d0c64254f7ae21d944a75ebc06c99c6",
"de548cdc7cef5827ede2abf2934c26c3b8e5ef8fbab0d878f067774543823bd3",
"0119a89c934508d7e80fbcc4cb5330f1d83b76e0fc25fb9070f06cc45e34e95c",
"62d6e6ee839509a63eed8cf583c5484e3488ec0d497a43d1d8e822aa3ad73ed5",
"42aa8407a667683475775c851b50d2ddede879722e107db5bc8b53daed9acbbd",
"8ce9d75a5999e932f73cf2fd1e3bd5c7516f9ba67d7aecbe8d10719d74fcfc48",
"2e0183c9e42566d83cfd1629b34d224cc124d743060c56ba5558557e0541e8a9"
],
"baselineMedianMs": 24.5597,
"candidateMedianMs": 11.6014,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 3840,
"height": 2160,
"mode": "two-beziers",
"sha256PerFrame": [
"153f580761129c4b05d3eb3753536f1569f726bb09641515195246143547ff69",
"73d6d31ddcced720204a5a49f2b5a3edc1fabc81641c402cbea15b644135d06c",
"993b43e230efc1393355ac47dea3fd5f4fa45b57cf8c3970e9bbd7b18f35b429",
"0915eb74f26e73e8e83370ffe75e36ce52c33da43163e4691219bec757e73f06",
"4c225bbeb35b5c8bd0b29612500316fe8a4d5ed9166eb66b9bb4297c76541a9a",
"e482b8272c722331ddbc05a4be6ee05980ee4be0bb0848b1dc4cf315f810135b",
"5d54309a2518950fd0024634eb8aa171ee66d01746562a0108ec70e477ebb336",
"af1eb09f7524fe3d042e59177cfa3022bda85e84ba249b4977ec9654d82db5df",
"f109172a4edfa95b331cb8034c0230f9cc16f3d3da4fa9988ec6e17544950ffd",
"6aba61e545ef1fed6eaae596f0d06309ceea1b89c3064bfc6ac8736aa81807f1",
"04fbc88f6a129518d11f7a8ff4cf53ab4d2fc4c1dc69327073e103bef1da4d58",
"97a69e0e541b2c7a53e9064de10a510abd7fac3d68e764b27ef546531a405f2c"
],
"baselineMedianMs": 42.7548,
"candidateMedianMs": 13.8448,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 3840,
"height": 2160,
"mode": "luma-key",
"sha256PerFrame": [
"031e3b50da04be9de1b08d296608cba5d3d09cddd29198087f9b30cc2bd3e77a",
"cd5f91bd17d0a3f8d6f4e1eb6645142869858817f7f551867f7ce34069d7a039",
"24d7d3bb51712cd01e176ab2ab94e3d48280bf20225fcba822d96f77d5aa70a4",
"b55a8e36defd37dfb294b3de5a55829120afae9d23278563b779ae1d9c2c8fd4",
"3fd27b780946d4684ec2e2f4386fb5b354f4399b778dc660409c51eead8ad38a",
"8a7ef6ccd67d4477d0373c25c8fb936f718f54dbf836e7da5d6a00cc91337643",
"af5dc6a4522c63e26b82d31d9c5ed8723ba57fa68245c6ef221f2f0ae026fd8a",
"46d84fda77ac716ce928d4650e73f79b3a7eba8ea80924d757bb0cb9d75e4ac7",
"dc9b615eba156b3527a20839f39fb025bc53aa248d7f670753e42c8ac7736804",
"363743823531785f4a3b1cbbbb41ba1fe3d246eebb877c061c4881a42374c49f",
"65eb54dee632ce6942026a60870becca18c694cdf7d7927c898263550081e0a6",
"cdcd956990bdecfbd3c1ffaa35722f59b8c76b39e244bb5aef18439a7f25c821"
],
"baselineMedianMs": 9.3111,
"candidateMedianMs": 9.2196,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
},
{
"width": 3840,
"height": 2160,
"mode": "tracking-color-capture",
"sha256PerFrame": [
"0150e421464f674e64b2642160a2a3cc239eb2a8faf7150e16e5a7f41cd55435",
"5d3274b1795369c68cb827d9b83484a7c2d9c3722d2e65673e0283f3abb1198e",
"494501876898005526a212f03cccf0f91336173ca1720c6bcce6c1bd14d39b1e",
"f0249d31d73f9aea236e4757ebda0df91981abf1dfb33da6badc902d6935796f",
"296841d84153ef03606ea934351b39949dc7f58ef4ca537c9a5404b2c9a4532b",
"c1b889fc21942f65362643bdf34bfc318e3fc1772cb13055e4f9e557fcf37780",
"8be6b27f94aeac8fe50b164a6d88dd31c86c93378c3f40f8cec704ce214d55bf",
"e817a93ddccb8095bf1e4315a1add0424e0cebc38c893b0f28ea92dbf02647bd",
"7dfc1ad705bfb60ed9e645cd203b34bcd5885fbf5b0e61b060e9c30db582d760",
"c8e14c5400032b9d33ef32878b36da0d1f7a48770c7dcc80e44593fe9c6a18e1",
"6c330d0ffa3ed222a93a102404f36bd402a932e114b3fb2cd2fae3efa88ebf52",
"ce0910ec0158d6fe729bb714293616300907cb3b4410ab42f300458d237cc645"
],
"baselineMedianMs": 6.0041,
"candidateMedianMs": 3.5445,
"baselineMeanFacePrepMs": 0,
"candidateMeanFacePrepMs": 0,
"lastFrameFaceCount": 0
}
],
"visionDeviceProbe": {
"scope": "Request-supported main-stage devices queried on this Apple M4. Automatic device routing is inferred from comparison, not asserted as measured hardware occupancy.",
"faceRectanglesRevision3": [
"NeuralEngine",
"GPU",
"CPU"
],
"trackObjectRevision2": [
"NeuralEngine",
"GPU",
"CPU"
],
"homographicRegistrationRevision1": [
"CPU"
],
"test": "One 285-frame local motion clip, 25 fps, same 640x360 BGRA frames and head ROI, accurate mode, three independent trials per device. Algorithm plus input packing, excludes decoding, FCP and first request from median.",
"results": {
"auto": [
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 0.8206,
"trajectorySHA256": "2fd00dd93dc6ea81e797bd5b3597ec1102c2a3d2afdbf944f324aa6d485d32d9"
},
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 0.8176,
"trajectorySHA256": "2fd00dd93dc6ea81e797bd5b3597ec1102c2a3d2afdbf944f324aa6d485d32d9"
},
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 0.797,
"trajectorySHA256": "2fd00dd93dc6ea81e797bd5b3597ec1102c2a3d2afdbf944f324aa6d485d32d9"
}
],
"NeuralEngine": [
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 0.8207,
"trajectorySHA256": "2fd00dd93dc6ea81e797bd5b3597ec1102c2a3d2afdbf944f324aa6d485d32d9"
},
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 0.8245,
"trajectorySHA256": "2fd00dd93dc6ea81e797bd5b3597ec1102c2a3d2afdbf944f324aa6d485d32d9"
},
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 0.7907,
"trajectorySHA256": "2fd00dd93dc6ea81e797bd5b3597ec1102c2a3d2afdbf944f324aa6d485d32d9"
}
],
"GPU": [
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 1.9236,
"trajectorySHA256": "3f332258888d3dfbe6fb121f3b714aa3994aa85b6c88d885f89592471190aa0d"
},
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 1.9129,
"trajectorySHA256": "3f332258888d3dfbe6fb121f3b714aa3994aa85b6c88d885f89592471190aa0d"
},
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 1.8133,
"trajectorySHA256": "3f332258888d3dfbe6fb121f3b714aa3994aa85b6c88d885f89592471190aa0d"
}
],
"CPU": [
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 2.6157,
"trajectorySHA256": "1363858c0b3a52e4ebd04b5bc4d303a6f059afcb420d1a822f6e52713c02abb1"
},
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 2.6202,
"trajectorySHA256": "1363858c0b3a52e4ebd04b5bc4d303a6f059afcb420d1a822f6e52713c02abb1"
},
{
"frames": 285,
"invalid": 0,
"predicted": 0,
"warmMedianMs": 2.5909,
"trajectorySHA256": "1363858c0b3a52e4ebd04b5bc4d303a6f059afcb420d1a822f6e52713c02abb1"
}
]
},
"autoMatchesExplicitNeuralEngineTrajectory": true
},
"limits": [
"Median stage times do not measure host decode, display FPS or export.",
"One portrait fixture and one local motion clip do not establish accuracy across shots.",
"Build 118 was not released. The later startup guard does not change the measured Metal or Vision calculation."
]
}
+15 -15
查看文件
@@ -1,7 +1,7 @@
{
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.20.2.pkg",
"sha256": "8edd792c6a9be629263baee68c4c3e7b67221ffd1e995bd8c9ab1f753eefd2b4",
"bytes": 44505420,
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.21.2.pkg",
"sha256": "01ee76d2302d0d1fc54b1ff5a3397c386467324db5f391d0b5dfd48c1e93b9df",
"bytes": 44509704,
"testUnsigned": false,
"installationExecuted": false,
"checks": [
@@ -31,27 +31,27 @@
"source": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"payload": "Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.20.2",
"build": "113"
"version": "1.21.2",
"build": "119"
},
{
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs-m_xzx8yc/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.10a6bf46-1412-4819-83d4-ebb45c79275b/B090E51C-345E-4A74-80E5-70F4A10D475E/大鱼调色"
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs-988l65xa/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.f5e49fc9-9c01-44d4-8547-0b4c7af269c3/632156F3-A2F8-403B-94F1-E4AE03F4193C/大鱼调色"
}
],
"signature": "Package \"大鱼调色-1.20.2.pkg\":\n Status: signed by a developer certificate issued by Apple for distribution\n Notarization: trusted by the Apple notary service\n Signed with a trusted timestamp on: 2026-11-08 07:39:35 +0000\n Certificate Chain:\n 1. Developer ID Installer: zhong luo (B3W25FX5H5)\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n C0 19 01 3C 67 88 8F 34 65 56 C5 91 3C E5 B6 12 4C 5D A6 DA F9 D8 \n DA 00 37 52 DF F0 F3 E6 00 B4\n ------------------------------------------------------------------------\n 2. Developer ID Certification Authority\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n 7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 \n F2 9C 88 CF B0 B1 BA 63 58 7F\n ------------------------------------------------------------------------\n 3. Apple Root CA\n Expires: 2035-02-09 21:40:36 +0000\n SHA256 Fingerprint:\n B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C \n 68 C5 BE 91 B5 A1 10 01 F0 24",
"gatekeeper": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.20.2.pkg: accepted\nsource=Notarized Developer ID",
"signature": "Package \"大鱼调色-1.21.2.pkg\":\n Status: signed by a developer certificate issued by Apple for distribution\n Notarization: trusted by the Apple notary service\n Signed with a trusted timestamp on: 2026-11-08 10:23:58 +0000\n Certificate Chain:\n 1. Developer ID Installer: zhong luo (B3W25FX5H5)\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n C0 19 01 3C 67 88 8F 34 65 56 C5 91 3C E5 B6 12 4C 5D A6 DA F9 D8 \n DA 00 37 52 DF F0 F3 E6 00 B4\n ------------------------------------------------------------------------\n 2. Developer ID Certification Authority\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n 7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 \n F2 9C 88 CF B0 B1 BA 63 58 7F\n ------------------------------------------------------------------------\n 3. Apple Root CA\n Expires: 2035-02-09 21:40:36 +0000\n SHA256 Fingerprint:\n B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C \n 68 C5 BE 91 B5 A1 10 01 F0 24",
"gatekeeper": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.21.2.pkg: accepted\nsource=Notarized Developer ID",
"pass": true,
"scope": "Expanded package structural and payload verification only; no installer scripts executed and no host quit or registration performed.",
"notarization": {
"createdDate": "2026-11-08T07:39:36.695Z",
"name": "大鱼调色-1.20.2.pkg",
"status": "Accepted",
"id": "1a6834df-840f-47da-9ee8-be6a0a808fee",
"id": "add05c02-616e-471f-a53a-8aa7c230ef52",
"createdDate": "2026-11-08T10:24:00.961Z",
"name": "大鱼调色-1.21.2.pkg",
"message": "Successfully received submission info"
},
"appCompiledSource": "046411ba8b2c2bf8549601b2e5a080fd9dccd31b",
"appBuild": "113",
"appCompiledSource": "6a979f16a828e17284c8f04647c79ac65811d3dc",
"appBuild": "119",
"packageBuilderRemote": "https://dayu.media/git/dayu/pkg-forge.git",
"residentAppClosing": {
"identifiers": [
@@ -127,6 +127,6 @@
"entries": 192,
"scope": "Read/traverse modes for installer-owned app entries, from the package BOM"
},
"installedAppHostAcceptance": "verification/HostSpiderScope1.20.2.json",
"installedAppHostAcceptance": "verification/HostLUTLoading.json",
"installScope": "本轮仅生成并验包,未再次执行系统安装;正式 APP 已有独立宿主验收。"
}
+132
查看文件
@@ -0,0 +1,132 @@
{
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.21.0.pkg",
"sha256": "ec1a57f23bf369d7a7841848d71d8ab78a7c229cbb5abe1c502e9964f87dbbcb",
"bytes": 44508770,
"testUnsigned": false,
"installationExecuted": false,
"checks": [
"PKG Developer ID Installer signature",
"PKG stapled ticket and Gatekeeper install assessment",
"must-close attached to root-authorized payload",
"all four FCP/Motion host identifiers",
"bundle relocation disabled",
"desktop and Bundle ID preinstall guards",
"postinstall contains actual FxPlug verification invocations",
"GUI worker, registration repair and Finder reveal present",
"successful completion and consecutive registration checks",
"exact payload contents: 大鱼调色.app",
"fixed FxPlug outer APP install path",
"outer APP has one real verification action",
"service path/identifier/registration version: com.dayu.color.XPC",
"nonempty FxPlug service manifest",
"payload APP signature, independent ticket and Gatekeeper",
"exact payload contents: 大鱼调色",
"login-user resource destination: ~/Movies/Motion Templates.localized/Effects.localized",
"complete outer APP payload present",
"welcome warns to save work and close hosts",
"conclusion gives manual APP and host restart instructions"
],
"resources": [
{
"source": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"payload": "Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.21.0",
"build": "114"
},
{
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs-81lueh25/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.41bb9e80-c269-4a80-b88c-4edb6aad9bc1/A487CF16-2495-4CDE-B156-411B7EFEF470/大鱼调色"
}
],
"signature": "Package \"大鱼调色-1.21.0.pkg\":\n Status: signed by a developer certificate issued by Apple for distribution\n Notarization: trusted by the Apple notary service\n Signed with a trusted timestamp on: 2026-11-08 08:25:14 +0000\n Certificate Chain:\n 1. Developer ID Installer: zhong luo (B3W25FX5H5)\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n C0 19 01 3C 67 88 8F 34 65 56 C5 91 3C E5 B6 12 4C 5D A6 DA F9 D8 \n DA 00 37 52 DF F0 F3 E6 00 B4\n ------------------------------------------------------------------------\n 2. Developer ID Certification Authority\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n 7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 \n F2 9C 88 CF B0 B1 BA 63 58 7F\n ------------------------------------------------------------------------\n 3. Apple Root CA\n Expires: 2035-02-09 21:40:36 +0000\n SHA256 Fingerprint:\n B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C \n 68 C5 BE 91 B5 A1 10 01 F0 24",
"gatekeeper": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.21.0.pkg: accepted\nsource=Notarized Developer ID",
"pass": true,
"scope": "Expanded package structural and payload verification only; no installer scripts executed and no host quit or registration performed.",
"notarization": {
"createdDate": "2026-11-08T08:25:16.003Z",
"id": "29d5f921-6cd4-48a4-856a-2632f9a85e2b",
"status": "Accepted",
"message": "Successfully received submission info",
"name": "大鱼调色-1.21.0.pkg"
},
"appCompiledSource": "90e512aabe72fff30046b4bf18d6a35f91c0c113",
"appBuild": "114",
"packageBuilderRemote": "https://dayu.media/git/dayu/pkg-forge.git",
"residentAppClosing": {
"identifiers": [
"com.apple.FinalCut",
"com.apple.FinalCutApp",
"com.apple.motionapp",
"com.apple.motionappApp",
"com.dayu.color"
],
"preinstallGuardCount": 1,
"normalQuit": true
},
"packageEntryAdaptation": {
"upstreamEntrySHA256": "a1a8bc8920cfa2dfe4a7d65c4403eec8a8f3ec81b0736951578a81a80389bfc0",
"adaptedEntrySHA256": "4d9cef08673a690427de0757a5cfe42251d01aa47e40902a5155d46d01c71503",
"requiredApplication": "com.dayu.color"
},
"packageBuilderCommit": "eb53707c0e67d8ddeab8c1270bb079f1050cfafe",
"templateSHA256": {
"大鱼调色/大鱼调色.moef": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "e4612f58eee5bf07a0a44cc5f6d65f9ca207b7f6946da938ed05f7d254ca7924",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "68e91d3747a119e684f659093cb520a7fbd495336e8a1552316e52031e975ad5",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "ca6a584dd168990870fa774df8ba3fcfce5ad2e8de4d28bd656057fdaa1dbdca",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "06fdf5964f487a7cca3d6dce6e68013d3c0ba5b5c73c4bb392c7b58f5d916212",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "595f722d3ac99555d4e22611907b6273a3fb36fea59b8949be58eb1f7d319501",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "97bcbf240f86f485299c298d90f9339aa87a2751cef475e3d6a1637144d4ab13",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "3f235de32384a3b268982609583702d28470ed91c756f1b13947454f22bf3fc0",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "c49877ada4fa0ac49fa497b62f3a3e09bfe15f0d73b352bdfbeb0a9a2b7b1aad",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "6015ecc2cc89116b05d601df920ae674bad9ad4c6e7bad1f0eac889e08cda60d",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "b653b0981e0975605d2857a87bd495885d3370d3e9bcd9dc3a59b0012bf1f79e",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "96f2d1fc2fe5ed2a8eabdf3a3bf5eb7fff145d55a0ce05807dcd834d2b8e9b32",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "be935b1e399e2a47394b54b24fc2e32eb0622ae0cd28f83e1d2d895c3c1133d6",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "7c5889c052534edd0043f439f59fe31a987c9c626d9097ce7f3d7280a888b1e3",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "a559c654976ce711d01ef5b81ccaf01df8d81a9de501780cccc519fb72c4b7f2",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "5ddb7e97d718d1b78cbc162b042aed1debdd0fecd12b8596590d5de5307c19ae",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "96d684ec87cbef801316abd83a1c247360d9adf9dca52ae84881c400c898f1da",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"payloadBundleAccess": {
"entries": 192,
"scope": "Read/traverse modes for installer-owned app entries, from the package BOM"
},
"installedAppHostAcceptance": "verification/HostFluidity1.21.0.json",
"installScope": "本轮仅生成并验包,未再次执行系统安装;正式 APP 已有独立宿主验收。"
}
+132
查看文件
@@ -0,0 +1,132 @@
{
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.21.1.pkg",
"sha256": "bdc63a1b1030ccad6960031cb9f2ec8297aa90f8d4acce2057eb5ba7750a289b",
"bytes": 44509639,
"testUnsigned": false,
"installationExecuted": false,
"checks": [
"PKG Developer ID Installer signature",
"PKG stapled ticket and Gatekeeper install assessment",
"must-close attached to root-authorized payload",
"all four FCP/Motion host identifiers",
"bundle relocation disabled",
"desktop and Bundle ID preinstall guards",
"postinstall contains actual FxPlug verification invocations",
"GUI worker, registration repair and Finder reveal present",
"successful completion and consecutive registration checks",
"exact payload contents: 大鱼调色.app",
"fixed FxPlug outer APP install path",
"outer APP has one real verification action",
"service path/identifier/registration version: com.dayu.color.XPC",
"nonempty FxPlug service manifest",
"payload APP signature, independent ticket and Gatekeeper",
"exact payload contents: 大鱼调色",
"login-user resource destination: ~/Movies/Motion Templates.localized/Effects.localized",
"complete outer APP payload present",
"welcome warns to save work and close hosts",
"conclusion gives manual APP and host restart instructions"
],
"resources": [
{
"source": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"payload": "Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.21.1",
"build": "117"
},
{
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs-5rlza1xq/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.5e3ac05e-160f-46e2-9830-b084d1aeddf3/5C2FB0AE-6252-468F-B539-BE265CAF425D/大鱼调色"
}
],
"signature": "Package \"大鱼调色-1.21.1.pkg\":\n Status: signed by a developer certificate issued by Apple for distribution\n Notarization: trusted by the Apple notary service\n Signed with a trusted timestamp on: 2026-11-08 09:03:59 +0000\n Certificate Chain:\n 1. Developer ID Installer: zhong luo (B3W25FX5H5)\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n C0 19 01 3C 67 88 8F 34 65 56 C5 91 3C E5 B6 12 4C 5D A6 DA F9 D8 \n DA 00 37 52 DF F0 F3 E6 00 B4\n ------------------------------------------------------------------------\n 2. Developer ID Certification Authority\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n 7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 \n F2 9C 88 CF B0 B1 BA 63 58 7F\n ------------------------------------------------------------------------\n 3. Apple Root CA\n Expires: 2035-02-09 21:40:36 +0000\n SHA256 Fingerprint:\n B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C \n 68 C5 BE 91 B5 A1 10 01 F0 24",
"gatekeeper": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.21.1.pkg: accepted\nsource=Notarized Developer ID",
"pass": true,
"scope": "Expanded package structural and payload verification only; no installer scripts executed and no host quit or registration performed.",
"notarization": {
"status": "Accepted",
"message": "Successfully received submission info",
"name": "大鱼调色-1.21.1.pkg",
"id": "dbddc544-aa94-4279-8f92-37597c264313",
"createdDate": "2026-11-08T09:04:03.534Z"
},
"appCompiledSource": "98d80970e83e30e4883a76d8f740f2fca5d05e7c",
"appBuild": "117",
"packageBuilderRemote": "https://dayu.media/git/dayu/pkg-forge.git",
"residentAppClosing": {
"identifiers": [
"com.apple.FinalCut",
"com.apple.FinalCutApp",
"com.apple.motionapp",
"com.apple.motionappApp",
"com.dayu.color"
],
"preinstallGuardCount": 1,
"normalQuit": true
},
"packageEntryAdaptation": {
"upstreamEntrySHA256": "a1a8bc8920cfa2dfe4a7d65c4403eec8a8f3ec81b0736951578a81a80389bfc0",
"adaptedEntrySHA256": "4d9cef08673a690427de0757a5cfe42251d01aa47e40902a5155d46d01c71503",
"requiredApplication": "com.dayu.color"
},
"packageBuilderCommit": "eb53707c0e67d8ddeab8c1270bb079f1050cfafe",
"templateSHA256": {
"大鱼调色/大鱼调色.moef": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "e4612f58eee5bf07a0a44cc5f6d65f9ca207b7f6946da938ed05f7d254ca7924",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "68e91d3747a119e684f659093cb520a7fbd495336e8a1552316e52031e975ad5",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "ca6a584dd168990870fa774df8ba3fcfce5ad2e8de4d28bd656057fdaa1dbdca",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "06fdf5964f487a7cca3d6dce6e68013d3c0ba5b5c73c4bb392c7b58f5d916212",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "595f722d3ac99555d4e22611907b6273a3fb36fea59b8949be58eb1f7d319501",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "97bcbf240f86f485299c298d90f9339aa87a2751cef475e3d6a1637144d4ab13",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "3f235de32384a3b268982609583702d28470ed91c756f1b13947454f22bf3fc0",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "c49877ada4fa0ac49fa497b62f3a3e09bfe15f0d73b352bdfbeb0a9a2b7b1aad",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "6015ecc2cc89116b05d601df920ae674bad9ad4c6e7bad1f0eac889e08cda60d",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "b653b0981e0975605d2857a87bd495885d3370d3e9bcd9dc3a59b0012bf1f79e",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "96f2d1fc2fe5ed2a8eabdf3a3bf5eb7fff145d55a0ce05807dcd834d2b8e9b32",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "be935b1e399e2a47394b54b24fc2e32eb0622ae0cd28f83e1d2d895c3c1133d6",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "7c5889c052534edd0043f439f59fe31a987c9c626d9097ce7f3d7280a888b1e3",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "a559c654976ce711d01ef5b81ccaf01df8d81a9de501780cccc519fb72c4b7f2",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "5ddb7e97d718d1b78cbc162b042aed1debdd0fecd12b8596590d5de5307c19ae",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "96d684ec87cbef801316abd83a1c247360d9adf9dca52ae84881c400c898f1da",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"payloadBundleAccess": {
"entries": 192,
"scope": "Read/traverse modes for installer-owned app entries, from the package BOM"
},
"installedAppHostAcceptance": "verification/HostScopes1.21.1.json",
"installScope": "本轮仅生成并验包,未再次执行系统安装;正式 APP 已有独立宿主验收。"
}
+132
查看文件
@@ -0,0 +1,132 @@
{
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.21.2.pkg",
"sha256": "01ee76d2302d0d1fc54b1ff5a3397c386467324db5f391d0b5dfd48c1e93b9df",
"bytes": 44509704,
"testUnsigned": false,
"installationExecuted": false,
"checks": [
"PKG Developer ID Installer signature",
"PKG stapled ticket and Gatekeeper install assessment",
"must-close attached to root-authorized payload",
"all four FCP/Motion host identifiers",
"bundle relocation disabled",
"desktop and Bundle ID preinstall guards",
"postinstall contains actual FxPlug verification invocations",
"GUI worker, registration repair and Finder reveal present",
"successful completion and consecutive registration checks",
"exact payload contents: 大鱼调色.app",
"fixed FxPlug outer APP install path",
"outer APP has one real verification action",
"service path/identifier/registration version: com.dayu.color.XPC",
"nonempty FxPlug service manifest",
"payload APP signature, independent ticket and Gatekeeper",
"exact payload contents: 大鱼调色",
"login-user resource destination: ~/Movies/Motion Templates.localized/Effects.localized",
"complete outer APP payload present",
"welcome warns to save work and close hosts",
"conclusion gives manual APP and host restart instructions"
],
"resources": [
{
"source": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"payload": "Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.21.2",
"build": "119"
},
{
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs-988l65xa/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.f5e49fc9-9c01-44d4-8547-0b4c7af269c3/632156F3-A2F8-403B-94F1-E4AE03F4193C/大鱼调色"
}
],
"signature": "Package \"大鱼调色-1.21.2.pkg\":\n Status: signed by a developer certificate issued by Apple for distribution\n Notarization: trusted by the Apple notary service\n Signed with a trusted timestamp on: 2026-11-08 10:23:58 +0000\n Certificate Chain:\n 1. Developer ID Installer: zhong luo (B3W25FX5H5)\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n C0 19 01 3C 67 88 8F 34 65 56 C5 91 3C E5 B6 12 4C 5D A6 DA F9 D8 \n DA 00 37 52 DF F0 F3 E6 00 B4\n ------------------------------------------------------------------------\n 2. Developer ID Certification Authority\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n 7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 \n F2 9C 88 CF B0 B1 BA 63 58 7F\n ------------------------------------------------------------------------\n 3. Apple Root CA\n Expires: 2035-02-09 21:40:36 +0000\n SHA256 Fingerprint:\n B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C \n 68 C5 BE 91 B5 A1 10 01 F0 24",
"gatekeeper": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.21.2.pkg: accepted\nsource=Notarized Developer ID",
"pass": true,
"scope": "Expanded package structural and payload verification only; no installer scripts executed and no host quit or registration performed.",
"notarization": {
"status": "Accepted",
"id": "add05c02-616e-471f-a53a-8aa7c230ef52",
"createdDate": "2026-11-08T10:24:00.961Z",
"name": "大鱼调色-1.21.2.pkg",
"message": "Successfully received submission info"
},
"appCompiledSource": "6a979f16a828e17284c8f04647c79ac65811d3dc",
"appBuild": "119",
"packageBuilderRemote": "https://dayu.media/git/dayu/pkg-forge.git",
"residentAppClosing": {
"identifiers": [
"com.apple.FinalCut",
"com.apple.FinalCutApp",
"com.apple.motionapp",
"com.apple.motionappApp",
"com.dayu.color"
],
"preinstallGuardCount": 1,
"normalQuit": true
},
"packageEntryAdaptation": {
"upstreamEntrySHA256": "a1a8bc8920cfa2dfe4a7d65c4403eec8a8f3ec81b0736951578a81a80389bfc0",
"adaptedEntrySHA256": "4d9cef08673a690427de0757a5cfe42251d01aa47e40902a5155d46d01c71503",
"requiredApplication": "com.dayu.color"
},
"packageBuilderCommit": "eb53707c0e67d8ddeab8c1270bb079f1050cfafe",
"templateSHA256": {
"大鱼调色/大鱼调色.moef": "48d9ff4883cf189ae0a54b5cf412a898beb97b38d29d6cbc745d6cfa613dce60",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "e4612f58eee5bf07a0a44cc5f6d65f9ca207b7f6946da938ed05f7d254ca7924",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "68e91d3747a119e684f659093cb520a7fbd495336e8a1552316e52031e975ad5",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "ca6a584dd168990870fa774df8ba3fcfce5ad2e8de4d28bd656057fdaa1dbdca",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "06fdf5964f487a7cca3d6dce6e68013d3c0ba5b5c73c4bb392c7b58f5d916212",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "595f722d3ac99555d4e22611907b6273a3fb36fea59b8949be58eb1f7d319501",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "97bcbf240f86f485299c298d90f9339aa87a2751cef475e3d6a1637144d4ab13",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "3f235de32384a3b268982609583702d28470ed91c756f1b13947454f22bf3fc0",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "c49877ada4fa0ac49fa497b62f3a3e09bfe15f0d73b352bdfbeb0a9a2b7b1aad",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "6015ecc2cc89116b05d601df920ae674bad9ad4c6e7bad1f0eac889e08cda60d",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "b653b0981e0975605d2857a87bd495885d3370d3e9bcd9dc3a59b0012bf1f79e",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "96f2d1fc2fe5ed2a8eabdf3a3bf5eb7fff145d55a0ce05807dcd834d2b8e9b32",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "be935b1e399e2a47394b54b24fc2e32eb0622ae0cd28f83e1d2d895c3c1133d6",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "7c5889c052534edd0043f439f59fe31a987c9c626d9097ce7f3d7280a888b1e3",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "a559c654976ce711d01ef5b81ccaf01df8d81a9de501780cccc519fb72c4b7f2",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "5ddb7e97d718d1b78cbc162b042aed1debdd0fecd12b8596590d5de5307c19ae",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "96d684ec87cbef801316abd83a1c247360d9adf9dca52ae84881c400c898f1da",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"payloadBundleAccess": {
"entries": 192,
"scope": "Read/traverse modes for installer-owned app entries, from the package BOM"
},
"installedAppHostAcceptance": "verification/HostLUTLoading.json",
"installScope": "本轮仅生成并验包,未再次执行系统安装;正式 APP 已有独立宿主验收。"
}
+14
查看文件
@@ -0,0 +1,14 @@
{
"compiledSource": "046411ba8b2c2bf8549601b2e5a080fd9dccd31b",
"trackedFiles": 798,
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"remoteBranch": "main",
"gitFsck": "pass",
"lfsPointers": 0,
"submodules": 0,
"tag": "v1.20.2-spider-scope-20261108",
"releaseCommit": "bc9021271d5e4992a6a63011e4ff197812029ab3",
"tagTrackedFiles": 802,
"tagGitFsck": "pass",
"buildInputsMatchCompiledSource": true
}
+15
查看文件
@@ -0,0 +1,15 @@
{
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"tag": "v1.21.0-fluidity-20261108",
"compiledSource": "90e512aabe72fff30046b4bf18d6a35f91c0c113",
"releaseCommit": "3a5ead0ce07eb2ed3009490af316b9edec186c62",
"filesVerified": {
"release": 810,
"compiled": 805
},
"gitIntegrity": true,
"buildInputsMatch": true,
"lfsPointers": 0,
"submodules": 0,
"scope": "Independent HTTPS clone and detached checkout of both exact nodes. Every tracked blob matches its Git hash. No additional cold build in the recovery clone."
}
+22
查看文件
@@ -0,0 +1,22 @@
{
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"branch": "main",
"build": 117,
"results": [
{
"ref": "98d80970e83e30e4883a76d8f740f2fca5d05e7c",
"commit": "98d80970e83e30e4883a76d8f740f2fca5d05e7c",
"verifiedTrackedFiles": 812
},
{
"ref": "v1.21.1-scope-face-20261108",
"commit": "ad4e5e7a823bb451f45755d0ab331f08f6211239",
"verifiedTrackedFiles": 817
}
],
"fullGitFsckPassed": true,
"buildInputsIdentical": true,
"lfsPointers": 0,
"submodules": 0,
"scope": "Independent HTTPS checkout. All tracked bytes match the compiled source and version tag."
}
+16 -53
查看文件
@@ -1,60 +1,23 @@
{
"passResult": true,
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"visibilityUnchanged": true,
"tag": "v1.19.1-idle-preview-20261106",
"releaseCommit": "6add6f29e357d37e94a8430d6963ec7f91993537",
"appCompiledSource": "3642a1dba6cbbc4423bd6928944e0e95d76d9cfa",
"version": "1.19.1",
"build": 110,
"releaseID": 404,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.19.1-idle-preview-20261106",
"tag": "v1.21.1-scope-face-20261108",
"releaseCommit": "ad4e5e7a823bb451f45755d0ab331f08f6211239",
"appCompiledSource": "98d80970e83e30e4883a76d8f740f2fca5d05e7c",
"version": "1.21.1",
"build": 117,
"releaseID": 415,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.21.1-scope-face-20261108",
"prerelease": true,
"existingAssetReused": true,
"verification": "Both full draft browser downloads verified before publication; both published attachments downloaded and verified again; release, tag and assets read back.",
"assetID": 61,
"assetName": "大鱼调色-1.21.1.pkg",
"bytes": 44509639,
"sha256": "bdc63a1b1030ccad6960031cb9f2ec8297aa90f8d4acce2057eb5ba7750a289b",
"credentialSource": "macOS Keychain: dayu-git-api",
"assets": [
{
"assetID": 51,
"assetName": "大鱼调色-1.19.1.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.19.1-idle-preview-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.19.1.pkg",
"bytes": 44488264,
"sha256": "7513be46cc86eb5df26401c9cb4368c8290d276cdcc478e5f16f727a1be4d647",
"draftBrowserDownload": {
"path": "/Volumes/备份/大鱼调色-1.19.1.pkg",
"bytes": 44488264,
"sha256": "7513be46cc86eb5df26401c9cb4368c8290d276cdcc478e5f16f727a1be4d647",
"sourceURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.19.1-idle-preview-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.19.1.pkg"
},
"publishedFullDownloadVerified": true
},
{
"assetID": 52,
"assetName": "大鱼调色-1.19.1-symbols.zip",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.19.1-idle-preview-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.19.1-symbols.zip",
"bytes": 3475056,
"sha256": "c40af08b2bc0c704e1eee3851d66e957b1c35a9ec88052b65d9c2d402c2cd37a",
"draftBrowserDownload": {
"path": "/Volumes/备份/大鱼调色-1.19.1-symbols.zip",
"bytes": 3475056,
"sha256": "c40af08b2bc0c704e1eee3851d66e957b1c35a9ec88052b65d9c2d402c2cd37a",
"sourceURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.19.1-idle-preview-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.19.1-symbols.zip"
},
"publishedFullDownloadVerified": true
}
],
"assetID": 51,
"assetName": "大鱼调色-1.19.1.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.19.1-idle-preview-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.19.1.pkg",
"bytes": 44488264,
"sha256": "7513be46cc86eb5df26401c9cb4368c8290d276cdcc478e5f16f727a1be4d647",
"draftBrowserDownload": {
"path": "/Volumes/备份/大鱼调色-1.19.1.pkg",
"bytes": 44488264,
"sha256": "7513be46cc86eb5df26401c9cb4368c8290d276cdcc478e5f16f727a1be4d647",
"sourceURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.19.1-idle-preview-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.19.1.pkg"
},
"publishedFullDownloadVerified": true
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.21.1-scope-face-20261108/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.21.1.pkg",
"draftDownloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.21.1-scope-face-20261108/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.21.1.pkg",
"draftVerification": "Authenticated browser download matched full byte count and SHA-256 before publication.",
"verification": "Published release and attachment read-back matched. Complete HTTPS download matched byte count and SHA-256.",
"passResult": true
}
+23
查看文件
@@ -0,0 +1,23 @@
{
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.20.2-spider-scope-20261108",
"releaseCommit": "bc9021271d5e4992a6a63011e4ff197812029ab3",
"appCompiledSource": "046411ba8b2c2bf8549601b2e5a080fd9dccd31b",
"version": "1.20.2",
"build": 113,
"releaseID": 413,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.20.2-spider-scope-20261108",
"prerelease": true,
"assetID": 59,
"assetName": "大鱼调色-1.20.2.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.20.2-spider-scope-20261108/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.20.2.pkg",
"bytes": 44505420,
"sha256": "8edd792c6a9be629263baee68c4c3e7b67221ffd1e995bd8c9ab1f753eefd2b4",
"credentialSource": "macOS Keychain: dayu-git-api",
"draftDownloadURL": "https://dayu.media/git/attachments/f818322d-609a-4bae-a323-c5308bb78c80",
"passResult": true,
"draftVerification": "Authenticated browser download matched SHA-256 and byte count",
"verification": "Published release read-back and complete attachment download matched SHA-256 and byte count."
}
+23
查看文件
@@ -0,0 +1,23 @@
{
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.21.0-fluidity-20261108",
"releaseCommit": "3a5ead0ce07eb2ed3009490af316b9edec186c62",
"appCompiledSource": "90e512aabe72fff30046b4bf18d6a35f91c0c113",
"version": "1.21.0",
"build": 114,
"releaseID": 414,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.21.0-fluidity-20261108",
"prerelease": true,
"assetID": 60,
"assetName": "大鱼调色-1.21.0.pkg",
"bytes": 44508770,
"sha256": "ec1a57f23bf369d7a7841848d71d8ab78a7c229cbb5abe1c502e9964f87dbbcb",
"credentialSource": "macOS Keychain: dayu-git-api",
"draftDownloadURL": "https://dayu.media/git/attachments/684215e0-8ee6-458e-b497-484ff5fe7719",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.21.0-fluidity-20261108/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.21.0.pkg",
"passResult": true,
"draftVerification": "Authenticated browser download matched full byte count and SHA-256 before publishing.",
"verification": "Published release and attachment read-back; complete download matched bytes and SHA-256."
}
+23
查看文件
@@ -0,0 +1,23 @@
{
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.21.1-scope-face-20261108",
"releaseCommit": "ad4e5e7a823bb451f45755d0ab331f08f6211239",
"appCompiledSource": "98d80970e83e30e4883a76d8f740f2fca5d05e7c",
"version": "1.21.1",
"build": 117,
"releaseID": 415,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.21.1-scope-face-20261108",
"prerelease": true,
"assetID": 61,
"assetName": "大鱼调色-1.21.1.pkg",
"bytes": 44509639,
"sha256": "bdc63a1b1030ccad6960031cb9f2ec8297aa90f8d4acce2057eb5ba7750a289b",
"credentialSource": "macOS Keychain: dayu-git-api",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.21.1-scope-face-20261108/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.21.1.pkg",
"draftDownloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.21.1-scope-face-20261108/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.21.1.pkg",
"draftVerification": "Authenticated browser download matched full byte count and SHA-256 before publication.",
"verification": "Published release and attachment read-back matched. Complete HTTPS download matched byte count and SHA-256.",
"passResult": true
}
+6 -4
查看文件
@@ -8,7 +8,6 @@
#import "DYManagedColor.h"
#include "DYSpiderScopeDrawing.h"
#include "DYScopeDisplayTime.h"
#import <os/log.h>
#include <cmath>
static NSButton *DYWorkspaceButton(NSString *title,id target,SEL action){NSButton *b=[NSButton buttonWithTitle:title target:target action:action];b.bezelStyle=NSBezelStyleRounded;b.bordered=NO;b.font=[NSFont systemFontOfSize:11];b.accessibilityLabel=title;return b;}
@@ -215,10 +214,13 @@ static BOOL DYWorkspaceEnabled(DYUniforms u,NSString *type){if([type isEqual:@"b
}
- (void)pageChanged:(id)sender{
if(_editorMode==2)[self bindLUTTarget];_scopePane.hidden=NO;_lutPane.hidden=_editorMode!=2;_lutExplanation.hidden=YES;_toolEditor.hidden=_editorMode!=0;_maskPane.hidden=_editorMode!=1;_selectionTitle.hidden=_editorMode==2;
CMTime displayTime=_toolTime;id<FxCustomParameterActionAPI_v4>action=[self actionAPI];if(_visible&&!_renderer.scopeEnabled&&action){[action startAction:self];@try{
displayTime=DYHostDisplayedFrameTime([self rootHost],_toolTime);if(CMTimeCompare(displayTime,_toolTime)!=0)os_log(OS_LOG_DEFAULT,"dayu_scope_end_boundary requested=%{public}.9f display=%{public}.9f",CMTimeGetSeconds(_toolTime),CMTimeGetSeconds(displayTime));
CMTime currentTime=_toolTime,frameDuration=kCMTimeInvalid;BOOL exclusiveEnd=NO;
id<FxCustomParameterActionAPI_v4>action=[self actionAPI];if(_visible&&!_renderer.scopeEnabled&&action){[action startAction:self];@try{
currentTime=action.currentTime;
CMTime displayTime=DYHostDisplayedFrameTime([self rootHost],currentTime,&frameDuration);
exclusiveEnd=CMTIME_IS_NUMERIC(currentTime)&&CMTimeCompare(displayTime,currentTime)<0;
}@finally{[action endAction:self];}}
[_renderer setScopeEnabled:_visible atTime:displayTime];if(_editorMode==2)[self ensureBrowser];[self scopeChanged:nil];[self layoutWorkspace];
[_renderer setScopeEnabled:_visible atTime:currentTime frameDuration:frameDuration exclusiveEnd:exclusiveEnd];if(_editorMode==2)[self ensureBrowser];[self scopeChanged:nil];[self layoutWorkspace];
}
- (void)toggleHostScopes:(id)sender{
id<FxCustomParameterActionAPI_v4> action=[self actionAPI];NSError *error=nil;BOOL done=NO;if(action){[action startAction:self];@try{id<FxCommandAPI> commands=[_manager apiForProtocol:@protocol(FxCommandAPI)];done=[commands performCommand:kFxCommand_ToggleWaveforms error:&error];}@finally{[action endAction:self];}}
+28 -15
查看文件
@@ -3,7 +3,7 @@
- (void)prepareFaceSupport:(FxImageTile*)source {
[_faceEntries release];_faceEntries=nil;std::vector<DYToolMaskEntry> entries;
FxRect image=source.imagePixelBounds,tile=source.tilePixelBounds;
if(image.left!=tile.left||image.right!=tile.right||image.top!=tile.top||image.bottom!=tile.bottom){[_faceEntries release];_faceEntries=nil;[_faceInput release];_faceInput=nil;return;}
if(image.left!=tile.left||image.right!=tile.right||image.top!=tile.top||image.bottom!=tile.bottom)return;
NSMutableDictionary *device=[self device:source.deviceRegistryID error:nil];id<MTLTexture>texture=[source metalTextureForDevice:device[@"device"]];if(!texture)return;
if(!_faceContext)_faceContext=[[CIContext contextWithMTLDevice:device[@"device"] options:@{kCIContextCacheIntermediates:@NO}]retain];
CGColorSpaceRef linear=CGColorSpaceCreateWithName(kCGColorSpaceLinearSRGB);
@@ -12,30 +12,42 @@
if(source.imageOrigin==kFxImageOrigin_TOP_LEFT)input=[input imageByApplyingTransform:CGAffineTransformMake(1,0,0,-1,0,input.extent.size.height)];
CGFloat scale=MIN(1.,960./MAX(input.extent.size.width,input.extent.size.height));input=[input imageByApplyingTransform:CGAffineTransformMakeScale(scale,scale)];
CGColorSpaceRef srgb=CGColorSpaceCreateWithName(kCGColorSpaceSRGB);CGImageRef cg=[_faceContext createCGImage:input fromRect:input.extent format:kCIFormatRGBA8 colorSpace:srgb];CGColorSpaceRelease(srgb);if(!cg)return;
CFDataRef raster=CGDataProviderCopyData(CGImageGetDataProvider(cg));BOOL same=raster&&[_faceInput isEqual:(NSData*)raster];if(same){_faceEntries=[_faceCachedEntries retain];CFRelease(raster);CGImageRelease(cg);return;}[_faceInput release];_faceInput=raster?[(NSData*)raster copy]:nil;if(raster)CFRelease(raster);[_faceEntries release];_faceEntries=nil;
NSData *raster=[(NSData*)CGDataProviderCopyData(CGImageGetDataProvider(cg)) autorelease];
if(raster&&[_faceInput isEqualToData:raster]){_faceEntries=[_faceCachedEntries retain];CGImageRelease(cg);return;}
VNDetectFaceLandmarksRequest *request=[VNDetectFaceLandmarksRequest new];request.revision=VNDetectFaceLandmarksRequestRevision3;request.constellation=VNRequestFaceLandmarksConstellation76Points;
VNImageRequestHandler *handler=[[VNImageRequestHandler alloc]initWithCGImage:cg orientation:kCGImagePropertyOrientationUp options:@{}];CGImageRelease(cg);
if([handler performRequests:@[request] error:nil])for(VNFaceObservation *face in request.results){
if(entries.size()>64||face.confidence<.5||!face.landmarks.faceContour.pointCount)continue;CGRect box=face.boundingBox;if(box.size.width<.015||box.size.height<.015)continue;
// Privacy coverage includes eyes, brows and mouth. Skin's feature holes must
// never punch through the mosaic. A padded rectangle covers the full face.
DYToolMaskEntry privacy{};privacy.section=-102;privacy.mask.parameters=dyDefaultMaskParameters();
privacy.mask.parameters.kind=DYMaskRectangle;privacy.mask.parameters.centerX=CGRectGetMidX(box);privacy.mask.parameters.centerY=1-CGRectGetMidY(box);
privacy.mask.parameters.width=box.size.width*1.2;privacy.mask.parameters.height=box.size.height*1.25;privacy.mask.parameters.feather=0;entries.push_back(privacy);
BOOL detected=[handler performRequests:@[request] error:nil];NSUInteger originalEntryCount=0;
if(detected)for(VNFaceObservation *face in request.results){
if(originalEntryCount>64||face.confidence<.5||face.landmarks.faceContour.pointCount<3||face.landmarks.faceContour.pointCount>243)continue;CGRect box=face.boundingBox;if(box.size.width<.015||box.size.height<.015)continue;
DYToolMaskEntry support{};support.section=-100;support.mask.parameters=dyDefaultMaskParameters();auto &p=support.mask.parameters;p.kind=DYMaskBezier;p.centerX=CGRectGetMidX(box);p.centerY=1-CGRectGetMidY(box);p.width=box.size.width;p.height=box.size.height;p.feather=.1;
auto &path=support.mask.path;VNFaceLandmarkRegion2D *contour=face.landmarks.faceContour;
for(NSUInteger i=0;i<contour.pointCount;i++){CGPoint q=contour.normalizedPoints[i];path.x[path.count]=q.x-.5;path.y[path.count]=.5-q.y;path.count++;}
// Close the jaw along a soft forehead cap, instead of selecting the whole box.
BOOL forward=path.x[path.count-1]>path.x[0];for(int i=0;i<=12;i++){float t=i/12.f,x=forward?1-t:t;path.x[path.count]=x-.5;path.y[path.count]=-.28-.28*sinf(t*M_PI);path.count++;}entries.push_back(support);
BOOL forward=path.x[path.count-1]>path.x[0];for(int i=0;i<=12;i++){float t=i/12.f,x=forward?1-t:t;path.x[path.count]=x-.5;path.y[path.count]=-.28-.28*sinf(t*M_PI);path.count++;}
auto xs=std::minmax_element(path.x,path.x+path.count),ys=std::minmax_element(path.y,path.y+path.count);
// Small padding protects the conservative bound against GPU rounding.
constexpr float padding=1e-5f;
support.minX=p.centerX+*xs.first*p.width-padding;support.maxX=p.centerX+*xs.second*p.width+padding;
support.minY=p.centerY+*ys.first*p.height-padding;support.maxY=p.centerY+*ys.second*p.height+padding;
entries.push_back(support);originalEntryCount+=2;
for(VNFaceLandmarkRegion2D *region in @[face.landmarks.leftEye?:[NSNull null],face.landmarks.rightEye?:[NSNull null],face.landmarks.outerLips?:[NSNull null],face.landmarks.leftEyebrow?:[NSNull null],face.landmarks.rightEyebrow?:[NSNull null]]){
if(![region isKindOfClass:VNFaceLandmarkRegion2D.class]||!region.pointCount)continue;CGFloat loX=1,loY=1,hiX=0,hiY=0;for(NSUInteger i=0;i<region.pointCount;i++){CGPoint q=region.normalizedPoints[i];loX=MIN(loX,q.x);hiX=MAX(hiX,q.x);loY=MIN(loY,q.y);hiY=MAX(hiY,q.y);}
DYToolMaskEntry hole{};hole.section=-101;hole.mask.parameters=dyDefaultMaskParameters();auto &h=hole.mask.parameters;h.kind=DYMaskEllipse;h.centerX=box.origin.x+(loX+hiX)*.5*box.size.width;h.centerY=1-(box.origin.y+(loY+hiY)*.5*box.size.height);h.width=(hiX-loX)*box.size.width*1.2;h.height=MAX(.035,hiY-loY)*box.size.height*1.6;h.feather=.35;entries.push_back(hole);
DYToolMaskEntry hole{};hole.section=-101;hole.mask.parameters=dyDefaultMaskParameters();auto &h=hole.mask.parameters;h.kind=DYMaskEllipse;h.centerX=box.origin.x+(loX+hiX)*.5*box.size.width;h.centerY=1-(box.origin.y+(loY+hiY)*.5*box.size.height);h.width=(hiX-loX)*box.size.width*1.2;h.height=MAX(.035,hiY-loY)*box.size.height*1.6;h.feather=.35;entries.push_back(hole);originalEntryCount++;
}
}
[handler release];[request release];_faceEntries=[[NSData alloc]initWithBytes:entries.data() length:entries.size()*sizeof(DYToolMaskEntry)];[_faceCachedEntries release];_faceCachedEntries=[_faceEntries copy];
[handler release];[request release];
if(!detected)return;
_faceEntries=[[NSData alloc]initWithBytes:entries.data() length:entries.size()*sizeof(DYToolMaskEntry)];
[_faceInput release];_faceInput=[raster retain];
[_faceCachedEntries release];_faceCachedEntries=[_faceEntries retain];
}
- (BOOL)renderSource:(FxImageTile*)src destination:(FxImageTile*)dst uniforms:(DYUniforms)u paths:(NSDictionary*)paths spider:(NSData*)spider tools:(NSDictionary*)tools error:(NSError**)error {@synchronized(self){
DYUniforms effective=DYEffectiveFaceUniforms(u,paths,tools);BOOL face=effective.skinProtection.x>.5&&(effective.skinProtection.y>0||effective.skinVisualize>.5)&&(effective.skinFaceOnly>.5||effective.skinVisualize>.5);for(NSDictionary *node in tools[@"layers"]){DYUniforms layer=DYToolUniforms(node);face|=[node[@"type"]isEqual:@"skin"]&&!DYToolIsNeutral(node)&&layer.skinProtection.x>.5&&(layer.skinFaceOnly>.5||layer.skinVisualize>.5);}
DYUniforms effective=DYEffectiveFaceUniforms(u,paths,tools);BOOL face=effective.skinProtection.x>.5&&(effective.skinProtection.y>0||effective.skinVisualize>.5)&&(effective.skinFaceOnly>.5||effective.skinVisualize>.5);for(NSDictionary *node in tools[@"layers"]){
if(face)break;
if(![node[@"type"]isEqual:@"skin"]||DYToolIsNeutral(node))continue;
DYUniforms layer=DYToolUniforms(node);
face=layer.skinProtection.x>.5&&(layer.skinFaceOnly>.5||layer.skinVisualize>.5);
}
if(face&&!_exporting)[self prepareFaceSupport:src];else{[_faceEntries release];_faceEntries=nil;}
BOOL ok=[self renderToolsSource:src destination:dst uniforms:u paths:paths spider:spider tools:tools error:error];
return ok;
@@ -43,6 +55,7 @@
- (BOOL)renderLens:(FxImageTile*)source destination:(FxImageTile*)destination uniforms:(DYUniforms)u masks:(NSArray*)masks entry:(NSDictionary*)entry error:(NSError**)error {
if(source.imageOrigin==kFxImageOrigin_BOTTOM_LEFT)u.lensCenterY=1-u.lensCenterY;
id<MTLDevice>d=entry[@"device"];id<MTLTexture>before=[source metalTextureForDevice:d],output=[destination metalTextureForDevice:d];
id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:entry[@"dyLensRepair"]];[ce setTexture:before atIndex:0];[ce setTexture:output atIndex:1];[ce setBytes:&u length:sizeof(u) atIndex:0];float aspect=before.width*source.pixelAspect/MAX(1.,(double)before.height);[ce setBytes:&aspect length:sizeof(aspect) atIndex:1];[ce dispatchThreads:MTLSizeMake(output.width,output.height,1)threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);
if(!masks.count)return YES;MTLTextureDescriptor *desc=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:output.pixelFormat width:output.width height:output.height mipmapped:NO];desc.storageMode=MTLStorageModePrivate;desc.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite|MTLTextureUsageRenderTarget;id<MTLTexture>blend=[d newTextureWithDescriptor:desc];if(!blend)return fail(error,@"无法分配修复蒙版");DYToolMaskHeader h{};h.section=(int)[DYToolTypes()indexOfObject:@"lens"];id<MTLBuffer>buffer=[self maskBuffer:@{@"lens":masks}tile:source device:d header:&h];cb=[entry[@"queue"]commandBuffer];[self encodeBlend:before after:output output:blend masks:buffer header:h entry:entry commands:cb];[cb commit];[cb waitUntilCompleted];DYExportTile *tile=[[DYExportTile alloc]initWithTexture:blend registry:d.registryID];[tile setBounds:destination.tilePixelBounds origin:destination.imageOrigin];[tile setPixelAspect:destination.pixelAspect];BOOL ok=cb.status==MTLCommandBufferStatusCompleted&&[self copyTile:tile to:destination entry:entry error:error];[tile release];[blend release];return ok;
id<MTLComputePipelineState> pipeline=[self computePipeline:@"dyLensRepair" entry:entry error:error];if(!pipeline)return NO;
id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:pipeline];[ce setTexture:before atIndex:0];[ce setTexture:output atIndex:1];[ce setBytes:&u length:sizeof(u) atIndex:0];float aspect=before.width*source.pixelAspect/MAX(1.,(double)before.height);[ce setBytes:&aspect length:sizeof(aspect) atIndex:1];[ce dispatchThreads:MTLSizeMake(output.width,output.height,1)threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);
if(!masks.count)return YES;MTLTextureDescriptor *desc=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:output.pixelFormat width:output.width height:output.height mipmapped:NO];desc.storageMode=MTLStorageModePrivate;desc.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite|MTLTextureUsageRenderTarget;id<MTLTexture>blend=[d newTextureWithDescriptor:desc];if(!blend)return fail(error,@"无法分配修复蒙版");DYToolMaskHeader h{};h.section=(int)[DYToolTypes()indexOfObject:@"lens"];id<MTLBuffer>buffer=[self maskBuffer:@{@"lens":masks}tile:source device:d header:&h];cb=[entry[@"queue"]commandBuffer];if(![self encodeBlend:before after:output output:blend masks:buffer header:h entry:entry commands:cb error:error]){[blend release];return NO;}[cb commit];[cb waitUntilCompleted];DYExportTile *tile=[[DYExportTile alloc]initWithTexture:blend registry:d.registryID];[tile setBounds:destination.tilePixelBounds origin:destination.imageOrigin];[tile setPixelAspect:destination.pixelAspect];BOOL ok=cb.status==MTLCommandBufferStatusCompleted&&[self copyTile:tile to:destination entry:entry error:error];[tile release];[blend release];return ok;
}
+9 -1
查看文件
@@ -20,6 +20,14 @@
ci=[[ci imageByApplyingFilter:@"CIGaussianBlur" withInputParameters:@{kCIInputRadiusKey:@(radius)}]imageByCroppingToRect:bounds];
[context render:ci toMTLTexture:output commandBuffer:commands bounds:bounds colorSpace:nil];return YES;
};
NSMutableArray *needed=[NSMutableArray arrayWithObject:@"dyFilmPoint"];
if(!mixer){
if(DYFilmBloomActive(u.film))[needed addObjectsFromArray:@[@"dyFilmSparseBlur",@"dyFilmBloomEdges"]];
if(DYFilmGrainActive(u.film))[needed addObject:@"dyFilmNoise"];
if(DYFilmPrintActive(u))[needed addObject:@"dyFilmPrint"];
if(u.film.mix<1)[needed addObject:@"dyFilmMix"];
}
for(NSString *name in needed)if(![self computePipeline:name entry:entry error:error])return NO;
auto encode=[&](NSString *name,id<MTLTexture>a,id<MTLTexture>b,id<MTLTexture>out,const void *data,NSUInteger length){
id<MTLComputeCommandEncoder>ce=[commands computeCommandEncoder];[ce setComputePipelineState:entry[name]];[ce setTexture:a atIndex:0];if(b)[ce setTexture:b atIndex:1];[ce setTexture:out atIndex:b?2:1];if(data)[ce setBytes:data length:length atIndex:0];[ce dispatchThreads:MTLSizeMake(out.width,out.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];
};
@@ -61,7 +69,7 @@
}
// Finish the effect before the module's existing mask blend. Source and
// result retain identical alpha, and an empty mask group means full coverage.
if(masks.count){id<MTLTexture>out=texture(current==slots[0]?1:0);if(!out)return fail(error,@"无法分配胶片蒙版缓冲区");DYToolMaskHeader header{};header.section=(int)[DYToolTypes()indexOfObject:type];id<MTLBuffer>buffer=[self maskBuffer:@{type:masks} tile:source device:d header:&header];[self encodeBlend:before after:current output:out masks:buffer header:header entry:entry commands:commands];current=out;}
if(masks.count){id<MTLTexture>out=texture(current==slots[0]?1:0);if(!out)return fail(error,@"无法分配胶片蒙版缓冲区");DYToolMaskHeader header{};header.section=(int)[DYToolTypes()indexOfObject:type];id<MTLBuffer>buffer=[self maskBuffer:@{type:masks} tile:source device:d header:&header];if(![self encodeBlend:before after:current output:out masks:buffer header:header entry:entry commands:commands error:error])return NO;current=out;}
[commands commit];[commands waitUntilCompleted];if(commands.status!=MTLCommandBufferStatusCompleted)return fail(error,commands.error.localizedDescription);
DYExportTile *result=[[[DYExportTile alloc]initWithTexture:current registry:d.registryID]autorelease];[result setBounds:source.tilePixelBounds origin:source.imageOrigin];[result setPixelAspect:source.pixelAspect];return [self copyTile:result to:destination entry:entry error:error];
}@catch(NSException *exception){return fail(error,[@"胶片处理失败:" stringByAppendingString:exception.reason?:@""]);}
+74 -19
查看文件
@@ -105,7 +105,8 @@ inline float dyToolMaskHSLWeight(float3 source,thread const DYMaskParameters& p)
if(p.flags&DYMaskLightnessEnabled)weight*=dyToolMaskRangeWeight(hsl.z,p.lightnessRange);
return weight;
}
inline float dyToolMaskShapeWeight(float x,float y,thread const DYMaskParameters& p,thread const DYMaskPath& path){
inline float dyToolMaskShapeWeight(float x,float y,thread const DYMaskParameters& p,device const DYMaskPath& path,
float4 pathBounds=float4(-INFINITY,-INFINITY,INFINITY,INFINITY)){
float dx=(x-p.centerX)*p.imageAspect,dy=y-p.centerY,ca=cos(p.angle),sa=sin(p.angle);
float px=dx*ca+dy*sa,py=-dx*sa+dy*ca;
if(p.kind==DYMaskLinearGradient){
@@ -117,7 +118,9 @@ inline float dyToolMaskShapeWeight(float x,float y,thread const DYMaskParameters
float shorter=physicalWidth<physicalHeight?physicalWidth:physicalHeight;
if(p.kind==DYMaskRectangle){float ax=px<0?-px:px,ay=py<0?-py:py,a=physicalWidth*.5f-ax,b=physicalHeight*.5f-ay;if(p.version==2&&(p.flags&DYMaskFeatherOutsideFlag)){if(p.feather==0)return a>=0&&b>=0?1:0;return dyToolMaskSoftStep(-p.feather*.5f*shorter,0,a<b?a:b);}if(a<0||b<0)return 0;if(p.feather==0)return 1;return dyToolMaskSoftStep(0,p.feather*.5f,(a<b?a:b)/shorter);}
if(path.count<3||path.count>256)return 0;
float u=px/physicalWidth,v=py/physicalHeight,sx=physicalWidth/shorter,sy=physicalHeight/shorter,distance2=1e10f;bool inside=false;
float u=px/physicalWidth,v=py/physicalHeight;
if(u<pathBounds.x||v<pathBounds.y||u>pathBounds.z||v>pathBounds.w)return 0;
float sx=physicalWidth/shorter,sy=physicalHeight/shorter,distance2=1e10f;bool inside=false;
for(int i=0,j=path.count-1;i<path.count;j=i++){
float ax=path.x[j],ay=path.y[j],bx=path.x[i],by=path.y[i];if((ay>v)!=(by>v))if(u<(bx-ax)*(v-ay)/(by-ay)+ax)inside=!inside;
float ex=(bx-ax)*sx,ey=(by-ay)*sy,xx=(u-ax)*sx,yy=(v-ay)*sy,den=ex*ex+ey*ey,t=den>1e-12f?dyClamp((xx*ex+yy*ey)/den,0,1):0;
@@ -125,14 +128,14 @@ inline float dyToolMaskShapeWeight(float x,float y,thread const DYMaskParameters
}
if(!inside)return 0;if(p.feather==0)return 1;return dyToolMaskSoftStep(0,p.feather*.5f,sqrt(distance2));
}
inline float dyToolMaskRawCoverage(float x,float y,float3 source,thread const DYMaskParameters& p,thread const DYMaskPath& path){return p.kind==DYMaskHSLKey?dyToolMaskHSLWeight(source,p):(p.kind==DYMaskLumaKey?dyLuma(dyLimit(source)):dyToolMaskShapeWeight(x,y,p,path));}
inline float dyToolMaskOperator(float x,float y,float3 source,thread const DYMaskParameters& p,thread const DYMaskPath& path){
inline float dyToolMaskRawCoverage(float x,float y,float3 source,thread const DYMaskParameters& p,device const DYMaskPath& path){return p.kind==DYMaskHSLKey?dyToolMaskHSLWeight(source,p):(p.kind==DYMaskLumaKey?dyLuma(dyLimit(source)):dyToolMaskShapeWeight(x,y,p,path));}
inline float dyToolMaskOperator(float x,float y,float3 source,thread const DYMaskParameters& p,device const DYMaskPath& path){
if((p.version!=1&&p.version!=2)||p.kind>DYMaskLumaKey)return 0;
float raw=dyToolMaskRawCoverage(x,y,source,p,path);
return dyToolMaskLevels(raw,p);
}
inline float dyToolMask(float x,float y,float3 source,device const DYResolvedMask& value){DYResolvedMask local=value;return dyToolMaskOperator(x,y,source,local.parameters,local.path);}
inline float dyToolMask(float x,float y,float3 source,device const DYResolvedMask& value){DYMaskParameters parameters=value.parameters;return dyToolMaskOperator(x,y,source,parameters,value.path);}
inline float3 dyToolEncode(float3 linear){return select(1.055f*pow(max(linear,float3(0)),float3(1.f/2.4f))-.055f,linear*12.92f,linear<=.0031308f);}
@@ -140,12 +143,21 @@ inline float3 dyToolDecode(float3 encoded){return select(pow(max((encoded+.055f)
inline float dyToolCoverage(float2 uv,float3 source,device const DYToolMaskEntry* masks,constant DYToolMaskHeader& h,int section){
float x=h.offsetX+uv.x*h.scaleX,y=h.offsetY+uv.y*h.scaleY;float coverage=1;bool found=false;
for(uint i=0;i<h.count;i++){if(masks[i].section!=section)continue;
// Copy device data to thread storage; shared mask math accepts constant
// descriptors, so evaluate through the address-space-neutral copy below.
float a=dyToolMask(x,y,source,masks[i].mask);
if(!found){coverage=masks[i].combine==1?1-a:a;found=true;}
else if(masks[i].combine==1)coverage*=1-a;else if(masks[i].combine==2)coverage*=a;else coverage=1-(1-coverage)*(1-a);
}if(section==3&&h.faceOnly){float face=0;for(uint i=0;i<h.count;i++)if(masks[i].section==-100)face=1-(1-face)*(1-dyToolMask(x,y,source,masks[i].mask));for(uint i=0;i<h.count;i++)if(masks[i].section==-101)face*=1-dyToolMask(x,y,source,masks[i].mask);coverage*=face;}return clamp(coverage,0.f,1.f);
}
if(section==3&&h.faceOnly){
float face=0;
for(uint i=0;i<h.count;i++){
device const DYToolMaskEntry &entry=masks[i];
if(entry.section==-100&&x>=entry.minX&&x<=entry.maxX&&y>=entry.minY&&y<=entry.maxY)
face=1-(1-face)*(1-dyToolMask(x,y,source,entry.mask));
}
if(face>0)for(uint i=0;i<h.count;i++)if(masks[i].section==-101)face*=1-dyToolMask(x,y,source,masks[i].mask);
coverage*=face;
}
return clamp(coverage,0.f,1.f);
}
fragment half4 dyMaskedFragment(DYRaster in [[stage_in]],
@@ -232,16 +244,30 @@ fragment half4 dySegmentFragment(DYRaster in [[stage_in]],
// Optional boundary conversion. Use this before both statistics and grading
// when the host supplies premultiplied RGB; all neighborhood samples then see
// the same straight RGB representation. Source and destination must differ.
inline half4 dyStraightSample(float4 sample) {
if (!(sample.a > 0.0f) || !all(isfinite(sample))) return half4(0.0h);
return half4(half3(sample.rgb / sample.a), half(sample.a));
}
kernel void dyUnpremultiply(texture2d<float, access::read> source [[texture(0)]],
texture2d<half, access::write> destination [[texture(1)]],
uint2 pixel [[thread_position_in_grid]]) {
if (pixel.x >= destination.get_width() || pixel.y >= destination.get_height()) return;
float4 sample = source.read(pixel);
if (!(sample.a > 0.0f) || !all(isfinite(sample))) {
destination.write(half4(0.0h), pixel);
return;
}
destination.write(half4(half3(sample.rgb / sample.a), half(sample.a)), pixel);
destination.write(dyStraightSample(source.read(pixel)), pixel);
}
// Match the historical half-precision alpha round trip without an intermediate
// texture when source and destination cover the same pixel grid.
fragment half4 dyNeutralInputFragment(DYRaster in [[stage_in]],texture2d<float,access::read> source [[texture(0)]]) {
uint2 size(source.get_width(),source.get_height());
half4 c=dyStraightSample(source.read(min(uint2(in.uv*float2(size)),size-1)));
return c.a>0.0h?half4(c.rgb*c.a,c.a):half4(0.0h);
}
fragment half4 dyNeutralOutputFragment(DYRaster in [[stage_in]],texture2d<half> source [[texture(0)]]) {
constexpr sampler f(coord::normalized,address::clamp_to_edge,filter::linear);
half4 c=source.sample(f,in.uv);
return c.a>0.0h?half4(c.rgb*c.a,c.a):half4(0.0h);
}
// Per-instance CPU analysis thumbnail. Host dispatches exactly 64x64 threads;
@@ -314,9 +340,12 @@ inline float3 dyDecode(float3 encoded) {
}
kernel void dyColorManagement(texture2d<float,access::read> source [[texture(0)]],
texture2d<half,access::write> destination [[texture(1)]],
constant DayuRenderParams& p [[buffer(0)]],constant float& amount [[buffer(1)]],uint2 pos [[thread_position_in_grid]]) {
constant DayuRenderParams& p [[buffer(0)]],constant float& amount [[buffer(1)]],
constant uint& premultiplied [[buffer(2)]],uint2 pos [[thread_position_in_grid]]) {
if(pos.x>=source.get_width()||pos.y>=source.get_height())return;
float4 sample=source.read(pos);if(!(sample.a>0)){destination.write(half4(0),pos);return;}
float4 sample=source.read(pos);
if(premultiplied)sample=float4(dyStraightSample(sample));
if(!(sample.a>0)){destination.write(half4(0),pos);return;}
float4 raw=float4(dyEncode(sample.rgb),sample.a),c=raw;
if(p.stages&1)c=cst_air(half4(c),p.input);
if(p.stages&2){if(p.reserved&8)c=cst_air(half4(c),p.basisInput);c=basis_air(half4(c),p.basis);if(p.reserved&8)c=cst_air(half4(c),p.basisOutput);}
@@ -400,9 +429,35 @@ kernel void dyCloneStamps(texture2d<float,access::read> input [[texture(0)]],
// Block-centre sampling is stable in image coordinates and never feeds back.
kernel void dyLocalMosaic(texture2d<float,access::read> input [[texture(0)]],texture2d<float,access::write> output [[texture(1)]],device const DYToolMaskEntry* masks [[buffer(0)]],constant DYToolMaskHeader& h [[buffer(1)]],constant uint& block [[buffer(2)]],uint2 p [[thread_position_in_grid]]) {
uint2 size=uint2(output.get_width(),output.get_height());if(any(p>=size))return;
float4 original=input.read(p);float2 uv=(float2(p)+.5f)/float2(size);float3 code=dyToolEncode(original.a>0?original.rgb/original.a:float3(0));float coverage=0;
if(h.section==-102){float x=h.offsetX+uv.x*h.scaleX,y=h.offsetY+uv.y*h.scaleY;for(uint i=0;i<h.count;i++)if(masks[i].section==-102)coverage=max(coverage,dyToolMask(x,y,code,masks[i].mask));}
else if(h.count)coverage=dyToolCoverage(uv,code,masks,h,h.section);
float4 original=input.read(p);
float2 uv=(float2(p)+.5f)/float2(size);
float x=h.offsetX+uv.x*h.scaleX,y=h.offsetY+uv.y*h.scaleY;
float coverage=0;
if(h.section==-102){
for(uint i=0;i<h.count;i++){
device const auto &entry=masks[i];
if(entry.section==-102&&x>=entry.minX&&x<=entry.maxX&&y>=entry.minY&&y<=entry.maxY)
coverage=max(coverage,dyToolMask(x,y,float3(0),entry.mask));
}
}else{
bool found=false,encoded=false;
float3 code=0;
for(uint i=0;i<h.count;i++){
device const auto &entry=masks[i];
if(entry.section!=h.section)continue;
DYMaskParameters parameters=entry.mask.parameters;
if(!encoded&&parameters.kind>=DYMaskHSLKey){
code=dyToolEncode(original.a>0?original.rgb/original.a:float3(0));
encoded=true;
}
// Apply levels and inversion even when the path has no geometric coverage.
float amount=parameters.kind==DYMaskBezier
?dyToolMaskLevels(dyToolMaskShapeWeight(x,y,parameters,entry.mask.path,float4(entry.minX,entry.minY,entry.maxX,entry.maxY)),parameters)
:dyToolMaskOperator(x,y,code,parameters,entry.mask.path);
coverage=found?1-(1-coverage)*(1-amount):amount;
found=true;
}
}
if(coverage<=0){output.write(original,p);return;}
uint2 q=min((p/block)*block+block/2,size-1);float4 sample=input.read(q);
// Preserve the pixel's original alpha and prevent transparent samples turning
@@ -23,3 +23,28 @@
NSError *idleError=nil;BOOL idleOK=[probe renderSource:source destination:destination uniforms:fresh paths:@{} spider:nil tools:doc error:&idleError];
run.record(@"idle-preview-empty-extra-skin-does-not-trigger-face-work",idleOK&&probe->faceCalls==3);
}
{
DYRenderer *fast=[[[DYRenderer alloc]init]autorelease];
DYUniforms untouched=defaults;untouched.primarySectionEnabled=0;
Pixels wide=input;
for(NSUInteger i=0;i<wide.size();i+=4){wide[i]*=-2;wide[i+1]*=4;}
id<MTLTexture> texture=[source metalTextureForDevice:gpu];
MTLRegion region=MTLRegionMake2D(0,0,width,height);
[texture replaceRegion:region mipmapLevel:0 withBytes:wide.data() bytesPerRow:width*8];
Pixels previewFrame=render(run,fast,source,destination,gpu,untouched,@{},@"neutral-preview-frame");
NSError *fastError=nil;CMTime time=CMTimeMake(5,24);
BOOL rendered=[fast renderHostSource:source destination:destination uniforms:untouched paths:@{} spider:nil tools:nil colorManagement:nil hostPrimaries:-1 atTime:time error:&fastError];
Difference delta=difference(previewFrame,read(destination,gpu));
BOOL direct=NO,lazy=YES;
for(NSDictionary *entry in [[fast valueForKey:@"devices"]allValues]){
for(NSString *key in entry[@"pipelines"])direct|=[key hasPrefix:@"dyNeutralInputFragment-"];
lazy&=!entry[@"dyFilmNoise"]&&!entry[@"dyCloneStamps"]&&!entry[@"dyLensRepair"];
}
run.record(@"neutral-direct-preserves-hdr-negative-and-alpha",rendered&&direct&&delta.maximum==0&&delta.nonfinite==0,measure(delta));
run.record(@"neutral-render-defers-unused-gpu-pipelines",lazy);
DYScopeSample *sample=[[[fast valueForKey:@"scopeLatest"]retain]autorelease];
run.record(@"final-scope-captured-with-neutral-output",[sample.metadata[@"timeValue"]integerValue]==5&&[sample.metadata[@"timeScale"]integerValue]==24&&sample.pixels.length==320*180*16);
[fast captureScopeTile:destination atTime:time];
run.record(@"final-scope-inline-matches-separate-capture",[sample.pixels isEqual:[[fast valueForKey:@"scopeLatest"]pixels]]);
[texture replaceRegion:region mipmapLevel:0 withBytes:input.data() bytesPerRow:width*8];
}
+26 -18
查看文件
@@ -975,7 +975,7 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
id<FxCustomParameterActionAPI_v4> action=[self actionAPI]; if(!action)return;
_refreshing=YES;
uint64_t beta=DYBetaSpanBegin(@"inspector_refresh",nil);
BOOL groupingChanged=NO;NSString *recentPath=nil;
BOOL groupingChanged=NO;NSString *recentPath=nil;NSDictionary *stackDocument=nil;
[action startAction:self];
@try {
CMTime t=action.currentTime;
@@ -985,23 +985,31 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
NSDictionary *cms=_embedded?DYReadAssets(maskHost,t).colorManagement:assets.colorManagement;
NSDictionary *tools=DYReadTools(maskHost,t).document;
DYInspectorToken *oldToken=nil;[get getCustomParameterValue:&oldToken fromParameter:DYInspectorParameterID atTime:t];
BOOL wasUnified=_unified;
_unified=DYUnifiedColorState(cms);
groupingChanged=wasUnified!=_unified;
if(!_embedded&&!_workspaceEditor){
[_renderOrder release];_renderOrder=[DYUnifiedRenderOrder(tools)copy];
NSMutableDictionary *primary=nil,*output=nil;for(NSMutableDictionary *card in _cards){if([card[@"section"][@"key"]isEqual:@"primary"])primary=card;if([card[@"section"][@"key"]isEqual:@"output"])output=card;}
if(!_renderOrder||groupingChanged){
NSMutableDictionary *primary=nil,*output=nil;for(NSMutableDictionary *card in _cards){if([card[@"section"][@"key"]isEqual:@"primary"])primary=card;if([card[@"section"][@"key"]isEqual:@"output"])output=card;}
NSMutableArray *body=[NSMutableArray arrayWithArray:primary[@"body"]];
for(NSView *row in output[@"body"]){if([row.identifier isEqual:@"toolMasks"])continue;[body removeObjectIdenticalTo:row];[(_unified?output:primary)[@"view"]addSubview:row];if(!_unified)[body addObject:row];}
primary[@"body"]=body;
primary[@"body"]=body;
}
NSArray *order=DYUnifiedRenderOrder(tools);
if(![_renderOrder isEqualToArray:order]){[_renderOrder release];_renderOrder=[order copy];}
}
NSDictionary *initialTools=tools;
for(NSMutableDictionary *card in _cards){NSString *type=card[@"section"][@"key"];card[@"removed"]=@([type isEqual:@"output"]?!_unified:!_embedded&&DYBaseToolRemoved(initialTools,type));}
NSMutableDictionary *graphicValues=[NSMutableDictionary dictionary];
NSMutableDictionary *graphicValues=[NSMutableDictionary dictionary],*readValues=[NSMutableDictionary dictionary];
auto readValue=[&](NSNumber *pid,double fallback){
if(!pid)return fallback;
NSNumber *cached=readValues[pid];if(cached)return cached.doubleValue;
double value=fallback;[get getFloatValue:&value fromParameter:pid.unsignedIntValue atTime:t];
if(!std::isfinite(value))value=fallback;
readValues[pid]=@(value);return value;
};
for(NSNumber *pid in _controls) {
NSDictionary *r=_controls[pid],*d=r[@"descriptor"]; double v=[d[@"default"] doubleValue];
[get getFloatValue:&v fromParameter:pid.unsignedIntValue atTime:t];
if(!std::isfinite(v))v=[d[@"default"] doubleValue];
NSDictionary *r=_controls[pid],*d=r[@"descriptor"];double v=readValue(pid,[d[@"default"]doubleValue]);
graphicValues[d[@"key"]]=@(v);
if(d[@"enabled"]) {double enabled=1;[get getFloatValue:&enabled fromParameter:[d[@"enabled"] unsignedIntValue] atTime:t];[r[@"itemEnabled"] setState:enabled>=.5?NSControlStateValueOn:NSControlStateValueOff];[r[@"itemEnabled"] setImage:[NSImage imageWithSystemSymbolName:enabled>=.5?@"eye":@"eye.slash" accessibilityDescription:enabled>=.5?@"启用":@"旁路"]];for(NSString *control in @[@"slider",@"field",@"popup"]) [r[control] setAlphaValue:enabled>=.5?1:.45];}
if(d[@"enabled"]) {double enabled=readValue(d[@"enabled"],1);[r[@"itemEnabled"] setState:enabled>=.5?NSControlStateValueOn:NSControlStateValueOff];[r[@"itemEnabled"] setImage:[NSImage imageWithSystemSymbolName:enabled>=.5?@"eye":@"eye.slash" accessibilityDescription:enabled>=.5?@"启用":@"旁路"]];for(NSString *control in @[@"slider",@"field",@"popup"]) [r[control] setAlphaValue:enabled>=.5?1:.45];}
[r[@"slider"] setDoubleValue:v]; [r[@"field"] setStringValue:DYNumber(v,d)];
[r[@"toggle"] setState:v>=.5?NSControlStateValueOn:NSControlStateValueOff];
NSPopUpButton *popup=r[@"popup"]; if(popup.numberOfItems>0){NSArray *values=d[@"values"];NSInteger index=values?[values indexOfObject:@((int)llround(v))]:(NSInteger)llround(v);[popup selectItemAtIndex:index==NSNotFound?0:MAX(0,MIN(index,popup.numberOfItems-1))];}
@@ -1010,9 +1018,8 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
for(id graphic in _graphics)[graphic setValues:graphicValues];
for(NSMutableDictionary *c in _cards) {
NSNumber *pid=c[@"section"][@"enabled"];
double v=[c[@"section"][@"defaultEnabled"]doubleValue];if(pid)[get getFloatValue:&v fromParameter:pid.unsignedIntValue atTime:t];
NSNumber *extra=c[@"section"][@"extraEnabled"];double extraValue=0;
if(extra)[get getFloatValue:&extraValue fromParameter:extra.unsignedIntValue atTime:t];
double v=readValue(pid,[c[@"section"][@"defaultEnabled"]doubleValue]);
double extraValue=readValue(c[@"section"][@"extraEnabled"],0);
BOOL enabled=v>=.5||extraValue>=.5;
NSNumber *saved=[oldToken isKindOfClass:DYInspectorToken.class]?oldToken.folds[c[@"section"][@"key"]]:nil;
BOOL collapsed=_workspaceEditor?NO:saved?saved.boolValue:![self initiallyExpandedSection:c[@"section"][@"key"]];
@@ -1036,24 +1043,25 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
_tabs[@"managedColor"]=@(cms.count>0&&!DYPrimaryColorState(cms));_tabs[@"primaryCMS"]=@(DYPrimaryColorState(cms));[_managedPanel refreshWithState:assets.colorManagement context:[_renderer colorContext]];[_managedPanel setInputLUTPath:assets.paths[@"input"]];for(NSDictionary *r in _controls.allValues)if([r[@"descriptor"][@"key"]isEqual:@"cmmix"])[r[@"label"]setStringValue:([_tabs[@"managedColor"]boolValue]||[_tabs[@"primaryCMS"]boolValue])?@"调色混合":@"CST 混合"];
for(NSDictionary *c in _cards)if([c[@"section"][@"key"]isEqual:@"primary"]){[c[@"enabled"]setToolTip:([_tabs[@"managedColor"]boolValue]||_unified)?@"启停此层一级调色;全局色彩管理保持当前方式":@"启停此层输入、一级调色与输出转换"];[c[@"enabled"]setAccessibilityHelp:[c[@"enabled"]toolTip]];}
[_spiderPanel setMesh:assets.spiderMesh linked:assets.spiderLinked];
double profile=0,configured=0;[get getFloatValue:&profile fromParameter:2013 atTime:t];[get getFloatValue:&configured fromParameter:2236 atTime:t];
double profile=readValue(@2013,0),configured=readValue(@2236,0);
_tabs[@"legacyInput"]=@(configured<.5&&(configured<0||profile>.5||[assets.paths[@"input"]length]||oldToken.schema<2));
for(NSString *key in _assetButtons) {
NSString *path=assets.paths[key]; NSButton *button=_assetButtons[key][@"choose"];
NSString *name=path.length?path.lastPathComponent.stringByDeletingPathExtension:@"无";
if([key isEqual:@"input"]&&!path.length){double profile=0;[get getFloatValue:&profile fromParameter:2013 atTime:t];for(NSDictionary *d in DYDescriptors())if([d[@"key"]isEqual:@"inputProfile"]){NSArray *options=d[@"options"];NSInteger index=MAX(0,MIN((NSInteger)llround(profile),(NSInteger)options.count-1));name=options[index];break;}}
if([key isEqual:@"input"]&&!path.length){for(NSDictionary *d in DYDescriptors())if([d[@"key"]isEqual:@"inputProfile"]){NSArray *options=d[@"options"];NSInteger index=MAX(0,MIN((NSInteger)llround(profile),(NSInteger)options.count-1));name=options[index];break;}}
button.title=_assetLoads[key]?@"正在载入…":name; button.toolTip=path.length?path:@"选择输入转换或 LUT;点击网格图标浏览缩略图";
[_assetButtons[key][@"remove"] setEnabled:path.length>0];
NSButton *eye=_assetButtons[key][@"eye"];if(eye){NSInteger slot=[[key substringFromIndex:4]integerValue];double enabled=1;[get getFloatValue:&enabled fromParameter:2040+(UInt32)slot-1 atTime:t];eye.state=enabled>=.5?NSControlStateValueOn:NSControlStateValueOff;eye.image=[NSImage imageWithSystemSymbolName:enabled>=.5?@"eye":@"eye.slash" accessibilityDescription:enabled>=.5?@"启用":@"旁路"];}
NSButton *eye=_assetButtons[key][@"eye"];if(eye){NSInteger slot=[[key substringFromIndex:4]integerValue];double enabled=readValue(@(2040+(UInt32)slot-1),1);eye.state=enabled>=.5?NSControlStateValueOn:NSControlStateValueOff;eye.image=[NSImage imageWithSystemSymbolName:enabled>=.5?@"eye":@"eye.slash" accessibilityDescription:enabled>=.5?@"启用":@"旁路"];}
}
if(_recentBrowser)recentPath=[assets.paths[@"look0"]copy];
for(NSInteger i=1;i<5;i++)if([assets.paths[[NSString stringWithFormat:@"look%ld",(long)i]]length])_visibleLooks=MAX(_visibleLooks,i+1);
[self setNeedsLayout:YES];
if(!_embedded&&!_workspaceEditor)stackDocument=[[tools copy]autorelease];
} @finally { [action endAction:self]; _refreshing=NO; }
[_recentBrowser refreshRecentSelection:recentPath];[recentPath release];
// Remote layout/accessibility can re-enter the host. Let the parameter
// action and current callback unwind before notifying the remote view.
if(!_embedded&&!_workspaceEditor)[self synchronizeTools];
if(stackDocument)[self synchronizeTools:stackDocument];
DYBetaSpanEnd(beta,nil);
if(groupingChanged)dispatch_async(dispatch_get_main_queue(),^{NSAccessibilityPostNotification(self,NSAccessibilityLayoutChangedNotification);});
}
+6 -9
查看文件
@@ -1,18 +1,14 @@
- (void)managedPreview:(id<MTLTexture>)texture origin:(FxImageOrigin)origin entry:(NSMutableDictionary*)entry {
@synchronized(_previewLock){if(_exporting||CACurrentMediaTime()-_lastPreview<=.5)return;}
id<MTLComputePipelineState>p=[self managedKernel:@"dyManagedPreview" entry:entry error:nil];if(!p)return;
id<MTLComputePipelineState>p=[self computePipeline:@"dyManagedPreview" entry:entry error:nil];if(!p)return;
id<MTLBuffer>b=[entry[@"device"]newBufferWithLength:320*180*16 options:MTLResourceStorageModeShared];if(!b)return;
id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:p];[ce setTexture:texture atIndex:0];[ce setBuffer:b offset:0 atIndex:0];[ce dispatchThreads:MTLSizeMake(320,180,1) threadsPerThreadgroup:MTLSizeMake(8,8,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];
if(cb.status==MTLCommandBufferStatusCompleted){@synchronized(_previewLock){[_preview release];_preview=[[NSData alloc]initWithBytes:b.contents length:b.length];[_lookLUTPreview release];if(origin==kFxImageOrigin_BOTTOM_LEFT){NSMutableData *flipped=[NSMutableData dataWithLength:b.length];for(NSUInteger y=0;y<180;y++)memcpy((uint8_t*)flipped.mutableBytes+y*320*16,(uint8_t*)b.contents+(179-y)*320*16,320*16);_lookLUTPreview=[flipped copy];}else _lookLUTPreview=[_preview retain];_lastPreview=CACurrentMediaTime();}dispatch_async(dispatch_get_main_queue(),^{[NSNotificationCenter.defaultCenter postNotificationName:@"DYPreviewDidChange" object:self];});}[b release];
}
// Included in DYRenderer. V1 callers and their ABI remain on renderSource:...tools:error:.
- (NSDictionary*)colorContext {@synchronized(_previewLock){return [[_colorContext copy]autorelease];}}
- (id<MTLComputePipelineState>)managedKernel:(NSString*)name entry:(NSMutableDictionary*)entry error:(NSError**)error {
NSMutableDictionary *cache=entry[@"managedKernels"];if(!cache){cache=[NSMutableDictionary dictionary];entry[@"managedKernels"]=cache;}
id<MTLComputePipelineState>pipeline=cache[name];if(!pipeline){id<MTLFunction>f=[entry[@"library"]newFunctionWithName:name];if(!f){fail(error,[@"色彩管理内核缺失:" stringByAppendingString:name]);return nil;}pipeline=[entry[@"device"]newComputePipelineStateWithFunction:f error:error];[f release];if(!pipeline)return nil;cache[name]=pipeline;[pipeline release];}return pipeline;
}
- (BOOL)managedDispatch:(NSString*)name textures:(NSArray*)textures data:(const void*)data length:(NSUInteger)length extra:(const void*)extra extraLength:(NSUInteger)extraLength entry:(NSMutableDictionary*)entry error:(NSError**)error {
id<MTLComputePipelineState>pipeline=[self managedKernel:name entry:entry error:error];if(!pipeline)return NO;
id<MTLComputePipelineState>pipeline=[self computePipeline:name entry:entry error:error];if(!pipeline)return NO;
id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:pipeline];for(NSUInteger i=0;i<textures.count;i++)[ce setTexture:textures[i] atIndex:i];if(data)[ce setBytes:data length:length atIndex:0];if(extra)[ce setBytes:extra length:extraLength atIndex:1];id<MTLTexture>t=textures[0];[ce dispatchThreads:MTLSizeMake(t.width,t.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];return cb.status==MTLCommandBufferStatusCompleted?YES:fail(error,cb.error.localizedDescription);
}
- (BOOL)managedConvert:(dycm::Space)from to:(dycm::Space)to display:(NSInteger)display gamut:(BOOL)gamut input:(id<MTLTexture>)input output:(id<MTLTexture>)output entry:(NSMutableDictionary*)entry error:(NSError**)error {
@@ -44,7 +40,8 @@
if(image.left!=bounds.left||image.right!=bounds.right||image.top!=bounds.top||image.bottom!=bounds.bottom){
fail(error,@"仿制图章需要宿主提供完整的源画面。");return nil;
}
NSDictionary *entry=[self device:registry error:error];if(!entry)return nil;
NSMutableDictionary *entry=[self device:registry error:error];if(!entry)return nil;
id<MTLComputePipelineState> pipeline=[self computePipeline:@"dyCloneStamps" entry:entry error:error];if(!pipeline)return nil;
id<MTLDevice>device=entry[@"device"];
id<MTLTexture>input=[source metalTextureForDevice:device];
if(!input||input.framebufferOnly){fail(error,@"仿制图章无法读取源画面。");return nil;}
@@ -55,7 +52,7 @@
id<MTLComputeCommandEncoder>encoder=[commands computeCommandEncoder];
if(!output||!encoder){fail(error,@"无法分配仿制图章缓冲区。");return nil;}
uint32_t count=(uint32_t)stamps.size(),flip=source.imageOrigin==kFxImageOrigin_BOTTOM_LEFT;
[encoder setComputePipelineState:entry[@"dyCloneStamps"]];
[encoder setComputePipelineState:pipeline];
[encoder setTexture:input atIndex:0];[encoder setTexture:output atIndex:1];
[encoder setBytes:stamps.data() length:count*sizeof(DYCloneStamp) atIndex:0];
[encoder setBytes:&count length:sizeof(count) atIndex:1];[encoder setBytes:&flip length:sizeof(flip) atIndex:2];
@@ -120,7 +117,7 @@
auto convert=[&](dycm::Space a,dycm::Space b,NSInteger display=0,BOOL gamut=NO){id<MTLTexture>out=next();if(!out)return fail(error,@"无法分配色彩管理缓冲区。");BOOL ok=[self managedConvert:a to:b display:display gamut:gamut input:current output:out entry:entry error:error];if(ok)current=out;return ok;};
auto profile=[&](DYColorProfile*p){id<MTLTexture>out=next();if(!out)return fail(error,@"无法分配颜色配置缓冲区。");BOOL ok=[self managedProfile:p input:current output:out entry:entry error:error];if(ok)current=out;return ok;};
auto tile=[&](id<MTLTexture>texture){DYExportTile*t=[[[DYExportTile alloc]initWithTexture:texture registry:d.registryID]autorelease];[t setBounds:src.tilePixelBounds origin:src.imageOrigin];[t setPixelAspect:src.pixelAspect];return t;};
auto blend=[&](id<MTLTexture>before,NSArray*masks,NSString*type){if(!masks.count)return YES;id<MTLTexture>out=next(before);if(!out)return fail(error,@"无法分配工作空间蒙版缓冲区。");DYToolMaskHeader h{};id<MTLBuffer>mb=[self maskBuffer:@{type:masks} tile:src device:d header:&h];h.section=(int)[DYToolTypes()indexOfObject:type];id<MTLComputePipelineState>p=[self managedKernel:@"dyManagedBlend" entry:entry error:error];if(!mb||!p)return NO;id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:p];[ce setTexture:before atIndex:0];[ce setTexture:current atIndex:1];[ce setTexture:out atIndex:2];[ce setBuffer:mb offset:0 atIndex:0];[ce setBytes:&h length:sizeof(h) atIndex:1];[ce dispatchThreads:MTLSizeMake(source.width,source.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);current=out;return YES;};
auto blend=[&](id<MTLTexture>before,NSArray*masks,NSString*type){if(!masks.count)return YES;id<MTLTexture>out=next(before);if(!out)return fail(error,@"无法分配工作空间蒙版缓冲区。");DYToolMaskHeader h{};id<MTLBuffer>mb=[self maskBuffer:@{type:masks} tile:src device:d header:&h];h.section=(int)[DYToolTypes()indexOfObject:type];id<MTLComputePipelineState>p=[self computePipeline:@"dyManagedBlend" entry:entry error:error];if(!mb||!p)return NO;id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:p];[ce setTexture:before atIndex:0];[ce setTexture:current atIndex:1];[ce setTexture:out atIndex:2];[ce setBuffer:mb offset:0 atIndex:0];[ce setBytes:&h length:sizeof(h) atIndex:1];[ce dispatchThreads:MTLSizeMake(source.width,source.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);current=out;return YES;};
auto basis=[&](DYUniforms values,NSArray*masks){values.cm.inputTransfer=values.cm.workingTransfer=values.cm.outputTransfer=1;values.cm.inputGamut=values.cm.workingGamut=values.cm.outputGamut=2;values.cm.toneMapping=0;values.inputSectionEnabled=values.cm.outputEnabled=0;if(values.primarySectionEnabled<.5||values.cm.basisEnabled<.5||identityCM(values)||values.cm.mix<=0)return YES;id<MTLTexture>before=current,out=next();BasisParams p=DYCMRender(values.cm).basis;float amount=values.cm.mix;if(!out||![self managedDispatch:@"dyManagedBasis" textures:@[current,out] data:&p length:sizeof(p) extra:&amount extraLength:4 entry:entry error:error])return NO;current=out;return blend(before,masks,@"primary");};
auto print=[&](DYUniforms values,NSArray*masks){if(!DYFilmPrintActive(values))return YES;NSArray*names=@[@"",@"kodak_2383",@"kodak_2393",@"kodak_2302_bw",@"fuji_3510",@"fuji_3513",@"fuji_3519",@"fuji_3521",@"agfa_cp30"];NSString*path=[[NSBundle bundleForClass:self.class]pathForResource:names[(int)values.filmPrint.x] ofType:@"dylut" inDirectory:@"PrintLooks"];id<MTLTexture>cube=path?[self lut:path entry:entry error:error]:nil;if(!cube)return fail(error,@"印片资源不可用。");id<MTLTexture>before=current,out=next();float amount=values.filmPrint.y*values.film.mix;if(!out||![self managedDispatch:@"dyManagedPrint" textures:@[current,cube,out] data:&amount length:4 extra:nullptr extraLength:0 entry:entry error:error])return NO;current=out;return blend(before,masks,@"film");};
@try{try{
+13 -3
查看文件
@@ -24,7 +24,16 @@
if(!ok){if(raster)CFRelease(raster);CGImageRelease(cg);return nil;}
[boxes sortUsingComparator:^NSComparisonResult(NSArray *a,NSArray *b){NSComparisonResult x=[a[0]compare:b[0]];return x==NSOrderedSame?[a[1]compare:b[1]]:x;}];
std::vector<DYToolMaskEntry> entries;
for(NSArray *box in boxes){DYToolMaskEntry m{};m.section=-102;m.mask.parameters=dyDefaultMaskParameters();auto &p=m.mask.parameters;p.kind=DYMaskRectangle;p.centerX=[box[0]floatValue];p.centerY=[box[1]floatValue];p.width=[box[2]floatValue];p.height=[box[3]floatValue];p.feather=0;entries.push_back(m);}
for(NSArray *box in boxes){
DYToolMaskEntry m{};m.section=-102;m.mask.parameters=dyDefaultMaskParameters();
auto &p=m.mask.parameters;p.kind=DYMaskRectangle;
p.centerX=[box[0]floatValue];p.centerY=[box[1]floatValue];
p.width=[box[2]floatValue];p.height=[box[3]floatValue];p.feather=0;
constexpr float padding=1e-5f;
m.minX=p.centerX-p.width*.5f-padding;m.maxX=p.centerX+p.width*.5f+padding;
m.minY=p.centerY-p.height*.5f-padding;m.maxY=p.centerY+p.height*.5f+padding;
entries.push_back(m);
}
[_mosaicEntries release];_mosaicEntries=[[NSData alloc]initWithBytes:entries.data() length:entries.size()*sizeof(DYToolMaskEntry)];
[_mosaicRaster release];_mosaicRaster=raster?[(NSData*)raster copy]:nil;
}
@@ -46,13 +55,14 @@
if(!face&&!masks.count)return src;
NSMutableDictionary *entry=[self device:registry error:error];if(!entry)return nil;
NSData *faces=face?[self mosaicFaces:src time:tools[@"renderTime"] error:error]:nil;if(face&&!faces){fail(error,@"当前帧人脸识别失败,请重试或改用跟踪蒙版。");return nil;}
if(face&&!faces.length)return src;
DYToolMaskHeader header{};header.section=face?-102:0;
id<MTLDevice>device=entry[@"device"];id<MTLTexture>input=[src metalTextureForDevice:device];
NSData *skinEntries=_faceEntries;_faceEntries=faces;
id<MTLBuffer>buffer=[self maskBuffer:face?@{}:@{@"primary":masks} tile:src device:device header:&header];_faceEntries=skinEntries;
id<MTLBuffer>buffer=[self maskBuffer:face?@{}:@{@"primary":masks} tile:src device:device header:&header mosaic:YES];_faceEntries=skinEntries;
MTLTextureDescriptor *desc=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA32Float width:input.width height:input.height mipmapped:NO];desc.storageMode=MTLStorageModePrivate;desc.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;
id<MTLTexture>output=[[device newTextureWithDescriptor:desc]autorelease];
id<MTLComputePipelineState>pipeline=[self managedKernel:@"dyLocalMosaic" entry:entry error:error];
id<MTLComputePipelineState>pipeline=[self computePipeline:@"dyLocalMosaic" entry:entry error:error];
if(!input||!buffer||!output||!pipeline){fail(error,@"局部马赛克缓冲区不可用。");return nil;}
// Size is in 1080-line reference pixels, stable under proxy/viewer scaling.
uint32_t block=(uint32_t)MAX(2,round([settings[@"size"]doubleValue]*input.height/1080.));
+35 -2
查看文件
@@ -44,13 +44,46 @@
if(!_modelRefreshPending.exchange(true)){id host=_apiManager;dispatch_async(dispatch_get_main_queue(),^{self->_modelRefreshPending.store(false);[NSNotificationCenter.defaultCenter postNotificationName:DYModelChanged object:host];});}return YES;}
- (BOOL)pluginState:(NSData**)state atTime:(CMTime)t quality:(FxQuality)q error:(NSError**)e{
uint64_t stateSpan=DYBetaSpanBegin(@"plugin_state",nil);@try{
DYUniforms u;DYReadUniforms(_apiManager,t,&u);CMTime frameDuration=kCMTimeInvalid,origin=kCMTimeZero;id<FxTimingAPI_v4>timing=[_apiManager apiForProtocol:@protocol(FxTimingAPI_v4)];if([timing respondsToSelector:@selector(frameDuration:)])[timing frameDuration:&frameDuration];if([timing respondsToSelector:@selector(startTimeForEffect:)])[timing startTimeForEffect:&origin];int64_t frame=DYFilmFrameIndex(t,frameDuration,origin);u.filmFrameKey=DYFilmFrameKey(frame,u.film.grainHold,u.film.grainSeed);DYAssetState*a=DYReadAssets(_apiManager,t);DYToolDocument *tools=DYReadTools(_apiManager,t);[self adoptToolCanvasDocument:tools.document];[_viewerParameterBridge publishUniforms:&u document:tools.document atTime:t];[_viewerParameterBridge publishAssets:a atTime:t];double copyAuto=0;[[_apiManager apiForProtocol:@protocol(FxParameterRetrievalAPI_v6)]getFloatValue:&copyAuto fromParameter:8800 atTime:t];NSDictionary *snapshot=DYToolRenderSnapshot(tools.document,t);for(NSMutableDictionary *node in snapshot[@"layers"])if([node[@"type"]isEqual:@"film"]){DYUniforms layer=DYToolUniforms(node);node[@"filmFrameKey"]=@(DYFilmFrameKey(frame,layer.film.grainHold,layer.film.grainSeed));}NSInteger primaries=-1;id<FxColorGamutAPI_v2>gamut=[_apiManager apiForProtocol:@protocol(FxColorGamutAPI_v2)];if([gamut respondsToSelector:@selector(colorPrimaries)])primaries=gamut.colorPrimaries;NSDictionary*s=@{@"colorManagement":a.colorManagement?:@{},@"hostPrimaries":@(primaries),@"schema":@2,@"tools":snapshot,@"copyAuto":@(copyAuto>.5),@"uniforms":[NSData dataWithBytes:&u length:sizeof(u)],@"paths":a.paths?:@{},@"spider":a.spiderMesh?:[NSData data]};*state=[NSPropertyListSerialization dataWithPropertyList:s format:NSPropertyListBinaryFormat_v1_0 options:0 error:e];return *state!=nil;
DYUniforms u;DYReadUniforms(_apiManager,t,&u);
DYAssetState *assets=DYReadAssets(_apiManager,t);
DYToolDocument *tools=DYReadTools(_apiManager,t);
[self adoptToolCanvasDocument:tools.document];
[_viewerParameterBridge publishUniforms:&u document:tools.document atTime:t];
[_viewerParameterBridge publishAssets:assets atTime:t];
double copyAuto=0;
[[_apiManager apiForProtocol:@protocol(FxParameterRetrievalAPI_v6)]getFloatValue:&copyAuto fromParameter:8800 atTime:t];
NSDictionary *snapshot=DYToolRenderSnapshot(tools.document,t);
// Host timing is needed only for an active time-varying grain pass.
BOOL hasFilmFrame=NO;
int64_t frame=0;
auto filmFrame=[&]{
if(!hasFilmFrame){
CMTime duration=kCMTimeInvalid,origin=kCMTimeZero;
id<FxTimingAPI_v4> timing=[_apiManager apiForProtocol:@protocol(FxTimingAPI_v4)];
if([timing respondsToSelector:@selector(frameDuration:)])[timing frameDuration:&duration];
if([timing respondsToSelector:@selector(startTimeForEffect:)])[timing startTimeForEffect:&origin];
frame=DYFilmFrameIndex(t,duration,origin);hasFilmFrame=YES;
}
return frame;
};
if(!DYBaseToolRemoved(snapshot,@"film")&&u.film.enabled>.5&&u.film.mix>0&&DYFilmGrainActive(u.film))
u.filmFrameKey=DYFilmFrameKey(filmFrame(),u.film.grainHold,u.film.grainSeed);
for(NSMutableDictionary *node in snapshot[@"layers"])if([node[@"type"]isEqual:@"film"]){
DYFilmSettings film=DYToolUniforms(node).film;
if(film.enabled>.5&&film.mix>0&&DYFilmGrainActive(film))node[@"filmFrameKey"]=@(DYFilmFrameKey(filmFrame(),film.grainHold,film.grainSeed));
}
NSInteger primaries=-1;
id<FxColorGamutAPI_v2> gamut=[_apiManager apiForProtocol:@protocol(FxColorGamutAPI_v2)];
if([gamut respondsToSelector:@selector(colorPrimaries)])primaries=gamut.colorPrimaries;
NSDictionary *s=@{@"colorManagement":assets.colorManagement?:@{},@"hostPrimaries":@(primaries),@"schema":@2,@"tools":snapshot,@"copyAuto":@(copyAuto>.5),@"uniforms":[NSData dataWithBytes:&u length:sizeof(u)],@"paths":assets.paths?:@{},@"spider":assets.spiderMesh?:[NSData data]};
*state=[NSPropertyListSerialization dataWithPropertyList:s format:NSPropertyListBinaryFormat_v1_0 options:0 error:e];
return *state!=nil;
}@finally{DYBetaSpanEnd(stateSpan,nil);}
}
- (BOOL)destinationImageRect:(FxRect*)rect sourceImages:(NSArray<FxImageTile*>*)src destinationImage:(FxImageTile*)dst pluginState:(NSData*)s atTime:(CMTime)t error:(NSError**)e{if(!src.count)return NO;*rect=src[0].imagePixelBounds;return YES;}
- (BOOL)sourceTileRect:(FxRect*)rect sourceImageIndex:(NSUInteger)i sourceImages:(NSArray<FxImageTile*>*)src destinationTileRect:(FxRect)dstRect destinationImage:(FxImageTile*)dst pluginState:(NSData*)s atTime:(CMTime)t error:(NSError**)e{if(i>=src.count)return NO;*rect=src[i].imagePixelBounds;return YES;}
- (BOOL)renderDestinationImage:(FxImageTile*)dst sourceImages:(NSArray<FxImageTile*>*)src pluginState:(NSData*)s atTime:(CMTime)t error:(NSError**)e{
if(!src.count||!src[0].ioSurface||!dst.ioSurface||!s.length)return NO;NSDictionary*p=[NSPropertyListSerialization propertyListWithData:s options:NSPropertyListImmutable format:NULL error:e];if(![p isKindOfClass:NSDictionary.class])return NO;NSData*b=p[@"uniforms"];if(![@[@1,@2]containsObject:p[@"schema"]]||![b isKindOfClass:NSData.class]||b.length!=sizeof(DYUniforms)||![p[@"paths"]isKindOfClass:NSDictionary.class])return NO;DYUniforms u;[b getBytes:&u length:sizeof(u)];uint64_t renderSpan=DYBetaSpanBegin(@"render",@{@"width":@(src[0].ioSurface.width),@"height":@(src[0].ioSurface.height),@"layer_count":@([p[@"tools"][@"layers"]count])});uint64_t beta=!_betaFirstRenderStarted.exchange(true)?DYBetaSpanBegin(@"first_render",nil):0;BOOL ok=NO;@try{ok=[_renderer renderSource:src[0] destination:dst uniforms:u paths:p[@"paths"] spider:p[@"spider"] tools:p[@"tools"] colorManagement:p[@"colorManagement"] hostPrimaries:p[@"hostPrimaries"]?[p[@"hostPrimaries"]integerValue]:-1 error:e];}@finally{DYBetaSpanEnd(renderSpan,@{@"status":ok?@"passed":@"failed"});}DYBetaSpanEnd(beta,@{@"status":ok?@"passed":@"failed"});if(!ok)DYBetaEvent(@"render_error",DYBetaErrorFields((e&&*e)?*e:nil,@"render_source"));if(ok){[_renderer captureScopeTile:dst atTime:t];@synchronized(self){
if(!src.count||!src[0].ioSurface||!dst.ioSurface||!s.length)return NO;NSDictionary*p=[NSPropertyListSerialization propertyListWithData:s options:NSPropertyListImmutable format:NULL error:e];if(![p isKindOfClass:NSDictionary.class])return NO;NSData*b=p[@"uniforms"];if(![@[@1,@2]containsObject:p[@"schema"]]||![b isKindOfClass:NSData.class]||b.length!=sizeof(DYUniforms)||![p[@"paths"]isKindOfClass:NSDictionary.class])return NO;DYUniforms u;[b getBytes:&u length:sizeof(u)];uint64_t renderSpan=DYBetaSpanBegin(@"render",@{@"width":@(src[0].ioSurface.width),@"height":@(src[0].ioSurface.height),@"layer_count":@([p[@"tools"][@"layers"]count])});uint64_t beta=!_betaFirstRenderStarted.exchange(true)?DYBetaSpanBegin(@"first_render",nil):0;BOOL ok=NO;@try{ok=[_renderer renderHostSource:src[0] destination:dst uniforms:u paths:p[@"paths"] spider:p[@"spider"] tools:p[@"tools"] colorManagement:p[@"colorManagement"] hostPrimaries:p[@"hostPrimaries"]?[p[@"hostPrimaries"]integerValue]:-1 atTime:t error:e];}@finally{DYBetaSpanEnd(renderSpan,@{@"status":ok?@"passed":@"failed"});}DYBetaSpanEnd(beta,@{@"status":ok?@"passed":@"failed"});if(!ok)DYBetaEvent(@"render_error",DYBetaErrorFields((e&&*e)?*e:nil,@"render_source"));if(ok){@synchronized(self){
FxRect image=src[0].imagePixelBounds;
double aspect=src[0].pixelAspect,height=image.top-image.bottom,width=image.right-image.left;
_toolSourceAspect=width>0&&height>0&&std::isfinite(aspect)&&aspect>0?width*aspect/height:0;
+1 -1
查看文件
@@ -12,7 +12,7 @@
auto dispatch=[&](NSString*name,const void*params,NSUInteger length,const void*extra=nullptr,NSUInteger extraLength=0){id<MTLTexture>out=next();if(!out)return fail(error,@"无法分配一级 CST 缓冲区。");BOOL ok=[self managedDispatch:name textures:@[current,out] data:params length:length extra:extra extraLength:extraLength entry:entry error:error];if(ok)current=out;return ok;};
auto transform=[&](CSTParams p){if(p.inputTransfer==p.outputTransfer&&p.inputGamut==p.outputGamut&&!p.toneMapping)return YES;return dispatch(@"dyPrimaryCST",&p,sizeof(p));};
auto tile=[&](id<MTLTexture>t){DYExportTile*v=[[[DYExportTile alloc]initWithTexture:t registry:d.registryID]autorelease];[v setBounds:src.tilePixelBounds origin:src.imageOrigin];[v setPixelAspect:src.pixelAspect];return v;};
auto blend=[&](id<MTLTexture>before,NSArray*masks,float amount,NSString*type){if(!masks.count&&amount>=1)return YES;id<MTLTexture>out=next();if(!out)return fail(error,@"无法分配一级混合缓冲区。");DYToolMaskHeader h{};id<MTLBuffer>mb=[self maskBuffer:@{type:masks?:@[]} tile:src device:d header:&h];h.section=(int)[DYToolTypes()indexOfObject:type];DYCSTMixParams p={{wg,wt,2,20,0},{2,20,wg,wt,0},amount};id<MTLComputePipelineState>pipeline=[self managedKernel:@"dyPrimaryBlend" entry:entry error:error];if(!pipeline||!mb)return NO;id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:pipeline];[ce setTexture:before atIndex:0];[ce setTexture:current atIndex:1];[ce setTexture:out atIndex:2];[ce setBuffer:mb offset:0 atIndex:0];[ce setBytes:&h length:sizeof(h) atIndex:1];[ce setBytes:&p length:sizeof(p) atIndex:2];[ce dispatchThreads:MTLSizeMake(source.width,source.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);current=out;return YES;};
auto blend=[&](id<MTLTexture>before,NSArray*masks,float amount,NSString*type){if(!masks.count&&amount>=1)return YES;id<MTLTexture>out=next();if(!out)return fail(error,@"无法分配一级混合缓冲区。");DYToolMaskHeader h{};id<MTLBuffer>mb=[self maskBuffer:@{type:masks?:@[]} tile:src device:d header:&h];h.section=(int)[DYToolTypes()indexOfObject:type];DYCSTMixParams p={{wg,wt,2,20,0},{2,20,wg,wt,0},amount};id<MTLComputePipelineState>pipeline=[self computePipeline:@"dyPrimaryBlend" entry:entry error:error];if(!pipeline||!mb)return NO;id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:pipeline];[ce setTexture:before atIndex:0];[ce setTexture:current atIndex:1];[ce setTexture:out atIndex:2];[ce setBuffer:mb offset:0 atIndex:0];[ce setBytes:&h length:sizeof(h) atIndex:1];[ce setBytes:&p length:sizeof(p) atIndex:2];[ce dispatchThreads:MTLSizeMake(source.width,source.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);current=out;return YES;};
auto grade=[&](DYUniforms values,NSArray*masks,BOOL local){if(values.primarySectionEnabled<.5||values.cm.mix<=0)return YES;DYUniforms neutral=values;neutral.inputSectionEnabled=neutral.cm.outputEnabled=0;BOOL gradeNeutral=identityCM(neutral);if(!local&&gradeNeutral)return YES;if(local&&identityCM(values))return YES;
DayuRenderParams p=DYCMRender(values.cm);p.input.toneMapping=0;if((int)lroundf(values.cm.workingTransfer)==20){p.reserved|=8;p.basis.colorspace=10;p.basisInput={(int)lroundf(values.cm.workingGamut),20,(int)lroundf(values.cm.workingGamut),10,0};p.basisOutput={(int)lroundf(values.cm.workingGamut),10,(int)lroundf(values.cm.workingGamut),20,0};}CSTParams back={wg,wt,wg,wt,0};
if(local){p.stages=(values.inputSectionEnabled>.5?1:0)|(gradeNeutral?0:2)|(values.cm.outputEnabled>.5?4:0);back={values.cm.outputEnabled>.5?(int)lroundf(values.cm.outputGamut):(int)lroundf(values.cm.workingGamut),values.cm.outputEnabled>.5?(int)lroundf(values.cm.outputTransfer):(int)lroundf(values.cm.workingTransfer),wg,wt,0};}
+2 -1
查看文件
@@ -32,7 +32,7 @@
/// sample per instance so opening a paused workspace needs no parameter edit.
- (BOOL)scopeEnabled;
- (void)setScopeEnabled:(BOOL)enabled;
- (void)setScopeEnabled:(BOOL)enabled atTime:(CMTime)time;
- (void)setScopeEnabled:(BOOL)enabled atTime:(CMTime)time frameDuration:(CMTime)frameDuration exclusiveEnd:(BOOL)exclusiveEnd;
/// Call after the final destination render succeeds, while the tile is valid.
/// Only the small GPU readback waits here; conversion/statistics are coalesced
/// on a worker. No main-queue wait or host API is performed by this method.
@@ -43,5 +43,6 @@
- (NSDictionary *)scopeMetadata;
- (NSDictionary*)colorContext;
- (BOOL)renderSource:(FxImageTile*)source destination:(FxImageTile*)destination uniforms:(DYUniforms)uniforms paths:(NSDictionary*)paths spider:(NSData*)spider tools:(NSDictionary*)tools colorManagement:(NSDictionary*)state hostPrimaries:(NSInteger)primaries error:(NSError**)error;
- (BOOL)renderHostSource:(FxImageTile*)source destination:(FxImageTile*)destination uniforms:(DYUniforms)uniforms paths:(NSDictionary*)paths spider:(NSData*)spider tools:(NSDictionary*)tools colorManagement:(NSDictionary*)state hostPrimaries:(NSInteger)primaries atTime:(CMTime)time error:(NSError**)error;
- (BOOL)exportLUT:(NSURL*)url uniforms:(DYUniforms)uniforms paths:(NSDictionary*)paths spider:(NSData*)spider tools:(NSDictionary*)tools colorManagement:(NSDictionary*)state error:(NSError**)error;
@end
+135 -30
查看文件
@@ -1,7 +1,9 @@
#include "DYScopeDisplayTime.h"
#import <os/log.h>
#import "DYManagedColor.h"
#import "../../ColorManagement/Sources/DYColorManagementGPU.h"
#import "../../ColorManagement/Sources/DYColorProfile.h"
#include <algorithm>
#include <map>
#include <mutex>
#import "DYRenderer.h"
@@ -70,13 +72,15 @@ static void bypassNeutralTools(DYUniforms *u){
if(neutral)for(NSDictionary *row in DYDescriptors())if([row[@"pid"]isEqual:section[@"enabled"]])*(float*)((uint8_t*)u+[row[@"offset"]unsignedIntegerValue])=0;
}
}
static BOOL hasLegacyGrade(const DYUniforms &u){
if(u.curveSectionEnabled>.5||u.hslSectionEnabled>.5||u.colorGradingSectionEnabled>.5||u.primariesSectionEnabled>.5||u.levelsSectionEnabled>.5||u.blackWhiteSectionEnabled>.5||u.colorBalanceSectionEnabled>.5)return YES;
if(u.preLUTStrength!=0||u.postLUTStrength!=0||simd_any(u.extraPostLUTStrengths!=0))return YES;
const float *values=&u.exposure,*enabled=&u.exposureEnabled;
for(int i=0;i<13;i++){BOOL group=(i>=6&&i<=9)?u.colorSectionEnabled>.5:u.baseSectionEnabled>.5;if(group&&enabled[i]>.5&&values[i]!=0)return YES;}
return NO;
}
static void bypassIdleSkin(DYUniforms *u){
if(u->skinVisualize>.5)return;
if(u->curveSectionEnabled>.5||u->hslSectionEnabled>.5||u->colorGradingSectionEnabled>.5||u->primariesSectionEnabled>.5||u->levelsSectionEnabled>.5||u->blackWhiteSectionEnabled>.5||u->colorBalanceSectionEnabled>.5)return;
if(u->preLUTStrength!=0||u->postLUTStrength!=0||simd_any(u->extraPostLUTStrengths!=0))return;
const float *values=&u->exposure,*enabled=&u->exposureEnabled;
for(int i=0;i<13;i++){BOOL group=(i>=6&&i<=9)?u->colorSectionEnabled>.5:u->baseSectionEnabled>.5;if(group&&enabled[i]>.5&&values[i]!=0)return;}
u->skinProtection.x=0;
if(u->skinVisualize<=.5&&!hasLegacyGrade(*u))u->skinProtection.x=0;
}
// Decide face work from the same effective operations that textures: and the
// legacy renderer actually execute. Saved strengths remain 1 for empty LUT
@@ -124,6 +128,11 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
NSDictionary*rootPaths=visiblePaths(paths,u);u=normalize(u);NSMutableDictionary*doc=DYMutablePlist(tools);for(NSMutableDictionary*node in doc[@"layers"]){DYUniforms original=DYToolUniforms(node),v=normalize(original);NSMutableDictionary*values=[NSMutableDictionary dictionary];for(NSDictionary*d in DYBaseToolDescriptors(node[@"type"]))if([d[@"offset"]integerValue]>=0)values[d[@"key"]]=@(*(float*)((uint8_t*)&v+[d[@"offset"]unsignedIntegerValue]));node[@"values"]=values;node[@"paths"]=visiblePaths(node[@"paths"],original);}
return DYManagedActiveFinishing(u,rootPaths,spider,doc);
}
struct DYScopeReadback {
id<MTLBuffer> buffer;
NSUInteger generation;
uint64_t serial;
};
@interface DYRenderer(){
NSMutableDictionary *_devices,*_luts,*_preparedLUTs;
NSSet *_activeLUTPaths;
@@ -141,7 +150,11 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
uint64_t _spiderScopeSerial;
NSUInteger _scopeGeneration;
DYScopeSample *_scopePending,*_scopeLatest;
uint64_t _scopeCaptureSerial,_scopeLatestSerial;CMTime _scopeRequestedTime;
uint64_t _scopeCaptureSerial,_scopeLatestSerial;CMTime _scopeRequestedTime,_scopeRequestedFrameDuration;
BOOL _scopeRequestedExclusiveEnd;
FxImageTile *_scopeDestination; // borrowed for one locked host render
CMTime _scopeRenderTime;
BOOL _scopeCaptured;
NSData *_scopePreview;
NSDictionary *_scopeMetadata;
DYColorProfile *_scopeProfile;
@@ -149,6 +162,22 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
}
@end
@implementation DYRenderer
// The caller holds the renderer lock. Unused tools never load a GPU function.
- (id<MTLComputePipelineState>)computePipeline:(NSString *)name entry:(NSMutableDictionary *)entry error:(NSError **)error {
id<MTLComputePipelineState> pipeline=entry[name];
if(pipeline)return pipeline;
id<MTLLibrary> library=entry[@"library"];
id<MTLDevice> device=entry[@"device"];
id<MTLFunction> function=[library newFunctionWithName:name];
if(!function){fail(error,[name stringByAppendingString:@" 缺失"]);return nil;}
uint64_t span=DYBetaSpanBegin(@"gpu_pipeline",@{@"pipeline":name,@"gpu":device.name?:@"unknown"});
pipeline=[device newComputePipelineStateWithFunction:function error:error];
DYBetaSpanEnd(span,@{@"status":pipeline?@"passed":@"failed"});
[function release];
if(!pipeline)return nil;
entry[name]=pipeline;
return [pipeline autorelease];
}
#include "DYScopeCapture.inc.h"
#include "DYFilmRender.inc.h"
#include "DYPrimaryRender.inc.h"
@@ -192,7 +221,6 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
NSURL*url=[[NSBundle bundleForClass:self.class]URLForResource:@"default" withExtension:@"metallib"];
id<MTLLibrary>lib=[d newLibraryWithURL:url error:err];if(!lib){[d release];return nil;}
id<MTLCommandQueue>q=[d newCommandQueue];entry=[NSMutableDictionary dictionaryWithDictionary:@{@"device":d,@"library":lib,@"queue":q,@"pipelines":[NSMutableDictionary dictionary]}];
for(NSString*fn in @[@"dyLensRepair",@"dyUnpremultiply",@"dyWhitesSceneStatistics",@"dyLUTExportKernel",@"dyInputAnalysis",@"dyScopeSample",@"dyCloneStamps",@"dyColorManagement",@"dyToolBlend",@"dyToolSkin",@"dyFilmPoint",@"dyFilmNoise",@"dyFilmSparseBlur",@"dyFilmBloomEdges",@"dyFilmMix",@"dyFilmPrint"]){id<MTLFunction>f=[lib newFunctionWithName:fn];if(!f){fail(err,[fn stringByAppendingString:@" 缺失"]);[lib release];[q release];[d release];return nil;}uint64_t pipelineSpan=DYBetaSpanBegin(@"gpu_pipeline",@{@"pipeline":fn,@"gpu":d.name?:@"unknown"});id<MTLComputePipelineState>p=[d newComputePipelineStateWithFunction:f error:err];DYBetaSpanEnd(pipelineSpan,@{@"status":p?@"passed":@"failed"});[f release];if(!p){[lib release];[q release];[d release];return nil;}entry[fn]=p;[p release];}
float identity[32];for(int z=0;z<2;z++)for(int y=0;y<2;y++)for(int x=0;x<2;x++){int i=((z*2+y)*2+x)*4;identity[i]=x;identity[i+1]=y;identity[i+2]=z;identity[i+3]=1;}id<MTLTexture>neutral=texture3D(d,identity,2);if(!neutral){fail(err,@"无法分配中性 LUT");return nil;}entry[@"identity"]=neutral;
// Preparing before the first frame may use registry 0. Reuse those pipelines
// when the host subsequently supplies that device's actual registry ID.
@@ -210,7 +238,7 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
- (NSArray*)textures:(NSDictionary*)paths uniforms:(DYUniforms*)u entry:(NSDictionary*)e error:(NSError**)err{
// Normalize only this render copy. Disabled groups retain their host parameters
// and paths, while inactive LUTs neither load files nor affect any layer.
BOOL inputEnabled=u->inputSectionEnabled>.5&&!managed(*u,paths);
BOOL inputEnabled=u->inputSectionEnabled>.5&&!managed(*u,paths)&&u->preLUTStrength>0;
NSString*input=inputEnabled?paths[@"input"]:nil;int profile=inputEnabled?(int)roundf(u->inputProfile):0;
if(!inputEnabled){u->inputProfile=0;u->preLUTStrength=0;}
if(!input.length&&profile>0&&profile<(int)inputFiles().count)input=[[NSBundle bundleForClass:self.class]pathForResource:inputFiles()[profile] ofType:@"dylut" inDirectory:@"InputLUTs"];
@@ -218,10 +246,20 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
NSMutableArray*ts=[NSMutableArray array];id<MTLTexture>t=[self lut:input entry:e error:err];if(!t)return nil;[ts addObject:t];if(!input.length)u->preLUTStrength=0;
BOOL looksEnabled=u->lookSectionEnabled>.5;
if(!looksEnabled)u->extraLookSectionEnableds=(DYFloat4){0,0,0,0};
for(int i=0;i<5;i++){BOOL active=looksEnabled&&(i==0||u->extraLookSectionEnableds[i-1]>.5);NSString*p=active?paths[[NSString stringWithFormat:@"look%d",i]]:nil;t=[self lut:p entry:e error:err];if(!t)return nil;[ts addObject:t];if(!p.length){if(i==0)u->postLUTStrength=0;else u->extraPostLUTStrengths[i-1]=0;}}
for(int i=0;i<5;i++){BOOL active=looksEnabled&&(i==0?u->postLUTStrength>0:u->extraLookSectionEnableds[i-1]>.5&&u->extraPostLUTStrengths[i-1]>0);NSString*p=active?paths[[NSString stringWithFormat:@"look%d",i]]:nil;t=[self lut:p entry:e error:err];if(!t)return nil;[ts addObject:t];if(!p.length){if(i==0)u->postLUTStrength=0;else u->extraPostLUTStrengths[i-1]=0;}}
[DYColorTables fillPrimaries:u];id<MTLDevice>d=e[@"device"];
id<MTLTexture>h=[_tables hslForDevice:d uniforms:u],w=[_tables whiteBalanceForDevice:d uniforms:u],g=[_tables gradingForDevice:d uniforms:u];if(!h||!w||!g){fail(err,_tables.lastError?:@"颜色查表构建失败");return nil;}[ts addObjectsFromArray:@[h,w,g]];return ts;
}
- (BOOL)renderHostSource:(FxImageTile*)src destination:(FxImageTile*)dst uniforms:(DYUniforms)u paths:(NSDictionary*)paths spider:(NSData*)spider tools:(NSDictionary*)tools colorManagement:(NSDictionary*)state hostPrimaries:(NSInteger)primaries atTime:(CMTime)time error:(NSError**)error {
@synchronized(self){
_scopeDestination=dst;_scopeRenderTime=time;_scopeCaptured=NO;
@try{
BOOL ok=[self renderSource:src destination:dst uniforms:u paths:paths spider:spider tools:tools colorManagement:state hostPrimaries:primaries error:error];
if(ok&&!_scopeCaptured)[self captureScopeTile:dst atTime:time];
return ok;
}@finally{_scopeDestination=nil;}
}
}
- (BOOL)renderSource:(FxImageTile*)src destination:(FxImageTile*)dst uniforms:(DYUniforms)u paths:(NSDictionary*)paths error:(NSError**)err{return [self renderSource:src destination:dst uniforms:u paths:paths spider:nil error:err];}
- (BOOL)renderSource:(FxImageTile*)src destination:(FxImageTile*)dst uniforms:(DYUniforms)u paths:(NSDictionary*)paths spider:(NSData *)spider error:(NSError**)err{return [self renderSource:src destination:dst uniforms:u paths:paths spider:spider tools:nil error:err];}
- (BOOL)renderLegacy:(FxImageTile*)src destination:(FxImageTile*)dst uniforms:(DYUniforms)u paths:(NSDictionary*)paths spider:(NSData *)spider masks:(NSDictionary*)masks error:(NSError**)err{return [self renderLegacy:src destination:dst uniforms:u paths:paths spider:spider masks:masks stageFirst:-1 stageLast:-1 skinReference:nil originalReference:nil captureOriginal:nullptr suppressBlackWhite:NO error:err];}
@@ -232,8 +270,9 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
[_activeLUTPaths release];_activeLUTPaths=[[NSSet alloc]initWithArray:paths.allValues?:@[]];
NSMutableDictionary*e=[self device:dst.deviceRegistryID error:err];if(!e)return NO;id<MTLDevice>d=e[@"device"];id<MTLTexture>input=[src metalTextureForDevice:d],output=[dst metalTextureForDevice:d];if(!input||!output)return fail(err,@"宿主图像纹理不可用");
BOOL useCM=managed(u,paths)&&(!segmented||stageFirst==0);bypassNeutralTools(&u);float bwMix=fmaxf(0,fminf(1,u.cm.blackWhiteMix));if(bwMix<=0)u.blackWhiteSectionEnabled=0;
NSArray*ts=[self textures:paths uniforms:&u entry:e error:err];if(!ts)return NO;bypassIdleSkin(&u);
BOOL useCM=managed(u,paths)&&(!segmented||stageFirst==0)&&!identityCM(u)&&u.cm.mix>0;
u=DYEffectiveFaceUniforms(u,paths,nil);
float bwMix=u.blackWhiteSectionEnabled>.5?fmaxf(0,fminf(1,u.cm.blackWhiteMix)):0;
// Only a deformed active mesh allocates samples; device entries retain the
// current buffer across frames. Neutral grids are exact identity at all densities.
simd_int2 spiderSize={0,0};id<MTLBuffer>spiderBuffer=nil;
@@ -245,30 +284,96 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
}
BOOL faceOnly=u.skinProtection.x>.5&&(u.skinProtection.y>0||u.skinVisualize>.5)&&u.skinFaceOnly>.5;
DYToolMaskHeader maskHeader{};id<MTLBuffer>maskBuffer=(masks.count||segmented||faceOnly||_faceEntries.length)?[self maskBuffer:masks tile:src device:d header:&maskHeader]:nil;maskHeader.faceOnly=faceOnly;BOOL hasMasks=maskHeader.count>0||maskHeader.faceOnly;if((hasMasks||segmented)&&!maskBuffer)return fail(err,@"无法分配蒙版缓冲区");
NSMutableDictionary*ps=e[@"pipelines"];NSString*format=[NSString stringWithFormat:@"%lu-%d-%d",(unsigned long)output.pixelFormat,hasMasks,segmented];id<MTLRenderPipelineState>pipeline=ps[format];if(!pipeline){MTLRenderPipelineDescriptor*p=[MTLRenderPipelineDescriptor new];p.vertexFunction=[e[@"library"]newFunctionWithName:@"dyVertex"];p.fragmentFunction=[e[@"library"]newFunctionWithName:segmented?@"dySegmentFragment":hasMasks?@"dyMaskedFragment":@"dyFragment"];p.colorAttachments[0].pixelFormat=output.pixelFormat;pipeline=[d newRenderPipelineStateWithDescriptor:p error:err];[p.vertexFunction release];[p.fragmentFunction release];[p release];if(!pipeline)return NO;ps[format]=pipeline;[pipeline release];}
MTLTextureDescriptor*td=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA16Float width:input.width height:input.height mipmapped:NO];td.storageMode=MTLStorageModePrivate;td.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;id<MTLTexture>straight=[d newTextureWithDescriptor:td];if(!straight)return fail(err,@"无法分配调色缓冲区");
id<MTLCommandBuffer>cb=[e[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:e[@"dyUnpremultiply"]];[ce setTexture:input atIndex:0];[ce setTexture:straight atIndex:1];[ce dispatchThreads:MTLSizeMake(input.width,input.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];
if(useCM&&!identityCM(u)&&u.cm.mix>0){
DayuRenderParams cm=DYCMRender(u.cm);cm.stages=(cm.stages&~1)|(u.inputSectionEnabled>.5?1:0);
if(cm.stages){id<MTLTexture>converted=[d newTextureWithDescriptor:td];if(!converted){[straight release];return fail(err,@"无法分配 CST 缓冲区");}
ce=[cb computeCommandEncoder];[ce setComputePipelineState:e[@"dyColorManagement"]];[ce setTexture:straight atIndex:0];[ce setTexture:converted atIndex:1];[ce setBytes:&cm length:sizeof(cm) atIndex:0];[ce setBytes:&u.cm.mix length:4 atIndex:1];[ce dispatchThreads:MTLSizeMake(input.width,input.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];if(hasMasks){id<MTLTexture>blended=[d newTextureWithDescriptor:td];if(!blended){[converted release];[straight release];return fail(err,@"无法分配一级蒙版缓冲区");}maskHeader.section=0;maskHeader.premultiplied=0;[self encodeBlend:straight after:converted output:blended masks:maskBuffer header:maskHeader entry:e commands:cb];[converted release];converted=blended;}[straight release];straight=converted;
BOOL preview=NO;
@synchronized(_previewLock){preview=(!segmented||stageFirst==0)&&!_exporting&&CACurrentMediaTime()-_lastPreview>.5;}
BOOL neutral=!segmented&&!hasMasks&&!spiderBuffer&&u.skinVisualize<.5&&!hasLegacyGrade(u);
FxRect s=src.tilePixelBounds,t=dst.tilePixelBounds;
BOOL sameGrid=input.width==output.width&&input.height==output.height&&s.left==t.left&&s.right==t.right&&s.top==t.top&&s.bottom==t.bottom;
BOOL direct=neutral&&!useCM&&!preview&&sameGrid&&input!=output;
NSString *fragment=direct?@"dyNeutralInputFragment":neutral?@"dyNeutralOutputFragment":segmented?@"dySegmentFragment":hasMasks?@"dyMaskedFragment":@"dyFragment";
NSMutableDictionary *ps=e[@"pipelines"];
NSString *format=[NSString stringWithFormat:@"%lu-%d-%d",(unsigned long)output.pixelFormat,hasMasks,segmented];
if(neutral)format=[NSString stringWithFormat:@"%@-%lu",fragment,(unsigned long)output.pixelFormat];
id<MTLRenderPipelineState> pipeline=ps[format];
if(!pipeline){
MTLRenderPipelineDescriptor *desc=[[[MTLRenderPipelineDescriptor alloc]init]autorelease];
id<MTLLibrary> library=e[@"library"];
desc.vertexFunction=[[library newFunctionWithName:@"dyVertex"]autorelease];
desc.fragmentFunction=[[library newFunctionWithName:fragment]autorelease];
desc.colorAttachments[0].pixelFormat=output.pixelFormat;
pipeline=[[d newRenderPipelineStateWithDescriptor:desc error:err]autorelease];
if(!pipeline)return NO;
ps[format]=pipeline;
}
NSArray *ts=neutral?nil:[self textures:paths uniforms:&u entry:e error:err];
if(!neutral&&!ts)return NO;
id<MTLCommandBuffer> cb=[e[@"queue"]commandBuffer];
id<MTLTexture> straight=input;
if(!direct){
MTLTextureDescriptor *td=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA16Float width:input.width height:input.height mipmapped:NO];
td.storageMode=MTLStorageModePrivate;td.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;
straight=[[d newTextureWithDescriptor:td]autorelease];
if(!straight)return fail(err,@"无法分配调色缓冲区");
MTLSize grid=MTLSizeMake(input.width,input.height,1),group=MTLSizeMake(16,16,1);
BOOL fused=useCM&&!hasMasks;
if(!fused){
id<MTLComputePipelineState> unpremultiply=[self computePipeline:@"dyUnpremultiply" entry:e error:err];if(!unpremultiply)return NO;
id<MTLComputeCommandEncoder> ce=[cb computeCommandEncoder];
[ce setComputePipelineState:unpremultiply];[ce setTexture:input atIndex:0];[ce setTexture:straight atIndex:1];
[ce dispatchThreads:grid threadsPerThreadgroup:group];[ce endEncoding];
}
if(useCM){
DayuRenderParams cm=DYCMRender(u.cm);cm.stages=(cm.stages&~1)|(u.inputSectionEnabled>.5?1:0);
id<MTLComputePipelineState> cst=[self computePipeline:@"dyColorManagement" entry:e error:err];if(!cst)return NO;
id<MTLTexture> converted=fused?straight:[[d newTextureWithDescriptor:td]autorelease];
if(!converted)return fail(err,@"无法分配 CST 缓冲区");
uint32_t premultiplied=fused;
id<MTLComputeCommandEncoder> ce=[cb computeCommandEncoder];
[ce setComputePipelineState:cst];[ce setTexture:fused?input:straight atIndex:0];[ce setTexture:converted atIndex:1];
[ce setBytes:&cm length:sizeof(cm) atIndex:0];[ce setBytes:&u.cm.mix length:4 atIndex:1];[ce setBytes:&premultiplied length:4 atIndex:2];
[ce dispatchThreads:grid threadsPerThreadgroup:group];[ce endEncoding];
if(hasMasks){
id<MTLTexture> blended=[[d newTextureWithDescriptor:td]autorelease];if(!blended)return fail(err,@"无法分配一级蒙版缓冲区");
maskHeader.section=0;maskHeader.premultiplied=0;
if(![self encodeBlend:straight after:converted output:blended masks:maskBuffer header:maskHeader entry:e commands:cb error:err])return NO;
converted=blended;
}
straight=converted;
}
}
// Keep the actual post-CST straight source alive across all native segments.
// Both native spatial helpers and whites statistics historically read this
// source; the current segment's center color is a different input.
id<MTLTexture>nativeSource=segmented&&originalReference?[originalReference metalTextureForDevice:d]:straight;
if(!nativeSource){[straight release];return fail(err,@"原生工具参考纹理不可用");}
// Segments retain the original straight source for spatial tools and statistics.
id<MTLTexture> nativeSource=segmented&&originalReference?[originalReference metalTextureForDevice:d]:straight;
if(!nativeSource)return fail(err,@"原生工具参考纹理不可用");
if(segmented&&captureOriginal&&!*captureOriginal){DYExportTile *reference=[[DYExportTile alloc]initWithTexture:nativeSource registry:d.registryID];[reference setBounds:src.tilePixelBounds origin:src.imageOrigin];[reference setPixelAspect:src.pixelAspect];*captureOriginal=reference;}
float level=.5;id<MTLBuffer>scene=[d newBufferWithBytes:&level length:4 options:MTLResourceStorageModeShared];
if(!_exporting&&(!segmented||(stageFirst<=2&&stageLast>=2))&&u.whites>0&&u.whitesEnabled>.5&&u.baseSectionEnabled>.5){ce=[cb computeCommandEncoder];[ce setComputePipelineState:e[@"dyWhitesSceneStatistics"]];[ce setTexture:nativeSource atIndex:0];[ce setTexture:ts[7] atIndex:1];[ce setBytes:&u length:sizeof(u) atIndex:0];[ce setBuffer:scene offset:0 atIndex:1];[ce dispatchThreadgroups:MTLSizeMake(1,1,1) threadsPerThreadgroup:MTLSizeMake(256,1,1)];[ce endEncoding];}
BOOL preview=NO;@synchronized(_previewLock){preview=(!segmented||stageFirst==0)&&!_exporting&&CACurrentMediaTime()-_lastPreview>.5;}id<MTLBuffer>pb=nil;if(preview){pb=[d newBufferWithLength:320*180*16 options:MTLResourceStorageModeShared];ce=[cb computeCommandEncoder];[ce setComputePipelineState:e[@"dyInputAnalysis"]];[ce setTexture:straight atIndex:0];[ce setTexture:ts[0] atIndex:1];float inputStrength=u.inputSectionEnabled>.5?u.preLUTStrength:0;[ce setBytes:&inputStrength length:4 atIndex:1];[ce setBuffer:pb offset:0 atIndex:0];[ce dispatchThreads:MTLSizeMake(320,180,1) threadsPerThreadgroup:MTLSizeMake(8,8,1)];[ce endEncoding];}
id<MTLBuffer> scene=nil;
if(!neutral){
float level=.5;
scene=[[d newBufferWithBytes:&level length:4 options:MTLResourceStorageModeShared]autorelease];
if(!scene)return fail(err,@"无法分配调色统计缓冲区");
if(!_exporting&&(!segmented||(stageFirst<=2&&stageLast>=2))&&u.whites>0&&u.whitesEnabled>.5&&u.baseSectionEnabled>.5){
id<MTLComputePipelineState> stats=[self computePipeline:@"dyWhitesSceneStatistics" entry:e error:err];if(!stats)return NO;
id<MTLComputeCommandEncoder> ce=[cb computeCommandEncoder];
[ce setComputePipelineState:stats];[ce setTexture:nativeSource atIndex:0];[ce setTexture:ts[7] atIndex:1];[ce setBytes:&u length:sizeof(u) atIndex:0];[ce setBuffer:scene offset:0 atIndex:0];
[ce dispatchThreadgroups:MTLSizeMake(1,1,1) threadsPerThreadgroup:MTLSizeMake(256,1,1)];[ce endEncoding];
}
}
id<MTLBuffer> pb=nil;
if(preview){
id<MTLComputePipelineState> analysis=[self computePipeline:@"dyInputAnalysis" entry:e error:err];if(!analysis)return NO;
pb=[[d newBufferWithLength:320*180*16 options:MTLResourceStorageModeShared]autorelease];
if(!pb)return fail(err,@"无法分配输入预览缓冲区");
id<MTLComputeCommandEncoder> ce=[cb computeCommandEncoder];
[ce setComputePipelineState:analysis];[ce setTexture:straight atIndex:0];[ce setTexture:neutral?e[@"identity"]:ts[0] atIndex:1];
float inputStrength=u.inputSectionEnabled>.5?u.preLUTStrength:0;
[ce setBytes:&inputStrength length:4 atIndex:1];[ce setBuffer:pb offset:0 atIndex:0];
[ce dispatchThreads:MTLSizeMake(320,180,1) threadsPerThreadgroup:MTLSizeMake(8,8,1)];[ce endEncoding];
}
MTLRenderPassDescriptor*rp=[MTLRenderPassDescriptor renderPassDescriptor];rp.colorAttachments[0].texture=output;rp.colorAttachments[0].loadAction=MTLLoadActionDontCare;rp.colorAttachments[0].storeAction=MTLStoreActionStore;id<MTLRenderCommandEncoder>re=[cb renderCommandEncoderWithDescriptor:rp];[re setRenderPipelineState:pipeline];
float w=output.width,h=output.height;FxRect s=src.tilePixelBounds,t=dst.tilePixelBounds;float sw=s.right-s.left,sh=s.top-s.bottom;float l=(t.left-s.left)/sw,r=(t.right-s.left)/sw,top=(s.top-t.top)/sh,bottom=(s.top-t.bottom)/sh;
float w=output.width,h=output.height;float sw=s.right-s.left,sh=s.top-s.bottom;float l=(t.left-s.left)/sw,r=(t.right-s.left)/sw,top=(s.top-t.top)/sh,bottom=(s.top-t.bottom)/sh;
if(src.imageOrigin==kFxImageOrigin_BOTTOM_LEFT){top=1-top;bottom=1-bottom;}
DYVertex2D vs[]={{{w/2,-h/2},{r,bottom}},{{-w/2,-h/2},{l,bottom}},{{w/2,h/2},{r,top}},{{-w/2,h/2},{l,top}}};
if(dst.imageOrigin==kFxImageOrigin_BOTTOM_LEFT)for(int i=0;i<4;i++)vs[i].position.y=-vs[i].position.y;
vector_uint2 vp={(unsigned)output.width,(unsigned)output.height};[re setVertexBytes:vs length:sizeof(vs) atIndex:0];[re setVertexBytes:&vp length:sizeof(vp) atIndex:1];[re setViewport:(MTLViewport){0,0,w,h,0,1}];[re setFragmentTexture:straight atIndex:0];for(NSUInteger i=0;i<ts.count;i++)[re setFragmentTexture:ts[i] atIndex:i+1];[re setFragmentBytes:&u length:sizeof(u) atIndex:0];[re setFragmentBuffer:scene offset:0 atIndex:1];DYRenderOptions options={1,bwMix,0,0};[re setFragmentBytes:&options length:sizeof(options) atIndex:2];DYUniforms color=u;color.blackWhiteSectionEnabled=0;[re setFragmentBytes:&color length:sizeof(color) atIndex:3];if(spiderBuffer)[re setFragmentBuffer:spiderBuffer offset:0 atIndex:4];else{float empty[2]={0,0};[re setFragmentBytes:empty length:sizeof(empty) atIndex:4];}[re setFragmentBytes:&spiderSize length:sizeof(spiderSize) atIndex:5];if(hasMasks||segmented){[re setFragmentBuffer:maskBuffer offset:0 atIndex:6];[re setFragmentBytes:&maskHeader length:sizeof(maskHeader) atIndex:7];}if(segmented){DYToolStageRange range={(int)stageFirst,(int)stageLast,(int)suppressBlackWhite};[re setFragmentBytes:&range length:sizeof(range) atIndex:8];[re setFragmentTexture:skinReference?[skinReference metalTextureForDevice:d]:input atIndex:10];[re setFragmentTexture:nativeSource atIndex:11];}[re drawPrimitives:MTLPrimitiveTypeTriangleStrip vertexStart:0 vertexCount:4];[re endEncoding];[cb commit];[cb waitUntilCompleted];BOOL ok=cb.status==MTLCommandBufferStatusCompleted;
vector_uint2 vp={(unsigned)output.width,(unsigned)output.height};[re setVertexBytes:vs length:sizeof(vs) atIndex:0];[re setVertexBytes:&vp length:sizeof(vp) atIndex:1];[re setViewport:(MTLViewport){0,0,w,h,0,1}];[re setFragmentTexture:straight atIndex:0];if(!neutral){for(NSUInteger i=0;i<ts.count;i++)[re setFragmentTexture:ts[i] atIndex:i+1];[re setFragmentBytes:&u length:sizeof(u) atIndex:0];[re setFragmentBuffer:scene offset:0 atIndex:1];DYRenderOptions options={1,bwMix,0,0};[re setFragmentBytes:&options length:sizeof(options) atIndex:2];DYUniforms color=u;color.blackWhiteSectionEnabled=0;[re setFragmentBytes:&color length:sizeof(color) atIndex:3];if(spiderBuffer)[re setFragmentBuffer:spiderBuffer offset:0 atIndex:4];else{float empty[2]={0,0};[re setFragmentBytes:empty length:sizeof(empty) atIndex:4];}[re setFragmentBytes:&spiderSize length:sizeof(spiderSize) atIndex:5];if(hasMasks||segmented){[re setFragmentBuffer:maskBuffer offset:0 atIndex:6];[re setFragmentBytes:&maskHeader length:sizeof(maskHeader) atIndex:7];}if(segmented){DYToolStageRange range={(int)stageFirst,(int)stageLast,(int)suppressBlackWhite};[re setFragmentBytes:&range length:sizeof(range) atIndex:8];[re setFragmentTexture:skinReference?[skinReference metalTextureForDevice:d]:input atIndex:10];[re setFragmentTexture:nativeSource atIndex:11];}}[re drawPrimitives:MTLPrimitiveTypeTriangleStrip vertexStart:0 vertexCount:4];[re endEncoding];BOOL ok=[self completeCommands:cb destination:dst texture:output entry:e];
if(ok&&pb){@synchronized(_previewLock){
[_preview release];_preview=[[NSData alloc]initWithBytes:pb.contents length:320*180*16];
// The analysis kernel reads physical texture rows. Its result remains intact
@@ -281,7 +386,7 @@ static NSArray *DYPrimaryActiveFinishing(DYUniforms u,NSDictionary *paths,NSData
}else _lookLUTPreview=[_preview retain];
_lastPreview=CACurrentMediaTime();[self notifyPreviewChanged];
}}
if(!ok)fail(err,cb.error.localizedDescription);[pb release];[straight release];[scene release];return ok;
if(!ok)fail(err,cb.error.localizedDescription);return ok;
});}}
- (BOOL)exportLUT:(NSURL*)url uniforms:(DYUniforms)u paths:(NSDictionary*)paths error:(NSError**)err{return [self exportLUT:url uniforms:u paths:paths spider:nil error:err];}
- (BOOL)exportLUT:(NSURL*)url uniforms:(DYUniforms)u paths:(NSDictionary*)paths spider:(NSData*)spider error:(NSError**)err{@synchronized(self){
+74 -34
查看文件
@@ -1,15 +1,16 @@
// Included in DYRenderer's implementation; final destination sampling is kept
// separate from the earlier input-analysis thumbnail used by auto-grade/LUTs.
- (BOOL)scopeEnabled{@synchronized(_previewLock){return _scopeEnabled;}}
- (void)setScopeEnabled:(BOOL)enabled{[self setScopeEnabled:enabled atTime:kCMTimeInvalid];}
- (void)setScopeEnabled:(BOOL)enabled atTime:(CMTime)time{
- (void)setScopeEnabled:(BOOL)enabled{[self setScopeEnabled:enabled atTime:kCMTimeInvalid frameDuration:kCMTimeInvalid exclusiveEnd:NO];}
- (void)setScopeEnabled:(BOOL)enabled atTime:(CMTime)time frameDuration:(CMTime)frameDuration exclusiveEnd:(BOOL)exclusiveEnd{
BOOL start=NO;@synchronized(_previewLock){if(_scopeEnabled==enabled)return;_scopeEnabled=enabled;_scopeGeneration++;[_scopePending release];_scopePending=nil;
if(enabled){_scopeRequestedTime=time;[_scopePreview release];_scopePreview=nil;[_scopeMetadata release];_scopeMetadata=nil;
if(enabled){
_scopeRequestedTime=time;_scopeRequestedFrameDuration=frameDuration;_scopeRequestedExclusiveEnd=exclusiveEnd;[_scopePreview release];_scopePreview=nil;[_scopeMetadata release];_scopeMetadata=nil;
CMTime cached=_scopeLatest?CMTimeMakeWithEpoch([_scopeLatest.metadata[@"timeValue"]longLongValue],[_scopeLatest.metadata[@"timeScale"]intValue],[_scopeLatest.metadata[@"timeEpoch"]longLongValue]):kCMTimeInvalid;
os_log(OS_LOG_DEFAULT,"dayu_scope_open requested=%{public}.9f cached=%{public}.9f",CMTimeGetSeconds(time),CMTimeGetSeconds(cached));
// Replay only this instance's actual final output at the requested host time.
// A panel opening must not require a parameter mutation or a fresh render.
if(_scopeLatest&&(!CMTIME_IS_NUMERIC(time)||(CMTIME_IS_NUMERIC(cached)&&CMTimeCompare(cached,time)==0))){DYScopeSample *sample=[DYScopeSample new];sample.pixels=_scopeLatest.pixels;sample.space=_scopeLatest.space;sample.metadata=_scopeLatest.metadata;sample.generation=_scopeGeneration;_scopePending=sample;if(!_scopeWorkerRunning){_scopeWorkerRunning=YES;start=YES;}}
BOOL replay=_scopeLatest&&(!CMTIME_IS_NUMERIC(time)||DYScopeFrameContainsTime(cached,time,frameDuration,exclusiveEnd));
os_log(OS_LOG_DEFAULT,"dayu_scope_open requested=%{public}.9f cached=%{public}.9f frame=%{public}.9f out=%{public}d replay=%{public}d",CMTimeGetSeconds(time),CMTimeGetSeconds(cached),CMTimeGetSeconds(frameDuration),exclusiveEnd,replay);
// Reuse this instance's final output when the host is still on that frame.
if(replay){DYScopeSample *sample=[DYScopeSample new];sample.pixels=_scopeLatest.pixels;sample.space=_scopeLatest.space;sample.metadata=_scopeLatest.metadata;sample.generation=_scopeGeneration;_scopePending=sample;if(!_scopeWorkerRunning){_scopeWorkerRunning=YES;start=YES;}}
}
}
if(start)dispatch_async(_scopeQueue,^{[self processPendingScopeSamples];});
@@ -80,37 +81,76 @@
}});
return raster;
}
- (void)captureScopeTile:(FxImageTile *)tile atTime:(CMTime)time{
NSUInteger generation;uint64_t serial;@synchronized(_previewLock){if(_exporting||!tile)return;generation=_scopeGeneration;serial=++_scopeCaptureSerial;}
@autoreleasepool{@try{
NSDictionary *entry=nil,*context=nil;@synchronized(self){entry=[[self device:tile.deviceRegistryID error:nil]retain];context=[_colorContext copy];}
id<MTLDevice>device=entry[@"device"];id<MTLTexture>texture=[tile metalTextureForDevice:device];
if(!entry||!texture||!texture.width||!texture.height||texture.framebufferOnly){[entry release];[context release];return;}
id<MTLBuffer>buffer=[device newBufferWithLength:dyscope::Width*dyscope::Height*sizeof(dyscope::RGBA) options:MTLResourceStorageModeShared];
id<MTLCommandBuffer>command=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>encoder=[command computeCommandEncoder];
if(!buffer||!encoder){[buffer release];[entry release];[context release];return;}
uint32_t flip=tile.imageOrigin==kFxImageOrigin_BOTTOM_LEFT;[encoder setComputePipelineState:entry[@"dyScopeSample"]];[encoder setTexture:texture atIndex:0];[encoder setBuffer:buffer offset:0 atIndex:0];[encoder setBytes:&flip length:sizeof(flip) atIndex:1];
[encoder dispatchThreads:MTLSizeMake(dyscope::Width,dyscope::Height,1) threadsPerThreadgroup:MTLSizeMake(8,8,1)];[encoder endEncoding];[command commit];
// The host may recycle its destination as soon as render returns. Complete
// only this 320x180 readback while that ownership is still guaranteed.
// CPU profile conversion, plotting and UI notification do not block render.
[command waitUntilCompleted];
if(command.status!=MTLCommandBufferStatusCompleted){[buffer release];[entry release];[context release];return;}
DYScopeSample *sample=[DYScopeSample new];sample.pixels=[NSData dataWithBytes:buffer.contents length:buffer.length];sample.generation=generation;
CGColorSpaceRef sourceSpace=DYManagedTileSpace(tile,[context[@"primaries"]integerValue]);sample.space=sourceSpace;if(sourceSpace)CGColorSpaceRelease(sourceSpace);
FxRect bounds=tile.tilePixelBounds,image=tile.imagePixelBounds;BOOL whole=bounds.left==image.left&&bounds.right==image.right&&bounds.top==image.top&&bounds.bottom==image.bottom;
sample.metadata=@{@"time":@(CMTimeGetSeconds(time)),@"timeValue":@(time.value),@"timeScale":@(time.timescale),@"timeEpoch":@(time.epoch),@"source":context[@"destination"]?:@"宿主 RGB",@"wholeImage":@(whole),@"region":whole?@"整帧取样":@"仅当前宿主输出分块",@"width":@(dyscope::Width),@"height":@(dyscope::Height)};
[buffer release];[entry release];[context release];
BOOL start=NO,notifyOutput=NO;@synchronized(_previewLock){
if(serial>=_scopeLatestSerial){
[_scopeLatest release];_scopeLatest=[sample retain];_scopeLatestSerial=serial;
// The caller owns the destination until command completion. Only the small
// result buffer is copied out of that lifetime, even when the scope is closed.
- (DYScopeReadback)encodeScopeTile:(FxImageTile *)tile texture:(id<MTLTexture>)texture entry:(NSMutableDictionary *)entry commands:(id<MTLCommandBuffer>)command {
if(_exporting||!tile||!texture.width||!texture.height||texture.framebufferOnly)return {};
id<MTLComputePipelineState> pipeline=[self computePipeline:@"dyScopeSample" entry:entry error:nil];
if(!pipeline)return {};
id<MTLBuffer> buffer=entry[@"scopeBuffer"];
if(!buffer){
id<MTLDevice> device=entry[@"device"];
buffer=[[device newBufferWithLength:dyscope::Width*dyscope::Height*sizeof(dyscope::RGBA) options:MTLResourceStorageModeShared]autorelease];
if(!buffer)return {};
entry[@"scopeBuffer"]=buffer;
}
id<MTLComputeCommandEncoder> encoder=[command computeCommandEncoder];
if(!encoder)return {};
uint32_t flip=tile.imageOrigin==kFxImageOrigin_BOTTOM_LEFT;
[encoder setComputePipelineState:pipeline];[encoder setTexture:texture atIndex:0];
[encoder setBuffer:buffer offset:0 atIndex:0];[encoder setBytes:&flip length:sizeof(flip) atIndex:1];
[encoder dispatchThreads:MTLSizeMake(dyscope::Width,dyscope::Height,1) threadsPerThreadgroup:MTLSizeMake(8,8,1)];
[encoder endEncoding];
@synchronized(_previewLock){return {buffer,_scopeGeneration,++_scopeCaptureSerial};}
}
- (void)publishScopeReadback:(DYScopeReadback)readback tile:(FxImageTile *)tile atTime:(CMTime)time {
if(!readback.buffer)return;
@try{
DYScopeSample *sample=[[[DYScopeSample alloc]init]autorelease];
sample.pixels=[NSData dataWithBytes:readback.buffer.contents length:readback.buffer.length];
sample.generation=readback.generation;
CGColorSpaceRef space=DYManagedTileSpace(tile,[_colorContext[@"primaries"]integerValue]);
sample.space=space;if(space)CGColorSpaceRelease(space);
FxRect bounds=tile.tilePixelBounds,image=tile.imagePixelBounds;
BOOL whole=bounds.left==image.left&&bounds.right==image.right&&bounds.top==image.top&&bounds.bottom==image.bottom;
sample.metadata=@{@"time":@(CMTimeGetSeconds(time)),@"timeValue":@(time.value),@"timeScale":@(time.timescale),@"timeEpoch":@(time.epoch),@"source":_colorContext[@"destination"]?:@"宿主 RGB",@"wholeImage":@(whole),@"region":whole?@"整帧取样":@"仅当前宿主输出分块",@"width":@(dyscope::Width),@"height":@(dyscope::Height)};
BOOL start=NO,notifyOutput=NO;
@synchronized(_previewLock){
if(readback.serial>=_scopeLatestSerial){
[_scopeLatest release];_scopeLatest=[sample retain];_scopeLatestSerial=readback.serial;
if(_outputObserved&&!_outputNotificationPending){_outputNotificationPending=YES;notifyOutput=YES;}
}
if(_scopeEnabled&&serial==_scopeLatestSerial&&(generation==_scopeGeneration||!CMTIME_IS_NUMERIC(_scopeRequestedTime)||CMTimeCompare(time,_scopeRequestedTime)==0)){sample.generation=_scopeGeneration;[_scopePending release];_scopePending=[sample retain];if(!_scopeWorkerRunning){_scopeWorkerRunning=YES;start=YES;}}
}[sample release];
if(_scopeEnabled&&readback.serial==_scopeLatestSerial&&(readback.generation==_scopeGeneration||!CMTIME_IS_NUMERIC(_scopeRequestedTime)||DYScopeFrameContainsTime(time,_scopeRequestedTime,_scopeRequestedFrameDuration,_scopeRequestedExclusiveEnd))){
sample.generation=_scopeGeneration;[_scopePending release];_scopePending=[sample retain];
if(!_scopeWorkerRunning){_scopeWorkerRunning=YES;start=YES;}
}
}
if(notifyOutput)[self queueOutputNotification];
if(start)dispatch_async(_scopeQueue,^{[self processPendingScopeSamples];});
}@catch(NSException *exception){/* Scope diagnostics must never fail rendering. */}}
}@catch(NSException *exception){/* Scope diagnostics must never fail rendering. */}
}
- (BOOL)completeCommands:(id<MTLCommandBuffer>)command destination:(FxImageTile *)destination texture:(id<MTLTexture>)texture entry:(NSMutableDictionary *)entry {
DYScopeReadback readback{};
if(destination==_scopeDestination){
@try{readback=[self encodeScopeTile:destination texture:texture entry:entry commands:command];}
@catch(NSException *exception){/* Fall back to separate sampling. */}
}
[command commit];[command waitUntilCompleted];
if(command.status!=MTLCommandBufferStatusCompleted)return NO;
if(readback.buffer){[self publishScopeReadback:readback tile:destination atTime:_scopeRenderTime];_scopeCaptured=YES;}
return YES;
}
- (void)captureScopeTile:(FxImageTile *)tile atTime:(CMTime)time {
@synchronized(self){@autoreleasepool{@try{
if(!tile||_exporting)return;
NSMutableDictionary *entry=[self device:tile.deviceRegistryID error:nil];
id<MTLTexture> texture=[tile metalTextureForDevice:entry[@"device"]];
id<MTLCommandBuffer> command=[entry[@"queue"]commandBuffer];
DYScopeReadback readback=[self encodeScopeTile:tile texture:texture entry:entry commands:command];
if(!readback.buffer)return;
[command commit];[command waitUntilCompleted];
if(command.status==MTLCommandBufferStatusCompleted)[self publishScopeReadback:readback tile:tile atTime:time];
}@catch(NSException *exception){/* Scope diagnostics must never fail rendering. */}}}
}
- (void)processPendingScopeSamples{
for(;;){@autoreleasepool{
+18 -1
查看文件
@@ -8,11 +8,28 @@ static inline CMTime DYScopeDisplayTime(CMTime requested,CMTime start,CMTime dur
CMTime last=CMTimeSubtract(end,frame);return CMTimeCompare(last,start)<0?start:last;
}
// Custom-view time can land between rendered input frames. A cached frame
// covers its own interval only; the next frame boundary must get a fresh sample.
static inline bool DYScopeFrameContainsTime(CMTime captured,CMTime requested,CMTime frame,bool exclusiveEnd){
if(!CMTIME_IS_NUMERIC(captured)||!CMTIME_IS_NUMERIC(requested)||captured.epoch!=requested.epoch)return false;
int comparison=CMTimeCompare(captured,requested);
if(comparison==0)return !exclusiveEnd;
if(comparison>0||!CMTIME_IS_NUMERIC(frame)||frame.value<=0||frame.epoch)return false;
CMTime delta=CMTimeSubtract(requested,captured);
if(exclusiveEnd){
// FCP holds its last presented project frame at the exclusive clip end.
// Allow a final project frame as slow as 23.976 even for faster source media.
return CMTimeCompare(delta,CMTimeMaximum(frame,CMTimeMake(1001,24000)))<=0;
}
return CMTimeCompare(delta,frame)<0;
}
#import <FxPlug/FxPlugSDK.h>
// Caller must already hold a custom parameter action. OSC events keep their
// provided time; this only normalizes the custom-view clock used to guard them.
static inline CMTime DYHostDisplayedFrameTime(id<PROAPIAccessing> host,CMTime current){
static inline CMTime DYHostDisplayedFrameTime(id<PROAPIAccessing> host,CMTime current,CMTime *frameDuration=nullptr){
id<FxTimingAPI_v4>timing=[host apiForProtocol:@protocol(FxTimingAPI_v4)];CMTime start=kCMTimeInvalid,duration=kCMTimeInvalid,frame=kCMTimeInvalid;
if([timing respondsToSelector:@selector(startTimeOfInputToFilter:)]&&[timing respondsToSelector:@selector(durationTimeOfInputToFilter:)]&&[timing respondsToSelector:@selector(frameDuration:)]){[timing startTimeOfInputToFilter:&start];[timing durationTimeOfInputToFilter:&duration];[timing frameDuration:&frame];}
if(frameDuration)*frameDuration=frame;
return DYScopeDisplayTime(current,start,duration,frame);
}
+7 -1
查看文件
@@ -1,6 +1,12 @@
#pragma once
#include "MaskCore/DYMaskOperator.h"
struct DYToolMaskEntry {DYResolvedMask mask;int section,combine;};
struct DYToolMaskEntry {
DYResolvedMask mask;
int section,combine;
// Image coordinates for face contours (-100) and mosaic face boxes (-102).
// Local path coordinates for authored Bézier mosaic masks.
float minX,minY,maxX,maxY;
};
struct DYToolMaskHeader {unsigned count;float offsetX,offsetY,scaleX,scaleY;int section,premultiplied,faceOnly,skinPreview;};
struct DYToolStageRange {int first,last,suppressBlackWhite;};
+39 -12
查看文件
@@ -4,14 +4,19 @@
- (dy::GrayFrame)toolGrayFrame:(FxImageTile*)tile error:(NSError**)error {
auto result=[self toolGrayFrame:tile preview:nil error:error];
// The diagnostic/legacy caller expects normalized floats. Actual analysis
// keeps the GPU-produced bytes through OpenCV, without float expansion.
// keeps the GPU-produced bytes without expanding the full frame to floats.
if(result.valid()&&result.pixels.empty()){result.pixels.resize(result.bytes.size());for(size_t i=0;i<result.bytes.size();++i)result.pixels[i]=result.bytes[i]/255.f;result.bytes.clear();}
return result;
}
- (dy::GrayFrame)toolGrayFrame:(FxImageTile*)tile preview:(NSDictionary**)preview error:(NSError**)error {
dy::GrayFrame result;
[self captureTrackingTile:tile gray:&result preview:preview error:error];
return result;
}
- (BOOL)captureTrackingTile:(FxImageTile*)tile gray:(dy::GrayFrame*)gray preview:(NSDictionary**)preview error:(NSError**)error {
@synchronized(_toolCaptureDevices){
FxRect bounds=tile.tilePixelBounds,image=tile.imagePixelBounds;
if(bounds.left!=image.left||bounds.right!=image.right||bounds.bottom!=image.bottom||bounds.top!=image.top)return {};
if(bounds.left!=image.left||bounds.right!=image.right||bounds.bottom!=image.bottom||bounds.top!=image.top)return NO;
NSNumber *key=@(tile.deviceRegistryID);NSMutableDictionary *entry=_toolCaptureDevices[key];
if(!entry){NSArray *devices=MTLCopyAllDevices();id<MTLDevice>device=nil;for(id<MTLDevice>candidate in devices)if(candidate.registryID==tile.deviceRegistryID)device=candidate;
if(device){id<MTLLibrary>library=[device newLibraryWithURL:[[NSBundle bundleForClass:self.class]URLForResource:@"default" withExtension:@"metallib"]error:error];id<MTLFunction>gray=[library newFunctionWithName:@"dyToolCapture"],gamma=[library newFunctionWithName:@"dyToolEncodeGamma22"];id<MTLComputePipelineState>grayPipeline=gray?[device newComputePipelineStateWithFunction:gray error:error]:nil,gammaPipeline=gamma?[device newComputePipelineStateWithFunction:gamma error:error]:nil;id<MTLCommandQueue>queue=[device newCommandQueue];MPSImageLanczosScale *scale=[[MPSImageLanczosScale alloc]initWithDevice:device];
@@ -23,20 +28,36 @@
[pipeline release];[function release];
}
[scale release];[queue release];[grayPipeline release];[gammaPipeline release];[gray release];[gamma release];[library release];
}[devices release];if(!entry)return {};
}[devices release];if(!entry)return NO;
}
id<MTLDevice>device=entry[@"device"];id<MTLTexture>source=[tile metalTextureForDevice:device];if(!source||source.framebufferOnly||!source.width||!source.height)return {};
double factor=MIN(1.,MIN(3840./source.width,2160./source.height));NSUInteger width=floor(source.width*factor),height=floor(source.height*factor);if(width<16||height<16||width>3840||height>2160)return {};
id<MTLDevice>device=entry[@"device"];id<MTLTexture>source=[tile metalTextureForDevice:device];if(!source||source.framebufferOnly||!source.width||!source.height)return NO;
double factor=MIN(1.,MIN(3840./source.width,2160./source.height));NSUInteger width=floor(source.width*factor),height=floor(source.height*factor);if(width<16||height<16||width>3840||height>2160)return NO;
MTLPixelFormat format=source.pixelFormat==MTLPixelFormatRGBA32Float?MTLPixelFormatRGBA32Float:MTLPixelFormatRGBA16Float;
id<MTLTexture>encoded=entry[@"encoded"],bytes=entry[@"bytes"];
if(!encoded||encoded.width!=source.width||encoded.height!=source.height||encoded.pixelFormat!=format){MTLTextureDescriptor*d=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:format width:source.width height:source.height mipmapped:NO];d.storageMode=MTLStorageModePrivate;d.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;encoded=[[device newTextureWithDescriptor:d]autorelease];if(!encoded)return {};entry[@"encoded"]=encoded;}
if(!bytes||bytes.width!=width||bytes.height!=height){MTLTextureDescriptor*d=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA8Unorm width:width height:height mipmapped:NO];d.storageMode=MTLStorageModePrivate;d.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;bytes=[[device newTextureWithDescriptor:d]autorelease];if(!bytes)return {};entry[@"bytes"]=bytes;}
id<MTLBuffer>buffer=entry[@"buffer"];if(!buffer||buffer.length!=width*height){buffer=[[device newBufferWithLength:width*height options:MTLResourceStorageModeShared]autorelease];if(!buffer)return {};entry[@"buffer"]=buffer;}
if(!encoded||encoded.width!=source.width||encoded.height!=source.height||encoded.pixelFormat!=format){MTLTextureDescriptor*d=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:format width:source.width height:source.height mipmapped:NO];d.storageMode=MTLStorageModePrivate;d.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;encoded=[[device newTextureWithDescriptor:d]autorelease];if(!encoded)return NO;entry[@"encoded"]=encoded;}
if(!bytes||bytes.width!=width||bytes.height!=height){MTLTextureDescriptor*d=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA8Unorm width:width height:height mipmapped:NO];d.storageMode=MTLStorageModePrivate;d.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;bytes=[[device newTextureWithDescriptor:d]autorelease];if(!bytes)return NO;entry[@"bytes"]=bytes;}
id<MTLBuffer>buffer=nil;
if(gray){
buffer=entry[@"buffer"];
if(buffer.length!=width*height){
buffer=[[device newBufferWithLength:width*height options:MTLResourceStorageModeShared]autorelease];
if(!buffer)return NO;
entry[@"buffer"]=buffer;
}
}
id<MTLCommandBuffer>commands=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>encoder=[commands computeCommandEncoder];[encoder setComputePipelineState:entry[@"gamma"]];[encoder setTexture:source atIndex:0];[encoder setTexture:encoded atIndex:1];[encoder dispatchThreads:MTLSizeMake(source.width,source.height,1)threadsPerThreadgroup:MTLSizeMake(16,16,1)];[encoder endEncoding];
[entry[@"scale"]encodeToCommandBuffer:commands sourceTexture:encoded destinationTexture:bytes];
vector_uint3 info={(unsigned)width,(unsigned)height,(unsigned)(tile.imageOrigin==kFxImageOrigin_BOTTOM_LEFT)};encoder=[commands computeCommandEncoder];[encoder setComputePipelineState:entry[@"gray"]];[encoder setTexture:bytes atIndex:0];[encoder setBuffer:buffer offset:0 atIndex:0];[encoder setBytes:&info length:sizeof(info)atIndex:1];[encoder dispatchThreads:MTLSizeMake(width,height,1)threadsPerThreadgroup:MTLSizeMake(16,16,1)];[encoder endEncoding];
unsigned flip=tile.imageOrigin==kFxImageOrigin_BOTTOM_LEFT;
if(gray){
vector_uint3 info={(unsigned)width,(unsigned)height,flip};
encoder=[commands computeCommandEncoder];
[encoder setComputePipelineState:entry[@"gray"]];[encoder setTexture:bytes atIndex:0];
[encoder setBuffer:buffer offset:0 atIndex:0];[encoder setBytes:&info length:sizeof(info) atIndex:1];
[encoder dispatchThreads:MTLSizeMake(width,height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];
[encoder endEncoding];
}
id<MTLBuffer>previewBuffer=nil;
vector_uint3 previewInfo={0,0,info.z};
vector_uint3 previewInfo={0,0,flip};
if(preview&&entry[@"previewPipeline"]){
double scale=std::min({1.,640./width,360./height});
previewInfo.x=std::max(1u,(unsigned)(width*scale));previewInfo.y=std::max(1u,(unsigned)(height*scale));
@@ -54,14 +75,20 @@
[encoder endEncoding];
}
}
if(!gray&&!previewBuffer)return NO;
[commands commit];[commands waitUntilCompleted];
if(commands.status!=MTLCommandBufferStatusCompleted){if(error)*error=commands.error;return {};}
if(commands.status!=MTLCommandBufferStatusCompleted){if(error)*error=commands.error;return NO;}
if(previewBuffer){
double pixelAspect=tile.pixelAspect;
double aspect=double(width)/height*(std::isfinite(pixelAspect)&&pixelAspect>0?pixelAspect:1);
*preview=@{@"rgba":[NSData dataWithBytes:previewBuffer.contents length:previewBuffer.length],
@"width":@(previewInfo.x),@"height":@(previewInfo.y),@"aspect":@(aspect)};
}
dy::GrayFrame result;result.width=int(width);result.height=int(height);const auto*begin=static_cast<const uint8_t*>(buffer.contents);result.bytes.assign(begin,begin+width*height);return result;
if(gray){
gray->width=int(width);gray->height=int(height);
const auto *begin=static_cast<const uint8_t*>(buffer.contents);
gray->bytes.assign(begin,begin+width*height);
}
return YES;
}
}
+13 -6
查看文件
@@ -155,7 +155,9 @@
NSInteger direction=[notification.userInfo[@"direction"]integerValue];if(direction==9){_trackingCancelled.store(true);return;}@synchronized(self){if(_toolDrawingPen||_toolDrawingShape||_toolCanvasCommitPending){[self postToolCanvasStatus:@"请先完成或取消蒙版绘制,再开始跟踪。"];return;}}if(_trackingActive.load()){[self toolStatus:@"请先取消当前跟踪"];return;}
id<FxCustomParameterActionAPI_v4>a=[_apiManager apiForProtocol:@protocol(FxCustomParameterActionAPI_v4)];if(!a)return;[a startAction:self];@try{
id<FxAnalysisAPI>analysis=[_apiManager apiForProtocol:@protocol(FxAnalysisAPI)];FxAnalysisState state=[analysis analysisStateForEffect];if(!analysis||state==kFxAnalysisState_AnalysisRequested||state==kFxAnalysisState_AnalysisStarted){[self toolStatus:@"宿主未就绪,请等待当前分析结束"];return;}
CMTime time=a.currentTime;NSDictionary *doc=DYReadTools(_apiManager,time).document;NSString *node=DYSharedMaskWithID(doc,notification.userInfo[@"mask"])?@"shared":notification.userInfo[@"node"];NSDictionary *mask=[self toolMask:notification.userInfo[@"mask"] node:node document:doc];if(!mask||![mask[@"enabled"]boolValue]){[self toolStatus:@"请先选择当前工具的启用蒙版"];return;}DYMaskParameters seed=DYMaskAtTime(mask,time);if(seed.kind>DYMaskBezier||(seed.kind==DYMaskBezier&&[mask[@"nodes"]length]<3*sizeof(DYBezierNode))){[self toolStatus:@"跟踪需要矩形、椭圆或闭合钢笔区域"];return;}
CMTime time=a.currentTime;
if(!CMTIME_IS_NUMERIC(time)){[self toolStatus:@"请在时间线定位到有效画面后再开始跟踪"];return;}
NSDictionary *doc=DYReadTools(_apiManager,time).document;NSString *node=DYSharedMaskWithID(doc,notification.userInfo[@"mask"])?@"shared":notification.userInfo[@"node"];NSDictionary *mask=[self toolMask:notification.userInfo[@"mask"] node:node document:doc];if(!mask||![mask[@"enabled"]boolValue]){[self toolStatus:@"请先选择当前工具的启用蒙版"];return;}DYMaskParameters seed=DYMaskAtTime(mask,time);if(seed.kind>DYMaskBezier||(seed.kind==DYMaskBezier&&[mask[@"nodes"]length]<3*sizeof(DYBezierNode))){[self toolStatus:@"跟踪需要矩形、椭圆或闭合钢笔区域"];return;}
// The host may reuse an already rendered frame without calling our renderer.
// Analyzer input is authoritative; a matching preview is only an optional
// orientation check, never a prerequisite for starting at the playhead.
@@ -239,14 +241,19 @@
if(_trackingCancelled.load())return [self finishToolAnalysis:@"已取消;保留最后连续可信轨迹" error:error];if(_trackingSingle&&_trackingSamples.count>=2)return [self finishToolAnalysis:nil error:error];if(_trackingSamples.count>=DYToolKeyLimit)return [self finishToolAnalysis:@"轨迹已到数量上限,保留已完成部分" error:error];
CMTime expected=CMTIME_IS_NUMERIC(_trackingPreviousTime)?(_trackingBackward?CMTimeSubtract(_trackingPreviousTime,_trackingFrameDuration):CMTimeAdd(_trackingPreviousTime,_trackingFrameDuration)):_trackingReferenceTime;if(!CMTIME_IS_NUMERIC(time)||time.epoch!=expected.epoch||CMTimeCompare(time,expected)!=0)return [self stopToolAnalysis:@"宿主帧序列不连续,停在最后可信帧" error:error];
NSDictionary *preview=nil;
dy::GrayFrame frame=[self toolGrayFrame:tile preview:(_trackingSingle&&!_trackingObjectMode)?nullptr:&preview error:error];
if(!frame.valid())return [self stopToolAnalysis:@"宿主未返回完整源画面" error:error];
dy::GrayFrame frame;
const bool stamp=_trackingStampMotion.active;
const bool objectMode=_trackingObjectMode&&!stamp;
// The object tracker consumes only the small color image. The gray frame
// is useful at the seed only when checking orientation against a cached frame.
const bool needsGray=!objectMode||(!_trackingSamples.count&&_trackingReferenceFrame.valid());
if(![self captureTrackingTile:tile gray:needsGray?&frame:nullptr preview:(!_trackingSingle||objectMode)?&preview:nullptr error:error])
return [self stopToolAnalysis:@"宿主未返回完整源画面" error:error];
if(!_trackingSamples.count){if(_trackingReferenceFrame.valid()&&frame.width==_trackingReferenceFrame.width&&frame.height==_trackingReferenceFrame.height){double same=0,flip=0;size_t count=0;for(int y=0;y<frame.height;y+=8)for(int x=0;x<frame.width;x+=8){float p=frame.at(y*frame.width+x);same+=fabs(p-_trackingReferenceFrame.at(y*frame.width+x));flip+=fabs(p-_trackingReferenceFrame.at((frame.height-1-y)*frame.width+x));count++;}same/=MAX(size_t(1),count);flip/=MAX(size_t(1),count);_trackingFlip=flip<.035&&flip+.008<same&&flip<same*.8;}os_log(OS_LOG_DEFAULT,"dayu_tool_track_seed width=%{public}d height=%{public}d flip=%{public}d time=%{public}.6f",frame.width,frame.height,(int)_trackingFlip,CMTimeGetSeconds(time));}
if(_trackingFlip)frame.flipVertically();
BOOL stamp=_trackingStampMotion.active;
if(!objectMode&&_trackingFlip)frame.flipVertically();
dy::TrackResult target,source;
dy::ObjectStep objectStep;
if(_trackingObjectMode&&!stamp){
if(objectMode){
NSData *rgba=preview[@"rgba"];int width=[preview[@"width"]intValue],height=[preview[@"height"]intValue];
if(width<16||height<16||width>640||height>640||rgba.length!=size_t(width)*height*4)return [self finishToolAnalysis:@"目标跟踪未取得完整分析画面,原轨迹已保留" error:error];
if(!_trackingSamples.count){
+4 -5
查看文件
@@ -1,13 +1,12 @@
- (void)synchronizeTools {
id<FxCustomParameterActionAPI_v4>a=[self actionAPI];if(!a)return;[a startAction:self];NSDictionary *document=nil;@try{document=[DYReadTools(_manager,a.currentTime).document copy];}@finally{[a endAction:self];}
- (void)synchronizeTools:(NSDictionary *)document {
NSMutableArray *order=[NSMutableArray array];NSMutableDictionary *numbers=[NSMutableDictionary dictionary],*roots=[NSMutableDictionary dictionary];
for(NSString *orderedID in DYToolDisplayOrder(document)){NSDictionary *node=DYToolWithID(document,orderedID);if(!node)continue;NSString *ID=node[@"id"],*type=node[@"type"];[order addObject:ID];roots[ID]=DYToolRootAnchor(document,ID)?:@"tail";NSInteger number=(numbers[type]?[numbers[type]integerValue]:(DYBaseToolRemoved(document,type)?0:1))+1;numbers[type]=@(number);
DYInspector *view=_stackViews[ID];if(!view){DYToolManager *manager=[[[DYToolManager alloc]initWithHost:_manager node:node]autorelease];view=[[[DYInspector alloc]initWithAPIManager:manager renderer:_renderer]autorelease];_stackViews[ID]=view;[_document addSubview:view];}
DYInspector *view=_stackViews[ID];BOOL existed=view!=nil;if(!view){DYToolManager *manager=[[[DYToolManager alloc]initWithHost:_manager node:node]autorelease];view=[[[DYInspector alloc]initWithAPIManager:manager renderer:_renderer]autorelease];_stackViews[ID]=view;[_document addSubview:view];}
if(view->_cards.count){NSDictionary *section=view->_cards[0][@"section"];NSString *title=[NSString stringWithFormat:@"%@ %ld",section[@"title"],(long)number];[view->_cards[0][@"header"]setTitle:title];[view->_cards[0][@"removeButton"]setAccessibilityLabel:[title stringByAppendingString:@"删除此层"]];}
[view refresh];[view setNeedsLayout:YES];
if(existed)[view refresh];
}
for(NSString *ID in [[_stackViews.allKeys copy]autorelease])if(![order containsObject:ID]){[_stackViews[ID]removeFromSuperview];[_stackViews removeObjectForKey:ID];}
[_stackOrder release];_stackOrder=[order copy];[_stackRoots release];_stackRoots=[roots copy];[document release];[self setNeedsLayout:YES];
[_stackOrder release];_stackOrder=[order copy];[_stackRoots release];_stackRoots=[roots copy];[self setNeedsLayout:YES];
}
- (void)toolMask:(NSButton*)sender{if(sender.tag<0||sender.tag>=_cards.count)return;id host=_embedded?[(DYToolManager*)_manager host]:_manager;NSString *node=_embedded?[(DYToolManager*)_manager nodeID]:[@"base:" stringByAppendingString:_cards[sender.tag][@"section"][@"key"]];[NSNotificationCenter.defaultCenter postNotificationName:@"DYWorkspaceToolSelection" object:host userInfo:@{@"node":node,@"source":@"inspector"}];[(DYToolMaskPanel*)_cards[sender.tag][@"maskPanel"]addMenu:sender];}
- (void)repeatTool:(NSButton*)sender{
+31 -10
查看文件
@@ -1,16 +1,31 @@
// Included in DYRenderer; all calls execute under its per-instance recursive lock.
- (id<MTLBuffer>)maskBuffer:(NSDictionary*)groups tile:(FxImageTile*)tile device:(id<MTLDevice>)device header:(DYToolMaskHeader*)h {
return [self maskBuffer:groups tile:tile device:device header:h mosaic:NO];
}
- (id<MTLBuffer>)maskBuffer:(NSDictionary*)groups tile:(FxImageTile*)tile device:(id<MTLDevice>)device header:(DYToolMaskHeader*)h mosaic:(BOOL)mosaic {
std::vector<DYToolMaskEntry> entries;FxRect image=tile.imagePixelBounds,bounds=tile.tilePixelBounds;
float w=image.right-image.left,ht=image.top-image.bottom;BOOL bottom=tile.imageOrigin==kFxImageOrigin_BOTTOM_LEFT;
h->offsetX=(bounds.left-image.left)/w;h->scaleX=(bounds.right-bounds.left)/w;
h->offsetY=bottom?(image.top-bounds.bottom)/ht:(image.top-bounds.top)/ht;h->scaleY=(bottom?-1:1)*(bounds.top-bounds.bottom)/ht;
h->premultiplied=1;
for(NSString *type in groups){NSInteger section=[DYToolTypes()indexOfObject:type];if(section==NSNotFound)continue;
for(NSDictionary *m in groups[type]){if(![m[@"enabled"]boolValue])continue;DYToolMaskEntry entry{};entry.section=(int)section;entry.combine=[m[@"combine"]intValue];[m[@"parameters"]getBytes:&entry.mask.parameters length:sizeof(DYMaskParameters)];entry.mask.parameters.imageAspect=w/ht;NSData *nodes=m[@"nodes"];entry.mask.path=dyFlattenMask((const DYBezierNode*)nodes.bytes,nodes.length/sizeof(DYBezierNode));entries.push_back(entry);}
for(NSDictionary *m in groups[type]){
if(![m[@"enabled"]boolValue])continue;
DYToolMaskEntry entry{};entry.section=(int)section;entry.combine=[m[@"combine"]intValue];
[m[@"parameters"]getBytes:&entry.mask.parameters length:sizeof(DYMaskParameters)];entry.mask.parameters.imageAspect=w/ht;
NSData *nodes=m[@"nodes"];auto &path=entry.mask.path;
path=dyFlattenMask((const DYBezierNode*)nodes.bytes,nodes.length/sizeof(DYBezierNode));
if(mosaic&&entry.mask.parameters.kind==DYMaskBezier&&path.count>=3){
auto x=std::minmax_element(path.x,path.x+path.count),y=std::minmax_element(path.y,path.y+path.count);
entry.minX=*x.first;entry.maxX=*x.second;entry.minY=*y.first;entry.maxY=*y.second;
}
entries.push_back(entry);
}
}if(_faceEntries.length){const DYToolMaskEntry *faces=(const DYToolMaskEntry*)_faceEntries.bytes;entries.insert(entries.end(),faces,faces+_faceEntries.length/sizeof(DYToolMaskEntry));}h->count=(unsigned)entries.size();if(entries.empty())entries.push_back({});return [[device newBufferWithBytes:entries.data() length:entries.size()*sizeof(DYToolMaskEntry) options:MTLResourceStorageModeShared]autorelease];
}
- (void)encodeBlend:(id<MTLTexture>)before after:(id<MTLTexture>)after output:(id<MTLTexture>)output masks:(id<MTLBuffer>)masks header:(DYToolMaskHeader)h entry:(NSDictionary*)entry commands:(id<MTLCommandBuffer>)commands {
id<MTLComputeCommandEncoder>encoder=[commands computeCommandEncoder];[encoder setComputePipelineState:entry[@"dyToolBlend"]];[encoder setTexture:before atIndex:0];[encoder setTexture:after atIndex:1];[encoder setTexture:output atIndex:2];[encoder setBuffer:masks offset:0 atIndex:0];[encoder setBytes:&h length:sizeof(h) atIndex:1];[encoder dispatchThreads:MTLSizeMake(output.width,output.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[encoder endEncoding];
- (BOOL)encodeBlend:(id<MTLTexture>)before after:(id<MTLTexture>)after output:(id<MTLTexture>)output masks:(id<MTLBuffer>)masks header:(DYToolMaskHeader)h entry:(NSMutableDictionary*)entry commands:(id<MTLCommandBuffer>)commands error:(NSError**)error {
id<MTLComputePipelineState> pipeline=[self computePipeline:@"dyToolBlend" entry:entry error:error];if(!pipeline)return NO;
id<MTLComputeCommandEncoder>encoder=[commands computeCommandEncoder];[encoder setComputePipelineState:pipeline];[encoder setTexture:before atIndex:0];[encoder setTexture:after atIndex:1];[encoder setTexture:output atIndex:2];[encoder setBuffer:masks offset:0 atIndex:0];[encoder setBytes:&h length:sizeof(h) atIndex:1];[encoder dispatchThreads:MTLSizeMake(output.width,output.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[encoder endEncoding];return YES;
}
- (BOOL)copyTile:(FxImageTile*)source to:(FxImageTile*)dest entry:(NSMutableDictionary*)e error:(NSError**)error {
return [self copyTile:source to:dest rotation:0 entry:e error:error];
@@ -34,7 +49,7 @@
if(source.imageOrigin==kFxImageOrigin_BOTTOM_LEFT)vertex.textureCoordinate.y=1-vertex.textureCoordinate.y;
if(dest.imageOrigin==kFxImageOrigin_BOTTOM_LEFT)vertex.position.y=-vertex.position.y;
}
vector_uint2 size={(unsigned)b.width,(unsigned)b.height};id<MTLCommandBuffer>cb=[e[@"queue"]commandBuffer];MTLRenderPassDescriptor *pass=[MTLRenderPassDescriptor renderPassDescriptor];pass.colorAttachments[0].texture=b;pass.colorAttachments[0].loadAction=MTLLoadActionDontCare;pass.colorAttachments[0].storeAction=MTLStoreActionStore;id<MTLRenderCommandEncoder>encoder=[cb renderCommandEncoderWithDescriptor:pass];[encoder setRenderPipelineState:pipeline];[encoder setVertexBytes:v length:sizeof(v) atIndex:0];[encoder setVertexBytes:&size length:sizeof(size) atIndex:1];[encoder setFragmentTexture:a atIndex:0];[encoder drawPrimitives:MTLPrimitiveTypeTriangleStrip vertexStart:0 vertexCount:4];[encoder endEncoding];[cb commit];[cb waitUntilCompleted];return cb.status==MTLCommandBufferStatusCompleted?YES:fail(error,cb.error.localizedDescription);
vector_uint2 size={(unsigned)b.width,(unsigned)b.height};id<MTLCommandBuffer>cb=[e[@"queue"]commandBuffer];MTLRenderPassDescriptor *pass=[MTLRenderPassDescriptor renderPassDescriptor];pass.colorAttachments[0].texture=b;pass.colorAttachments[0].loadAction=MTLLoadActionDontCare;pass.colorAttachments[0].storeAction=MTLStoreActionStore;id<MTLRenderCommandEncoder>encoder=[cb renderCommandEncoderWithDescriptor:pass];[encoder setRenderPipelineState:pipeline];[encoder setVertexBytes:v length:sizeof(v) atIndex:0];[encoder setVertexBytes:&size length:sizeof(size) atIndex:1];[encoder setFragmentTexture:a atIndex:0];[encoder drawPrimitives:MTLPrimitiveTypeTriangleStrip vertexStart:0 vertexCount:4];[encoder endEncoding];return [self completeCommands:cb destination:dest texture:b entry:e]?YES:fail(error,cb.error.localizedDescription);
}
// Extra skin keeps the source reference used by the prior release. All other
// extra tools reuse the same isolated native tool path and their own mask group.
@@ -50,22 +65,28 @@
if([type isEqual:@"mixer"]||[type isEqual:@"film"]){layer.filmFrameKey=[node[@"filmFrameKey"]unsignedIntValue];return [self renderFilmTool:type source:source destination:destination uniforms:layer masks:node[@"masks"] entry:entry error:error];}
if(![type isEqual:@"skin"])return [self renderLegacy:source destination:destination uniforms:layer paths:node[@"paths"] spider:node[@"spider"] masks:@{type:node[@"masks"]} error:error];
id<MTLDevice>d=entry[@"device"];id<MTLTexture>before=[source metalTextureForDevice:d],input=[original metalTextureForDevice:d],after=[destination metalTextureForDevice:d];
id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:entry[@"dyToolSkin"]];[ce setTexture:before atIndex:0];[ce setTexture:input atIndex:1];[ce setTexture:after atIndex:2];[ce setBytes:&layer length:sizeof(layer) atIndex:0];[ce dispatchThreads:MTLSizeMake(after.width,after.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);
id<MTLComputePipelineState> pipeline=[self computePipeline:@"dyToolSkin" entry:entry error:error];if(!pipeline)return NO;
id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:pipeline];[ce setTexture:before atIndex:0];[ce setTexture:input atIndex:1];[ce setTexture:after atIndex:2];[ce setBytes:&layer length:sizeof(layer) atIndex:0];[ce dispatchThreads:MTLSizeMake(after.width,after.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);
if(![node[@"masks"]count]&&layer.skinFaceOnly<.5&&layer.skinVisualize<.5)return YES;
MTLTextureDescriptor *desc=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA16Float width:after.width height:after.height mipmapped:NO];desc.storageMode=MTLStorageModePrivate;desc.usage=MTLTextureUsageRenderTarget|MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;id<MTLTexture>blend=[d newTextureWithDescriptor:desc];if(!blend)return fail(error,@"无法分配新增工具蒙版缓冲区");
DYToolMaskHeader h{};h.section=3;h.faceOnly=layer.skinFaceOnly>.5;h.skinPreview=layer.skinProtection.x>.5&&layer.skinVisualize>.5;id<MTLBuffer>buffer=[self maskBuffer:@{type:node[@"masks"]} tile:source device:d header:&h];cb=[entry[@"queue"]commandBuffer];[self encodeBlend:before after:after output:blend masks:buffer header:h entry:entry commands:cb];[cb commit];[cb waitUntilCompleted];BOOL ok=cb.status==MTLCommandBufferStatusCompleted;
DYToolMaskHeader h{};h.section=3;h.faceOnly=layer.skinFaceOnly>.5;h.skinPreview=layer.skinProtection.x>.5&&layer.skinVisualize>.5;id<MTLBuffer>buffer=[self maskBuffer:@{type:node[@"masks"]} tile:source device:d header:&h];cb=[entry[@"queue"]commandBuffer];if(![self encodeBlend:before after:after output:blend masks:buffer header:h entry:entry commands:cb error:error]){[blend release];return NO;}[cb commit];[cb waitUntilCompleted];BOOL ok=cb.status==MTLCommandBufferStatusCompleted;
DYExportTile *blended=[[DYExportTile alloc]initWithTexture:blend registry:d.registryID];[blended setBounds:source.tilePixelBounds origin:source.imageOrigin];[blended setPixelAspect:source.pixelAspect];[blend release];if(ok)ok=[self copyTile:blended to:destination entry:entry error:error];else fail(error,cb.error.localizedDescription);[blended release];return ok;
}
- (BOOL)renderToolsSource:(FxImageTile*)src destination:(FxImageTile*)dst uniforms:(DYUniforms)u paths:(NSDictionary*)paths spider:(NSData*)spider tools:(NSDictionary*)tools error:(NSError**)error {@synchronized(self){return DYRenderWithPool(error,[&]()->BOOL{
if(!tools)tools=@{@"schema":@1,@"layers":@[],@"baseMasks":@{}};if(!DYValidToolDocument(tools))return fail(error,@"工具或蒙版数据损坏,未更改原工程");
if(tools[@"sharedMasks"])tools=DYResolvedToolDocument(tools);
DYApplyRemovedBaseTools(&u,tools);paths=DYVisibleBaseToolPaths(paths,tools);if(DYBaseToolRemoved(tools,@"spider"))spider=nil;
NSArray *layers=tools[@"layers"];BOOL active=NO,anchored=NO;for(NSDictionary *node in layers)if(!DYToolIsNeutral(node)){active=YES;anchored|=![DYToolRootAnchor(tools,node[@"id"])isEqual:@"tail"];}
NSMutableSet *activeIDs=nil;BOOL anchored=NO;
for(NSDictionary *node in tools[@"layers"])if(!DYToolIsNeutral(node)){
if(!activeIDs)activeIDs=[NSMutableSet set];
[activeIDs addObject:node[@"id"]];
anchored|=![DYToolRootAnchor(tools,node[@"id"])isEqual:@"tail"];
}
// No active extra tool keeps the exact historical fused path, including HDR.
if(!active&&!DYChannelMixerActive(u)&&!DYFilmToolActive(u)&&(u.lensSectionEnabled<.5||(u.lensStrength==0&&u.lensScale==1)))return [self renderLegacy:src destination:dst uniforms:u paths:paths spider:spider masks:tools[@"baseMasks"] error:error];
if(!activeIDs.count&&!DYChannelMixerActive(u)&&!DYFilmToolActive(u)&&(u.lensSectionEnabled<.5||(u.lensStrength==0&&u.lensScale==1)))return [self renderLegacy:src destination:dst uniforms:u paths:paths spider:spider masks:tools[@"baseMasks"] error:error];
NSMutableDictionary *entry=[self device:dst.deviceRegistryID error:error];if(!entry)return NO;id<MTLDevice>d=entry[@"device"];id<MTLTexture>input=[src metalTextureForDevice:d];if(!input)return fail(error,@"宿主图像纹理不可用");
MTLTextureDescriptor *desc=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA16Float width:input.width height:input.height mipmapped:NO];desc.storageMode=MTLStorageModePrivate;desc.usage=MTLTextureUsageRenderTarget|MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;
DYExportTile *tile=nil,*skinReference=nil,*originalReference=nil;NSArray *order=DYToolDisplayOrder(tools);NSMutableDictionary *groups=[NSMutableDictionary dictionary];for(NSString *ID in order){NSDictionary *node=DYToolWithID(tools,ID);if(!node||DYToolIsNeutral(node))continue;NSString *root=DYToolRootAnchor(tools,ID);if(!groups[root])groups[root]=[NSMutableArray array];[groups[root]addObject:node];}
DYExportTile *tile=nil,*skinReference=nil,*originalReference=nil;NSArray *order=DYToolDisplayOrder(tools);NSMutableDictionary *groups=[NSMutableDictionary dictionary];for(NSString *ID in order){if(![activeIDs containsObject:ID])continue;NSDictionary *node=DYToolWithID(tools,ID);NSString *root=DYToolRootAnchor(tools,ID);if(!groups[root])groups[root]=[NSMutableArray array];[groups[root]addObject:node];}
auto makeTile=[&](){id<MTLTexture>texture=[d newTextureWithDescriptor:desc];if(!texture)return (DYExportTile*)nil;DYExportTile *result=[[DYExportTile alloc]initWithTexture:texture registry:d.registryID];[result setBounds:src.tilePixelBounds origin:src.imageOrigin];[result setPixelAspect:src.pixelAspect];[texture release];return result;};
auto replace=[&](DYExportTile *next){[tile release];tile=next;};
auto apply=[&](NSString *anchor){for(NSDictionary *node in groups[anchor]){if(!DYRenderWithPool(error,[&]()->BOOL{DYExportTile *next=makeTile();if(!next)return fail(error,@"无法分配新增工具缓冲区");BOOL ok=[self renderExtraTool:node source:tile original:src destination:next entry:entry error:error];if(!ok){[next release];return NO;}replace(next);return YES;}))return NO;}return YES;};
@@ -99,7 +120,7 @@
if(branch==0)bwTile=[tile retain];
}
DYExportTile *mixed=makeTile();if(!mixed)return fail(error,@"无法分配黑白混合缓冲区");DYToolMaskEntry constant{};constant.section=0;constant.combine=0;constant.mask.parameters=dyDefaultMaskParameters();constant.mask.parameters.kind=DYMaskRectangle;constant.mask.parameters.width=constant.mask.parameters.height=4000;constant.mask.parameters.feather=0;constant.mask.parameters.outputBlack=constant.mask.parameters.outputWhite=1;constant.mask.parameters.strength=bwMix;
id<MTLBuffer>weight=[[d newBufferWithBytes:&constant length:sizeof(constant) options:MTLResourceStorageModeShared]autorelease];if(!weight){[mixed release];return fail(error,@"无法分配黑白混合权重");}DYToolMaskHeader h{};h.count=1;h.section=0;h.premultiplied=1;h.scaleX=h.scaleY=1;id<MTLCommandBuffer>commands=[entry[@"queue"]commandBuffer];[self encodeBlend:[tile metalTextureForDevice:d] after:[bwTile metalTextureForDevice:d] output:[mixed metalTextureForDevice:d] masks:weight header:h entry:entry commands:commands];[commands commit];[commands waitUntilCompleted];if(commands.status!=MTLCommandBufferStatusCompleted){[mixed release];return fail(error,commands.error.localizedDescription);}replace(mixed);
id<MTLBuffer>weight=[[d newBufferWithBytes:&constant length:sizeof(constant) options:MTLResourceStorageModeShared]autorelease];if(!weight){[mixed release];return fail(error,@"无法分配黑白混合权重");}DYToolMaskHeader h{};h.count=1;h.section=0;h.premultiplied=1;h.scaleX=h.scaleY=1;id<MTLCommandBuffer>commands=[entry[@"queue"]commandBuffer];if(![self encodeBlend:[tile metalTextureForDevice:d] after:[bwTile metalTextureForDevice:d] output:[mixed metalTextureForDevice:d] masks:weight header:h entry:entry commands:commands error:error]){[mixed release];return NO;}[commands commit];[commands waitUntilCompleted];if(commands.status!=MTLCommandBufferStatusCompleted){[mixed release];return fail(error,commands.error.localizedDescription);}replace(mixed);
}@finally{[prefix release];[bwTile release];}
// An extra skin tool follows the original skin and B&W mixture once.
if(!apply(@"base:skin"))return NO;
@@ -9,6 +9,8 @@
auto drain=[&](){double end=NSProcessInfo.processInfo.systemUptime+.15;while(NSProcessInfo.processInfo.systemUptime<end)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.005]];};CMTimeRange inputRange=CMTimeRangeMake(kCMTimeZero,CMTimeMake(6*1001,24000)),desired;
NSMutableArray *updates=[NSMutableArray array];
id observer=[NSNotificationCenter.defaultCenter addObserverForName:@"DYToolTrackingStatus" object:host queue:nil usingBlock:^(NSNotification *note){if(note.userInfo[@"tracking"])[updates addObject:note.userInfo];}];
host->_time=kCMTimeInvalid;request(1);
run.record(@"tracking-invalid-host-time-does-not-start-analysis",host->_forwardStarts==0&&host->_state==kFxAnalysisState_NotAnalyzing);
run.need(@"tracking-renders-valid-source-before-analysis",capture(0));run.record(@"inactive-tracking-avoids-full-frame-motion-readback",[[plugin valueForKey:@"toolCaptureDevices"]count]==0);int undoBefore=base->_undoStarts;request(1);BOOL callbacks=[plugin desiredAnalysisTimeRange:&desired forInputWithTimeRange:inputRange error:&error]&&[plugin setupAnalysisForTimeRange:desired frameDuration:timeAt(1) error:&error];
for(int i=0;i<6&&callbacks;i++){setFrame(i);callbacks&=[plugin analyzeFrame:frame atTime:timeAt(i) error:&error];}host->_state=kFxAnalysisState_AnalysisCompleted;[plugin cleanupAnalysis:nil];drain();NSDictionary *tracked=DYReadTools(base,kCMTimeZero).document[@"baseMasks"][@"hsl"][0];DYMaskParameters end=DYMaskAtTime(tracked,timeAt(5));run.record(@"host-callback-vision-tracking-six-exact-frames",callbacks&&[tracked[@"keys"]count]==6&&fabs(end.centerX-(.5+10./tw))<.004&&fabs(end.centerY-(.5+5./th))<.004,@{@"keyCount":@([tracked[@"keys"]count]),@"centerX":@(end.centerX),@"centerY":@(end.centerY),@"error":reason(error)});
NSDictionary *lastPreview=updates.count>=2?updates[updates.count-2]:nil;
@@ -66,6 +68,12 @@
auto compact=[plugin toolGrayFrame:fine preview:nullptr error:nil];BOOL identical=compact.valid()&&compact.pixels.empty()&&compact.bytes.size()==w*h;
for(size_t i=0;i<compact.bytes.size()&&identical;++i)identical=compact.at(i)==gray.pixels[i];
run.record(@"tracking-metal-gray8-compact-readback-matches-float-reference",identical,@{@"readbackBytes":@(compact.bytes.size()),@"previousReadbackBytes":@(gray.pixels.size()*sizeof(float))});
id<DYToolHostProbe> previewOnly=[(id)[[NSClassFromString(@"DYPlugIn") alloc] initWithAPIManager:host] autorelease];
NSDictionary *color=nil,*referenceColor=nil;
BOOL colorOK=[previewOnly captureTrackingTile:fine gray:nullptr preview:&color error:nil];
auto full=[plugin toolGrayFrame:fine preview:&referenceColor error:nil];
BOOL noGrayBuffer=YES;for(NSDictionary *entry in [[previewOnly valueForKey:@"toolCaptureDevices"] allValues])noGrayBuffer&=entry[@"buffer"]==nil;
run.record(@"mosaic-tracking-4k-color-input-matches-without-gray-buffer",colorOK&&full.valid()&&color[@"rgba"]&&[color isEqual:referenceColor]&&noGrayBuffer);
}
// UI aliases of a shared object are one tracking target. Switching from the
// global editor to either linked module must not cancel a valid analysis.
@@ -29,6 +29,7 @@
- (BOOL)cleanupAnalysis:(NSError**)error;
- (dy::GrayFrame)toolGrayFrame:(FxImageTile*)tile error:(NSError**)error;
- (dy::GrayFrame)toolGrayFrame:(FxImageTile*)tile preview:(NSDictionary**)preview error:(NSError**)error;
- (BOOL)captureTrackingTile:(FxImageTile*)tile gray:(dy::GrayFrame*)gray preview:(NSDictionary**)preview error:(NSError**)error;
@end
@interface DYToolCanvasProbe : DYToolTrackingProbe
+1 -1
查看文件
@@ -9,7 +9,7 @@
auto dispatch=[&](NSString*name,const void*params,NSUInteger length,const void*extra=nullptr,NSUInteger extraLength=0){id<MTLTexture>out=next();if(!out)return fail(error,@"无法分配一级 CST 缓冲区。");BOOL ok=[self managedDispatch:name textures:@[current,out] data:params length:length extra:extra extraLength:extraLength entry:entry error:error];if(ok)current=out;return ok;};
auto transform=[&](CSTParams p){if(p.inputTransfer==p.outputTransfer&&p.inputGamut==p.outputGamut&&!p.toneMapping)return YES;return dispatch(@"dyPrimaryCST",&p,sizeof(p));};
auto tile=[&](id<MTLTexture>t){DYExportTile*v=[[[DYExportTile alloc]initWithTexture:t registry:d.registryID]autorelease];[v setBounds:src.tilePixelBounds origin:src.imageOrigin];[v setPixelAspect:src.pixelAspect];return v;};
auto blend=[&](id<MTLTexture>before,NSArray*masks,float amount,NSString*type){if(!masks.count&&amount>=1)return YES;id<MTLTexture>out=next();if(!out)return fail(error,@"无法分配一级混合缓冲区。");DYToolMaskHeader h{};id<MTLBuffer>mb=[self maskBuffer:@{type:masks?:@[]} tile:src device:d header:&h];h.section=(int)[DYToolTypes()indexOfObject:type];struct {CSTParams toLinear,fromLinear,originalTo709;float amount;}p={{wg,wt,2,20,0},{2,20,wg,wt,0},{initialGamut,initialTransfer,22,20,0},amount};id<MTLComputePipelineState>pipeline=[self managedKernel:@"dyUnifiedBlend" entry:entry error:error];if(!pipeline||!mb)return NO;id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:pipeline];[ce setTexture:before atIndex:0];[ce setTexture:current atIndex:1];[ce setTexture:out atIndex:2];[ce setTexture:originalWorking?:before atIndex:3];[ce setBuffer:mb offset:0 atIndex:0];[ce setBytes:&h length:sizeof(h) atIndex:1];[ce setBytes:&p length:sizeof(p) atIndex:2];[ce dispatchThreads:MTLSizeMake(source.width,source.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);current=out;return YES;};
auto blend=[&](id<MTLTexture>before,NSArray*masks,float amount,NSString*type){if(!masks.count&&amount>=1)return YES;id<MTLTexture>out=next();if(!out)return fail(error,@"无法分配一级混合缓冲区。");DYToolMaskHeader h{};id<MTLBuffer>mb=[self maskBuffer:@{type:masks?:@[]} tile:src device:d header:&h];h.section=(int)[DYToolTypes()indexOfObject:type];struct {CSTParams toLinear,fromLinear,originalTo709;float amount;}p={{wg,wt,2,20,0},{2,20,wg,wt,0},{initialGamut,initialTransfer,22,20,0},amount};id<MTLComputePipelineState>pipeline=[self computePipeline:@"dyUnifiedBlend" entry:entry error:error];if(!pipeline||!mb)return NO;id<MTLCommandBuffer>cb=[entry[@"queue"]commandBuffer];id<MTLComputeCommandEncoder>ce=[cb computeCommandEncoder];[ce setComputePipelineState:pipeline];[ce setTexture:before atIndex:0];[ce setTexture:current atIndex:1];[ce setTexture:out atIndex:2];[ce setTexture:originalWorking?:before atIndex:3];[ce setBuffer:mb offset:0 atIndex:0];[ce setBytes:&h length:sizeof(h) atIndex:1];[ce setBytes:&p length:sizeof(p) atIndex:2];[ce dispatchThreads:MTLSizeMake(source.width,source.height,1) threadsPerThreadgroup:MTLSizeMake(16,16,1)];[ce endEncoding];[cb commit];[cb waitUntilCompleted];if(cb.status!=MTLCommandBufferStatusCompleted)return fail(error,cb.error.localizedDescription);current=out;return YES;};
auto grade=[&](DYUniforms values,NSArray*masks,BOOL local){if(values.primarySectionEnabled<.5||values.cm.mix<=0)return YES;DYUniforms neutral=values;neutral.inputSectionEnabled=neutral.cm.outputEnabled=0;BOOL gradeNeutral=identityCM(neutral);if(!local&&gradeNeutral)return YES;if(local&&identityCM(values))return YES;
DayuRenderParams p=DYCMRender(values.cm);p.input.toneMapping=0;if((int)lroundf(values.cm.workingTransfer)==20){p.reserved|=8;p.basis.colorspace=10;p.basisInput={(int)lroundf(values.cm.workingGamut),20,(int)lroundf(values.cm.workingGamut),10,0};p.basisOutput={(int)lroundf(values.cm.workingGamut),10,(int)lroundf(values.cm.workingGamut),20,0};}CSTParams back={wg,wt,wg,wt,0};
if(local){p.stages=(values.inputSectionEnabled>.5?1:0)|(gradeNeutral?0:2)|(values.cm.outputEnabled>.5?4:0);back={values.cm.outputEnabled>.5?(int)lroundf(values.cm.outputGamut):(int)lroundf(values.cm.workingGamut),values.cm.outputEnabled>.5?(int)lroundf(values.cm.outputTransfer):(int)lroundf(values.cm.workingTransfer),wg,wt,0};}
@@ -2,6 +2,9 @@
CMTime end=CMTimeMake(4,1),start=kCMTimeZero,duration=CMTimeMake(100,25),frame=CMTimeMake(1,25);
run.record(@"scope-exclusive-clip-end-aligns-to-last-visible-frame",CMTimeCompare(DYScopeDisplayTime(end,start,duration,frame),CMTimeMake(99,25))==0);
run.record(@"scope-interior-time-is-never-replaced-by-previous-frame",CMTimeCompare(DYScopeDisplayTime(CMTimeMake(50,25),start,duration,frame),CMTimeMake(50,25))==0);
run.record(@"scope-exclusive-end-rejects-older-or-beyond-end-output",
!DYScopeFrameContainsTime(CMTimeMake(283,25),CMTimeMake(285,25),CMTimeMake(1,60),true)&&
!DYScopeFrameContainsTime(CMTimeMake(285,25),CMTimeMake(285,25),CMTimeMake(1,60),true));
run.record(@"scope-after-end-is-not-silently-clamped",CMTimeCompare(DYScopeDisplayTime(CMTimeMake(101,25),start,duration,frame),CMTimeMake(101,25))==0);
run.record(@"scope-end-alignment-requires-valid-positive-host-frame",CMTimeCompare(DYScopeDisplayTime(end,start,duration,kCMTimeInvalid),end)==0&&CMTimeCompare(DYScopeDisplayTime(end,start,duration,kCMTimeZero),end)==0);
run.record(@"scope-trimmed-input-end-preserves-native-time-origin",CMTimeCompare(DYScopeDisplayTime(CMTimeMake(6,1),CMTimeMake(2,1),duration,frame),CMTimeMake(149,25))==0);
@@ -111,11 +114,11 @@
run.record(@"workspace-final-output-worker-publishes-real-scope-rasters",[scopeData[@"waveform"]length]==320*256*4&&[scopeData[@"parade"]length]==3*320*256*4&&[scopeData[@"histogram"]length]==4*256*4&&[scopeData[@"vectorscope"]length]==256*256*4&&[scopeData[@"wholeImage"]boolValue]);
[scopeRenderer setScopeEnabled:NO];[scopeRenderer captureScopeTile:finalTile atTime:CMTimeMake(8,24)];workspaceDrain();DYScopeSample *hiddenSample=[scopeRenderer valueForKey:@"scopeLatest"];
run.record(@"workspace-hidden-scope-retains-only-one-small-final-sample-without-processing",[scopeRenderer.scopeMetadata isEqual:scopeData]&&hiddenSample.pixels.length==320*180*16&&[hiddenSample.metadata[@"timeValue"]longLongValue]==8&&![scopeRenderer valueForKey:@"scopePending"]);
[scopeRenderer setScopeEnabled:YES atTime:CMTimeMake(8,24)];scopeDeadline=NSProcessInfo.processInfo.systemUptime+5;while(!scopeRenderer.scopeMetadata&&NSProcessInfo.processInfo.systemUptime<scopeDeadline)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.005]];
run.record(@"workspace-opening-paused-frame-replays-cached-final-output-without-render-or-parameter-edit",[scopeRenderer.scopeMetadata[@"timeValue"]longLongValue]==8&&scopeRenderer.scopePreview.length==320*180*16&&[scopeRenderer.scopeMetadata[@"vectorscope"]length]==256*256*4);
[scopeRenderer setScopeEnabled:NO];[scopeRenderer setScopeEnabled:YES atTime:CMTimeMake(9,24)];workspaceDrain();run.record(@"workspace-opening-another-time-never-presents-a-stale-frame",!scopeRenderer.scopeMetadata&&!scopeRenderer.scopePreview);
[scopeRenderer setScopeEnabled:YES atTime:CMTimeAdd(CMTimeMake(8,24),CMTimeMake(1,25)) frameDuration:CMTimeMake(1,60) exclusiveEnd:YES];scopeDeadline=NSProcessInfo.processInfo.systemUptime+5;while(!scopeRenderer.scopeMetadata&&NSProcessInfo.processInfo.systemUptime<scopeDeadline)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.005]];
run.record(@"workspace-opening-at-exclusive-end-replays-last-presented-project-frame",[scopeRenderer.scopeMetadata[@"timeValue"]longLongValue]==8&&scopeRenderer.scopePreview.length==320*180*16&&[scopeRenderer.scopeMetadata[@"vectorscope"]length]==256*256*4);
[scopeRenderer setScopeEnabled:NO];[scopeRenderer setScopeEnabled:YES atTime:CMTimeMake(9,24) frameDuration:CMTimeMake(1,24) exclusiveEnd:NO];workspaceDrain();run.record(@"workspace-opening-another-time-never-presents-a-stale-frame",!scopeRenderer.scopeMetadata&&!scopeRenderer.scopePreview);
[scopeRenderer captureScopeTile:finalTile atTime:CMTimeMake(9,24)];scopeDeadline=NSProcessInfo.processInfo.systemUptime+5;while(!scopeRenderer.scopeMetadata&&NSProcessInfo.processInfo.systemUptime<scopeDeadline)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.005]];run.record(@"workspace-new-live-frame-replaces-rejected-cache",[scopeRenderer.scopeMetadata[@"timeValue"]longLongValue]==9);
DYWorkspaceDiagnosticRenderer *otherScope=[[[DYWorkspaceDiagnosticRenderer alloc]init]autorelease];[otherScope setScopeEnabled:YES atTime:CMTimeMake(9,24)];workspaceDrain();run.record(@"workspace-scope-cache-never-crosses-plugin-instances",!otherScope.scopeMetadata&&!otherScope.scopePreview);
DYWorkspaceDiagnosticRenderer *otherScope=[[[DYWorkspaceDiagnosticRenderer alloc]init]autorelease];[otherScope setScopeEnabled:YES atTime:CMTimeMake(9,24) frameDuration:CMTimeMake(1,24) exclusiveEnd:NO];workspaceDrain();run.record(@"workspace-scope-cache-never-crosses-plugin-instances",!otherScope.scopeMetadata&&!otherScope.scopePreview);
[otherScope setScopeEnabled:NO];[scopeRenderer setScopeEnabled:NO];
// The spider reuses the same frame, including when the full scopes are closed.
+2 -2
查看文件
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.20.2</string>
<string>1.21.2</string>
<key>CFBundleVersion</key>
<string>113</string>
<string>119</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>PlugInKit</key>
+2 -2
查看文件
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.20.2</string>
<string>1.21.2</string>
<key>CFBundleVersion</key>
<string>113</string>
<string>119</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
+70 -2
查看文件
@@ -2,15 +2,83 @@
更新于 2026-11-08(Asia/Shanghai)。这是新对话的接手入口。历史设计和实现细节按需查阅专项交接,复现和交付证据以对应版本的报告为准。
## 1.21.2(119)局部马赛克与蒙版分析性能
2026-11-08。已核对正式 1.21.1(117)与大鱼远端基线。马赛克渲染只在色键使用颜色编码,钢笔路径在局部包围范围外跳过轮廓计算,反相与色阶仍照常应用。无人脸命中时跳过全帧马赛克通道。指定目标追踪沿用原 Vision 彩色输入,仅在有可对照的起始画面时需要整帧灰度;普通蒙版与图章保留灰度输入。
M4 的 4K 双钢笔马赛克中位数从 42.75 降到 13.84 ms,4K 目标追踪取图从 6.00 降到 3.54 ms。192 张输出及 24 张彩色追踪输入逐字节一致。Vision 的目标追踪自动选择与指定神经网络引擎在 285 帧实片三轮对照中轨迹一致,热态约 0.8 ms/帧。普通蒙版透视配准的主阶段只报告支持 CPU。[基准](verification/MosaicTracking1.21.2.json)
正式 **1.21.2(119)** 编译提交 `6a979f16a828e17284c8f04647c79ac65811d3dc`,APP 公证 `7344dd1a-62ba-4e82-8dc1-36cb220c4942` Accepted。唯一正式路径、票据、Gatekeeper、1010 项原生检查及 17 套模板通过。119 与性能基准使用的 118 Metal 库 SHA-256 一致。FCP 12.4 独立实片副本正向写入 27 键、双向写入 284 键,在 00:00:11:04 实看随动遮挡。118 曾在宿主返回无效时间时卡在首帧前的分析启动,已回滚。119 在调用宿主分析前拒绝无效时间并提示重新定位。已完成有效画面实片复测和无效时间原生回归。[安装](verification/Delivery1.21.2.json) · [宿主](verification/HostMosaicTracking1.21.2.json)
正式 PKG 公证 `add05c02-616e-471f-a53a-8aa7c230ef52` Accepted,20 项展开验包、票据与 Gatekeeper 通过。包 44509704 字节,SHA-256 `01ee76d2302d0d1fc54b1ff5a3397c386467324db5f391d0b5dfd48c1e93b9df`。本机通过独立正式 APP 验收。[验包](verification/Package1.21.2.json)
## 1.21.1(117)首次示波器与人脸肤色保护
正式安装在 `/Library/Plug-Ins/FxPlug/大鱼调色.app`,编译提交 `98d80970e83e30e4883a76d8f740f2fca5d05e7c`,APP 公证 `eeda9002-5e87-4a33-83d3-9163a14283ba` Accepted。票据、Gatekeeper、PluginKit 唯一路径及 1008 项正式安装原生检查通过。FCP 12.4 已从正式路径启动插件服务。17 套模板检查通过。[安装](verification/Delivery1.21.1.json)
控制面板取本效果实例的最终输出。普通位置按一帧区间匹配,确认在排他出点时允许重用片尾最后一次输出。FCP 实测 60p 素材放在 25p 项目,停在 00:00:11:09。首次打开与同帧重开均从缓存 11.36 秒取样,四种示波器各有 57,600 个有效样本,无需移动播放头或改参数。115 和 116 在该回调中均收到素材帧长,未通过片尾验收,未发布。[宿主核验](verification/HostScopes1.21.1.json)
Metal 将脸部多边形运算限制在实际轮廓的外接范围,无覆盖的像素跳过五官排除权重,按需读取设备端路径。M4 对照同一公开人像的 12 帧,1080p 中位从 308.08 降至 13.47 ms,4K 从 1176.07 降至 22.22 ms。六组末帧 SHA-256 一致。数据覆盖肤色保护渲染。正式自检覆盖多人、无脸、上下原点、显示选区及马赛克遮挡;跟踪与马赛克耗时另计。[性能](verification/FacePreview1.21.1.json)
114、115、116 替换备份及 APP 构建副本已清理。PKG 公证 `dbddc544-aa94-4279-8f92-37597c264313` Accepted。20 项验包及 192 条载荷权限检查通过。安装包 44509639 字节,SHA-256 `bdc63a1b1030ccad6960031cb9f2ec8297aa90f8d4acce2057eb5ba7750a289b`。本机通过正式 APP 验收。[验包](verification/Package1.21.1.json)
公测 Release **415** 的附件 **61** 已发布,草稿和发布后完整下载的大小及 SHA-256 均一致。发行标签 `v1.21.1-scope-face-20261108` 指向 `ad4e5e7a823bb451f45755d0ab331f08f6211239`。独立远端检出逐一核对编译节点 812 个和发行节点 817 个文件,Git 完整性通过。下载和恢复副本已清理。[发行](verification/Release1.21.1.json) · [恢复](verification/Recovery1.21.1.json)。既有项目文件的 Security 引用排序留在工作区。
**文章 15792 已于 2026-11-08 更新为 1.21.1(117)。** 同一篇文章已更换主 PKG、标题、摘要与 SEO,新增 FCP 12.4 片尾首次打开和同帧重开的示波器验收,以及 M4 下 1080p/4K 人脸肤色保护的前后对照。已重新展开正式包核对主 App 和 17 个效果入口。线上完整下载 44,509,639 字节,SHA-256 与正式 Release 一致,签名、票据和 Gatekeeper 通过。正常与新请求的前台标题、SEO、表格、原图及代码区块均核验。50 元、鱼粉会员免费、分类、封面、历史内容和 FCPX 同步配置保留。主 App 更新通道沿用原状态。[文章](https://dayu.media/15792/) · [发布内容](Packaging/article-1.21.1.json) · [线上核验](verification/Article1.21.1.json)
## 2026-11-08 跨会话渲染缓存可行性
用户反馈 FCP 退出重开后,磁盘仍有渲染文件但片段重新渲染。已查本机 FxPlug SDK、Apple 文档及大鱼调色入口。公开接口由宿主请求渲染,插件可在渲染时回读自有文件,没有将外部文件注册为 FCP 渲染文件的接口。项目的蒙版跟踪已通过 FxAnalysisAPI 在后台接收逐帧输入,可用同一入口验证预计算,分析回调的输入需与常规渲染输入实测对照。[跟踪](大鱼调色/Plugin/DYToolHostMethods.inc.h#L178) · [渲染](大鱼调色/Plugin/DYPlugIn.mm#L85) · [Apple 文档](https://developer.apple.com/documentation/professional-video-applications/analyzing-media)
先用一段 4K 人像比较冷启动后重算、回读人脸轮廓或局部蒙版及回读整帧的耗时。用实际输入内容和该阶段依赖校验命中,覆盖上游效果、代理切换及画质变化,缺失或不匹配时回退原有渲染。整帧额外核对色彩空间、像素格式、分辨率、完整调色状态和外部 LUT 内容。未复现宿主缓存失效,未实现或测试插件磁盘缓存。
## 1.21.0(114)流畅性优化
按首帧、连续渲染和检查器刷新优化。Metal 管线首次使用才创建,中性画面跳过通用调色与查找纹理,保留原来的半精度透明度规则;无蒙版 CST 将解除预乘并入原转换内核。最终画面取样合并进输出命令并复用小缓冲,仍保留暂停帧的示波器样本。检查器复用本轮的宿主读参和工具文档,只在切换色彩管理模式时移动输出控件。胶片颗粒未参与时省去宿主帧时序查询。
正式 1.21.0(114)已在唯一 FxPlug 路径安装,编译提交 `90e512aabe72fff30046b4bf18d6a35f91c0c113`。APP 公证 `505ed5a4-7b32-49a2-8eef-70c7757a98b4` Accepted,正式版 1050 项原生检查通过,包括 21 组独立 CST 参考。FCP 12.4 的独立验收副本从 00:00:00:00 播到 00:00:11:09,检查器和工作区混合滑杆均写入 0.50 后复位至 1.00,四种示波器回读 57,600 个有效 sRGB 样本。首次打开时请求时间与缓存帧不一致,下一次实际渲染后显示;同帧重开、宿主撤销、拖动延迟、掉帧、Motion 与完整导出未确认。[安装](verification/Delivery1.21.0.json) · [宿主](verification/HostFluidity1.21.0.json)
M4 两组交错顺序的渲染加隐藏取样基准,1080p 中性 HSL 从 2.10–2.33 降到 1.39–1.62 ms,4K 加基础曝光从 19.15–19.69 降到 14.91–15.03 ms。4K 默认整合版中位数跨运行从 17.47–23.04 到 15.13–19.29 ms,存在重叠。每组的六个末帧及对应示波器样本均与 113 逐字节一致。默认整合版计算管线从 16 套降到 3 套。全尺寸中间纹理按帧释放,小型示波器缓冲按设备复用。[基准](verification/Fluidity1.21.0.json)
PKG 公证 `29d5f921-6cd4-48a4-856a-2632f9a85e2b` Accepted。20 项验包、192 条载荷权限、签名及票据检查通过,44508770 字节,SHA-256 `ec1a57f23bf369d7a7841848d71d8ab78a7c229cbb5abe1c502e9964f87dbbcb`。本机通过独立正式 APP 验收,未执行包内安装脚本。[验包](verification/Package1.21.0.json)
公测 Release **414** 的安装包附件 **60** 已发布,草稿和发布后均完整下载并核对字节数及 SHA-256。发行标签 `v1.21.0-fluidity-20261108` 指向 `3a5ead0ce07eb2ed3009490af316b9edec186c62`。独立远端检出核对编译节点 805 个文件、发行节点 810 个文件及 Git 完整性。旧替换 APP、公证 ZIP、构建 APP、草稿下载与恢复副本已清理。站点文章和主 APP 更新通道未参与本轮交付。[发行](verification/Release1.21.0.json) · [恢复](verification/Recovery1.21.0.json)
入口为 `DYRenderer.mm`、`DYGrade.metal`、`DYScopeCapture.inc.h`、`DYPlugIn.mm` 与 `DYInspector.mm`。用户有新卡顿反馈时,先记录宿主、分辨率、发生阶段和启用的实际工具,再用正式安装路径复测。既有工程文件的 Security 引用排序差异留在工作区。
## 2026-11-08 默认参数渲染排查
核对正式安装 1.20.2(113)、编译提交 `046411ba8b2c2bf8549601b2e5a080fd9dccd31b`。整合版、HSL、一级调色和 CST 独立效果的已安装模板、APP 内置模板和源码逐字节一致。整合模板没有额外工具层、LUT 或变形网格,默认执行 Sony S-Log3 / S-Gamut3.Cine 到 Gamma 2.4 / Rec.709 的 CST,自动色调映射开启。独立 HSL 的工具文档移除了一级调色。
- **模块执行**:`bypassNeutralTools` 跳过默认曲线、HSL、颜色分级、三原色、色阶和色彩平衡。空 LUT、零混合黑白、中性蜘蛛盘、通道混合器、胶片和畸变也不会因眼睛开启而各自运行。`DYToolIsNeutral` 过滤默认的独立工具层。本次对照均未触发 Vision 人脸检测。[渲染入口](大鱼调色/Plugin/DYRenderer.mm#L66) · [工具调度](大鱼调色/Plugin/DYToolRender.inc.h#L59)
- **首帧准备**:首次创建设备资源会初始化 16 套计算管线,包括尚未使用的畸变、图章和胶片。融合渲染仍获取白平衡、HSL、分级三张查找纹理,每个新渲染器的中性状态也会创建 33³ 纹理。已确认准备工作存在,未单独计量各项耗时。[设备准备](大鱼调色/Plugin/DYRenderer.mm#L188) · [查找纹理](大鱼调色/Plugin/DYColorTables.mm#L229)
- **每帧剩余工作**:整帧无有效调色时仍分配中间纹理,解除预乘并运行融合着色器,没有整帧直通。输出回调在示波器关闭时也同步读取 320×180 画面以保留同帧缓存,供工作区或蜘蛛盘打开时立即取样。[融合渲染](大鱼调色/Plugin/DYRenderer.mm#L248) · [输出取样](大鱼调色/Plugin/DYScopeCapture.inc.h#L83)
Mac mini M4 无界面基准复用正式 113 的 Release 对象和安装资源,按安装模板的参数与归档构造状态,用逐帧变化的 RGBA16Float 合成渐变,每组跳过首 5 帧,取 12 帧中位数。渲染与隐藏示波器读回分别计时。
| 对照 | 1080p 渲染 | 4K 渲染 |
| --- | ---: | ---: |
| 整合模板默认 | 5.12 ms | 16.42 ms |
| 整合模板保留一级调色,其余眼睛关闭 | 4.62 ms | 16.30 ms |
| 整合模板只关闭一级调色 | 1.72 ms | 4.71 ms |
| 独立 HSL 默认 | 1.70 ms | 4.66 ms |
| 仅用现有 GPU 图像复制函数 | 0.73 ms | 2.09 ms |
保留一级调色的两组在末帧逐像素一致。只关一级、独立 HSL 和复制对照的末帧与输入一致。整合默认状态隐藏示波器另耗约 0.68 ms(1080p)和 0.65 ms(4K)。正式安装服务的 980 项基础自检通过,覆盖默认状态无 Vision、无多边形蒙版管线和关闭示波器时缓存最后一帧。以上是渲染器及读回耗时,未测宿主参数桥、解码、播放调度、掉帧或交互延迟,也未操作用户工程。
本轮仅记录排查,未修改运行代码、模板或安装。接手优化时先以中性独立 HSL 验证整帧直通,并单独计量首帧管线准备与隐藏示波器取样。复核 HDR、负值、透明度、坐标原点以及同帧示波器取样,保留默认 CST 的实际输出。既有工程文件的 Security 引用排序差异留在工作区。
## 1.20.2(113)蜘蛛盘示波器
用户实看 1.20.0 后指出轨迹盖过控制网、肤色线与控制面板方向不同。1.20.1 将两处统一到同一份最终输出的色彩转换、Cb/Cr 取样、比例和肤色线方向。蜘蛛盘显示坐标同步投影,底层保留 HSV 网格和预设,拖动与方向键反向映射回原坐标。参照用户配图改为暗中性中心、平滑色相外圈、受限的轨迹透明度、灰色节点与深色描边。1.20.2 按用户追加反馈把网格前景线的白色不透明度由 55% 提至 72%,保留深色底描边。
新 FCP 整合效果、独立模板和新插入的肤色工具默认关闭保护。FCP 模板显式写入关闭值,注册默认保留历史开启值,兼容省略该参数的旧片段。Motion 直接添加原生滤镜沿用注册默认。显式开启时保护程度默认 60,仅保护人脸默认开启。
1.20.0(111)与 1.20.1(112)均为本轮正式签名公证的验收候选。1.20.1 安装后通过 1002 项原生检查,在 FCP 实片同帧并排核实两个矢量示波器方向及肤色保护关闭。两版均未发布 Release。[111 实看](verification/HostSpiderScope1.20.0.json) · [112 实看](verification/HostSpiderScope1.20.1.json) · [112 安装](verification/Delivery1.20.1.json)。最终 **1.20.2(113)已公证安装并在 FCP 12.4 同帧实看**。1002 项原生检查通过,17 套模板静态校验通过。实际编译提交 `046411ba8b2c2bf8549601b2e5a080fd9dccd31b`,APP 公证 `e8c27c08-a78e-4be2-9adf-235e7bfad1f6` Accepted,固定插件路径 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。同一帧确认网格提亮后仍能看清色度轨迹,两处肤色线均朝左上,检查器肤色保护为关闭。[实片核验](verification/HostSpiderScope1.20.2.json) · [安装](verification/Delivery1.20.2.json)。
1.20.0(111)与 1.20.1(112)均为本轮正式签名公证的验收候选。1.20.1 安装后通过 1002 项原生检查,在 FCP 实片同帧并排核实两个矢量示波器方向及肤色保护关闭。两版均为本机验收候选。[111 实看](verification/HostSpiderScope1.20.0.json) · [112 实看](verification/HostSpiderScope1.20.1.json) · [112 安装](verification/Delivery1.20.1.json)。最终 **1.20.2(113)已公证安装并在 FCP 12.4 同帧实看**。1002 项原生检查通过,17 套模板静态校验通过。实际编译提交 `046411ba8b2c2bf8549601b2e5a080fd9dccd31b`,APP 公证 `e8c27c08-a78e-4be2-9adf-235e7bfad1f6` Accepted,固定插件路径 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。同一帧确认网格提亮后仍能看清色度轨迹,两处肤色线均朝左上,检查器肤色保护为关闭。[实片核验](verification/HostSpiderScope1.20.2.json) · [安装](verification/Delivery1.20.2.json)。
正式 PKG 公证 `1a6834df-840f-47da-9ee8-be6a0a808fee` Accepted,20 项展开验包、票据、Gatekeeper 与 192 条载荷权限通过。包大小 44505420 字节,SHA-256 `8edd792c6a9be629263baee68c4c3e7b67221ffd1e995bd8c9ab1f753eefd2b4`。已独立安装正式 APP,本机验收未再次运行 PKG 安装脚本。[验包](verification/Package1.20.2.json)。Git Release 附件上传及下载校验进行中。入口为 `大鱼调色/Plugin/DYSpiderScopeDrawing.h`、`DYScopeCapture.inc.h`、`DYViewerGraphics.inc.h` 和 `DYModel.mm`。既有工程文件的 Security 引用排序差异留在工作区。
正式 PKG 公证 `1a6834df-840f-47da-9ee8-be6a0a808fee` Accepted,20 项展开验包、票据、Gatekeeper 与 192 条载荷权限通过。包大小 44505420 字节,SHA-256 `8edd792c6a9be629263baee68c4c3e7b67221ffd1e995bd8c9ab1f753eefd2b4`。已独立安装正式 APP,本机验收未再次运行 PKG 安装脚本。[验包](verification/Package1.20.2.json)。Git Release **413** 的 PKG 附件 **59** 已发布,草稿浏览器及发布后均完整下载并核对大小和 SHA-256。标签 `v1.20.2-spider-scope-20261108` 指向 `bc9021271d5e4992a6a63011e4ff197812029ab3`。已独立从远端检出编译节点和发行标签,分别核对 798 与 802 个跟踪文件和 Git 完整性。[Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.20.2-spider-scope-20261108) · [发行核验](verification/Release1.20.2.json) · [恢复](verification/Recovery1.20.2.json)。
本轮两个未发布候选包、草稿下载副本、旧替换 APP、公证 ZIP 和恢复克隆已清理,保留正式包与用户原有历史发行包。[清理](verification/Cleanup1.20.2.json)。入口为 `大鱼调色/Plugin/DYSpiderScopeDrawing.h`、`DYScopeCapture.inc.h`、`DYViewerGraphics.inc.h` 和 `DYModel.mm`。既有工程文件的 Security 引用排序差异留在工作区。
## 1.19.1 交付基线(历史)