比较提交

...
作者 SHA1 备注 提交日期
mac a0178f994d Record signed notarized 1.19.0 package for release 2026-11-06 20:05:30 +08:00
mac b7ec47424e Record 109 formal Vision host acceptance and recovery evidence 2026-11-06 20:05:08 +08:00
mac 867bcfbad3 Fix remote workspace view lifetime after reproduced XPC crash; retain all-Vision tracking 2026-11-06 19:52:11 +08:00
mac 8af7013ad4 Replace every production tracking path with Apple Vision; remove OpenCV linkage 2026-11-06 19:40:07 +08:00
mac dbab2ab0cc Integrate mature object tracking and bounded gap recovery for mosaic masks 2026-11-06 19:28:22 +08:00
mac 7aece444b0 WIP: benchmark mature trackers and bounded occlusion recovery before host integration 2026-11-06 19:18:22 +08:00
mac 1f430a164a Record 1.18.1 delivery cleanup and final publication state 2026-11-06 18:22:54 +08:00
mac 2f38f5e34f Publish 1.18.1 release, article and update channel with full download verification 2026-11-06 18:21:52 +08:00
mac 5fe4b1933e Prepare notarized 1.18.1 package and release notes 2026-11-06 18:17:48 +08:00
mac a4a1f8b08b Verify installed 1.18.1 tracking and UI; record remaining drift 2026-11-06 18:17:21 +08:00
mac 1cc7f8edb2 Keep stable OpenCV flow with compact Metal capture and pyramid reuse 2026-11-06 18:01:57 +08:00
mac 48ac192d4b WIP: benchmark Metal mask flow and reduce inspector repeated work 2026-11-06 17:56:41 +08:00
mac ca4abaf2c3 Publish diagnostic 1.18.0 article and record tracking priorities 2026-11-06 17:47:48 +08:00
mac 38f15ec1fe chore: remove verified local package upload staging copy 2026-11-06 17:30:45 +08:00
mac 1575cb1191 docs: record diagnostics release, live update channel and recovery verification 2026-11-06 17:30:09 +08:00
mac a03a056bff release: package 1.18.0 build 105 with resident-app upgrade checks 2026-11-06 17:24:14 +08:00
mac edfbcd540b verify: accept 105 background diagnostics and cloud stack delivery 2026-11-06 17:22:49 +08:00
mac d018769558 fix: capture before symbolication and close resident app during upgrades 2026-11-06 17:07:18 +08:00
mac e26a7c68e4 Use FxPlug IOSurface object dimensions and verify deployed diagnostics contract 2026-11-06 16:50:38 +08:00
mac 2b2a98d665 Implement resident app and bounded continuous diagnostics for 1.18.0; offline checks pass 2026-11-06 16:49:15 +08:00
mac ecadafd8c3 Record cloud crash and stall evidence before diagnostics changes 2026-11-06 16:38:05 +08:00
mac ae0a64ec84 Finalize 1.17.1 handoff and recovery references after release 2026-11-06 16:21:50 +08:00
mac 31a4d0cd15 Complete 1.17.1 release download verification, recovery, cleanup and handoff 2026-11-06 16:21:02 +08:00
共修改 101 个文件,包含 3372 行新增和 251 行删除

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

+4 -2
查看文件
@@ -17,11 +17,13 @@ SOURCE_BACKUP=大鱼调色仓库 Backend/
## 客户端
主 APP 检查更新与插件注册并行,检查结束且注册成功后显示3秒退出倒计时。发现更新则保留窗口;下载可取消,校验 SHA-256、字节数、Installer/App签名团队、Gatekeeper、包内 Bundle ID、版本、安装位置及模板。保存并退出 FCP/Motion 后打开系统安装器,不强杀宿主。下一次启动可记录已完成升级。
主 APP 检查更新与插件注册并行,注册后保持运行,关闭窗口后仍在后台收集诊断;菜单栏可重新打开或明确退出。发现更新会显示提示;下载可取消,校验 SHA-256、字节数、Installer/App签名团队、Gatekeeper、包内 Bundle ID、版本、安装位置及模板。保存并退出 FCP/Motion 后打开系统安装器,不强杀宿主。下一次启动可记录已完成升级。
主 APP 与 XPC 共享随机安装标识及诊断开关。诊断默认开启,界面明确说明并可关闭;不上传素材、LUT、预设、用户路径、账号、硬件 UUID 或原始崩溃文件。后台私有队列最多256条/384KB,批次16条,网络超时并延迟重试,服务端按事件 UUID 去重。关闭后清除待发摘要并停止新请求;已经送达的数据按保留期清理。
采集进程启动、初始化、检查器创建/慢刷新、Metal 管线准备、首次渲染、渲染错误、超过6秒的疑似阻塞,以及本插件近7天系统崩溃报告的脱敏摘要。疑似阻塞不等于根因;整个进程被停止、网络不可用、主机强制断电时无法保证即时送达。不会拦截崩溃信号,也不采集整个 FCP 的报告。本轮保留调色与宿主回调逻辑,尚未修复偶发卡死。
1.18.0(104)起每分钟汇总进程内存/CPU/线程数和渲染、参数读取、跟踪帧耗时;慢于100ms的单次事件最多每阶段30秒一条。超过6秒的疑似阻塞附当前阶段,并限频调用系统 sample 采样本进程1秒(间隔至少120秒,每小时最多6次,8秒超时,失败明确标记);仅提取调用栈,临时原文随即删除。主运行循环使用公共模式脉冲,避免正常菜单/模态循环被主队列探针误报。
主 APP 每分钟扫描本产品 APP 和 XPC 近7天 IPS,补采终止后的待发送队列;不要求用户重启主 APP。崩溃摘要记录故障实际版本/build、终止类别、故障线程的镜像UUID与偏移;排除自检和 ASAN 记录。已送达报告本地去重,云端继续按事件UUID去重。疑似阻塞不等于根因;整个进程被停止、网络不可用、主机强制断电时无法保证即时送达。不会拦截崩溃信号,也不采集整个 FCP 的报告;整个进程完全无法调度时,内部采样无法运行,须依靠系统生成的后续报告。本轮保留调色与宿主回调逻辑,尚未修复偶发卡死。
## 验证与发布
+1 -1
查看文件
@@ -75,7 +75,7 @@ def main():
result=deploy_file(local,NAS/relative,allow_new=True)
manifest=dict(bundle_id='com.dayu.color',channel='beta',version=version,build=build,package_type='pkg',install_mode='pkg_installer',
size=package.stat().st_size,sha256=digest,download_url='https://dayu.media/'+str(relative),minimum_system_version='14.6',
notes='公测版:接入自动更新与可关闭的云端诊断,记录插件加载耗时及错误摘要。请保存并退出 FCP / Motion 后安装。')
notes='全部跟踪改用 Apple Vision;普通蒙版和图章使用局部配准,马赛克使用目标外观跟踪,短时丢失后尝试重新定位并补齐轨迹;超过确认范围自动停止,未确认尾部不写入。预览限频,减少界面刷新负担;需重新跟踪并播放复核遮挡范围。保留可关闭的后台自动诊断。安装前请保存工作并正常退出 FCP、Motion 和大鱼调色主程序。')
dest=NAS/UPLOAD/'beta.json';old=json.loads(dest.read_text()) if dest.exists() else None
if old:assert int(old['build'])<=build, '禁止更新通道倒退'
localManifest=LOCAL/UPLOAD/'beta.json';write_json(localManifest,manifest)
+3
查看文件
@@ -38,6 +38,9 @@ try {
$reply=Dayu_Color_Beta::ingest(request($body));
check($reply->status===200 && $reply->data['accepted'] && count($wpdb->rows)===1,'valid event accepted');
Dayu_Color_Beta::ingest(request($body));check(count($wpdb->rows)===1,'retry idempotency');
$newFields=array('source_build'=>'104','process_role'=>'plugin','termination_namespace'=>'DYLD','termination_code'=>1,'memory_mb'=>512,'cpu_percent'=>120,'thread_count'=>32,'resource_kind'=>'cube','pid'=>123,'width'=>3840,'height'=>2160,'sample_status'=>'captured','frames'=>'DYRenderer | image + 32 | UUID');
check(Dayu_Color_Beta::clean_fields($newFields)==$newFields,'new evidence fields survive server normalization');
foreach(array('render','plugin_state','tracking_frame','process_health','performance_summary','hang_sample') as $name){$b=$body;$b['events'][0]['event']=$name;$b['events'][0]['fields']=$newFields;check(Dayu_Color_Beta::ingest(request($b))->status===200,'new event accepted '.$name);}
foreach(array('version'=>array(),'build'=>array(),'event'=>'material_path','session_id'=>'bad','occurred_at'=>null) as $key=>$bad){$b=$body;$b['events'][0][$key]=$bad;check(Dayu_Color_Beta::ingest(request($b))->data['status']===400,'malformed '.$key);}
$b=$body;$b['events']=array_fill(0,33,$event);check(Dayu_Color_Beta::ingest(request($b))->data['status']===400,'batch limit');
$b=$body;$b['padding']=str_repeat('a',100000);check(Dayu_Color_Beta::ingest(request($b))->data['status']===413,'byte limit');
+3 -2
查看文件
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
"""Anonymous public-beta endpoint smoke test; no credentials or production settings."""
import datetime,json,time,urllib.request,urllib.error,uuid
import datetime,json,time,urllib.request,urllib.error,uuid,plistlib
from pathlib import Path
ROOT=Path(__file__).resolve().parent.parent
BASE='https://dayu.media/wp-json/dayu-color/v1/'
@@ -14,7 +14,8 @@ def main():
assert call('update?bundle_id=other&channel=beta')[0]==400
assert call('diagnostics')[0] in (401,403)
event_id=str(uuid.uuid4());installation=str(uuid.uuid4());session=str(uuid.uuid4())
event=dict(event_id=event_id,session_id=session,source='app',version='1.7.0',build=45,event='diagnostic_summary',occurred_at=time.time(),fields={'status':'deployment_smoke_test','count':1})
info=plistlib.loads((ROOT/'大鱼调色/Wrapper Application/Info.plist').read_bytes())
event=dict(event_id=event_id,session_id=session,source='app',version=info['CFBundleShortVersionString'],build=int(info['CFBundleVersion']),event='hang_sample',occurred_at=time.time(),fields={'status':'deployment_smoke_test','phase':'verification','sample_status':'contract_only','count':1})
payload=dict(bundle_id='com.dayu.color',installation_id=installation,events=[event])
for attempt in range(2):
status,reply=call('diagnostics',payload);assert status==200 and reply['accepted'] and reply['event_ids']==[event_id],(status,reply)
@@ -12,10 +12,10 @@ final class Dayu_Color_Beta {
const EVENTS = array('process_start','process_exit','plugin_init','inspector_create','inspector_refresh',
'device_prepare','gpu_pipeline','first_render','render_error','main_thread_stall',
'operation_stall','previous_session_pending','crash_summary','registration','host_confirmed',
'update_check','update_download','update_validation','update_installer','diagnostic_summary');
'render','plugin_state','tracking_frame','process_health','performance_summary','hang_sample','update_check','update_download','update_validation','update_installer','diagnostic_summary');
const FIELDS = array('phase','stage','pipeline','duration_ms','status','error_domain','error_code',
'exception','signal','frames','report_time','count','pending','model','os_version','fcp_version',
'cpu_cores','memory_gb','gpu','main_delay_ms','active_stages','source_version');
'cpu_cores','memory_gb','gpu','main_delay_ms','active_stages','source_version','source_build','process_role','termination_namespace','termination_code','pid','resource_kind','memory_mb','cpu_percent','thread_count','uptime_s','max_duration_ms','average_ms','width','height','layer_count','mask_count','sample_status');
public static function boot() {
add_action('rest_api_init', array(__CLASS__, 'routes'));
@@ -90,7 +90,7 @@ final class Dayu_Color_Beta {
$out = array();
foreach (self::FIELDS as $key) {
if (!array_key_exists($key,$input) || !is_scalar($input[$key])) continue;
if (in_array($key,array('duration_ms','main_delay_ms','memory_gb','cpu_cores','count','pending','error_code'),true)) {
if (in_array($key,array('duration_ms','main_delay_ms','memory_gb','cpu_cores','count','pending','error_code','pid','termination_code','memory_mb','cpu_percent','thread_count','uptime_s','max_duration_ms','average_ms','width','height','layer_count','mask_count'),true)) {
if (is_numeric($input[$key]) && is_finite((float)$input[$key])) $out[$key]=max(-1000000,min(86400000,(float)$input[$key]));
continue;
}
@@ -165,15 +165,17 @@ final class Dayu_Color_Beta {
echo '<h2>公测更新</h2><p>'.($manifest?'当前版本:'.esc_html($manifest['version']).'('.esc_html($manifest['build']).')':'尚未发布更新包').'</p>';
echo '<h2>诊断事件</h2><form method="get"><input type="hidden" name="page" value="dayu-color-beta">';
foreach (array('build'=>'构建号','event'=>'事件','installation'=>'完整报告标识') as $key=>$label) echo '<label>'.esc_html($label).' <input name="'.esc_attr($key).'" value="'.esc_attr($request->get_param($key)).'"></label> ';
echo '<button class="button">筛选</button></form><table class="widefat striped"><thead><tr><th>时间(UTC)</th><th>版本</th><th>报告标识</th><th>来源/事件</th><th>内容</th></tr></thead><tbody>';
echo '<button class="button">筛选</button></form><table class="widefat striped"><thead><tr><th>时间(UTC)</th><th>上传版本 / 故障版本</th><th>报告标识</th><th>来源/事件</th><th>内容</th></tr></thead><tbody>';
foreach ($result['events'] as $row) {
echo '<tr><td>'.esc_html($row['occurred_at']).'<br>送达 '.esc_html($row['received_at']).'</td><td>'.esc_html($row['client_version'].' ('.$row['client_build'].')').'</td><td><code>'.esc_html($row['installation_id']).'</code><br>会话 '.esc_html(substr($row['session_id'],0,8)).'</td><td>'.esc_html($row['source'].' / '.$row['event']).'</td><td><pre style="white-space:pre-wrap;max-width:760px">'.esc_html(wp_json_encode(json_decode($row['fields_json'],true),JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)).'</pre></td></tr>';
$fields=json_decode($row['fields_json'],true)?:array();
$crashed=$row['event']==='crash_summary' ? '<br>故障:'.esc_html(($fields['source_version']??'未知').' ('.($fields['source_build']??'未采集').')') : '';
echo '<tr><td>'.esc_html($row['occurred_at']).'<br>送达 '.esc_html($row['received_at']).'</td><td>'.esc_html($row['client_version'].' ('.$row['client_build'].')').$crashed.'</td><td><code>'.esc_html($row['installation_id']).'</code><br>会话 '.esc_html(substr($row['session_id'],0,8)).'</td><td>'.esc_html($row['source'].' / '.$row['event']).'</td><td><pre style="white-space:pre-wrap;max-width:760px">'.esc_html(wp_json_encode(json_decode($row['fields_json'],true),JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)).'</pre></td></tr>';
}
echo '</tbody></table><p>';
$base=array('page'=>'dayu-color-beta','build'=>$request->get_param('build'),'event'=>$request->get_param('event'),'installation'=>$request->get_param('installation'));
if ($result['page']>1) echo '<a class="button" href="'.esc_url(add_query_arg(array_merge($base,array('paged'=>$result['page']-1)),admin_url('tools.php'))).'">上一页</a> ';
if (count($result['events'])===50) echo '<a class="button" href="'.esc_url(add_query_arg(array_merge($base,array('paged'=>$result['page']+1)),admin_url('tools.php'))).'">下一页</a>';
echo '</p><p>仅包含产品版本、环境、阶段耗时、错误代码及本插件崩溃摘要,不接收素材、预设、硬件UUID或账户凭据。</p></div>';
echo '</p><p>仅包含产品版本、环境、阶段耗时、资源使用、错误代码及本产品崩溃/卡顿调用栈摘要,不接收素材、预设、硬件UUID或账户凭据。</p></div>';
}
}
Dayu_Color_Beta::boot();
+14
查看文件
@@ -0,0 +1,14 @@
大鱼调色 1.18.0(105)增强公测故障诊断,主 APP 注册成功及关闭窗口后继续在后台运行,菜单栏可重新打开、发送摘要或退出。
- 崩溃摘要记录故障发生时的实际版本、异常终止类别、镜像 UUID 和地址偏移,排除开发自检报告。
- 卡顿时限频采集本产品调用栈摘要,按分钟汇总渲染、状态构建、检视器刷新和跟踪耗时,以及内存、CPU 和线程数。正常菜单与模态事件循环继续响应探针。
- 沿用可关闭的公测诊断开关及 30 天保留,不上传素材、LUT、预设、账号或原始系统诊断文件。
- 安装器增加常驻主 APP 的正常退出检查,更新后启动正式版本。
云端历史报告中,外部 1.10.0 的通知回调崩溃对应 1.11.0 起已有的修复;历史卡顿与 dyld 报告信息不足,本版本用于补足现场证据,不宣称已解决全部用户闪退或卡顿。
实际编译提交:`d0187695581fa3a8fe5c3cfa8a1bc6337425f5f6`。APP 与 PKG 均使用 Developer ID 签名、Apple 公证及票据验证;系统要求 macOS 14.6+,Apple Silicon。安装前保存工作,按系统提示正常退出宿主和主 APP。
安装包与符号附件的 SHA-256、签名、公证和实际宿主验收范围见本标签下 verification/Package.json、verification/Symbols1.18.0.json 与 verification/Diagnostics1.18.0.json。
安装包:大鱼调色-1.18.0.pkg(46620783 字节),SHA-256:`4a52742a393ecaaa30f758d72c9e0ba68c606ed8e805316d48b9868068378a3f`。
+22
查看文件
@@ -0,0 +1,22 @@
{
"title": "大鱼调色 1.18.0 公测版|后台自动诊断与多目标马赛克",
"content": "<!-- wp:paragraph -->\n<p>大鱼调色是适用于 Final Cut Pro 和 Motion 的原生 FxPlug 4 调色插件。1.18.0(构建 105)公测版加入后台自动诊断,便于继续排查闪退与界面卡顿;同时保留调色、图章、蒙版跟踪和马赛克功能。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>本文主下载已更新为 1.18.0(构建 105)。该版本用于补充排查信息,目前尚未确认所有卡顿的根因,也不代表追踪速度已经改善。此前的安装完整性修复继续保留。</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.18.0 自动诊断与后台运行</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p><strong>主 App 关闭窗口后继续在后台运行。</strong> 注册完成后不再倒计时退出,可从菜单栏重新打开窗口、发送诊断摘要或主动退出。保持主 App 运行有助于持续发现本插件的崩溃报告。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>开启公测诊断后,自动收集并发送限量摘要。</strong> 内容包括本插件主 App/服务的崩溃信息、卡顿调用栈,以及界面刷新、跟踪和渲染耗时统计。离线时排队,恢复连接后重试;诊断可在主 App 中关闭,云端保留 30 天。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>诊断不上传素材、LUT、个人预设、账号或原始系统报告;不会自动上传 Final Cut Pro 本身的完整崩溃报告。如果宿主再次闪退,请记下发生时间,并提供主 App 显示的报告标识,便于对应排查。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>近期版本还加入独立调色效果、水平校正和多目标马赛克。</strong> 检视器恢复折叠与内部滚动;“全部人脸”可逐帧识别,也可将暂停画面中的人脸转为可选蒙版,再对指定目标执行跟踪。实际多人运动、遮挡和界面流畅度仍需继续验证。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.14.3 界面展示</h2>\n<!-- /wp:heading -->\n\n<!-- wp:image {\"id\":15861,\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full\"><img src=\"https://dayu.media/wp-content/uploads/2026/11/1793904608-fab8ae3ea572b84.png\" alt=\"大鱼调色 1.14.3 实际界面,画布仿制图章、检视器、蜘蛛盘校色仪及示波器\" class=\"wp-image-15861\" width=\"2046\" height=\"1570\" /><figcaption class=\"wp-element-caption\">大鱼调色 1.14.3 实际界面</figcaption></figure>\n<!-- /wp:image -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.14.3 跟踪更新</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p><strong>仿制图章跟踪更稳。</strong> 取样区和覆盖区分别跟随画面移动与缩放。新版会平滑两边的轨迹,并在像素之间连续取样,减少画面跳动和边缘闪烁。已有图章可选中后重新执行一次“双向跟踪”。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>图章和蒙版都能查看跟踪进度。</strong> 开始跟踪后,控制面板右侧显示方向、已完成帧数和百分比。画面与轮廓同步更新,图章用青色标出取样区、黄色标出覆盖区。自动跟踪时播放头留在起始位置,跟踪结束后可以查看最后一帧。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>在画布右下角选择仿制图章,先点选取样中心,再拖出覆盖区。选中图章后可拖动青色十字更换取样位置。要跟踪已有图章或蒙版,可在控制面板左侧选中它,再选择正向、反向或双向跟踪。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>本机在 Final Cut Pro 12.4 的 4K 实拍副本上验证,仿制图章和矩形蒙版各完成了 190 帧双向跟踪。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">在时间线里完成调色</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p><strong>色彩管理与基础调整</strong>:支持 CST 输入、工作空间和输出转换,并提供曝光、白平衡、曲线、HSL、色轮及蜘蛛盘等调节工具。首次使用时,请在一级调色中选择与素材相符的输入曲线和色域。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>LUT 与风格管理</strong>:通过缩略图浏览、收藏和预览管理常用 LUT,支持自选 LUT 文件与文件夹。完整预设用于保存组合调节;适合静态颜色变换的处理可导出 Cube LUT,颗粒、晕光、蒙版等时间或空间效Line truncated
"excerpt": "大鱼调色 1.18.0(105)加入后台自动诊断,主 App 关闭窗口后继续运行。开启诊断后自动发送本插件的崩溃、卡顿和耗时摘要;保留独立调色效果与多目标马赛克。官方安装包无需激活。",
"seo": {
"title": {
"enabled": true,
"value": "大鱼调色 1.18.0 公测版|后台自动诊断与多目标马赛克"
},
"description": {
"enabled": true,
"value": "大鱼调色 1.18.0 是适用于 Final Cut Pro 和 Motion 的原生调色插件。主 App 可后台运行,开启诊断后自动发送本插件的崩溃、卡顿和性能摘要,便于继续排查问题。包含 16 个独立调色效果与多目标马赛克。官方 PKG 已签名公证,无需激活。"
},
"keywords": {
"enabled": true,
"value": "大鱼调色,Final Cut Pro,Motion,FxPlug4,调色插件,仿制图章,蒙版跟踪,逐帧预览"
}
},
"resource": {
"cao_original_filename": "大鱼调色-1.18.0.pkg"
}
}
+22
查看文件
@@ -0,0 +1,22 @@
{
"title": "大鱼调色 1.18.1 公测版|跟踪提速与后台自动诊断",
"content": "<!-- wp:paragraph -->\n<p>大鱼调色是适用于 Final Cut Pro 和 Motion 的原生 FxPlug 4 调色插件。1.18.1(构建 106)公测版优化蒙版与马赛克跟踪计算,减少参数面板重复刷新;保留后台自动诊断,便于继续排查闪退与界面卡顿。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>本文主下载已更新为 1.18.1(构建 106)。本版优化跟踪速度和界面刷新;转身、遮挡后的目标偏移仍需检查,尚未确认所有卡顿的根因。此前的安装完整性修复继续保留。</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.18.1 跟踪提速与界面刷新</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p>跟踪使用 Metal 生成紧凑灰度数据,减少 GPU 到 CPU 的回读;特征检测集中在目标范围,并复用相邻帧的光流计算数据。参数面板减少重复读取与图层列表刷新,让操作少做重复工作。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>同一段 4K 实拍素材的 285 帧测试中,纯追踪计算由约 8.78 秒降至 1.31 秒,轨迹与旧版逐帧一致。该测试不含宿主供图、解码、预览和渲染,不代表 FCP 整体处理速度提升相同比例。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>本机正式版已完成 FCP 285 帧追踪和模块切换、参数修改还原测试。人物转身或遮挡后仍可能偏移,请检查结果并按需分段修正;本版不宣称提高追踪精度,也不宣称解决全部界面卡顿。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.18.0 自动诊断与后台运行</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p><strong>主 App 关闭窗口后继续在后台运行。</strong> 注册完成后不再倒计时退出,可从菜单栏重新打开窗口、发送诊断摘要或主动退出。保持主 App 运行有助于持续发现本插件的崩溃报告。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>开启公测诊断后,自动收集并发送限量摘要。</strong> 内容包括本插件主 App/服务的崩溃信息、卡顿调用栈,以及界面刷新、跟踪和渲染耗时统计。离线时排队,恢复连接后重试;诊断可在主 App 中关闭,云端保留 30 天。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>诊断不上传素材、LUT、个人预设、账号或原始系统报告;不会自动上传 Final Cut Pro 本身的完整崩溃报告。如果宿主再次闪退,请记下发生时间,并提供主 App 显示的报告标识,便于对应排查。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>近期版本还加入独立调色效果、水平校正和多目标马赛克。</strong> 检视器恢复折叠与内部滚动;“全部人脸”可逐帧识别,也可将暂停画面中的人脸转为可选蒙版,再对指定目标执行跟踪。实际多人运动、遮挡和界面流畅度仍需继续验证。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.14.3 界面展示</h2>\n<!-- /wp:heading -->\n\n<!-- wp:image {\"id\":15861,\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full\"><img src=\"https://dayu.media/wp-content/uploads/2026/11/1793904608-fab8ae3ea572b84.png\" alt=\"大鱼调色 1.14.3 实际界面,画布仿制图章、检视器、蜘蛛盘校色仪及示波器\" class=\"wp-image-15861\" width=\"2046\" height=\"1570\" /><figcaption class=\"wp-element-caption\">大鱼调色 1.14.3 实际界面</figcaption></figure>\n<!-- /wp:image -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.14.3 跟踪更新</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p><strong>仿制图章跟踪更稳。</strong> 取样区和覆盖区分别跟随画面移动与缩放。新版会平滑两边的轨迹,并在像素之间连续取样,减少画面跳动和边缘闪烁。已有图章可选中后重新执行一次“双向跟踪”。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>图章和蒙版都能查看跟踪进度。</strong> 开始跟踪后,控制面板右侧显示方向、已完成帧数和百分比。画面与轮廓同步更新,图章用青色标出取样区、黄色标出覆盖区。自动跟踪时播放头留在起始位置,跟踪结束后可以查看最后一帧。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>在画布右下角选择仿制图章,先点选取样中心,再拖出覆盖区。选中图章后可拖动青色十字更换取样位置。要跟踪已有图章或蒙Line truncated
"excerpt": "大鱼调色 1.18.1(106)优化蒙版与马赛克跟踪,减少参数面板重复刷新。保留可关闭的后台自动诊断与关窗常驻,支持 16 个独立调色效果。转身、遮挡后仍需检查追踪结果。",
"seo": {
"title": {
"enabled": true,
"value": "大鱼调色 1.18.1 公测版|跟踪提速与后台自动诊断"
},
"description": {
"enabled": true,
"value": "大鱼调色 1.18.1 是适用于 Final Cut Pro 和 Motion 的原生调色插件。优化蒙版与马赛克跟踪计算,减少参数面板重复刷新,保留可关闭的后台自动诊断。包含 16 个独立调色效果,官方 PKG 已签名公证,无需激活。"
},
"keywords": {
"enabled": true,
"value": "大鱼调色,Final Cut Pro,Motion,FxPlug4,调色插件,仿制图章,蒙版跟踪,逐帧预览"
}
},
"resource": {
"cao_original_filename": "大鱼调色-1.18.1.pkg"
}
}
+22
查看文件
@@ -0,0 +1,22 @@
{
"title": "大鱼调色 1.19.0 公测版|全 Apple Vision 跟踪与后台自动诊断",
"content": "<!-- wp:paragraph -->\n<p>大鱼调色是适用于 Final Cut Pro 和 Motion 的原生 FxPlug 4 调色插件。1.19.0(构建 109)公测版将马赛克、普通蒙版和图章的跟踪全部切换到 Apple Vision,加入短时预测与遮挡后重新确认,继续减少界面刷新负担,并保留后台自动诊断。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>本文主下载已更新为 1.19.0(构建 109)。勾选用于局部马赛克的矩形、椭圆或钢笔蒙版后,重新运行跟踪即可使用新方案。仍需播放复核遮盖范围;此前的后台诊断和安装完整性修复继续保留。</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.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>本版同时修复控制面板延后布局访问已释放视图时的插件服务闪退。正式安装后通过 979 项回归检查,Final Cut Pro 实片完成 285 帧跟踪,并核对转身前后实际马赛克遮挡。不同素材仍需自行播放检查。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>跟踪预览最多每秒刷新 15 次,只显示最新画面,减少面板刷新负担。普通调色蒙版和图章统一改用 Apple Vision 局部配准,保留位置、缩放和旋转;图章取样区和覆盖区分别跟踪。APP 已移除 OpenCV 跟踪依赖。新方案已用同一段转身素材与 CSRT、VitTrack 做本机比较,并覆盖人工短遮挡、长遮挡停止、突切停止和反向跟踪;单段测试不能保证所有素材都不偏移,长时间离开画面或相似人物交叉仍需分段修正。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.18.1 跟踪提速与界面刷新</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p>跟踪使用 Metal 生成紧凑灰度数据,减少 GPU 到 CPU 的回读;特征检测集中在目标范围,并复用相邻帧的光流计算数据。参数面板减少重复读取与图层列表刷新,让操作少做重复工作。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>同一段 4K 实拍素材的 285 帧测试中,纯追踪计算由约 8.78 秒降至 1.31 秒,轨迹与旧版逐帧一致。该测试不含宿主供图、解码、预览和渲染,不代表 FCP 整体处理速度提升相同比例。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>1.18.1 当时完成了 FCP 285 帧追踪和模块切换、参数修改还原测试,但旧光流方案仍有转身偏移。上述速度数据是该历史版本的独立计算测试;1.19.0 的马赛克矩形/椭圆已改用目标外观跟踪。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">1.18.0 自动诊断与后台运行</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph -->\n<p><strong>主 App 关闭窗口后继续在后台运行。</strong> 注册完成后不再倒计时退出,可从菜单栏重新打开窗口、发送诊断摘要或主动退出。保持主 App 运行有助于持续发现本插件的崩溃报告。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>开启公测诊断后,自动收集并发送限量摘要。</strong> 内容包括本插件主 App/服务的崩溃信息、卡顿调用栈,以及界面刷新、跟踪和渲染耗时统计。离线时排队,恢复连接后重试;诊断可在主 App 中关闭,云端保留 30 天。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>诊断不上传素材、LUT、个人预设、账号或原始系统报告;不会自动上传 Final Cut Pro 本身的完整崩溃报告。如果宿主再次闪退,请记下发生时间,并提供主 App 显示的报告标识,便于对应排查。</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong>近期版本还加入独立调色效果、水平校正和多目标马赛克。Line truncated
"excerpt": "大鱼调色 1.19.0(109)将马赛克、普通蒙版和图章跟踪全部切换到 Apple Vision,支持短时预测与重新确认,修复面板生命周期闪退,保留可关闭的后台自动诊断。",
"seo": {
"title": {
"enabled": true,
"value": "大鱼调色 1.19.0 公测版|全 Apple Vision 跟踪与后台自动诊断"
},
"description": {
"enabled": true,
"value": "大鱼调色 1.19.0 将马赛克、普通蒙版与图章跟踪全部切换至 Apple Vision,支持短时预测与遮挡后重新确认,保留后台自动诊断和 16 个独立效果。官方 PKG 已签名公证,无需激活。"
},
"keywords": {
"enabled": true,
"value": "大鱼调色,Final Cut Pro,Motion,FxPlug4,调色插件,仿制图章,蒙版跟踪,逐帧预览"
}
},
"resource": {
"cao_original_filename": "大鱼调色-1.19.0.pkg"
}
}
+39 -3
查看文件
@@ -11,6 +11,7 @@ import shutil
import stat
import subprocess
import tempfile
import xml.etree.ElementTree as ET
import sys
ROOT = Path(__file__).resolve().parent.parent
@@ -57,6 +58,37 @@ def check_package_bundle_access(package):
return len(entries)
def prepare_resident_entry(skill, destination):
"""Reuse Forge core; add our resident wrapper to its normal-quit checks."""
runner = skill / "package_fxplug.py"
entry = skill / "PackageFxPlug.swift"
source = entry.read_text()
anchor = " var hosts = ApplicationToClose.presets\n"
assert source.count(anchor) == 1, "PKG 工坊入口变化,须重新核对常驻 APP 退出规则"
replacement = anchor + """ for item in items where item.kind == .fxPlug {
hosts.append(try ApplicationToClose.read(URL(fileURLWithPath: item.sourcePath)))
}
"""
destination.mkdir()
shutil.copy2(runner, destination / runner.name)
(destination / entry.name).write_text(source.replace(anchor, replacement))
return dict(upstreamEntrySHA256=hashlib.sha256(entry.read_bytes()).hexdigest(),
adaptedEntrySHA256=hashlib.sha256((destination / entry.name).read_bytes()).hexdigest(),
requiredApplication="com.dayu.color")
def check_resident_close(package):
with tempfile.TemporaryDirectory(dir=CACHE) as scratch:
expanded = Path(scratch) / "expanded"
run("pkgutil", "--expand", str(package), str(expanded))
distribution = ET.parse(expanded / "Distribution")
identifiers = [x.attrib.get("id") for x in distribution.findall(".//must-close/app")]
assert "com.dayu.color" in identifiers, "安装器必须正常退出常驻主 APP"
preinstalls = list(expanded.glob("*.pkg/Scripts/preinstall"))
assert preinstalls and all("'com.dayu.color'" in p.read_text() for p in preinstalls)
return dict(identifiers=identifiers, preinstallGuardCount=len(preinstalls), normalQuit=True)
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--pkg-forge-repo", type=Path,
@@ -112,11 +144,13 @@ def main():
appearance=dict(title="大鱼调色", subtitle="适用于 Final Cut Pro 与 Motion 的原生调色效果",
badgeImage=str(ROOT / "design/dayu-color-app-icon-v1.png"), authorContact="https://dayu.media"),
pages=dict(welcome="安装大鱼调色 " + version + ",包含原生 FxPlug 调色插件和 Final Cut Pro 效果入口。",
readme="系统要求:macOS 14.6 或更高版本。本发行构建适用于 Apple Silicon Mac。\n\n安装内容:\n/Library/Plug-Ins/FxPlug/大鱼调色.app\n登录用户“影片/Motion Templates/Effects/大鱼调色”中的效果模板与预览图。\n\n重新打开 Final Cut Pro 后,在“效果 → 大鱼调色”中应用;Motion 中可选择原生滤镜。\n本安装包不包含用户自选 LUT、预设或媒体文件。\n\n公测诊断默认开启,可在主 APP 关闭。仅发送版本、系统环境、加载耗时与本插件错误摘要到 dayu.media;不发送素材、预设或账号,保留30天。主 APP 启动时检查更新,新版由用户确认安装。",
license="", conclusion="大鱼调色已安装。主 APP 自动注册插件,成功后显示3秒倒计时退出。可点击“打开 FCP 检查”保留窗口,并在宿主中实际检查效果。"))
readme="系统要求:macOS 14.6 或更高版本。本发行构建适用于 Apple Silicon Mac。\n\n安装内容:\n/Library/Plug-Ins/FxPlug/大鱼调色.app\n登录用户“影片/Motion Templates/Effects/大鱼调色”中的效果模板与预览图。\n\n重新打开 Final Cut Pro 后,在“效果 → 大鱼调色”中应用;Motion 中可选择原生滤镜。\n本安装包不包含用户自选 LUT、预设或媒体文件。\n\n公测诊断默认开启,可在主 APP 关闭。仅发送版本、系统环境、阶段耗时、资源使用与本产品崩溃/卡顿调用栈摘要到 dayu.media;不发送素材、预设或账号,保留30天。主 APP 启动时检查更新,新版由用户确认安装。",
license="", conclusion="大鱼调色已安装。主 APP 自动注册插件,成功后保持运行。关闭窗口仍在后台收集已开启的诊断;菜单栏可重新打开或退出。请重开宿主并实际检查效果。"))
manifest_path = CACHE / "dayu-color-package-manifest.json"
manifest_path.write_text(json.dumps(manifest, ensure_ascii=False, indent=2) + "\n")
command = ["/usr/bin/python3", str(skill / "package_fxplug.py"), "--repo", str(forge), "--manifest", str(manifest_path)]
adapter = stage / "forge-entry"
adapter_record = prepare_resident_entry(skill, adapter)
command = ["/usr/bin/python3", str(adapter / "package_fxplug.py"), "--repo", str(forge), "--manifest", str(manifest_path)]
subprocess.run(command + ["--check"], check=True)
if args.prepare_only:
print("清单:" + str(manifest_path))
@@ -127,6 +161,7 @@ def main():
subprocess.run(command, stdout=log, stderr=subprocess.STDOUT, check=True)
package = args.output_dir / ("大鱼调色-" + version + ".pkg")
verified_payload_entries = check_package_bundle_access(package)
resident_close = check_resident_close(package)
report_path = ROOT / "verification/Package.json"
subprocess.run(["/usr/bin/python3", str(skill / "verify_fxplug_package.py"), "--manifest", str(manifest_path),
"--package", str(package), "--report", str(report_path)], check=True)
@@ -138,6 +173,7 @@ def main():
report = json.loads(report_path.read_text())
report.update(notarization=job, appCompiledSource=delivery["sourceCommit"], appBuild=info["CFBundleVersion"],
packageBuilderRemote="https://dayu.media/git/dayu/pkg-forge.git",
residentAppClosing=resident_close, packageEntryAdaptation=adapter_record,
packageBuilderCommit=run("git", "rev-parse", "HEAD", cwd=forge), templateSHA256=hashes,
payloadBundleAccess=dict(entries=verified_payload_entries, scope="Read/traverse modes for installer-owned app entries, from the package BOM"),
installedAppHostAcceptance=delivery.get("hostVerification", "verification/HostLUTLoading.json"),
+10
查看文件
@@ -0,0 +1,10 @@
优化蒙版与马赛克跟踪的数据传输和计算复用,并减少参数面板的重复刷新。
- Metal 输出紧凑灰度数据,4K 回读量减少 75%;特征检测限定在目标范围,OpenCV 光流复用金字塔。
- 同一 4K 实拍 285 帧的纯追踪计算由 8.78 秒降至 1.31 秒,轨迹与旧版逐帧一致。此数字不包括宿主供图、解码、预览和渲染。
- 参数读取按单次操作复用;只在显示内容变化时重建图层列表。
- 保留 1.18.0 的后台自动诊断和关窗常驻行为,可在主 App 关闭诊断。
已完成签名、公证、票据、964 项正式安装原生检查与 FCP 两轮 285 帧追踪验收。人脸转身/遮挡后的偏移仍需检查;本版不宣称提升追踪精度。旧 Metal 光流实验因整段测试丢轨而未启用。
版本 1.18.1,构建 106;实际编译源码 `1cc7f8edb2acb3cfc62bd72447c2956ad7a01601`。安装前请保存并正常退出 Final Cut Pro、Motion 和大鱼调色主 App。
+11
查看文件
@@ -0,0 +1,11 @@
大鱼调色 1.19.0(109)公测版
用于局部马赛克的矩形、椭圆和钢笔蒙版改用成熟的目标外观跟踪。转身时保留蒙版宽高比;短时丢失时冻结可信外观、最多预测约 0.8 秒,重新连续确认目标后用前后端点补齐,末尾未确认预测不写入轨迹。需重新运行跟踪并播放复核。
预览最多刷新 15 次/秒,只显示最新帧;保留上一版的轻量参数与图层刷新。普通调色蒙版和图章统一改用 Apple Vision 局部配准,保留位置、缩放和旋转;图章取样区和覆盖区分别跟踪。APP 已移除 OpenCV 跟踪依赖。主 APP 关闭窗口后继续后台诊断,可主动退出或关闭诊断。
修复宿主释放面板父视图后,延后布局访问旧指针导致的插件服务闪退。正式安装后 979 项检查通过,FCP 实片完成 285 帧跟踪并核对转身前后实际马赛克。
同一段转身素材已比较 CSRT、VitTrack 和本次方案;人工短遮挡、长遮挡停止、突切停止、反向跟踪均有独立回归记录。单段测试不能保证长期遮挡、相似人物交叉或所有素材均不偏移。
安装前请保存工作,正常退出 Final Cut Pro、Motion 和大鱼调色。固定安装位置:/Library/Plug-Ins/FxPlug/大鱼调色.app。使用最终 Developer ID 签名、公证并粘附票据的 PKG;具体源码、验包和宿主验收见本版本 verification 记录。附匹配 dSYM 供崩溃定位。
+1 -1
查看文件
@@ -94,7 +94,7 @@ PQ/HLG 输出或跟随 Rec.2020 宿主暂只接受一级与印片;存在活跃
1.7.1 兼容颜色数据行夹带文字的 Cube:保留数值前缀、未读取通道补 0、保持原行位置。用户原文件 65³ 全表与本机 FCP 自定 LUT 读取规则对照通过;正式路径407项原生检查、FCP导入/缩略图/应用/冷重开通过,原始字节保留。见[兼容依据](research/LUTNotes1.7.1.md)、[宿主验证](verification/HostLUTNotes1.7.1.json)和[1.7.1安装包 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.1-lut-notes-20261102)。网站公测更新清单仍为原1.7.0,本轮未改动后端。
主 APP 保留深色介绍、置顶发布地址、自动注册和3秒退出倒计时;加入启动自动检查公测更新和可关闭的云端诊断。更新使用完整 PKG,由用户确认下载并通过完整性、签名与产品校验后打开系统安装器;安装前要求保存并退出 FCP/Motion。诊断记录版本、环境、启动/界面/管线/首次渲染耗时及错误摘要,后台限量重试、云端去重并保留30天,不发送素材、LUT、预设、账号或硬件 UUID。暂未加入登录、授权及业务加密模块。
主 APP 保留深色介绍、置顶发布地址和自动注册;1.18.0 起保持后台运行,关闭窗口不退出,菜单栏可重新打开或退出;加入启动自动检查公测更新和可关闭的云端诊断。更新使用完整 PKG,由用户确认下载并通过完整性、签名与产品校验后打开系统安装器;安装前要求保存并退出 FCP/Motion。诊断记录版本、环境、启动/界面/管线/首次渲染耗时及错误摘要,后台限量重试、云端去重并保留30天,不发送素材、LUT、预设、账号或硬件 UUID。暂未加入登录、授权及业务加密模块。
[1.7.0站点公测安装包](https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg)、[1.7.0 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.0-beta-20261102)、[日志管理页](https://dayu.media/wp-admin/tools.php?page=dayu-color-beta)(管理员)。反馈可附主 APP 的报告标识与发生时间。详见[公测前后端与隐私/恢复说明](Backend/README.md)、[1.7.0发行说明](Packaging/Release-1.7.0.md)和[正式宿主/日志验证](verification/BetaClientQA.json)。本轮保留既有调色与宿主回调逻辑,收集偶发卡死证据,尚未宣称解决该问题。
+42 -2
查看文件
@@ -1,12 +1,52 @@
# 2026-11-06 全 Apple 跟踪 1.19.0(109)
远程 `https://dayu.media/git/dayu/dayu-color.git`,main。实际编译 `867bcfbad3f566ced2170925e8eadd9414cc3b75`,独立远端检出 766 个文件逐字节一致,Git 完整性通过,无 LFS/子模块。Xcode 27.1、FxPlug SDK 4.3.5、Apple Silicon、macOS 14.6+、Release;正式构建使用系统 Vision,不再编译或链接 OpenCV,历史源码包仅用于研究复测。证书私钥、公证 profile 和 Git 凭据需独立恢复。
固定安装 `/Library/Plug-Ins/FxPlug/大鱼调色.app`,主 ID `com.dayu.color`、服务 `com.dayu.color.XPC`、团队 B3W25FX5H5。`tools/deliver.py` 负责正式构建/公证/安装,宿主验收后输入 complete;`Packaging/build_pkg.py` 负责正式 PKG。APP 公证 `b83655db-23a9-4312-91e4-bfd697143e44` Accepted,979 项正式安装回归和 FCP 实片检查通过。发行包与标签状态稍后补记。
[恢复核验](verification/Recovery1.19.0.json) · [符号 UUID](verification/Symbols1.19.0.json) · [宿主范围](verification/HostVisionTracking1.19.0.json) · [交接](开发交接.md)。以下保留历史。
---
# 2026-11-06 跟踪与界面优化 1.18.1(106)
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。实际编译提交 `1cc7f8edb2acb3cfc62bd72447c2956ad7a01601`,发行标签 `v1.18.1-tracking-ui-20261106` 指向 `5fe4b1933e015a906fab36b65dcbc45a0d6bee49`。独立远端检出核对编译节点 739 个文件、标签 742 个文件,逐字节与 Git 完整性通过,无 LFS 或子模块;未重复第三方冷构建。[核验](verification/Recovery1.18.1.json)
新机器恢复 Git 登录后克隆,再 `git switch --detach <完整提交>`。继续使用 Xcode 27.1、FxPlug SDK 4.3.5、锁定的 OpenCV 4.5.1、Apple Silicon、macOS 14.6+、Release;`tools/deliver.py` 完成正式构建签名、公证、安装与原生检查,真实宿主验收后输入 complete。主 ID `com.dayu.color`,服务 `com.dayu.color.XPC`,团队 B3W25FX5H5,唯一正式路径 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。证书私钥、公证 profile 和 Git 凭据需独立恢复。
APP 公证 `2c4e6cba-8178-4a50-9198-83e66be37add`、PKG 公证 `5b0f2573-e603-49a5-91b6-fa0582c8c782` 均 Accepted。964 项安装后原生检查、20 项验包、198 条权限检查和 FCP 两轮 285 帧追踪通过。转身后的目标漂移仍存在;速度测试与旧算法轨迹一致,不保证精度改善。
Release **402** 保存 PKG 附件 **47**(46,654,687 字节,SHA-256 `e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2`)与 dSYM 附件 **48**(3,595,083 字节,SHA-256 `98959c848e4fec298b83ce69c703a8b571811e23a16d70a1b420d94bceb415f5`)。两者草稿及正式下载均完整核验。符号化前核对 UUID,见 [符号记录](verification/Symbols1.18.1.json);[发行页](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.18.1-tracking-ui-20261106)。
文章 15792 和主 APP beta 通道均为 1.18.1。NAS beta 清单旁路备份 `beta-202611061819.jsonbak`;本轮没有修改后端 PHP。[站点](verification/Article1.18.1.json) · [通道](verification/BetaPublication1.18.1.json) · [交接](开发交接.md)。以下为历史记录。
---
# 2026-11-06 后台诊断 1.18.0(105)
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。实际编译提交 **`d0187695581fa3a8fe5c3cfa8a1bc6337425f5f6`**;发行标签 **`v1.18.0-diagnostics-20261106`** 指向 **`a03a056bff17daadce77128f767a08e98dc830dd`**。独立远端检出核对编译节点 724 个和发行标签 728 个文件,Git 完整性通过,无 LFS 指针或子模块;原工作区仅有前序 project.pbxproj Security 引用排序未提交。[恢复核验](verification/Recovery1.18.0.json)
新机器先恢复 Git 登录,再克隆并 `git switch --detach <所需完整提交>`。使用 Xcode 27.1、FxPlug SDK 4.3.5、Apple Silicon、macOS 14.6+、Release,依赖源包/锁及 `tools/build_tracking_opencv.py` 沿用。`tools/deliver.py` 完成签名、公证、正式路径安装和原生检查;真实宿主验收后输入 complete。主 ID `com.dayu.color`,服务 `com.dayu.color.XPC`,团队 B3W25FX5H5,唯一正式位置 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。证书私钥、公证 profile 和 Git 凭据需独立恢复,仓库不含秘密。
APP 公证 `5a98cab1-23af-4034-abc9-0c9e7b1dc77d`、PKG 公证 `8c4fa3f6-4866-429a-8750-8567f7db4766` 均 Accepted。使用 `Packaging/build_pkg.py` 复用 PKG 工坊真实核心,项目入口增加常驻主 APP 正常退出规则。20 项验包、198 条载荷权限检查、961 项原生检查、75 项诊断检查以及真实云端采样送达验证通过;本轮没有重复运行 PKG 系统安装脚本。
Release **401** 的安装包附件 **45** 与符号附件 **46**,均先验证草稿下载再发布并再次完整下载校验。安装包 **46,620,783 字节**,SHA-256 **`4a52742a393ecaaa30f758d72c9e0ba68c606ed8e805316d48b9868068378a3f`**;符号 ZIP **3,562,272 字节**,SHA-256 **`a5bf3a6cc836c5da0471d9a70d2eb9e81a5166c63bbfae993a910ba859936c9c`**。恢复符号后先核对 UUID,再用 atos 或符号化工具处理云端 imageOffset;不以另一构建的同名 dSYM 代替。[Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.18.0-diagnostics-20261106) · [符号 UUID](verification/Symbols1.18.0.json) · [发布核验](verification/Release1.18.0.json)
后端源在 NAS SMB:`/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media`,本地专项 `/Users/mac/Downloads/dayumedia/dayu-color-beta`。后端 MU 文件和 beta 清单的旁路备份与实际路径见 [后端部署](verification/BetaBackendDeployment.json)、[更新通道](verification/BetaPublication1.18.0.json)。站点文章本轮未改。当前源码和发行附件可从远端恢复;证书私钥以及服务器自身的异地备份不在此保证范围。
[调查与未解决项](research/CloudDiagnostics1.18.0.md) · [实际验收范围](verification/Diagnostics1.18.0.json) · [开发交接](开发交接.md)。以下为历史记录。
---
# 2026-11-06 折叠检视器与指定人脸 1.17.1(103)
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。实际编译源码 **`3b4c612edf99c0ef2b972b7305cd7ba44244a7c6`**。独立远端检出核对全部 714 个跟踪文件与 Git blob,`git fsck --full --strict` 通过,无 LFS 指针/子模块。发行标签将在安装包验证后记录。[恢复核验](verification/Recovery1.17.1.json)
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。实际编译源码 **`3b4c612edf99c0ef2b972b7305cd7ba44244a7c6`**。独立远端检出核对全部 714 个跟踪文件与 Git blob,`git fsck --full --strict` 通过,无 LFS 指针/子模块。发行标签 **`v1.17.1-inspector-mosaic-20261106`** 指向 **`7c0bfa5352f282bcec0aedf43be29af4432f2ba8`**,独立检出核对 718 个文件;差异仅为交付记录与模板模型来源哈希,编译输入一致。[恢复核验](verification/Recovery1.17.1.json)
构建环境:Xcode 27.1、FxPlug SDK 4.3.5、Apple Silicon、macOS 14.6+、Release;ThirdParty 的依赖源包/锁和 `tools/build_tracking_opencv.py` 沿用。克隆后 `git switch --detach <完整提交>`,使用 `tools/deliver.py` 完成正式构建、签名、公证、安装与原生检查;保持交互输入,在宿主验证后输入 complete。主 ID `com.dayu.color`、服务 `com.dayu.color.XPC`,团队 B3W25FX5H5。证书私钥、公证 profile 与 Git 登录须独立恢复,源码仓库不含秘密。
APP 公证 **`36ecb7e6-5cfc-4b85-8363-11272d880b18`** Accepted,票据和 Gatekeeper 通过。唯一正式路径 `/Library/Plug-Ins/FxPlug/大鱼调色.app` 为 1.17.1(103),961 项正式原生检查通过;FCP 12.4 已确认默认三组、折叠标题、展开后内部滚动、收起后移除滚动以及当前帧转人脸蒙版入口。外层行高仍受 FCP 缓存限制,内部视窗收缩不代表宿主外框缩短。实鼠松手保存、真实多人运动/遮挡/交叉与播放性能由用户后续复测。[宿主检查](verification/HostInspectorMosaic1.17.1.json) · [专项回归](verification/InspectorMosaic1.17.1.json)
使用 `Packaging/build_pkg.py` 从已签名公证且正式安装验收的 APP 打包,随后 `Packaging/publish_release.py` 发布已验证标签的安装包。正式包 `/Volumes/备份/大鱼调色/发行包/大鱼调色-1.17.1.pkg`,46,600,407 字节,SHA-256 `5c1240d9f262c977495016cd9c19bd55cc0e374fcf9f99128e8cb2231309d710`;PKG 公证 `8e122236-9ca6-4d92-ad6a-b9c2411280e7` Accepted,票据、Gatekeeper、20 项展开与 198 条载荷权限检查通过。本机没有重复运行系统 PKG 安装脚本。Release 上传准备中。[开发交接](开发交接.md)
使用 `Packaging/build_pkg.py` 从已签名公证且正式安装验收的 APP 打包,随后 `Packaging/publish_release.py` 发布已验证标签的安装包。正式包 `/Volumes/备份/大鱼调色/发行包/大鱼调色-1.17.1.pkg`,46,600,407 字节,SHA-256 `5c1240d9f262c977495016cd9c19bd55cc0e374fcf9f99128e8cb2231309d710`;PKG 公证 `8e122236-9ca6-4d92-ad6a-b9c2411280e7` Accepted,票据、Gatekeeper、20 项展开与 198 条载荷权限检查通过。本机没有重复运行系统 PKG 安装脚本。Release **400**/附件 **44** 已按公测标记发布,草稿与正式下载均完整核对大小与 SHA-256。[发行页](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.17.1-inspector-mosaic-20261106) · [发布核验](verification/Release.json)。本轮恢复 clone、下载副本、构建 APP、公证 ZIP、旧替换备份和包暂存已核验后清理。[清理记录](verification/Cleanup1.17.1.json) · [开发交接](开发交接.md)
---
+34
查看文件
@@ -0,0 +1,34 @@
# 云端闪退与卡顿调查 · 2026-11-06
基线:main `ae0a64ec843fd450329083cb703890d8b2684007`,正式安装 1.17.1(103)。生产 MU 插件、专项副本及仓库副本 SHA-256 均为 `d2b73816e871765bc2f7d1604a1beda98b99e2d9ac4f62039de7bf3a81107593`。现有 project.pbxproj 三处 Security 引用排序为前序未提交内容,不纳入本任务。
## 云端证据
通过已登录的管理员页面 `https://dayu.media/wp-admin/tools.php?page=dayu-color-beta` 只读筛选,2026-11-06 16:34–16:37(北京时间)看到近七天 85 个匿名报告标识。它们不是实名用户数;包含本机开发与验收。原始报告和安装标识不复制到源码。
- `crash_summary` 共 43 条(筛选结果不足一页,无下一页):39 条 source_version=1.10.0,1 条 1.13.3,2 条 1.7.4,1 条 1.8.0。上传客户端常为 1.14.3/1.14.4,不能据此称为新版崩溃。
- 1.10.0 的外部记录集中在 `DYRenderer renderLegacy:...` 的异步 block 和 `NSNotificationCenter postNotificationName:object:userInfo:`,异常 EXC_BAD_ACCESS/SIGSEGV。既有提交 `1c3e294ce991b0205969486c330dba57714aeacc` 已将 C++ lambda 内异步通知移入 Objective-C 方法,修复对象生命周期;1.11.0 起包含该修复。样本支持同一历史故障特征,不证明最新版本仍有该故障或所有反馈均解决。
- 7 条可关联本机开发标识,含 `DYRunDiagnostics`、ASAN 及早期原生回归;需与外部故障分开。外部共有 36 条:34 条来自 1.10.0,2 条来自 1.7.4。
- 1.7.4 两条为 dyld 启动终止,旧采集未保存 termination 原因和镜像偏移,无法判定缺库、兼容性还是安装问题。
- `main_thread_stall` 最近 50 条包含外部 1.14.4 的约 6–30 秒和 1.12.0 的约 6–36 秒无响应;全部 active_stages 为空。本机 1.17.1 的连续 6–357 秒记录也混在其中,可能包括菜单/模态循环导致的主队列探针延迟,不能当作真实死锁结论。本次未做全量卡顿数量统计。
- `operation_stall` 筛选为空。`render_error` 存在同一外部标识反复上报 NSCocoaErrorDomain/260(文件不存在),涉及 1.10.0 和 1.14.4;未带资源类别,无法从摘要判断是 LUT、内置资源还是其他文件。保留用户路径隐私,后续只增加阶段和文件扩展名等限定信息。
## 本轮实施范围
取消主 APP 注册后倒计时退出,关闭窗口后保留后台运行,提供重新打开与明确退出入口。补充持续扫描自身 APP/插件系统报告、崩溃实际版本与 build、异常终止类别、镜像 UUID/偏移;卡顿使用公共运行循环探针、限频调用栈摘要与资源统计;渲染与跟踪持续阶段、慢操作摘要,避免每帧磁盘和网络发送。现有诊断开关及 30 天保留不变,不上传素材、LUT、预设、账号和原始诊断文件。
正式路径采集验收见下方;发行状态见开发交接及版本记录。卡顿具体根因和 dyld 历史报告仍待新版本现场数据。
数据结构依据:[Apple IPS JSON 说明](https://developer.apple.com/documentation/xcode/interpreting-the-json-format-of-a-crash-report);运行循环依据:[CFRunLoop](https://developer.apple.com/documentation/corefoundation/cfrunloop)。
## 正式路径候选 104 的验收修正
FCP 12.4 加载、播放和阶段汇总上报通过。受控主线程暂停 12 秒时,采样以 timeout_or_disabled 送达,因此候选未发布。移除 sample 的 -mayDie(避免采样前预读符号),后台符号处理上限改为 30 秒;采集本身仍为 1 秒/10 ms 间隔,保留限频、关闭诊断取消及临时文件清理。后续以 105 正式路径再次验证实际调用栈。
## 105 实际运行结果
75 项离线诊断检查、27 项后端合同检查与正式安装的 961 项原生回归通过。受控 12 秒主 APP 卡顿在 17:17:01(本地)生成 captured 调用栈,17:17:02 云端送达,明确包含 AppDelegate runDiagnosticsProbe → NSThread sleepForTimeInterval → nanosleep,标记 verification。关闭诊断超过一分钟且宿主启动/播放时没有新增上报,待发送队列清零;重新开启后两进程恢复上报。关窗后同一普通 APP 进程跨两轮分钟统计持续送达。
FCP 12.4 显示 1.18.0,当前 11.4 秒片段可播放到末尾,无新增宿主崩溃记录。但 3840×2160 输入在该轮 28 次渲染的平均调用耗时 601.4 ms、最大 1716.8 ms;41 次 plugin_state 平均 4.31 ms、最大 8.68 ms。证据将该样本主要耗时指向渲染而非状态构建;尚不能从聚合值确定渲染内部算法,也不能直接当作播放 FPS。保留这一待优化项,不宣称卡顿已解决。
用户刚才疑似闪退已与本轮正常退出操作及系统退出码 0 对齐,并经用户确认。10:30 的历史 FCP ProOSC 中止另行记录;没有证据将其归因于本轮诊断。详见 verification/LocalHostExit1.18.0.json。
+6
查看文件
@@ -16,3 +16,9 @@
- `DYViewerParameterBridge.inc.h` 支持当前帧多人脸一次转成独立共享蒙版,多选使用稳定 ID。每个人脸先生成静态框,用户在控制面板逐个运行现有 OpenCV 跟踪。无身份识别或全片自动人脸身份归并;重叠、遮挡和交叉仍需实拍检查。
- 961 项原生 Release 预检通过。新增双时钟手绘保存/回读、默认无滚动、展开/追加滚动、多人脸导入一次撤销、单人选择区域外像素完全一致和完整文档回读检查。两个人脸来自公共 NASA 人像的并排合成,不能替代两名不同人物的运动视频测试。
- 16 个独立效果及整合模板静态检查通过;仅刷新模型来源哈希,模板文件与上一版一致。独立远端恢复编译提交 714 个文件逐一校验,无 LFS 指针/子模块。
## 正式交付
1.17.1(103)APP 公证 `36ecb7e6-5cfc-4b85-8363-11272d880b18` Accepted,正式路径 961 项检查通过;FCP 12.4 冷加载、默认三组、展开内部滚动、折叠复位及本帧人脸转换菜单已验证。实鼠手绘和运动多人由用户继续测试。
PKG 公证 `8e122236-9ca6-4d92-ad6a-b9c2411280e7` Accepted,20 项展开检查与 198 条载荷权限检查通过。发行标签 `v1.17.1-inspector-mosaic-20261106` 指向 `7c0bfa5352f282bcec0aedf43be29af4432f2ba8`,Release 400/附件 44 的草稿及正式完整下载验证一致,保留产品公测标记。编译节点 714 文件与发行标签 718 文件独立远端恢复通过。详细证据见 `verification/HostInspectorMosaic1.17.1.json`、`Recovery1.17.1.json`、`Release.json`、`Cleanup1.17.1.json`。
+17
查看文件
@@ -0,0 +1,17 @@
# 1.18.1 跟踪与界面优化
2026-11-06。实际编译源码 `1cc7f8edb2acb3cfc62bd72447c2956ad7a01601`。正式安装 1.18.1(106)已通过 Apple 公证、票据及安装后 964 项原生检查。文章此前已更新 1.18.0。
- 基线实际使用 Metal 预处理、CPU OpenCV 特征检测与双向 LK、CPU RANSAC。旧 Metal 光流存在但未接入当前跟踪器。
- 最终版本保留完整 4K 分析分辨率、OpenCV 特征阈值、亚像素细化、仿射估计与可信轨迹保护。特征检测限定至目标凸包加 12px 边缘。双向 LK 保留 CPU OpenCV,复用金字塔和梯度。
- Metal 光流候选通过六组合生成图及 12 项算法回归,但整段实拍失败,未用于正式路径。候选证据只保留作研究记录。
- UI:DYToolManager 每次单个参数读取都重建完整层状态;Inspector 每组重复读取宿主参数;工作区每次标量变化都重建列表。候选改为单次 Action 快照、复用本次读回、仅在列表模型变化时重建。加入同 Action 写后读与外部编辑失效检查。
- 资料:[Apple GPU 同步](https://developer.apple.com/documentation/metal/resource-synchronization)、[Apple MPS 调优](https://developer.apple.com/documentation/metalperformanceshaders/tuning-hints)、[OpenCV LK](https://docs.opencv.org/3.4.4/dc/d6b/group__video__track.html)。Metal LK 是本产品原有实现,不能声称与 OpenCV 逐帧严格等价。
## 整段验证后的决策
旧 Metal LK 在 4K 实拍转身到第 133 帧时丢轨,CPU 完成 285 帧。该实验不接入正式路径,仅保留可重现基准和拒收证据。最终候选使用 Metal 直接生成 Gray8,读回量从每个 4K 帧约 33.2MB 降为 8.3MB;目标区域特征检测和 OpenCV 双向金字塔复用共同减少 CPU 工作。
同一整段、相同起点,原 CPU 算法处理 8776.57ms,最终版本 1306.09ms,285 帧中心/缩放/旋转差异均为 0。该数字不含供图、解码、磁盘、宿主 UI 与渲染,不等于整体追踪快 6.7 倍。正式 FCP 独立验收副本中完成两轮 285 帧追踪、模块切换、曝光修改还原及蒙版编辑;未测端到端耗时或 UI 延迟分位数。
转身后人脸目标仍会漂移;原版与优化版在相同离线输入上轨迹完全一致。这版优化速度,不宣称解决目标遮挡/转身精度。完成 285 帧不等于目标位置全部准确。
+40
查看文件
@@ -0,0 +1,40 @@
# 转身与短时遮挡:成熟跟踪器比较
2026-11-06,接续正式 1.18.1(106)。1.19.0(109)已正式公证安装,979 项原生检查和 FCP 实片验收通过。用户素材和逐帧位置只留在本机缓存,不上传仓库。
原 OpenCV LK 只有局部光流与仿射拟合,没有完整对象外观模型;转身时背景特征仍可能给出高内点率。仅沿此结果继续外推会延续偏移。
## 同素材实测
Mac mini M4,640×360 BGRA、25fps、285 帧同一实拍。开源候选使用官方 OpenCV 4.11.0.86 wheel / cv2 4.11、2 个线程;计时包含初始化和逐帧跟踪,不含视频解码、宿主供图、预览和渲染。此为一段素材的比较,不代表通用排名。合成遮挡只用于可重复回归,不能替代真实复杂遮挡。
| 候选 | 原片总计算时间 | 转身表现 | 10 帧人工遮挡 |
| --- | ---: | --- | --- |
| [CSRT](https://github.com/opencv/opencv_contrib/tree/4.x/modules/tracking) | 1622.38 ms | 框向额头缩小,下巴覆盖不足 | 返回成功但最终跟到衣服 |
| [VitTrack](https://github.com/opencv/opencv_zoo/tree/main/models/object_tracking_vittrack) | 779.83 ms | 框位置、大小仍偏移 | 能报丢失及恢复,但恢复后仍有上述偏移 |
| Apple Vision + 本次恢复保护 | 398.43 ms | 285 帧完整,视觉检查框保持在头部 | 325.51 ms,11 帧暂时预测后重新确认 |
[Apple Vision VNTrackingRequest](https://developer.apple.com/documentation/vision/vntrackingrequest) 使用 accurate 模式。原始连续更新版本会学习遮挡物;本次在丢失时冻结最后可信图像,从该图像重建请求试探恢复,需连续两次可信观测。没有声称 Vision 内部一定采用 Metal;具体设备调度由系统框架决定。
- 长遮挡(55 帧)及突切随机画面:尝试到第 151 帧,最多产生 20 个暂时预测,第 21 个缺失停止。宿主提交前删除全部未确认尾部,不把预测当作成功跟踪。
- 反向跟踪:285 帧完整、无预测,319.08 ms。双向回归还由原生宿主回调检查覆盖。
- 重新定位后以丢失前后可信端点补齐短段,中心线性插值、尺寸对数插值;补齐键置信度标为 0.35,状态提示复核。保留精确帧时间、手工键和撤销流程。
- 预测最多 0.8 秒;不处理长期离开画面、相似人物交叉后的全局身份确认。马赛克涉及隐私时仍必须播放复核遮盖范围。
## 选择与集成边界
用户追加要求所有跟踪统一改为 Apple。107 已公证安装但未做宿主验收、未发布;108 移除 APP OpenCV 构建和链接。局部马赛克的矩形/椭圆/钢笔使用 Vision 对象跟踪,保留作者比例和角度,按真实路径外接矩形及中心偏移映射。普通蒙版和图章使用 Vision 局部图像配准,恢复中心、缩放和旋转;图章取样区与覆盖区分别配准。配准结果按实际多边形内像素相关性验证,纹理丢失/变换异常即停。分析裁剪最长 320 像素,保留原帧读取以精确截取小区域。已有工程轨迹不静默改写,需重新运行跟踪。
计算在宿主分析回调,界面预览最多 15Hz,只保留最新待显示帧;不逐帧重建参数面板。正式 FCP 日志确认对象与区域两条回调 main=0;285 帧对象跟踪完成,起点/6 秒/11.36 秒实际马赛克覆盖头部。面板关闭重开、参数修改复位、普通蒙版反向单帧和撤销通过。未量化 UI 延迟,图章完整实片和新导出未重复测试;见 verification/HostVisionTracking1.19.0.json。
## 其他 GitHub 候选
- [NanoTrack](https://github.com/HonglinChu/NanoTrack):Apache-2.0,提供 Mac / ncnn 示例;未本机实测,不能使用 README FPS 作为本机结论。
- [OSTrack](https://github.com/botaoye/OSTrack):MIT,研究工程主要面向 PyTorch / CUDA;未本机实测,未来可评估 Core ML 转换后的速度与恢复能力。
- [ByteTrack](https://github.com/FoundationVision/ByteTrack):MIT,多目标检测框关联;还需要检测器,单独引入不能解决转身后没有人脸检测框的问题。
VitTrack 模型来自官方 OpenCV Zoo,714726 字节,SHA-256 `2990f0b7cd44d92afa48cd97db6de7be113fc1d9594fddb74e2725c10478e91d`;目录声明 Apache-2.0。仅在缓存中用于比较,未加入 APP 或 Git。OpenCV 源码锁和独立对照工具保留为研究记录,正式 APP 不再构建或链接 OpenCV。
## 复测入口
`tools/tracking/benchmark_object.mm`、`benchmark_vision.mm`、`benchmark_opensource.py`。编译原生候选:`xcrun clang++ -std=c++17 -O3 -fno-objc-arc -framework Foundation -framework Vision -framework CoreVideo -framework CoreGraphics tools/tracking/benchmark_object.mm -o <缓存>/benchmark-object`。输入使用本地 640×360 BGRA 连续帧;不将用户素材纳入仓库。聚合数据见 `verification/ObjectTrackingBenchmarks1.19.0.json`。
+1 -1
查看文件
@@ -82,7 +82,7 @@ def main():
if dest.is_symlink():dest.unlink()
if not dest.exists():dest.symlink_to(src)
bridge=ROOT/'tools/tracking/DYOpenCVTracker.cpp';obj=libs/'DYOpenCVTracker.o';runtime=libs/'libDayuOpenCVTracker.a'
identity=hashlib.sha256(bridge.read_bytes()+(ROOT/'大鱼调色/Plugin/MaskCore/DYOpenCVTracker.hpp').read_bytes()+marker.read_bytes()).hexdigest()
identity=hashlib.sha256(bridge.read_bytes()+(ROOT/'大鱼调色/Plugin/MaskCore/DYOpenCVTracker.hpp').read_bytes()+(ROOT/'大鱼调色/Plugin/MaskCore/DYTracker.hpp').read_bytes()+marker.read_bytes()).hexdigest()
bridgeMarker=CACHE/'bridge-build.json'
if not runtime.exists() or not bridgeMarker.exists() or json.loads(bridgeMarker.read_text()).get('identity')!=identity:
run(['xcrun','clang++','-std=c++17','-arch','arm64','-mmacosx-version-min=14.6','-O3','-fvisibility=hidden',
+34 -8
查看文件
@@ -8,6 +8,8 @@
namespace dy {
struct OpenCVTracker::Impl {
cv::Mat previous;
std::vector<cv::Mat> previousPyramid;
std::shared_ptr<FlowBackend> flow;
std::vector<cv::Point2f> points, polygon;
std::vector<FlowPoint> mask;
TrackerROI seed{};
@@ -18,6 +20,7 @@ struct OpenCVTracker::Impl {
static cv::Mat gray8(const GrayFrame& f) {
if(!f.valid())return {};
if(f.pixels.empty())return cv::Mat(f.height,f.width,CV_8UC1,const_cast<uint8_t*>(f.bytes.data())).clone();
cv::Mat out(f.height,f.width,CV_8UC1);
for(size_t i=0;i<f.pixels.size();++i) {
float x=f.pixels[i];
@@ -34,7 +37,15 @@ struct OpenCVTracker::Impl {
cv::convexHull(vertices,hull,false,true);
cv::Mat area=cv::Mat::zeros(height,width,CV_8UC1);
cv::fillPoly(area,std::vector<std::vector<cv::Point>>{hull},cv::Scalar(255),cv::LINE_AA);
cv::goodFeaturesToTrack(previous,points,300,.03,10.,area,3,false,.04);
// Corner detection previously evaluated the whole 4K frame even for a
// small face. Keep a halo for the gradient/local-maximum stencil, then
// restore full-frame coordinates before subpixel refinement and flow.
cv::Rect bounds=cv::boundingRect(hull);
bounds.x-=12;bounds.y-=12;bounds.width+=24;bounds.height+=24;
bounds&=cv::Rect(0,0,width,height);
if(bounds.empty())return;
cv::goodFeaturesToTrack(previous(bounds),points,300,.03,10.,area(bounds),3,false,.04);
for(auto& p:points)p+=cv::Point2f(float(bounds.x),float(bounds.y));
if(!points.empty())cv::cornerSubPix(previous,points,{10,10},{-1,-1},
{cv::TermCriteria::COUNT|cv::TermCriteria::EPS,20,.03});
}
@@ -46,10 +57,11 @@ struct OpenCVTracker::Impl {
OpenCVTracker::OpenCVTracker():impl_(std::make_shared<Impl>()){}
OpenCVTracker::~OpenCVTracker()=default;
void OpenCVTracker::setMask(std::vector<FlowPoint> p){impl_->mask=std::move(p);}
void OpenCVTracker::setFlowBackend(std::shared_ptr<FlowBackend> flow){impl_->flow=std::move(flow);stop();}
const char* OpenCVTracker::version(){return CV_VERSION;}
TrackResult OpenCVTracker::result()const{return impl_->value;}
bool OpenCVTracker::active()const{return impl_->running;}
void OpenCVTracker::stop(){impl_->running=false;impl_->value.valid=false;}
void OpenCVTracker::stop(){impl_->running=false;impl_->value.valid=false;impl_->previous.release();impl_->previousPyramid.clear();impl_->points.clear();}
bool OpenCVTracker::reset(const GrayFrame& f,TrackerROI roi) {
auto& t=*impl_;t.running=false;t.frameIndex=1;t.points.clear();t.polygon.clear();
@@ -70,6 +82,8 @@ bool OpenCVTracker::reset(const GrayFrame& f,TrackerROI roi) {
t.polygon.emplace_back(t.center.x+c*x-s*y,t.center.y+s*x+c*y);}
t.detect();t.value.features=int(t.points.size());t.value.inliers=t.value.features;
if(t.points.size()<4){t.fail(TrackFailure::InsufficientTexture);return false;}
if(t.flow&&!t.flow->reset(f)){t.fail(TrackFailure::Backend);return false;}
if(!t.flow)cv::buildOpticalFlowPyramid(t.previous,t.previousPyramid,{21,21},3);
t.running=true;t.value.valid=true;t.value.confidence=1;return true;
} catch(const cv::Exception&){t.fail(TrackFailure::Backend);return false;}
}
@@ -84,19 +98,31 @@ TrackResult OpenCVTracker::track(const GrayFrame& f) {
if(t.frameIndex<2||t.frameIndex%2==0)t.detect();
t.value.features=int(t.points.size());t.value.matches=0;t.value.inliers=0;t.value.medianError=0;
if(t.points.size()<4)return t.fail(TrackFailure::InsufficientTexture);
std::vector<cv::Point2f> src,dst,movingSrc,movingDst;
std::vector<cv::Mat> nextPyramid;
if(t.flow){
std::vector<FlowPoint> input;input.reserve(t.points.size());
for(auto p:t.points)input.push_back({p.x,p.y});
std::vector<FlowMatch> matches;
if(!t.flow->advance(f,input,matches))return t.fail(TrackFailure::Backend);
for(auto m:matches){src.emplace_back(m.p.x,m.p.y);dst.emplace_back(m.q.x,m.q.y);}
}else{
std::vector<cv::Point2f> forward,backward;
std::vector<uchar> fs,bs;std::vector<float> fe,be;
cv::TermCriteria termination(cv::TermCriteria::COUNT|cv::TermCriteria::EPS,30,.01);
cv::calcOpticalFlowPyrLK(t.previous,next,t.points,forward,fs,fe,{21,21},3,termination,0,1e-4);
cv::calcOpticalFlowPyrLK(next,t.previous,forward,backward,bs,be,{21,21},3,termination,0,1e-4);
std::vector<cv::Point2f> src,dst,movingSrc,movingDst;
const float motionThreshold=std::max(t.width,t.height)*.01f;
// Build each frame and its gradients once; reuse them for both flow
// directions and as the previous frame on the next analysis callback.
cv::buildOpticalFlowPyramid(next,nextPyramid,{21,21},3);
cv::calcOpticalFlowPyrLK(t.previousPyramid,nextPyramid,t.points,forward,fs,fe,{21,21},3,termination,0,1e-4);
cv::calcOpticalFlowPyrLK(nextPyramid,t.previousPyramid,forward,backward,bs,be,{21,21},3,termination,0,1e-4);
for(size_t i=0;i<t.points.size();++i) {
// Checking both statuses also rejects a failed backward solve.
if(!fs[i]||!bs[i]||cv::norm(backward[i]-t.points[i])>=1.)continue;
src.push_back(t.points[i]);dst.push_back(forward[i]);
if(cv::norm(forward[i]-t.points[i])>=motionThreshold){movingSrc.push_back(t.points[i]);movingDst.push_back(forward[i]);}
}
}
const float motionThreshold=std::max(t.width,t.height)*.01f;
for(size_t i=0;i<src.size();++i)if(cv::norm(dst[i]-src[i])>=motionThreshold){movingSrc.push_back(src[i]);movingDst.push_back(dst[i]);}
if(movingSrc.size()>src.size()/2){src.swap(movingSrc);dst.swap(movingDst);}
t.value.matches=int(src.size());
if(src.size()<4)return t.fail(TrackFailure::InsufficientMatches);
@@ -131,7 +157,7 @@ TrackResult OpenCVTracker::track(const GrayFrame& f) {
t.value.scaleX=float(totalX);t.value.scaleY=float(totalY);t.value.scale=std::sqrt(t.value.scaleX*t.value.scaleY);
t.value.rotation+=float(angle);t.value.confidence=confidence;t.value.valid=true;t.value.failure=TrackFailure::None;
t.points.clear();for(size_t i=0;i<dst.size();++i)t.points.push_back(dst[i]+(center-cv::Point2f(float(tx),float(ty))));
t.previous=next;++t.frameIndex;return t.value;
t.previous=next;t.previousPyramid=std::move(nextPyramid);++t.frameIndex;return t.value;
}catch(const cv::Exception&){return t.fail(TrackFailure::Backend);}
}
}
@@ -0,0 +1,40 @@
// Same generated frames and full resolution for CPU/GPU. No host or UI runs.
#import <Foundation/Foundation.h>
#define main originalCPUTrackerChecks
#include "verify_opencv_tracker.cpp"
#undef main
#include "../../大鱼调色/Plugin/DYToolFlow.inc.h"
#include <iomanip>
int main(int argc,const char**argv){@autoreleasepool{
if(argc!=2)return 2;
NSURL*library=[NSURL fileURLWithPath:[NSString stringWithUTF8String:argv[1]]];
int failures=0;std::cout<<std::setprecision(8)<<"{\"cases\":[";bool first=true;
for(auto dimensions:std::vector<std::pair<int,int>>{{640,480},{1920,1080},{3840,2160}}){
int w=dimensions.first,h=dimensions.second;
for(float size:{.12f,.7f}){
std::vector<dy::GrayFrame> images;
for(int i=0;i<=12;++i)images.push_back(frame(w,h,1.25*i,.5*i,.001*i,1+.001*i,1-.0007*i));
double elapsed[2]={},maxError[2]={},maxDifference=0;bool good[2]={true,true};
std::vector<dy::TrackResult> reference;
for(int gpu=0;gpu<2;++gpu){
dy::OpenCVTracker tracker;
if(gpu){auto flow=DYToolCreateMetalFlow(library,nullptr);if(!flow)return 3;tracker.setFlowBackend(flow);}
good[gpu]=tracker.reset(images[0],{.5f,.5f,size,size,0});
for(size_t i=1;i<images.size()&&good[gpu];++i){
auto begin=std::chrono::steady_clock::now();auto r=tracker.track(images[i]);
elapsed[gpu]+=std::chrono::duration<double,std::milli>(std::chrono::steady_clock::now()-begin).count();
good[gpu]&=r.valid;
maxError[gpu]=std::max(maxError[gpu],std::hypot((r.cx-.5)*w-1.25*i,(r.cy-.5)*h-.5*i));
if(!gpu)reference.push_back(r);
else if(i<=reference.size())maxDifference=std::max(maxDifference,std::hypot(double(r.cx-reference[i-1].cx)*w,double(r.cy-reference[i-1].cy)*h));
}
good[gpu]&=maxError[gpu]<1.;
failures+=!good[gpu];
}
if(!first)std::cout<<",";first=false;
std::cout<<"{\"width\":"<<w<<",\"height\":"<<h<<",\"roi\":"<<size<<",\"frames\":12,\"cpuMs\":"<<elapsed[0]<<",\"metalMs\":"<<elapsed[1]<<",\"cpuErrorPx\":"<<maxError[0]<<",\"metalErrorPx\":"<<maxError[1]<<",\"differencePx\":"<<maxDifference<<",\"pass\":"<<(good[0]&&good[1]?"true":"false")<<"}";
}
}
std::cout<<"],\"pass\":"<<(failures?"false":"true")<<"}\n";return failures?1:0;
}}
+17
查看文件
@@ -0,0 +1,17 @@
#import <Foundation/Foundation.h>
#include "../../大鱼调色/Plugin/MaskCore/DYObjectTracker.hpp"
#include <fstream>
#include <chrono>
int main(int argc,const char**argv){@autoreleasepool{
if(argc!=9)return 2;int w=atoi(argv[2]),h=atoi(argv[3]);double fps=atof(argv[8]);dy::TrackerROI roi{float(atof(argv[4])),float(atof(argv[5])),float(atof(argv[6])),float(atof(argv[7])),0};
std::ifstream input(argv[1],std::ios::binary);std::vector<uint8_t> bytes(size_t(w)*h*4);dy::ObjectTracker tracker;NSMutableArray *frames=[NSMutableArray new];double total=0,maximum=0;
while(input.read((char*)bytes.data(),bytes.size())){@autoreleasepool{
for(size_t i=0;i<bytes.size();i+=4)std::swap(bytes[i],bytes[i+2]);
auto start=std::chrono::steady_clock::now();dy::ObjectStep step;bool initial=frames.count==0;
if(initial){step.valid=tracker.reset(bytes.data(),w,h,false,roi,fps);step.box={roi.cx,roi.cy,roi.width,roi.height,1};}
else step=tracker.track(bytes.data(),w,h,false);
auto r=tracker.result(step);double ms=std::chrono::duration<double,std::milli>(std::chrono::steady_clock::now()-start).count();total+=ms;maximum=std::max(maximum,ms);
[frames addObject:@{@"cx":@(r.cx),@"cy":@(r.cy),@"width":@(roi.width*r.scaleX),@"height":@(roi.height*r.scaleY),@"confidence":@(r.confidence),@"valid":@(r.valid),@"predicted":@(step.predicted),@"recovered":@(step.recovered),@"gap":@(step.gap),@"ms":@(ms)}];if(!step.valid)break;
}}
NSData *data=[NSJSONSerialization dataWithJSONObject:@{@"frames":frames,@"milliseconds":@(total),@"maximumMs":@(maximum)} options:NSJSONWritingPrettyPrinted error:nil];fwrite(data.bytes,1,data.length,stdout);return 0;
}}
+22
查看文件
@@ -0,0 +1,22 @@
"""Compare official OpenCV trackers on local caller-decoded frames; no GUI/media upload."""
import argparse,json,time,pathlib
import cv2 as cv
import numpy as np
p=argparse.ArgumentParser();p.add_argument('frames');p.add_argument('algorithm',choices=['csrt','vit']);p.add_argument('--model');p.add_argument('--output',required=True);a=p.parse_args()
cv.setNumThreads(2)
if a.algorithm=='csrt':tracker=cv.TrackerCSRT_create()
else:
params=cv.TrackerVit_Params();params.net=a.model;tracker=cv.TrackerVit_create(params)
roi=(round((.486-.085/2)*640),round((.238-.155/2)*360),round(.085*640),round(.155*360))
results=[]
with open(a.frames,'rb') as stream:
while data:=stream.read(640*360*4):
assert len(data)==640*360*4
image=np.frombuffer(data,np.uint8).reshape(360,640,4)[:,:,:3].copy()
start=time.perf_counter()
if not results:tracker.init(image,roi);ok=True;box=roi;score=1.
else:
ok,box=tracker.update(image);score=tracker.getTrackingScore() if a.algorithm=='vit' else float(ok)
elapsed=(time.perf_counter()-start)*1000;x,y,w,h=box
results.append(dict(valid=bool(ok),confidence=float(score),cx=(x+w/2)/640,cy=(y+h/2)/360,width=w/640,height=h/360,ms=elapsed))
pathlib.Path(a.output).write_text(json.dumps(dict(algorithm=a.algorithm,opencv=cv.__version__,threads=2,frames=results,milliseconds=sum(x['ms'] for x in results)),indent=2)+'\n')
+27
查看文件
@@ -0,0 +1,27 @@
// Reads caller-decoded gray8, excludes file reads and conversion from timings.
// Does not modify or persist media; CPU/GPU receive the same full-size frames.
#import <Foundation/Foundation.h>
#include "../../大鱼调色/Plugin/MaskCore/DYOpenCVTracker.hpp"
#include "../../大鱼调色/Plugin/DYToolFlow.inc.h"
#include <fstream>
#include <chrono>
int main(int argc,const char **argv){@autoreleasepool{
if(argc!=9&&argc!=10)return 2;int w=atoi(argv[2]),h=atoi(argv[3]);if(w<16||h<16||w>8192||h>8192)return 2;
bool compact=argc==10&&strcmp(argv[9],"compact")==0;
dy::TrackerROI roi{float(atof(argv[5])),float(atof(argv[6])),float(atof(argv[7])),float(atof(argv[8])),0};
NSMutableArray *runs=[NSMutableArray array];
for(int gpu=0;gpu<(argc==10?1:2);++gpu){
dy::OpenCVTracker tracker;if(gpu){auto b=DYToolCreateMetalFlow([NSURL fileURLWithPath:[NSString stringWithUTF8String:argv[4]]],nullptr);if(!b)return 3;tracker.setFlowBackend(b);}
std::ifstream input(argv[1],std::ios::binary);if(!input)return 2;
std::vector<uint8_t> bytes(size_t(w)*h);dy::GrayFrame f{w,h,std::vector<float>(bytes.size())};
NSMutableArray *frames=[NSMutableArray array];double total=0,maximum=0;
while(input.read((char*)bytes.data(),bytes.size())){
if(compact){f.pixels.clear();f.bytes=bytes;}else for(size_t i=0;i<bytes.size();++i)f.pixels[i]=bytes[i]/255.f;
auto start=std::chrono::steady_clock::now();bool ok=frames.count?tracker.track(f).valid:tracker.reset(f,roi);
double ms=std::chrono::duration<double,std::milli>(std::chrono::steady_clock::now()-start).count();total+=ms;maximum=std::max(maximum,ms);auto r=tracker.result();
[frames addObject:@{@"valid":@(ok),@"cx":@(r.cx),@"cy":@(r.cy),@"scaleX":@(r.scaleX),@"scaleY":@(r.scaleY),@"rotation":@(r.rotation),@"confidence":@(r.confidence),@"failure":@((int)r.failure)}];if(!ok)break;
}
[runs addObject:@{@"backend":gpu?@"Metal":@"CPU",@"frames":frames,@"milliseconds":@(total),@"maximumMs":@(maximum)}];
}
NSData *data=[NSJSONSerialization dataWithJSONObject:@{@"width":@(w),@"height":@(h),@"runs":runs} options:NSJSONWritingPrettyPrinted error:nil];fwrite(data.bytes,1,data.length,stdout);return 0;
}}
+23
查看文件
@@ -0,0 +1,23 @@
// Read-only local media benchmark. No host app, uploads, or persisted images.
#import <Foundation/Foundation.h>
#import <Vision/Vision.h>
#import <CoreVideo/CoreVideo.h>
#include <fstream>
#include <chrono>
int main(int argc,const char**argv){@autoreleasepool{
if(argc!=9)return 2;int w=atoi(argv[2]),h=atoi(argv[3]);
CGRect box=CGRectMake(atof(argv[4])-atof(argv[6])/2,1-atof(argv[5])-atof(argv[7])/2,atof(argv[6]),atof(argv[7]));
VNSequenceRequestHandler *sequence=[VNSequenceRequestHandler new];
VNTrackObjectRequest *track=[[VNTrackObjectRequest alloc]initWithDetectedObjectObservation:[VNDetectedObjectObservation observationWithBoundingBox:box]];
track.trackingLevel=atoi(argv[8])?VNRequestTrackingLevelAccurate:VNRequestTrackingLevelFast;
CVPixelBufferRef buffer=nullptr;CVPixelBufferCreate(kCFAllocatorDefault,w,h,kCVPixelFormatType_32BGRA,(__bridge CFDictionaryRef)@{(id)kCVPixelBufferIOSurfacePropertiesKey:@{}},&buffer);
if(!buffer)return 3;std::ifstream input(argv[1],std::ios::binary);std::vector<uint8_t> bytes(size_t(w)*h*4);NSMutableArray *frames=[NSMutableArray new];double total=0,maximum=0;
while(input.read((char*)bytes.data(),bytes.size())){@autoreleasepool{
CVPixelBufferLockBaseAddress(buffer,0);auto dst=(uint8_t*)CVPixelBufferGetBaseAddress(buffer);for(int y=0;y<h;y++)memcpy(dst+y*CVPixelBufferGetBytesPerRow(buffer),bytes.data()+size_t(y)*w*4,w*4);CVPixelBufferUnlockBaseAddress(buffer,0);
auto start=std::chrono::steady_clock::now();NSError *error=nil;BOOL ok=[sequence performRequests:@[track] onCVPixelBuffer:buffer orientation:kCGImagePropertyOrientationUp error:&error];
double ms=std::chrono::duration<double,std::milli>(std::chrono::steady_clock::now()-start).count();total+=ms;maximum=std::max(maximum,ms);
VNDetectedObjectObservation *r=track.results.firstObject;CGRect b=r.boundingBox;
[frames addObject:@{@"cx":@(CGRectGetMidX(b)),@"cy":@(1-CGRectGetMidY(b)),@"width":@(b.size.width),@"height":@(b.size.height),@"confidence":@(r.confidence),@"valid":@(ok&&r!=nil),@"ms":@(ms)}];if(!ok||!r)break;track.inputObservation=r;
}}
CVPixelBufferRelease(buffer);NSData *data=[NSJSONSerialization dataWithJSONObject:@{@"frames":frames,@"milliseconds":@(total),@"maximumMs":@(maximum)} options:NSJSONWritingPrettyPrinted error:nil];fwrite(data.bytes,1,data.length,stdout);return 0;
}}
+20
查看文件
@@ -0,0 +1,20 @@
#import <Foundation/Foundation.h>
#include "../../大鱼调色/Plugin/MaskCore/DYOpenCVTracker.hpp"
#include "../../大鱼调色/Plugin/DYToolFlow.inc.h"
static NSURL *testLibrary;
namespace dy {
class MetalTestTracker : public OpenCVTracker {
public:
MetalTestTracker(){auto flow=DYToolCreateMetalFlow(testLibrary,nullptr);if(!flow)throw std::runtime_error("Metal backend unavailable");setFlowBackend(flow);}
};
}
#define OpenCVTracker MetalTestTracker
#define main runMetalCases
#include "verify_opencv_tracker.cpp"
#undef main
#undef OpenCVTracker
int main(int argc,const char **argv){@autoreleasepool{
if(argc!=2)return 2;
testLibrary=[NSURL fileURLWithPath:[NSString stringWithUTF8String:argv[1]]];
return runMetalCases();
}}
+10
查看文件
@@ -75,5 +75,15 @@ int main() {
auto ms=std::chrono::duration<double,std::milli>(std::chrono::steady_clock::now()-begin).count();
std::cerr<<"4K generated images plus tracking: "<<ms<<"ms\n";
}
{
dy::OpenCVTracker floats,bytes;bool ok=true;double difference=0;
for(int i=0;i<12;++i){auto f=frame(640,480,1.25*i,.5*i);dy::GrayFrame b;b.width=f.width;b.height=f.height;
b.bytes.resize(f.pixels.size());for(size_t p=0;p<f.pixels.size();++p){b.bytes[p]=uint8_t(std::lround(f.pixels[p]*255));f.pixels[p]=b.bytes[p]/255.f;}
b.flipVertically();b.flipVertically();
ok&=i?floats.track(f).valid&&bytes.track(b).valid:floats.reset(f,{.5,.5,.4,.4,0})&&bytes.reset(b,{.5,.5,.4,.4,0});
auto a=floats.result(),c=bytes.result();difference=std::max(difference,std::hypot(double(a.cx-c.cx)*640,double(a.cy-c.cy)*480));
}
check("compact-gpu-byte-input-matches-quantized-float-and-flip",ok&&difference<1e-5,difference);
}
std::cout<<"],\"pass\":"<<(failed?"false":"true")<<",\"count\":"<<count<<",\"runtimeTargetAppUsed\":false}\n";return failed?1:0;
}
+21
查看文件
@@ -0,0 +1,21 @@
#import <Foundation/Foundation.h>
#include "../../大鱼调色/Plugin/MaskCore/DYVisionRegionTracker.hpp"
#include <cstdio>
#include <chrono>
float noise(int x,int y){uint32_t n=uint32_t(x)*73856093u^uint32_t(y)*19349663u;n^=n>>13;n*=1274126177u;return .15f+.7f*((n>>8)&255)/255.f;}
float texture(float u,float v){int x=std::floor(u),y=std::floor(v);float fx=u-x,fy=v-y;return (noise(x,y)*(1-fx)+noise(x+1,y)*fx)*(1-fy)+(noise(x,y+1)*(1-fx)+noise(x+1,y+1)*fx)*fy;}
dy::GrayFrame frame(int step,bool paired,bool rotate,bool flat=false){dy::GrayFrame f{320,192,{}};f.pixels.resize(320*192);for(int y=0;y<192;y++)for(int x=0;x<320;x++){
bool left=paired&&x<160;float cx=paired?(left?80:240):160,cy=96,scale=1+step*(paired?(left?-.025f:.035f):.01f),angle=rotate?.01f*step:0,tx=step*(paired?(left?-1.5f:2.f):2.f),ty=step*(paired?(left?1.f:-.75f):1.f);
float a=(x-cx-tx)/scale,b=(y-cy-ty)/scale,u=(cx+a*std::cos(angle)+b*std::sin(angle))/4,v=(cy-a*std::sin(angle)+b*std::cos(angle))/4;f.pixels[y*320+x]=flat?.4f:texture(u,v);}return f;}
int main(){@autoreleasepool{NSMutableArray *results=[NSMutableArray array];bool all=true;auto begin=std::chrono::steady_clock::now();
for(int mode=0;mode<4;mode++){
bool paired=mode>=2,rotate=mode==1;float cx=paired?(mode==2?.25:.75):.5;dy::VisionRegionTracker tracker;
std::vector<dy::FlowPoint> polygon={{-.5,-.5},{.5,-.5},{.5,.5},{-.5,.5}};
if(mode==1)polygon={{-.45,-.5},{.5,-.5},{.5,0},{0,0},{0,.5},{-.45,.5}};
tracker.setMask(polygon);bool ok=tracker.reset(frame(0,paired,rotate),{cx,.5,paired?.32f:.65f,paired?.54f:.65f,0});dy::TrackResult r=tracker.result();
NSMutableArray *steps=[NSMutableArray array];for(int i=1;i<6&&ok;i++){r=tracker.track(frame(i,paired,rotate));ok&=r.valid;[steps addObject:@{@"i":@(i),@"cx":@(r.cx),@"cy":@(r.cy),@"sx":@(r.scaleX),@"sy":@(r.scaleY),@"angle":@(r.rotation),@"confidence":@(r.confidence),@"valid":@(r.valid),@"failure":@(int(r.failure))}];}
float expectedX=cx+5*(paired?(mode==2?-1.5f:2.f):2.f)/320,expectedY=.5+5*(paired?(mode==2?1.f:-.75f):1.f)/192,expectedScale=1+5*(paired?(mode==2?-.025f:.035f):.01f);
bool precise=ok&&std::abs(r.cx-expectedX)<.006&&std::abs(r.cy-expectedY)<.008&&std::abs(r.scaleX-expectedScale)<.04&&std::abs(r.scaleY-expectedScale)<.04&&(!rotate||std::abs(r.rotation-.05)<.02);
bool loss=ok&&!tracker.track(frame(6,paired,rotate,true)).valid;all&=precise&&loss;[results addObject:@{@"mode":@(mode),@"geometryPass":@(precise),@"flatLossPass":@(loss),@"steps":steps}];
}
auto report=@{@"pass":@(all),@"milliseconds":@(std::chrono::duration<double,std::milli>(std::chrono::steady_clock::now()-begin).count()),@"results":results};NSData *data=[NSJSONSerialization dataWithJSONObject:report options:NSJSONWritingPrettyPrinted error:nil];fwrite(data.bytes,1,data.length,stdout);return all?0:1;}}
+24
查看文件
@@ -32,6 +32,30 @@ int main(int argc,char **argv){@autoreleasepool{
NSDictionary *safe=DYBetaSafeFields(@{@"phase":@"end",@"frames":@"/Users/test/secret.mov",@"error_domain":@"token=secret",@"email":@"private@example.invalid",@"duration_ms":@(NAN)});
check([safe[@"frames"]isEqual:@"[REDACTED]"]&&[safe[@"error_domain"]isEqual:@"[REDACTED]"]&&!safe[@"email"]&&!safe[@"duration_ms"],@"privacy allowlist and redaction");
check(DYBetaSafeFields((id)@[]).count==0,@"bad fields do not crash");
NSDictionary *header=@{@"bundleID":@"com.dayu.color.XPC",@"app_version":@"1.10.0",@"build_version":@"72",@"timestamp":@"2026-11-05 10:00:00 +0800"};
NSDictionary *body=@{@"faultingThread":@0,@"pid":@123,@"exception":@{@"type":@"EXC_BAD_ACCESS",@"signal":@"SIGSEGV"},
@"termination":@{@"namespace":@"DYLD",@"code":@1,@"details":@[@"Library not loaded: /Users/private/movie.mov"]},
@"usedImages":@[@{@"name":@"大鱼调色 XPC Service",@"uuid":@"12345678-1234-4234-8234-123456789012",@"path":@"/Users/private/test.app"}],
@"threads":@[@{@"frames":@[@{@"imageIndex":@0,@"imageOffset":@456},@{@"symbol":@"DYRenderer",@"imageIndex":@0,@"imageOffset":@789}]}]};
NSDictionary *evidence=DYBetaCrashEvidence(header,body);
check([evidence[@"source_version"]isEqual:@"1.10.0"]&&[evidence[@"source_build"]isEqual:@"72"],@"crashed version independent from uploader");
check([evidence[@"frames"]containsString:@"456"]&&[evidence[@"frames"]containsString:@"12345678-1234-4234-8234-123456789012"],@"unsymbolicated frames preserve UUID and offset");
check([evidence[@"status"]isEqual:@"library_missing"]&&![[evidence description]containsString:@"private"],@"dyld classification without user paths");
check(DYBetaCrashEvidence(@{@"bundleID":@"com.apple.FinalCut"},body)==nil,@"no collection from unrelated host");
NSMutableDictionary *dev=[[body mutableCopy]autorelease];dev[@"threads"]=@[@{@"frames":@[@{@"symbol":@"DYRunDiagnostics"}]}];
check(DYBetaCrashEvidence(header,dev)==nil,@"development crashes excluded");
dev[@"threads"]=@[@{@"frames":@[@{@"symbol":@"__asan_report_load8"}]}];check(DYBetaCrashEvidence(header,dev)==nil,@"sanitizer crashes excluded");
check(DYBetaCrashEvidence((id)@[],(id)@[])==nil,@"malformed report safely rejected");
NSString *sample=@"Path: /Users/private/sample.app\nCall graph:\n 10 Thread_1 DispatchQueue_1: com.apple.main-thread\n + 10 _dispatch_semaphore_wait_slow (in libdispatch.dylib) + 4 [0x1234]\n + 10 private (in /Users/private/secret)\n 10 Thread_2\n + 10 DYRenderer (in 大鱼调色 XPC Service) + 32 [0x1234]\nBinary Images:\n/Users/private/media.mov";
NSString *sampleFrames=DYBetaSampleFrames(sample);
check([sampleFrames containsString:@"_dispatch_semaphore_wait_slow"]&&[sampleFrames containsString:@"DYRenderer"]&&![sampleFrames containsString:@"private"],@"sample extracts call graph only");
check(DYBetaSampleFrames(@"sampling denied").length==0,@"unavailable sampling stays explicit");
NSError *missing=[NSError errorWithDomain:NSCocoaErrorDomain code:260 userInfo:@{NSFilePathErrorKey:@"/Users/private/look.cube"}];
NSDictionary *errorFields=DYBetaErrorFields(missing,@"render_source");
check([errorFields[@"resource_kind"]isEqual:@"cube"]&&![[errorFields description]containsString:@"private"],@"missing LUT classified without filename");
double started=NSProcessInfo.processInfo.systemUptime;
for(int i=0;i<10000;i++)DYBetaSpanEnd(DYBetaSpanBegin(@"render",nil),nil);
check(NSProcessInfo.processInfo.systemUptime-started<1,@"disabled test process avoids per-frame work and transport");
if(argc==3){NSData *data=[NSData dataWithContentsOfFile:[NSString stringWithUTF8String:argv[2]]];NSDictionary *real=[NSJSONSerialization JSONObjectWithData:data options:0 error:nil];NSError *error=nil;
BOOL verified=[DYBetaUpdater validatePackage:[NSURL fileURLWithPath:[NSString stringWithUTF8String:argv[1]]] manifest:real error:&error];
if(!verified)fprintf(stderr,"%s\n",error.localizedDescription.UTF8String);check(verified,@"signed notarized full product package");
+49
查看文件
@@ -0,0 +1,49 @@
{
"passResult": true,
"articleID": 15792,
"url": "https://dayu.media/15792/",
"status": "publish",
"title": "大鱼调色 1.18.0 公测版|后台自动诊断与多目标马赛克",
"version": "1.18.0",
"build": 105,
"requestID": "dayu-color-1180-build105-article15792-20261106",
"payloadSHA256": "e4bd25d0833e956215d9fde951be0b45cfea8ac379bbc9e8e4e046795eea928a",
"changedResourceFields": [
"cao_downurl",
"cao_original_filename"
],
"featuredMedia": 15863,
"authorCategoriesTagsPreserved": true,
"commercialAndVideoFieldsPreserved": true,
"priceYuan": "50",
"memberRate": "0",
"fcpxSettingsPreserved": true,
"frontendChecks": [
{
"url": "https://dayu.media/15792/",
"http": 200,
"currentVersionVisible": true,
"seoSingleAndExact": true,
"oldImagesPreserved": true,
"paidPackageURLAbsent": true
},
{
"url": "https://dayu.media/15792/?release-check=1.18.0-105",
"http": 200,
"currentVersionVisible": true,
"seoSingleAndExact": true,
"oldImagesPreserved": true,
"paidPackageURLAbsent": true
}
],
"package": {
"downloadName": "大鱼调色-1.18.0.pkg",
"http": 200,
"bytes": 46620783,
"sha256": "4a52742a393ecaaa30f758d72c9e0ba68c606ed8e805316d48b9868068378a3f",
"downloadedTicketValidated": true,
"byteIdenticalToOfficialPKG": true
},
"purchaseFlow": "Saved main download URL fetched in full without placing an order.",
"filenameRequestID": "dayu-color-1180-build105-article15792-filename-20261106"
}
+49
查看文件
@@ -0,0 +1,49 @@
{
"passResult": true,
"articleID": 15792,
"url": "https://dayu.media/15792/",
"status": "publish",
"title": "大鱼调色 1.18.1 公测版|跟踪提速与后台自动诊断",
"version": "1.18.1",
"build": 106,
"requestID": "dayu-color-1181-build106-article15792-20261106",
"filenameRequestID": "dayu-color-1181-build106-article15792-filename-20261106",
"payloadSHA256": "b25f85dda3b6183c89474a91fe57c82a09999dbaa044c916f98f8f4cc3990a1d",
"changedResourceFields": [
"cao_downurl",
"cao_original_filename"
],
"featuredMedia": 15863,
"authorCategoriesTagsPreserved": true,
"commercialAndVideoFieldsPreserved": true,
"priceYuan": "50",
"memberRate": "0",
"fcpxSettingsPreserved": true,
"frontendChecks": [
{
"url": "https://dayu.media/15792/",
"http": 200,
"currentVersionVisible": true,
"seoSingleAndExact": true,
"oldImagesPreserved": true,
"paidPackageURLAbsent": true
},
{
"url": "https://dayu.media/15792/?release-check=1.18.1-106",
"http": 200,
"currentVersionVisible": true,
"seoSingleAndExact": true,
"oldImagesPreserved": true,
"paidPackageURLAbsent": true
}
],
"package": {
"http": 200,
"bytes": 46654687,
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"downloadedTicketValidated": true,
"byteIdenticalToOfficialPKG": true,
"downloadName": "大鱼调色-1.18.1.pkg"
},
"purchaseFlow": "Saved main download URL fetched in full without placing an order."
}
+5 -5
查看文件
@@ -1,10 +1,10 @@
{
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/mu-plugins/dayu-color-beta.php",
"sha256": "d2b73816e871765bc2f7d1604a1beda98b99e2d9ac4f62039de7bf3a81107593",
"backup": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/mu-plugins/dayu-color-beta-202611021738.phpbak",
"size": 14220,
"timestamp": "202611021738",
"sha256": "08c15754c07c09984f3ecc00cac802bcab2ef7dc1bf0bf6f4600af7e7294b8eb",
"backup": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/mu-plugins/dayu-color-beta-202611061649.phpbak",
"size": 15008,
"timestamp": "202611061649",
"mount": "//dayu@192.168.31.21/dayumedia%20%28%E5%AD%98%E5%82%A8%E7%A9%BA%E9%97%B41%29 on /Volumes/dayumedia (存储空间1) (smbfs, nodev, nosuid, mounted by mac)",
"localProject": "/Users/mac/Downloads/dayumedia/dayu-color-beta",
"sourceCommit": "e37330a4b5a1ad8c10a05fbc6cd3c37be87dc530"
"sourceCommit": "2b2a98d6658f7dc09f0b2c91a3c7bef9f7682a4f"
}
+10 -10
查看文件
@@ -1,6 +1,6 @@
{
"passed": true,
"checked_at": "2026-11-02T09:40:25.115993+00:00",
"checked_at": "2026-11-06T08:49:49.654581+00:00",
"checks": [
"update GET",
"product isolation",
@@ -9,21 +9,21 @@
"retry same UUID ACK",
"foreign upload denied"
],
"test_event_id": "fe84a41b-84a4-41f8-ba22-afd62655506e",
"test_installation_id": "c1f91498-dda9-4219-bb86-decaba573e18",
"test_event_id": "58c48897-fb01-4ad5-923e-b118d13d561b",
"test_installation_id": "9f2ba0ca-abca-4a8d-b229-c01312f35aa0",
"update": {
"bundle_id": "com.dayu.color",
"channel": "beta",
"version": "1.7.0",
"build": 45,
"version": "1.12.0",
"build": 79,
"package_type": "pkg",
"install_mode": "pkg_installer",
"size": 40898751,
"sha256": "a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb",
"download_url": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
"size": 45329742,
"sha256": "d4b557fec283f5e06f605bc6b1d99a0c8649f9d65e405eba452f525e8454cdfe",
"download_url": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-12-0-79.pkg",
"minimum_system_version": "14.6",
"notes": "公测版:接入自动更新与可关闭的云端诊断,记录插件加载耗时及错误摘要。请保存并退出 FCP / Motion 后安装。",
"notes": "1.12.0 公测版加入统一调色工作区、共享蒙版、最近使用 LUT 和四宫格示波器。画布工具移至左下角,改善检视器重开与片尾示波器加载。请保存项目并退出 Final Cut Pro 和 Motion 后安装。",
"update_available": true,
"checked_at": "2026-11-02T09:40:23+00:00"
"checked_at": "2026-11-06T08:49:47+00:00"
}
}
+27 -10
查看文件
@@ -1,16 +1,33 @@
{
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
"sha256": "a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb",
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-18-1-106.pkg",
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"backup": null,
"size": 40898751,
"size": 46654687,
"manifest": {
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/beta.json",
"sha256": "30c92debf91de7ab8215b35dc64a4ddb764e53450c327ae53fb41a4c2f7a26c0",
"backup": null,
"size": 558
"sha256": "93c8d1d4752a5271910b691df3fee4417432ecbe9da11e45c71c09d2c811fa4c",
"backup": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/beta-202611061819.jsonbak",
"size": 719
},
"version": "1.7.0",
"build": 45,
"downloadURL": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
"timestamp": "202611021740"
"version": "1.18.1",
"build": 106,
"downloadURL": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-18-1-106.pkg",
"timestamp": "202611061819",
"liveChecks": [
{
"currentBuild": 105,
"updateAvailable": true
},
{
"currentBuild": 106,
"updateAvailable": false
}
],
"downloadVerification": {
"http": 200,
"bytes": 46654687,
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"downloadedTicketValidated": true,
"byteIdenticalToOfficialPKG": true
}
}
+31
查看文件
@@ -0,0 +1,31 @@
{
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-18-0-105.pkg",
"sha256": "4a52742a393ecaaa30f758d72c9e0ba68c606ed8e805316d48b9868068378a3f",
"backup": null,
"size": 46620783,
"manifest": {
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/beta.json",
"sha256": "c4f1de672529eccbf78145b1e4c61f4e02354cdeec7f0041472f76c609a32268",
"backup": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/beta-202611061726.jsonbak",
"size": 666
},
"version": "1.18.0",
"build": 105,
"downloadURL": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-18-0-105.pkg",
"timestamp": "202611061726",
"httpManifestVerified": true,
"httpFullDownloadBytes": 46620783,
"httpFullDownloadSHA256": "4a52742a393ecaaa30f758d72c9e0ba68c606ed8e805316d48b9868068378a3f",
"updateAPIChecks": [
{
"currentBuild": 95,
"updateAvailable": true,
"offeredBuild": 105
},
{
"currentBuild": 105,
"updateAvailable": false,
"offeredBuild": 105
}
]
}
+33
查看文件
@@ -0,0 +1,33 @@
{
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-18-1-106.pkg",
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"backup": null,
"size": 46654687,
"manifest": {
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/beta.json",
"sha256": "93c8d1d4752a5271910b691df3fee4417432ecbe9da11e45c71c09d2c811fa4c",
"backup": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/beta-202611061819.jsonbak",
"size": 719
},
"version": "1.18.1",
"build": 106,
"downloadURL": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-18-1-106.pkg",
"timestamp": "202611061819",
"liveChecks": [
{
"currentBuild": 105,
"updateAvailable": true
},
{
"currentBuild": 106,
"updateAvailable": false
}
],
"downloadVerification": {
"http": 200,
"bytes": 46654687,
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"downloadedTicketValidated": true,
"byteIdenticalToOfficialPKG": true
}
}
+11 -10
查看文件
@@ -1,12 +1,13 @@
{
"status": "published-after-verified-download",
"releaseID": 399,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.17.0-unified-mosaic-20261106",
"tag": "v1.17.0-unified-mosaic-20261106",
"commit": "a458bbeb5397153a458706b0bfbb4e8692108a65",
"assetID": 43,
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.17.0-unified-mosaic-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.17.0.pkg",
"bytes": 46594729,
"sha256": "f372ee6a421f833c4619dcc4891ae66f90b56f40b431ee75529806bec762157e",
"publishedReport": "verification/Release.json"
"status": "draft-download-required",
"resolvedStatus": "published-and-both-assets-download-verified",
"finalRecord": "verification/Release1.18.1.json",
"releaseID": 402,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.18.1-tracking-ui-20261106",
"tag": "v1.18.1-tracking-ui-20261106",
"commit": "5fe4b1933e015a906fab36b65dcbc45a0d6bee49",
"assetID": 47,
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.18.1-tracking-ui-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.18.1.pkg",
"bytes": 46654687,
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2"
}
+70
查看文件
@@ -0,0 +1,70 @@
{
"status": "superseded-before-host-acceptance",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.19.0",
"build": "107",
"team": "B3W25FX5H5",
"notaryID": "fe333a3c-e024-47cb-b88a-c74336e2eb7f",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "dbab2ab0cc1efa263d11a35d9d60983ed9d2a247",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"installedTemplateSHA256": {
"大鱼调色/大鱼调色.moef": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "50e772b3670563ddce99fa2de63d87e5a14c81a8b7e37f15be32836c59ddafcb",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "3c2af55314cdc4457bb3300138caa4ed87b5e6d9ec8dc2d2e3ba208bbacfd1a8",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "4a6b336349974fb0395d5218aeb501095eab7d501236fd238f9916cbf2071a12",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "83990f9e58c8ce1a59e4e52c597bd16831af94c3be679c53e9283fb04dd42cef",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "d424258d579c049df95ce361cee5373b7dc7d5a4f21cff5b1dd24adcdbc19942",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "baf84ec3b719c3a369ef0760713ba44b203bbfd0821c7a8d68919fef57d58fda",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "b2737c1b39fa039ee7876f3b473943168a15da65459b00802262a931feca3674",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "9fe0319d878b8885d62e199bdea67d804e76f14104bcd233e33be22d60d1ad13",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "80894559be59396d6e06adc8d3343339cbf76f56bed12797446cbb568d6e10de",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "885c51e81f270078b6c05978a98e7d55ccafc7cd41035b0adbda068cb7149f2d",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "6a7de91a44cd22aa5689c9aad725dccc7e4a29b6dd4e69a4158da7d02f7e559b",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "175ed9f890adf13e712dec264068fffde11accf6dc2e33c3bb278c4438f68362",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "06f497fffbcee034cfbf21e7f39a4b10e41ad49cafd0476f4825903e9169521d",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "528835a129e158c9edf2b48d4a9521b2b9a40e845f04160eecd56e125473bbde",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "0a75525f6e2203527f20a2945aac1a262aa2db57683065ab0ca793da7f5ecd0a",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "1399d6906748b206b2673a1d8460f83d9ddda07722d2214d85a9909f24171c17",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "2f96cf158e6a274bce146b7a97141344c6e68e1185f7ac5df7991b0e854e2793",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-1430a23853ba4af19998a456211e8479.app",
"reason": "User requested replacing all tracking with Apple Vision, including ordinary masks, Bezier and clone stamp. Build 107 not published."
}
+23
查看文件
@@ -0,0 +1,23 @@
{
"version": "1.19.0",
"build": 107,
"compiledSource": "dbab2ab0cc1efa263d11a35d9d60983ed9d2a247",
"images": [
{
"name": "大鱼调色",
"uuid": "F952A83C-8229-3789-9945-3936C3C617B9",
"dSYM": "大鱼调色.app.dSYM"
},
{
"name": "大鱼调色 XPC Service",
"uuid": "23882794-4B37-3785-8A5C-588BF4C68CBF",
"dSYM": "大鱼调色 XPC Service.pluginkit.dSYM"
}
],
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/candidate107-symbols.zip",
"bytes": 3620218,
"sha256": "54df8d8494ff7de5b8e0dd87abbe216c11eedc8a16a37b3bdb415d68843ea18b",
"installedBinaryUUIDMatch": true,
"releaseUploaded": false,
"candidateOnly": true
}
+70
查看文件
@@ -0,0 +1,70 @@
{
"status": "rejected-host-ui-crash",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.19.0",
"build": "108",
"team": "B3W25FX5H5",
"notaryID": "98007b65-9453-4fd9-a1fd-7e8d223e4e0e",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "8af7013ad4d7e09d37d511a4c8a4ddb2a32c55f1",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"installedTemplateSHA256": {
"大鱼调色/大鱼调色.moef": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "50e772b3670563ddce99fa2de63d87e5a14c81a8b7e37f15be32836c59ddafcb",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "3c2af55314cdc4457bb3300138caa4ed87b5e6d9ec8dc2d2e3ba208bbacfd1a8",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "4a6b336349974fb0395d5218aeb501095eab7d501236fd238f9916cbf2071a12",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "83990f9e58c8ce1a59e4e52c597bd16831af94c3be679c53e9283fb04dd42cef",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "d424258d579c049df95ce361cee5373b7dc7d5a4f21cff5b1dd24adcdbc19942",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "baf84ec3b719c3a369ef0760713ba44b203bbfd0821c7a8d68919fef57d58fda",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "b2737c1b39fa039ee7876f3b473943168a15da65459b00802262a931feca3674",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "9fe0319d878b8885d62e199bdea67d804e76f14104bcd233e33be22d60d1ad13",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "80894559be59396d6e06adc8d3343339cbf76f56bed12797446cbb568d6e10de",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "885c51e81f270078b6c05978a98e7d55ccafc7cd41035b0adbda068cb7149f2d",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "6a7de91a44cd22aa5689c9aad725dccc7e4a29b6dd4e69a4158da7d02f7e559b",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "175ed9f890adf13e712dec264068fffde11accf6dc2e33c3bb278c4438f68362",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "06f497fffbcee034cfbf21e7f39a4b10e41ad49cafd0476f4825903e9169521d",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "528835a129e158c9edf2b48d4a9521b2b9a40e845f04160eecd56e125473bbde",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "0a75525f6e2203527f20a2945aac1a262aa2db57683065ab0ca793da7f5ecd0a",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "1399d6906748b206b2673a1d8460f83d9ddda07722d2214d85a9909f24171c17",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "2f96cf158e6a274bce146b7a97141344c6e68e1185f7ac5df7991b0e854e2793",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-3a5da074e12c4e069b2dfb7257319220.app",
"reason": "XPC EXC_BAD_ACCESS at parentChanged:, borrowed remote parent released before deferred main-queue geometry callback; not a Vision tracking crash. Not released."
}
+23
查看文件
@@ -0,0 +1,23 @@
{
"version": "1.19.0",
"build": 108,
"compiledSource": "8af7013ad4d7e09d37d511a4c8a4ddb2a32c55f1",
"images": [
{
"name": "大鱼调色",
"uuid": "F952A83C-8229-3789-9945-3936C3C617B9",
"dSYM": "大鱼调色.app.dSYM"
},
{
"name": "大鱼调色 XPC Service",
"uuid": "8481DB88-B8F3-38B9-A457-980A627B41DE",
"dSYM": "大鱼调色 XPC Service.pluginkit.dSYM"
}
],
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/candidate108-symbols.zip",
"bytes": 3471369,
"sha256": "de4e7f6bb4b6310a3d26f0b078a5353c48a4f6c917a22ed2118d6b92eedf3e15",
"installedBinaryUUIDMatch": true,
"releaseUploaded": false,
"candidateOnly": true
}
+29
查看文件
@@ -0,0 +1,29 @@
{
"pass": true,
"date": "2026-11-06",
"version": "1.17.1",
"build": "103",
"removed": [
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/task-1.17.1/recovery",
"/Volumes/备份/大鱼调色-1.17.1.pkg"
],
"generatedAlreadyRemoved": [
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/DerivedData/Build/Products/Release/大鱼调色.app",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/DerivedData/Build/Products/Release/大鱼调色 XPC Service.pluginkit",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/notarization-submission.zip"
],
"oldReplacementBackups": "absent",
"packageInputStaging": "absent",
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"knownTopLevelProductApps": [
"/Library/Plug-Ins/FxPlug/大鱼调色.app"
],
"preserved": [
"Current signed 1.17.1 release package",
"User historical packages",
"QA media and FCP library",
"Preexisting project.pbxproj diff",
"Task diagnostics and baseline patch"
],
"scope": "Known product installation/build paths and task-created recovery/download copies; not a whole-machine scan"
}
+29
查看文件
@@ -0,0 +1,29 @@
{
"passResult": true,
"removed": [
"/Library/Plug-Ins/FxPlug/.dayu-color-previous-45dca8475efb4d6cb133b14d45d8372b.app",
"/Users/mac/Downloads/大鱼调色-1.18.0.pkg",
"/Users/mac/Downloads/大鱼调色-1.18.0-symbols.zip",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/recovery-1.18.0-t7a2_vg1",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/diagnostic-sample-check.txt",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/task-poll-check.m",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/task-poll-check",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/candidate104-symbols.zip",
"/tmp/dayu-diagnostics-edit.py",
"/Users/mac/Downloads/dayumedia/dayu-color-beta/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-18-0-105.pkg"
],
"scope": "Current product cache, current project, standard installation folders, top-level Desktop/Downloads; no whole-disk claim.",
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"version": "1.18.0",
"build": 105,
"registryEntries": 1,
"generatedAppAndNotaryZipRemoved": true,
"temporarySampleFiles": 0,
"kept": [
"Current signed PKG and matching symbols ZIP",
"User historical releases",
"Source files and QA library",
"Published NAS package and scoped beta manifest; only local upload staging PKG removed"
],
"productLock": "released on exit"
}
+40
查看文件
@@ -0,0 +1,40 @@
{
"passResult": true,
"version": "1.18.1",
"build": 106,
"removed": [
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-real-4k-gray.raw",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-real-4k-25fps.raw",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-real-first.png",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-real-metal.json",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-real-metal-full.json",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-real-compact-full.json",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-real-baseline-full.json",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-metal-initial.json",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-metal-cropped.json",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/metal-opencv-tests.json",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/opencv-current-tests.json",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-baseline.cpp",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/benchmark-metal-tracking",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verify-metal-opencv",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verify-opencv-current",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/benchmark-real-metal",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/benchmark-real-baseline",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/prepare_article_1181.py",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verify_publication_1181.py",
"/Users/mac/Downloads/大鱼调色-1.18.1.pkg",
"/Users/mac/Downloads/大鱼调色-1.18.1-symbols.zip",
"/Users/mac/Downloads/dayumedia/dayu-color-beta/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-18-1-106.pkg"
],
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"registryEntries": 1,
"generatedAppAndNotaryZipRemoved": true,
"looseProductAppsInCheckedLocations": [],
"scope": "Current product cache/repository and standard installation folders, top-level Desktop/Downloads. No whole-disk claim.",
"kept": [
"Official PKG and matching symbols ZIP",
"Historical releases, source, QA library",
"Published NAS packages"
],
"productLock": "released"
}
+12 -6
查看文件
@@ -2,13 +2,13 @@
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.17.1",
"build": "103",
"version": "1.19.0",
"build": "109",
"team": "B3W25FX5H5",
"notaryID": "36ecb7e6-5cfc-4b85-8363-11272d880b18",
"notaryID": "b83655db-23a9-4312-91e4-bfd697143e44",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "3b4c612edf99c0ef2b972b7305cd7ba44244a7c6",
"sourceCommit": "867bcfbad3f566ced2170925e8eadd9414cc3b75",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"installedTemplateSHA256": {
@@ -64,6 +64,12 @@
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "443ef7e178a5bbd6418a4d2eaac5d42f023f1a6a0a5c4ddd54c7c831af50eb6a",
"hostVerification": "verification/HostInspectorMosaic1.17.1.json"
"shaderSHA256": "2f96cf158e6a274bce146b7a97141344c6e68e1185f7ac5df7991b0e854e2793",
"hostVerification": {
"report": "verification/HostVisionTracking1.19.0.json",
"pass": true,
"hostPID": 97776,
"pluginPID": 97806,
"workerMainThread": false
}
}
+75
查看文件
@@ -0,0 +1,75 @@
{
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.19.0",
"build": "109",
"team": "B3W25FX5H5",
"notaryID": "b83655db-23a9-4312-91e4-bfd697143e44",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "867bcfbad3f566ced2170925e8eadd9414cc3b75",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"installedTemplateSHA256": {
"大鱼调色/大鱼调色.moef": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "50e772b3670563ddce99fa2de63d87e5a14c81a8b7e37f15be32836c59ddafcb",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "3c2af55314cdc4457bb3300138caa4ed87b5e6d9ec8dc2d2e3ba208bbacfd1a8",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "4a6b336349974fb0395d5218aeb501095eab7d501236fd238f9916cbf2071a12",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "83990f9e58c8ce1a59e4e52c597bd16831af94c3be679c53e9283fb04dd42cef",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "d424258d579c049df95ce361cee5373b7dc7d5a4f21cff5b1dd24adcdbc19942",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "baf84ec3b719c3a369ef0760713ba44b203bbfd0821c7a8d68919fef57d58fda",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "b2737c1b39fa039ee7876f3b473943168a15da65459b00802262a931feca3674",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "9fe0319d878b8885d62e199bdea67d804e76f14104bcd233e33be22d60d1ad13",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "80894559be59396d6e06adc8d3343339cbf76f56bed12797446cbb568d6e10de",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "885c51e81f270078b6c05978a98e7d55ccafc7cd41035b0adbda068cb7149f2d",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "6a7de91a44cd22aa5689c9aad725dccc7e4a29b6dd4e69a4158da7d02f7e559b",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "175ed9f890adf13e712dec264068fffde11accf6dc2e33c3bb278c4438f68362",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "06f497fffbcee034cfbf21e7f39a4b10e41ad49cafd0476f4825903e9169521d",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "528835a129e158c9edf2b48d4a9521b2b9a40e845f04160eecd56e125473bbde",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "0a75525f6e2203527f20a2945aac1a262aa2db57683065ab0ca793da7f5ecd0a",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "1399d6906748b206b2673a1d8460f83d9ddda07722d2214d85a9909f24171c17",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "2f96cf158e6a274bce146b7a97141344c6e68e1185f7ac5df7991b0e854e2793",
"hostVerification": {
"report": "verification/HostVisionTracking1.19.0.json",
"pass": true,
"hostPID": 97776,
"pluginPID": 97806,
"workerMainThread": false
}
}
+69
查看文件
@@ -0,0 +1,69 @@
{
"status": "installed-awaiting-host-verification",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.18.0",
"build": "104",
"team": "B3W25FX5H5",
"notaryID": "d766ba9e-dcb5-462a-9497-83505e7dd239",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "e26a7c68e46bbd3f65f6052056d25a12f154123e",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"installedTemplateSHA256": {
"大鱼调色/大鱼调色.moef": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "50e772b3670563ddce99fa2de63d87e5a14c81a8b7e37f15be32836c59ddafcb",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "3c2af55314cdc4457bb3300138caa4ed87b5e6d9ec8dc2d2e3ba208bbacfd1a8",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "4a6b336349974fb0395d5218aeb501095eab7d501236fd238f9916cbf2071a12",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "83990f9e58c8ce1a59e4e52c597bd16831af94c3be679c53e9283fb04dd42cef",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "d424258d579c049df95ce361cee5373b7dc7d5a4f21cff5b1dd24adcdbc19942",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "baf84ec3b719c3a369ef0760713ba44b203bbfd0821c7a8d68919fef57d58fda",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "b2737c1b39fa039ee7876f3b473943168a15da65459b00802262a931feca3674",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "9fe0319d878b8885d62e199bdea67d804e76f14104bcd233e33be22d60d1ad13",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "80894559be59396d6e06adc8d3343339cbf76f56bed12797446cbb568d6e10de",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "885c51e81f270078b6c05978a98e7d55ccafc7cd41035b0adbda068cb7149f2d",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "6a7de91a44cd22aa5689c9aad725dccc7e4a29b6dd4e69a4158da7d02f7e559b",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "175ed9f890adf13e712dec264068fffde11accf6dc2e33c3bb278c4438f68362",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "06f497fffbcee034cfbf21e7f39a4b10e41ad49cafd0476f4825903e9169521d",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "528835a129e158c9edf2b48d4a9521b2b9a40e845f04160eecd56e125473bbde",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "0a75525f6e2203527f20a2945aac1a262aa2db57683065ab0ca793da7f5ecd0a",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "1399d6906748b206b2673a1d8460f83d9ddda07722d2214d85a9909f24171c17",
"CST 色彩空间转换/large.png": "816db272970491181aca4b872f09ca1900ebf0e7f21fee5bd6e2b4daedea5306",
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"shaderSHA256": "443ef7e178a5bbd6418a4d2eaac5d42f023f1a6a0a5c4ddd54c7c831af50eb6a",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-45dca8475efb4d6cb133b14d45d8372b.app"
}
+88
查看文件
@@ -0,0 +1,88 @@
{
"version": "1.18.0",
"build": 105,
"offlineClientChecks": 75,
"backendContractChecks": 27,
"appSyntax": "passed",
"productionBaselineSHA256": "d2b73816e871765bc2f7d1604a1beda98b99e2d9ac4f62039de7bf3a81107593",
"scope": [
"crash original version/build",
"unsymbolicated UUID and offset",
"development crash exclusion",
"sample stack-only privacy",
"resource category without filename",
"new server allowlist"
],
"formalRuntimeValidation": {
"hangProbe": {
"pass": true,
"occurredUTC": "2026-11-06 09:17:01",
"deliveredUTC": "2026-11-06 09:17:02",
"phase": "verification",
"sample_status": "captured",
"verifiedFrames": [
"-[AppDelegate runDiagnosticsProbe] AppDelegate.m:163",
"+[NSThread sleepForTimeInterval:]",
"nanosleep",
"__semwait_signal"
],
"duration": "Intentional 12-second wrapper-only main-thread stall; host untouched",
"rawSampleFile": "Removed after extraction; only stack summary sent"
},
"ordinaryBackgroundRun": {
"pass": true,
"closedWindowLocal": "around 17:19:43",
"continuedDeliveryUTC": [
"09:20:42",
"09:21:45"
],
"sameProcess": true,
"probeArgumentAbsent": true,
"mainIdleResourceSample": {
"memoryMB": 96.8125,
"cpuPercent": 0.0006506293332152795,
"threads": 5
},
"scope": "Short local observation, not long-duration soak test"
},
"diagnosticToggle": {
"pass": true,
"disabledWindowLocal": "17:17:47–17:19 (over 60 seconds)",
"latestCloudEventBeforeReenableUTC": "09:17:36",
"localJournalEventsWhileDisabled": 0,
"UI": "queue cleared, send button disabled; original enabled setting restored",
"pluginAtStartup": "no events emitted while disabled"
},
"host105": {
"pass": true,
"host": "Final Cut Pro 12.4",
"pluginDisplayVersion": "1.18.0",
"installedExecutable": "/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service",
"playback": "Existing 11.4-second clip played to end; no new host crash observed",
"renderInput": [
3840,
2160
],
"renderSummary": {
"count": 28,
"averageMS": 601.407418150172,
"maxMS": 1716.7992916656658
},
"pluginStateSummary": {
"count": 41,
"averageMS": 4.306948178720365,
"maxMS": 8.675583347212523
},
"finding": "Slow source rendering observed; not a frame-rate benchmark or a completed performance fix. No footage or filenames stored."
}
},
"candidate104": {
"hostPlayback": "passed",
"performanceSummary": "render/plugin_state/inspector_refresh reached cloud",
"hangProbe": "timeout_or_disabled; not accepted for release",
"correction": "sample before symbolication, 30-second background deadline"
},
"installedNativeChecks": 961,
"actualCompiledSource": "d0187695581fa3a8fe5c3cfa8a1bc6337425f5f6",
"pass": true
}
+10
查看文件
@@ -0,0 +1,10 @@
{
"pass": true,
"releaseID": 400,
"assetID": 44,
"url": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.17.1-inspector-mosaic-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.17.1.pkg",
"downloadPath": "/Volumes/备份/大鱼调色-1.17.1.pkg",
"bytes": 46600407,
"sha256": "5c1240d9f262c977495016cd9c19bd55cc0e374fcf9f99128e8cb2231309d710",
"method": "Authenticated Edge draft asset download; completed UI download and independent file SHA-256; staple validate passed"
}
+24
查看文件
@@ -0,0 +1,24 @@
{
"version": "1.18.1",
"build": 106,
"compiledSource": "1cc7f8edb2acb3cfc62bd72447c2956ad7a01601",
"installedPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"host": "Final Cut Pro",
"qaProject": "1.18.1 追踪与界面验收",
"originalProjectPreserved": true,
"checks": {
"installedNativeSelfTest": 964,
"uiVersion": "1.18.1",
"forwardTrackingCompletedFrames": 285,
"secondHeadROICompletedFrames": 285,
"workspaceModuleSwitch": true,
"exposureChangeAndReset": true,
"maskEditAndClearOnDuplicate": true,
"scrollInputAccepted": true
},
"limitations": [
"No end-to-end timing or UI latency percentile measured.",
"Head mask drifts during turn despite completion. Baseline and optimized algorithm produce identical trajectories on caller-decoded clip; no accuracy improvement claim.",
"APP installed and verified by formal delivery workflow; PKG installer not rerun."
]
}
@@ -0,0 +1,38 @@
{
"version": "1.19.0",
"build": 109,
"sourceCommit": "867bcfbad3f566ced2170925e8eadd9414cc3b75",
"verifiedAt": "2026-11-06T20:04:14.694581+08:00",
"formalInstall": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"host": "Final Cut Pro 12.4",
"hostPID": 97776,
"pluginPID": 97806,
"project": "1.19.0 Vision 全跟踪验收",
"checks": {
"panelOpenCloseReopen": true,
"mosaicMenuSelection": true,
"objectTrackingFrames": 285,
"objectTrackingCompletion": "正向跟踪完成 · 285 个轨迹键",
"previewEndHeadCovered": true,
"renderedMosaicCoveredAt": [
"00:00:00:00",
"00:00:06:00",
"00:00:11:09"
],
"moduleSwitchAndExposureEditReset": true,
"ordinaryMaskReverseSingleFrame": true,
"ordinaryTrackingUndoRestored": true,
"mosaicRestoredAfterQA": true,
"newCrashReportsDuring109QA": false
},
"workerEvidence": [
"2026-11-06 20:01:38.309 [97806] dayu_object_track_worker main=0",
"2026-11-06 20:03:28.895 [97806] dayu_vision_region_worker main=0 stamp=0"
],
"limitations": [
"One local real clip, not a universal tracking accuracy guarantee.",
"Module switch was requested after starting tracking; completed by the state observation. No measured UI latency claim.",
"Real host ordinary mask single-frame check; independent stamp/rotation/scale covered by native and synthetic registration tests, not a new full real-stamp clip.",
"No new host export performed this round; actual timeline rendered mosaic checked at three positions."
]
}
+97 -23
查看文件
@@ -1,6 +1,6 @@
{
"bundlePath": "/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit",
"checks": 961,
"checks": 979,
"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/C56E653E-BD84-4D1E-8346-229140D4F472"
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E7F4DE8F-CB6B-4629-8C34-20B0ED00CD4B"
},
{
"descriptors": 285,
@@ -898,7 +898,7 @@
"error": "未提供错误信息",
"name": "renderer-export-33cube",
"pass": true,
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/C56E653E-BD84-4D1E-8346-229140D4F472/diagnostic-export.cube"
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E7F4DE8F-CB6B-4629-8C34-20B0ED00CD4B/diagnostic-export.cube"
},
{
"bytes": 1186074,
@@ -918,7 +918,7 @@
},
{
"heartbeats": 1,
"maximumGapMS": 86.95504162460566,
"maximumGapMS": 86.35029167635366,
"name": "external-activation-main-loop-responsive",
"pass": true
},
@@ -968,6 +968,14 @@
"name": "instance-proxy-batches-multiple-fields-without-clobber",
"pass": true
},
{
"name": "layer-snapshot-read-after-write-in-one-action",
"pass": true
},
{
"name": "layer-snapshot-next-action-sees-external-edit",
"pass": true
},
{
"name": "two-native-hsl-panels-with-mask-and-repeat-buttons",
"pass": true
@@ -1365,6 +1373,14 @@
"name": "scope-trimmed-input-end-preserves-native-time-origin",
"pass": true
},
{
"name": "workspace-owns-remote-parent-through-deferred-geometry",
"pass": true
},
{
"name": "workspace-releases-owned-remote-parent-on-close",
"pass": true
},
{
"name": "workspace-remote-attaches-within-host-permissions",
"pass": true
@@ -1389,7 +1405,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/C56E653E-BD84-4D1E-8346-229140D4F472/workspace-topbar.png",
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E7F4DE8F-CB6B-4629-8C34-20B0ED00CD4B/workspace-topbar.png",
"toolbarPixels": 3867
},
{
@@ -1460,7 +1476,7 @@
},
{
"name": "workspace-independent-style-fixture-inserted",
"node": "46D9AE5A-65F4-42B7-9DEA-627A58B5B8B7",
"node": "532E3490-5625-47B9-B4EA-B2CF331F755F",
"pass": true,
"validDocument": true
},
@@ -1469,10 +1485,10 @@
"error": "none",
"name": "workspace-independent-style1-writes-target-node-inside-undo",
"nodePaths": {
"look0": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/C56E653E-BD84-4D1E-8346-229140D4F472/node.cube"
"look0": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E7F4DE8F-CB6B-4629-8C34-20B0ED00CD4B/node.cube"
},
"pass": true,
"rootStyle1": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/C56E653E-BD84-4D1E-8346-229140D4F472/user-new.cube",
"rootStyle1": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E7F4DE8F-CB6B-4629-8C34-20B0ED00CD4B/user-new.cube",
"undoStartsAfter": 3,
"undoStartsBefore": 2,
"written": true
@@ -2649,11 +2665,11 @@
"pass": true
},
{
"centerX": 0.5312498807907104,
"centerY": 0.5260412096977234,
"centerX": 0.5312896966934204,
"centerY": 0.5259557962417603,
"error": "未提供错误信息",
"keyCount": 6,
"name": "host-callback-opencv-tracking-six-exact-frames",
"name": "host-callback-vision-tracking-six-exact-frames",
"pass": true
},
{
@@ -2741,11 +2757,17 @@
},
{
"height": 2160,
"maximumError": 7.175931748815145e-08,
"name": "tracking-4k-frame-preserves-full-detail-for-opencv",
"maximumError": 1.2154672712760828e-08,
"name": "tracking-4k-frame-preserves-full-detail-for-vision-crops",
"pass": true,
"width": 3840
},
{
"name": "tracking-metal-gray8-compact-readback-matches-float-reference",
"pass": true,
"previousReadbackBytes": 33177600,
"readbackBytes": 8294400
},
{
"name": "shared-tracking-same-mask-switches-global-hsl-spider-without-interruption",
"pass": true
@@ -2768,22 +2790,22 @@
"name": "host-clone-stamp-follows-two-independent-centers-and-scales",
"pass": true,
"source": [
0.2265399992465973,
0.5261463522911072,
0.22615592181682587,
0.5250586271286011,
0.32,
0.54
],
"sourceScale": [
0.8747966289520264,
0.8752831220626831
0.8688927292823792,
0.8701240420341492
],
"target": [
0.7812566161155701,
0.48039546608924866
0.7819527387619019,
0.48027750849723816
],
"targetScale": [
1.1745620965957642,
1.1744060516357422
1.1635152101516724,
1.1687051057815552
]
},
{
@@ -2794,6 +2816,58 @@
"name": "host-clone-stamp-source-loss-stops-both-tracks-at-last-paired-frame",
"pass": true
},
{
"name": "mosaic-selected-mask-uses-object-tracking",
"pass": true
},
{
"name": "bezier-mosaic-uses-vision-object-tracking",
"pass": true
},
{
"name": "disabled-mosaic-uses-precise-vision-registration",
"pass": true
},
{
"name": "mosaic-object-host-callbacks-produce-six-frames",
"pass": true
},
{
"name": "object-tracking-discards-unconfirmed-tail-before-commit",
"pass": true
},
{
"name": "object-short-loss-predicts-prior-motion",
"pass": true
},
{
"name": "object-reacquisition-requires-two-consistent-observations",
"pass": true
},
{
"name": "object-motion-rejects-distant-distractor",
"pass": true
},
{
"name": "object-long-loss-stops-bounded-prediction",
"pass": true
},
{
"name": "object-invalid-fps-does-not-enable-prediction",
"pass": true
},
{
"name": "object-gap-repair-uses-both-endpoints-in-reverse-order",
"pass": true
},
{
"name": "object-gap-repair-rejects-missing-confirmed-anchor",
"pass": true
},
{
"name": "object-gap-repair-never-overwrites-manual-key",
"pass": true
},
{
"name": "canvas-cold-load-selects-saved-mask-from-immutable-snapshot",
"pass": true
@@ -4414,7 +4488,7 @@
{
"name": "viewer-real-osc-draws-minimal-curve-on-clear-canvas",
"pass": true,
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/C56E653E-BD84-4D1E-8346-229140D4F472/viewer-workspace.png"
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E7F4DE8F-CB6B-4629-8C34-20B0ED00CD4B/viewer-workspace.png"
},
{
"name": "canvas-hsl-plot-captures-outside-and-commits-one-undo",
@@ -4813,6 +4887,6 @@
"pass": true
}
],
"runtimePath": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/C56E653E-BD84-4D1E-8346-229140D4F472",
"runtimePath": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E7F4DE8F-CB6B-4629-8C34-20B0ED00CD4B",
"scope": "Native model and renderer integration with real Metal/IOSurface textures and fake FxPlug host selectors; no GUI or live host document."
}
+51
查看文件
@@ -0,0 +1,51 @@
{
"date": "2026-11-06",
"timezone": "Asia/Shanghai",
"recentUserReport": "User saw host disappear and then agreed it likely corresponded to our normal quit.",
"systemEvidence": [
{
"time": "16:48:30",
"pid": 77285,
"termination": [
0,
0,
0
]
},
{
"time": "17:03:55",
"pid": 83505,
"termination": [
0,
0,
0
]
},
{
"time": "17:06:52",
"pid": 83858,
"termination": [
0,
0,
0
]
}
],
"newCrashReport": false,
"conclusion": "Recent observed exits match the normal Cmd-Q verification actions; do not count as crashes.",
"olderCrash": {
"captureTime": "2026-11-06 10:30:52 +0800",
"host": "Final Cut Pro 12.4 (454072)",
"exception": "EXC_CRASH / SIGABRT",
"faultingThread": 20,
"frames": [
"pcAbortImpl",
"-[POOnScreenControl renderWithDrawProperties:]",
"-[FFProOSC drawRect:toContext:drawProperties:]",
"-[FFPlayerVideoModule drawOSCsAtTime:inRect:drawDestination:drawProperties:isDisplaying:]"
],
"mainThread": "-[FFInspectorModuleChannels _setupChannelInspector:] / _filtersChangedFinal removes NSScrollView",
"scope": "Host screen-control rendering aborted while inspector was rebuilding. No Dayu frames in the host report; insufficient to attribute to a specific plugin. Predates this diagnostic change."
},
"rawReport": "Kept only in system DiagnosticReports/Retired; not uploaded or committed."
}
@@ -0,0 +1,225 @@
{
"scope": "Identical synthetic full-resolution CPU/Metal comparison. Candidate not installed.",
"initial": {
"cases": [
{
"width": 640,
"height": 480,
"roi": 0.12,
"frames": 12,
"cpuMs": 30.007459,
"metalMs": 32.543915,
"cpuErrorPx": 0.014766356,
"metalErrorPx": 0.015058941,
"differencePx": 0.001211279,
"pass": true
},
{
"width": 640,
"height": 480,
"roi": 0.69999999,
"frames": 12,
"cpuMs": 69.944751,
"metalMs": 65.5695,
"cpuErrorPx": 0.0059646107,
"metalErrorPx": 0.0061500019,
"differencePx": 0.00032044025,
"pass": true
},
{
"width": 1920,
"height": 1080,
"roi": 0.12,
"frames": 12,
"cpuMs": 158.51942,
"metalMs": 157.27908,
"cpuErrorPx": 0.010653597,
"metalErrorPx": 0.010528938,
"differencePx": 0.00073837814,
"pass": true
},
{
"width": 1920,
"height": 1080,
"roi": 0.69999999,
"frames": 12,
"cpuMs": 189.76521,
"metalMs": 197.53042,
"cpuErrorPx": 0.0044298672,
"metalErrorPx": 0.0043980019,
"differencePx": 0.00028177808,
"pass": true
},
{
"width": 3840,
"height": 2160,
"roi": 0.12,
"frames": 12,
"cpuMs": 523.4585,
"metalMs": 481.38763,
"cpuErrorPx": 0.0058081044,
"metalErrorPx": 0.0058169868,
"differencePx": 0.00047552405,
"pass": true
},
{
"width": 3840,
"height": 2160,
"roi": 0.69999999,
"frames": 12,
"cpuMs": 626.79046,
"metalMs": 593.42783,
"cpuErrorPx": 0.00352694,
"metalErrorPx": 0.00352694,
"differencePx": 0.00034451278,
"pass": true
}
],
"pass": true
},
"cropped": {
"cases": [
{
"width": 640,
"height": 480,
"roi": 0.12,
"frames": 12,
"cpuMs": 17.140793,
"metalMs": 23.460209,
"cpuErrorPx": 0.014766356,
"metalErrorPx": 0.015058941,
"differencePx": 0.001211279,
"pass": true
},
{
"width": 640,
"height": 480,
"roi": 0.69999999,
"frames": 12,
"cpuMs": 63.894127,
"metalMs": 65.146207,
"cpuErrorPx": 0.0059646107,
"metalErrorPx": 0.0061500019,
"differencePx": 0.00032044025,
"pass": true
},
{
"width": 1920,
"height": 1080,
"roi": 0.12,
"frames": 12,
"cpuMs": 69.389456,
"metalMs": 63.493252,
"cpuErrorPx": 0.010653597,
"metalErrorPx": 0.010528938,
"differencePx": 0.00073837814,
"pass": true
},
{
"width": 1920,
"height": 1080,
"roi": 0.69999999,
"frames": 12,
"cpuMs": 156.90271,
"metalMs": 159.282,
"cpuErrorPx": 0.0044298672,
"metalErrorPx": 0.0043980019,
"differencePx": 0.00028177808,
"pass": true
},
{
"width": 3840,
"height": 2160,
"roi": 0.12,
"frames": 12,
"cpuMs": 186.95491,
"metalMs": 161.89333,
"cpuErrorPx": 0.0058081044,
"metalErrorPx": 0.0058169868,
"differencePx": 0.00047552405,
"pass": true
},
{
"width": 3840,
"height": 2160,
"roi": 0.69999999,
"frames": 12,
"cpuMs": 553.42904,
"metalMs": 426.87983,
"cpuErrorPx": 0.00352694,
"metalErrorPx": 0.00352694,
"differencePx": 0.00034451278,
"pass": true
}
],
"pass": true
},
"metalRegression": {
"version": "4.5.1",
"checks": [
{
"name": "pinned-public-opencv-version",
"pass": true,
"error": 0
},
{
"name": "300-feature-capacity",
"pass": true,
"error": 300
},
{
"name": "translation-rotation-independent-xy-scale",
"pass": true,
"error": 0.00257472
},
{
"name": "free-path-outside-creation-box-12-frame-subpixel",
"pass": true,
"error": 0.014958
},
{
"name": "periodic-redetection-keeps-static-position",
"pass": true,
"error": 0
},
{
"name": "unrelated-cut-stops-with-last-trusted-position",
"pass": true,
"error": 0
},
{
"name": "flat-mask-rejected",
"pass": true,
"error": 0
},
{
"name": "moving-majority-prefers-subject-over-static-background",
"pass": true,
"error": 0.0010376
},
{
"name": "independent-tracker-objects-do-not-share-motion",
"pass": true,
"error": 0
},
{
"name": "invalid-frame-preserves-authored-geometry",
"pass": true,
"error": 0
},
{
"name": "nonfinite-source-rejected",
"pass": true,
"error": 0
},
{
"name": "4k-complete-source-frame",
"pass": true,
"error": 0.000107325
}
],
"pass": true,
"count": 12,
"runtimeTargetAppUsed": false
}
}
@@ -0,0 +1,92 @@
{
"date": "2026-11-06",
"productCandidate": "1.19.0 (107)",
"input": {
"size": [
640,
360
],
"fps": 25,
"frames": 285,
"media": "local-only; not uploaded"
},
"scope": "Algorithm-only CLI, includes initialization, excludes decoding, host/UI/rendering; one real clip and synthetic occlusions; not a universal accuracy ranking",
"results": {
"object": {
"maximumMs": 143.29075,
"milliseconds": 398.43138,
"attemptedFrames": 285,
"predictedFrames": 0,
"invalidFrames": 0
},
"csrt": {
"algorithm": "csrt",
"opencv": "4.11.0",
"threads": 2,
"milliseconds": 1622.3796229999848,
"attemptedFrames": 285,
"predictedFrames": 0,
"invalidFrames": 0
},
"vit": {
"algorithm": "vit",
"opencv": "4.11.0",
"threads": 2,
"milliseconds": 779.8291599999997,
"attemptedFrames": 285,
"predictedFrames": 0,
"invalidFrames": 0
},
"object-occlusion": {
"maximumMs": 53.167667,
"milliseconds": 325.51462799999996,
"attemptedFrames": 285,
"predictedFrames": 11,
"invalidFrames": 0
},
"csrt-occlusion": {
"algorithm": "csrt",
"opencv": "4.11.0",
"threads": 2,
"milliseconds": 1669.4421300000015,
"attemptedFrames": 285,
"predictedFrames": 0,
"invalidFrames": 0
},
"vit-occlusion": {
"algorithm": "vit",
"opencv": "4.11.0",
"threads": 2,
"milliseconds": 783.9419580000007,
"attemptedFrames": 285,
"predictedFrames": 0,
"invalidFrames": 10
},
"object-long": {
"maximumMs": 95.583792,
"milliseconds": 263.44187500000004,
"attemptedFrames": 151,
"predictedFrames": 20,
"invalidFrames": 1
},
"object-cut": {
"maximumMs": 56.445167,
"milliseconds": 225.25990700000003,
"attemptedFrames": 151,
"predictedFrames": 20,
"invalidFrames": 1
},
"object-reverse": {
"maximumMs": 50.584,
"milliseconds": 319.07913499999984,
"attemptedFrames": 285,
"predictedFrames": 0,
"invalidFrames": 0
}
},
"visualConclusion": {
"csrt": "turn shrinks toward forehead; after artificial occlusion locks clothing",
"vit": "position and scale drift despite loss score",
"object": "turn stays on head; short gap reacquired, long gap/cut stop"
}
}
+39 -17
查看文件
@@ -1,7 +1,7 @@
{
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.17.1.pkg",
"sha256": "5c1240d9f262c977495016cd9c19bd55cc0e374fcf9f99128e8cb2231309d710",
"bytes": 46600407,
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.19.0.pkg",
"sha256": "0287d9e153463059730e99aade32a8b24cac19312e00d2450aa3c0819ae44745",
"bytes": 44486766,
"testUnsigned": false,
"installationExecuted": false,
"checks": [
@@ -31,28 +31,44 @@
"source": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"payload": "Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.17.1",
"build": "103"
"version": "1.19.0",
"build": "109"
},
{
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs-nf5zk7ii/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.11872d63-c02b-4e61-932f-b4f5ce5da14d/663E69E0-6C24-4560-9502-0086DA22CC8F/大鱼调色"
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs-n9y6tva7/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.eedd4f1f-face-4f7b-bcfc-f7f3eef8e5d1/6CFC97CA-0062-470D-9808-89A44226A7A5/大鱼调色"
}
],
"signature": "Package \"大鱼调色-1.17.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-06 08:12:29 +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.17.1.pkg: accepted\nsource=Notarized Developer ID",
"signature": "Package \"大鱼调色-1.19.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-06 12:04:22 +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.19.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": {
"name": "大鱼调色-1.17.1.pkg",
"status": "Accepted",
"id": "8e122236-9ca6-4d92-ad6a-b9c2411280e7",
"createdDate": "2026-11-06T12:04:24.225Z",
"name": "大鱼调色-1.19.0.pkg",
"message": "Successfully received submission info",
"createdDate": "2026-11-06T08:12:30.949Z"
"status": "Accepted",
"id": "99abefcb-c1cb-4aff-8b85-8109eab00df9"
},
"appCompiledSource": "3b4c612edf99c0ef2b972b7305cd7ba44244a7c6",
"appBuild": "103",
"appCompiledSource": "867bcfbad3f566ced2170925e8eadd9414cc3b75",
"appBuild": "109",
"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": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
@@ -108,9 +124,15 @@
"CST 色彩空间转换/small.png": "677353684eeaa1986bd21580eb0f2dcf4486f8cfba3985686c2ecb67afed5dbc"
},
"payloadBundleAccess": {
"entries": 198,
"entries": 192,
"scope": "Read/traverse modes for installer-owned app entries, from the package BOM"
},
"installedAppHostAcceptance": "verification/HostInspectorMosaic1.17.1.json",
"installedAppHostAcceptance": {
"report": "verification/HostVisionTracking1.19.0.json",
"pass": true,
"hostPID": 97776,
"pluginPID": 97806,
"workerMainThread": false
},
"installScope": "本轮仅生成并验包,未再次执行系统安装;正式 APP 已有独立宿主验收。"
}
+138
查看文件
@@ -0,0 +1,138 @@
{
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.19.0.pkg",
"sha256": "0287d9e153463059730e99aade32a8b24cac19312e00d2450aa3c0819ae44745",
"bytes": 44486766,
"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.19.0",
"build": "109"
},
{
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs-n9y6tva7/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.eedd4f1f-face-4f7b-bcfc-f7f3eef8e5d1/6CFC97CA-0062-470D-9808-89A44226A7A5/大鱼调色"
}
],
"signature": "Package \"大鱼调色-1.19.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-06 12:04:22 +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.19.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-06T12:04:24.225Z",
"name": "大鱼调色-1.19.0.pkg",
"message": "Successfully received submission info",
"status": "Accepted",
"id": "99abefcb-c1cb-4aff-8b85-8109eab00df9"
},
"appCompiledSource": "867bcfbad3f566ced2170925e8eadd9414cc3b75",
"appBuild": "109",
"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": "eaf60224f8d970f8841a03fe0325adc4af73d1c017375b020bcc0e256f0cd803",
"大鱼调色/large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"大鱼调色/small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a",
"一级调色/一级调色.moef": "50e772b3670563ddce99fa2de63d87e5a14c81a8b7e37f15be32836c59ddafcb",
"一级调色/large.png": "b9b990a46f3fd9b6974a1aba1a3e9bff11a287fd1615d4cd0f9e7393c302631b",
"一级调色/small.png": "77b36c042fb82219651e5bd22c1057b644c06a528a8962d4afecdcb8cab52635",
"蜘蛛盘校色仪/蜘蛛盘校色仪.moef": "3c2af55314cdc4457bb3300138caa4ed87b5e6d9ec8dc2d2e3ba208bbacfd1a8",
"蜘蛛盘校色仪/large.png": "52de21d5fc598fda331cd472b937cf4aaf69a09c80d49e7b168ac7804e9cd040",
"蜘蛛盘校色仪/small.png": "ea9b69d12948c5cd5f6acd9d000822d9fff6df3beec9dd278077a8ab66d455cd",
"基础调整/基础调整.moef": "4a6b336349974fb0395d5218aeb501095eab7d501236fd238f9916cbf2071a12",
"基础调整/large.png": "a25e2b5ed50628ebe77220719528d14f21c25b5eecf37a5d60f211d2179ece43",
"基础调整/small.png": "3da91ae3461b882f5e1a557b4191d9aedaa6d329da70999eb7f26cbfb63a057f",
"肤色保护/肤色保护.moef": "83990f9e58c8ce1a59e4e52c597bd16831af94c3be679c53e9283fb04dd42cef",
"肤色保护/large.png": "f124e8f3d93c2be76ba26ba06d8b9c0b42e2c10dcb6300ae6ee7b7d7c7eb3025",
"肤色保护/small.png": "51fe525e67903101920a994d3540f368780d3aa9c0e54ebdb847871c82d81562",
"风格 LUT/风格 LUT.moef": "d424258d579c049df95ce361cee5373b7dc7d5a4f21cff5b1dd24adcdbc19942",
"风格 LUT/large.png": "a9a4b48885752282535ec3ec2ffbe19bcd27af7132337e4a4ad3d104a2082692",
"风格 LUT/small.png": "9ae76ba957b1e94a5a03a600140f59e98861917d13da9124082810c509400e36",
"HSL/HSL.moef": "baf84ec3b719c3a369ef0760713ba44b203bbfd0821c7a8d68919fef57d58fda",
"HSL/large.png": "eaa2e7b025dc59416fddb8de8b9c56f0a7d34ba70facd7aa45cfb84660f7da78",
"HSL/small.png": "3a54428bc6821e75935aa1be0f149aac6e6ce05fcc059b7f0e90ceef9a41981e",
"曲线/曲线.moef": "b2737c1b39fa039ee7876f3b473943168a15da65459b00802262a931feca3674",
"曲线/large.png": "273899eb6aa60fc0f7c8d41cc0e1f5a15b4c88a8803c00020a085ea874160870",
"曲线/small.png": "c17a2343b076650344b1c53ce92acf32f7696d66e32bda2d156996d4e3b834f5",
"颜色分级/颜色分级.moef": "9fe0319d878b8885d62e199bdea67d804e76f14104bcd233e33be22d60d1ad13",
"颜色分级/large.png": "f9afe6c3a76080a2a7c7ea98f24e62a74ab2e6fd8b4ad16ba9eb6065fef5d2ed",
"颜色分级/small.png": "9e9d7759f829d25a01a77422c989949b02ad34de81013f6b91505c4a3d1397e9",
"三原色/三原色.moef": "80894559be59396d6e06adc8d3343339cbf76f56bed12797446cbb568d6e10de",
"三原色/large.png": "bf7bfc893e294fc38c0f97e5594b6ba6e5c7126b9aae643754c89647e8bd5a1f",
"三原色/small.png": "2e28988e6bae0503edadef22cf7793ce51a1b8e5930623b2eff3c01212e57ee8",
"色阶/色阶.moef": "885c51e81f270078b6c05978a98e7d55ccafc7cd41035b0adbda068cb7149f2d",
"色阶/large.png": "fcea12f4367039ea1512d2e23d51b9ca5198172dc5b10a1ff94a828fe94f4802",
"色阶/small.png": "41cd1a9c4d3b68972181534abe0e91bdb9e01ef5559b6b1f7ef6bf305f450a76",
"黑白混色/黑白混色.moef": "6a7de91a44cd22aa5689c9aad725dccc7e4a29b6dd4e69a4158da7d02f7e559b",
"黑白混色/large.png": "6df07fb223ab43b2b5b6115bef4a1a97eed5cbeb6afab84e005c3a2bdfe01979",
"黑白混色/small.png": "5382be0d29b4a195b8639b3c325f80e9b8cecaa9c12837ab5cf57b6ea877ecbc",
"色彩平衡/色彩平衡.moef": "175ed9f890adf13e712dec264068fffde11accf6dc2e33c3bb278c4438f68362",
"色彩平衡/large.png": "fa2ce9071dee52d7ab9dc7cf6020f8679df3af707663c9a57a28fcde73e6801e",
"色彩平衡/small.png": "12a72a9f26e6ee41613b16ed2402f94a04837e55895addc8f5c25137ad7feaa6",
"通道混合器/通道混合器.moef": "06f497fffbcee034cfbf21e7f39a4b10e41ad49cafd0476f4825903e9169521d",
"通道混合器/large.png": "5ae9d2683450a3a515822520911885a774e202aa924465602f7369a1e67c0c4c",
"通道混合器/small.png": "23bfafb79287855e037f98f0ab5cee10914384824b1a65f0247cad2dd239ef1c",
"胶片模拟/胶片模拟.moef": "528835a129e158c9edf2b48d4a9521b2b9a40e845f04160eecd56e125473bbde",
"胶片模拟/large.png": "d36a794f9640874f6ad7f3523b9eac92ba7c6ef8fa7b63c4594fc68e87c2eee7",
"胶片模拟/small.png": "f125deaf0c8d55ecc04e555cfb133c40ff3703f34a663548c6b38b3196780eb1",
"镜头畸变修复/镜头畸变修复.moef": "0a75525f6e2203527f20a2945aac1a262aa2db57683065ab0ca793da7f5ecd0a",
"镜头畸变修复/large.png": "a00136fb9276c41518ba6096314fb6772ad1dc9be4f4d766409239fa923cfcd1",
"镜头畸变修复/small.png": "1b2480cfa33e1ab54a1ffcd81d9496aac1354b0d2974d6616fe7128965c2ede3",
"CST 色彩空间转换/CST 色彩空间转换.moef": "1399d6906748b206b2673a1d8460f83d9ddda07722d2214d85a9909f24171c17",
"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": {
"report": "verification/HostVisionTracking1.19.0.json",
"pass": true,
"hostPID": 97776,
"pluginPID": 97806,
"workerMainThread": false
},
"installScope": "本轮仅生成并验包,未再次执行系统安装;正式 APP 已有独立宿主验收。"
}
+21 -1
查看文件
@@ -16,5 +16,25 @@
"templateChecks": "16 standalone and full effect passed; existing templates byte-identical",
"unrelatedDiff": "project.pbxproj three Security reference reorderings preserved"
},
"scope": "Independent remote checkout and all tracked blobs; no third-party cold rebuild; release tag recovery pending"
"scope": "Independent remote checkout of compiled source and release tag; every tracked file checked against its Git blob; package record matched. No third-party cold rebuild.",
"release": {
"tag": "v1.17.1-inspector-mosaic-20261106",
"commit": "7c0bfa5352f282bcec0aedf43be29af4432f2ba8",
"files": 718,
"fsck": "passed",
"packageRecord": "matches exact signed package",
"changesFromCompiledCommit": [
"Publishing/1.17.1/Release.md",
"RECOVERY.md",
"research/InspectorMosaic1.17.1.md",
"template/sources/RegisteredParameters.json",
"verification/Delivery.json",
"verification/HostInspectorMosaic1.17.1.json",
"verification/InspectorMosaic1.17.1.json",
"verification/InstalledSelfTest.json",
"verification/Package.json",
"verification/Recovery1.17.1.json",
"开发交接.md"
]
}
}
+16
查看文件
@@ -0,0 +1,16 @@
{
"sourceCommit": "d0187695581fa3a8fe5c3cfa8a1bc6337425f5f6",
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"compiledSourceFilesVerified": 724,
"fsck": "passed",
"lfs": "no LFS pointers",
"submodules": "none",
"scope": "Independent remote clone, exact committed file bytes; third-party cold build not repeated",
"releaseTag": "v1.18.0-diagnostics-20261106",
"sourceByteComparison": "passed",
"releaseCommit": "a03a056bff17daadce77128f767a08e98dc830dd",
"releaseFilesVerified": 728,
"releaseByteComparison": "passed",
"preexistingWorkingTreeDifference": "Unrelated Security.framework reference ordering in project.pbxproj was preserved and not committed. No runtime source differences.",
"cleanup": "temporary clone removed after exact source/tag verification"
}
+15
查看文件
@@ -0,0 +1,15 @@
{
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"sourceCommit": "1cc7f8edb2acb3cfc62bd72447c2956ad7a01601",
"releaseTag": "v1.18.1-tracking-ui-20261106",
"releaseCommit": "5fe4b1933e015a906fab36b65dcbc45a0d6bee49",
"scope": "Independent remote clone, exact committed bytes. Third-party cold build not repeated.",
"compiledSourceFilesVerified": 739,
"releaseFilesVerified": 742,
"fsck": "passed",
"lfs": "no LFS pointers",
"submodules": "none",
"byteComparison": "passed",
"preexistingWorkingTreeDifference": "Unrelated Security.framework reference ordering in project.pbxproj preserved; no runtime source difference.",
"cleanup": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/recovery-1.18.1-6avo__87 removed after verification"
}
+10
查看文件
@@ -0,0 +1,10 @@
{
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"compiledSource": "867bcfbad3f566ced2170925e8eadd9414cc3b75",
"compiledFilesVerified": 766,
"byteExact": true,
"gitFsck": true,
"lfsPointers": [],
"submodules": [],
"scope": "Independent remote clone and byte checks; did not repeat third-party cold build or store user media"
}
+13 -14
查看文件
@@ -3,24 +3,23 @@
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.17.0-unified-mosaic-20261106",
"releaseCommit": "a458bbeb5397153a458706b0bfbb4e8692108a65",
"releaseID": 399,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.17.0-unified-mosaic-20261106",
"tag": "v1.18.1-tracking-ui-20261106",
"releaseCommit": "5fe4b1933e015a906fab36b65dcbc45a0d6bee49",
"releaseID": 402,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.18.1-tracking-ui-20261106",
"prerelease": true,
"assetID": 43,
"assetName": "大鱼调色-1.17.0.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.17.0-unified-mosaic-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.17.0.pkg",
"bytes": 46594729,
"sha256": "f372ee6a421f833c4619dcc4891ae66f90b56f40b431ee75529806bec762157e",
"assetID": 47,
"assetName": "大鱼调色-1.18.1.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.18.1-tracking-ui-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.18.1.pkg",
"bytes": 46654687,
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"existingAssetReused": true,
"verification": "Full draft download checked before publication; published attachment downloaded and checked again; release, tag and asset read-back verified.",
"credentialSource": "macOS Keychain: dayu-git-api",
"draftBrowserDownload": {
"path": "/Volumes/备份/大鱼调色-1.17.0.pkg",
"sha256": "f372ee6a421f833c4619dcc4891ae66f90b56f40b431ee75529806bec762157e",
"bytes": 46594729,
"sourceURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.17.0-unified-mosaic-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.17.0.pkg",
"canonicalDownloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.17.0-unified-mosaic-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.17.0.pkg"
"path": "/Users/mac/Downloads/大鱼调色-1.18.1.pkg",
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"bytes": 46654687,
"sourceURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.18.1-tracking-ui-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.18.1.pkg"
}
}
+43
查看文件
@@ -0,0 +1,43 @@
{
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"releaseID": 401,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.18.0-diagnostics-20261106",
"tag": "v1.18.0-diagnostics-20261106",
"releaseCommit": "a03a056bff17daadce77128f767a08e98dc830dd",
"draft": false,
"prerelease": true,
"credentialSource": "macOS Keychain: dayu-git-api",
"assets": [
{
"assetID": 45,
"assetName": "大鱼调色-1.18.0.pkg",
"downloadURL": "https://dayu.media/git/attachments/22e5cbb9-e51d-4808-b696-dc840c546fc2",
"bytes": 46620783,
"sha256": "4a52742a393ecaaa30f758d72c9e0ba68c606ed8e805316d48b9868068378a3f",
"verifiedDownload": true,
"draftVerification": "Authenticated browser download; full byte count and SHA-256 matched before publication",
"publishedVerification": "Published attachment full download byte count and SHA-256 matched"
},
{
"assetID": 46,
"assetName": "大鱼调色-1.18.0-symbols.zip",
"downloadURL": "https://dayu.media/git/attachments/b6e5d7b6-1454-4295-8433-3ad407137458",
"bytes": 3562272,
"sha256": "a5bf3a6cc836c5da0471d9a70d2eb9e81a5166c63bbfae993a910ba859936c9c",
"verifiedDownload": true,
"draftVerification": "Authenticated browser download; full byte count and SHA-256 matched before publication",
"publishedVerification": "Published attachment full download byte count and SHA-256 matched"
}
],
"passResult": true,
"verification": "Both draft assets downloaded through authenticated browser and verified before publishing; both published assets downloaded and verified again; metadata read back.",
"assetID": 45,
"assetName": "大鱼调色-1.18.0.pkg",
"downloadURL": "https://dayu.media/git/attachments/22e5cbb9-e51d-4808-b696-dc840c546fc2",
"bytes": 46620783,
"sha256": "4a52742a393ecaaa30f758d72c9e0ba68c606ed8e805316d48b9868068378a3f",
"draftVerification": "Authenticated browser download; full byte count and SHA-256 matched before publication",
"publishedVerification": "Published attachment full download byte count and SHA-256 matched"
}
+33
查看文件
@@ -0,0 +1,33 @@
{
"passResult": true,
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.18.1-tracking-ui-20261106",
"releaseCommit": "5fe4b1933e015a906fab36b65dcbc45a0d6bee49",
"releaseID": 402,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.18.1-tracking-ui-20261106",
"prerelease": true,
"assetID": 47,
"assetName": "大鱼调色-1.18.1.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.18.1-tracking-ui-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.18.1.pkg",
"bytes": 46654687,
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"existingAssetReused": true,
"verification": "Full draft download checked before publication; published attachment downloaded and checked again; release, tag and asset read-back verified.",
"credentialSource": "macOS Keychain: dayu-git-api",
"draftBrowserDownload": {
"path": "/Users/mac/Downloads/大鱼调色-1.18.1.pkg",
"sha256": "e149555c46cc6196eb12601196d70121d79b796be852f9a2e89688b20483a6b2",
"bytes": 46654687,
"sourceURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.18.1-tracking-ui-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.18.1.pkg"
},
"symbols": {
"assetID": 48,
"bytes": 3595083,
"sha256": "98959c848e4fec298b83ce69c703a8b571811e23a16d70a1b420d94bceb415f5",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.18.1-tracking-ui-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.18.1-symbols.zip",
"draftFullDownloadVerified": true,
"publishedFullDownloadVerified": true
}
}
+26
查看文件
@@ -0,0 +1,26 @@
{
"version": "1.18.0",
"build": 105,
"sourceCommit": "d0187695581fa3a8fe5c3cfa8a1bc6337425f5f6",
"images": [
{
"symbol": "大鱼调色.app.dSYM",
"uuid": "F952A83C-8229-3789-9945-3936C3C617B9",
"binary": "大鱼调色.app/Contents/MacOS/大鱼调色"
},
{
"symbol": "大鱼调色 XPC Service.pluginkit.dSYM",
"uuid": "B5B02C34-12E6-3056-9337-6CFB0929804B",
"binary": "大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service"
}
],
"purpose": "Exact dSYM files for UUID/offset crash symbolication; no executable app or user reports.",
"path": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.18.0-symbols.zip",
"bytes": 3562272,
"sha256": "a5bf3a6cc836c5da0471d9a70d2eb9e81a5166c63bbfae993a910ba859936c9c",
"remoteStatus": "published and full download verified",
"releaseID": 401,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.18.0-diagnostics-20261106",
"assetID": 46,
"downloadURL": "https://dayu.media/git/attachments/b6e5d7b6-1454-4295-8433-3ad407137458"
}
+28
查看文件
@@ -0,0 +1,28 @@
{
"version": "1.18.1",
"build": 106,
"compiledSource": "1cc7f8edb2acb3cfc62bd72447c2956ad7a01601",
"images": [
{
"name": "大鱼调色 XPC Service",
"uuid": "78E7C898-7A75-3BBD-93CA-C7B3452BE1CC",
"dSYM": "大鱼调色 XPC Service.pluginkit.dSYM"
},
{
"name": "大鱼调色",
"uuid": "F952A83C-8229-3789-9945-3936C3C617B9",
"dSYM": "大鱼调色.app.dSYM"
}
],
"path": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.18.1-symbols.zip",
"bytes": 3595083,
"sha256": "98959c848e4fec298b83ce69c703a8b571811e23a16d70a1b420d94bceb415f5",
"installedBinaryUUIDMatch": true,
"releaseUploaded": true,
"assetID": 48,
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.18.1-tracking-ui-20261106/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.18.1-symbols.zip",
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.18.1-tracking-ui-20261106",
"releaseID": 402,
"draftFullDownloadVerified": true,
"publishedFullDownloadVerified": true
}
+22
查看文件
@@ -0,0 +1,22 @@
{
"version": "1.19.0",
"build": 109,
"compiledSource": "867bcfbad3f566ced2170925e8eadd9414cc3b75",
"images": [
{
"name": "大鱼调色",
"uuid": "F952A83C-8229-3789-9945-3936C3C617B9",
"dSYM": "大鱼调色.app.dSYM"
},
{
"name": "大鱼调色 XPC Service",
"uuid": "5E413061-DF29-3429-93CD-B86643BA805E",
"dSYM": "大鱼调色 XPC Service.pluginkit.dSYM"
}
],
"path": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.19.0-symbols.zip",
"bytes": 3472206,
"sha256": "401cb46a38838a5605b7a1cb6eb3cd5ee03a649a80c7cf6655741a57ec0deb31",
"installedBinaryUUIDMatch": true,
"releaseUploaded": false
}
+111
查看文件
@@ -0,0 +1,111 @@
{
"candidateVersion": "1.18.1",
"build": 106,
"sourceBaseline": "ca4abaf2c3dc67c482aaf7182668c3d6d7098268",
"scope": "Local caller-decoded real 4K clip, 25fps, identical 285 frames and initial head ROI. Timed reset/track only; excludes decode, disk I/O, FxAnalyzer scheduling, preview and rendering. This is not end-to-end host speed.",
"resolution": [
3840,
2160
],
"baseline": {
"frames": 285,
"milliseconds": 8776.568616
},
"candidate": {
"frames": 285,
"milliseconds": 1306.087993999999
},
"speedup": 6.7197376105732785,
"maximumTrajectoryDifferences": {
"cx": 0.0,
"cy": 0.0,
"scaleX": 0,
"scaleY": 0,
"rotation": 0
},
"opencvRegression": {
"version": "4.5.1",
"checks": [
{
"name": "pinned-public-opencv-version",
"pass": true,
"error": 0
},
{
"name": "300-feature-capacity",
"pass": true,
"error": 300
},
{
"name": "translation-rotation-independent-xy-scale",
"pass": true,
"error": 0.00329193
},
{
"name": "free-path-outside-creation-box-12-frame-subpixel",
"pass": true,
"error": 0.014753
},
{
"name": "periodic-redetection-keeps-static-position",
"pass": true,
"error": 0
},
{
"name": "unrelated-cut-stops-with-last-trusted-position",
"pass": true,
"error": 0
},
{
"name": "flat-mask-rejected",
"pass": true,
"error": 0
},
{
"name": "moving-majority-prefers-subject-over-static-background",
"pass": true,
"error": 0.00237274
},
{
"name": "independent-tracker-objects-do-not-share-motion",
"pass": true,
"error": 0
},
{
"name": "invalid-frame-preserves-authored-geometry",
"pass": true,
"error": 0
},
{
"name": "nonfinite-source-rejected",
"pass": true,
"error": 0
},
{
"name": "4k-complete-source-frame",
"pass": true,
"error": 0.000107325
},
{
"name": "compact-gpu-byte-input-matches-quantized-float-and-flip",
"pass": true,
"error": 0
}
],
"pass": true,
"count": 13,
"runtimeTargetAppUsed": false
},
"rejectedMetalLK": {
"completedFrames": 132,
"failureFrameIndex": 132,
"reason": "Old Metal LK loses target during turn while OpenCV completes whole clip. Not enabled in production."
},
"productionChanges": [
"Metal emits compact gray8 instead of float; readback 75% smaller",
"Feature detection restricted to target bounds plus halo at full resolution",
"OpenCV pyramids and derivatives reused across both directions and adjacent frames",
"CPU OpenCV LK retained; no experimental optical-flow backend enabled"
],
"hostQA": "Formal notarized 1.18.1 completed two 285-frame FCP runs and workspace/parameter interactions; see HostTrackingUI1.18.1.json. Head drift persists; no accuracy improvement claim."
}
+12
查看文件
@@ -0,0 +1,12 @@
{
"version": "1.19.0",
"build": 109,
"openCVDefinedSymbols": 0,
"openCVPayloadPresent": false,
"productionTrackers": [
"VNTrackObjectRequest accurate for all mosaic mask shapes",
"VNHomographicImageRegistrationRequest for ordinary masks and paired clone regions"
],
"opencvFallback": false,
"scope": "Installed executable symbol/resource checks and source routing; actual host acceptance recorded separately"
}
+256
查看文件
@@ -0,0 +1,256 @@
{
"pass": true,
"milliseconds": 114.938334,
"results": [
{
"steps": [
{
"angle": 0.00030116166453808546,
"confidence": 0.997211217880249,
"cy": 0.505378246307373,
"sx": 1.0120620727539062,
"valid": true,
"i": 1,
"failure": 0,
"sy": 1.0123298168182373,
"cx": 0.5061646699905396
},
{
"angle": 0.00041505444096401334,
"confidence": 0.9982037544250488,
"cy": 0.5109624266624451,
"sx": 1.0229401588439941,
"valid": true,
"i": 2,
"failure": 0,
"sy": 1.0244232416152954,
"cx": 0.5123989582061768
},
{
"angle": 0.0008218093425966799,
"confidence": 0.9970992207527161,
"cy": 0.5163348913192749,
"sx": 1.0351276397705078,
"valid": true,
"i": 3,
"failure": 0,
"sy": 1.0366443395614624,
"cx": 0.5185526013374329
},
{
"angle": 0.001055820262990892,
"confidence": 0.9984501004219055,
"cy": 0.5216847062110901,
"sx": 1.0463300943374634,
"valid": true,
"i": 4,
"failure": 0,
"sy": 1.0480226278305054,
"cx": 0.5247405767440796
},
{
"angle": 0.0012197730829939246,
"confidence": 0.9983993172645569,
"cy": 0.5270904898643494,
"sx": 1.0567429065704346,
"valid": true,
"i": 5,
"failure": 0,
"sy": 1.0597118139266968,
"cx": 0.5310028791427612
}
],
"flatLossPass": true,
"mode": 0,
"geometryPass": true
},
{
"steps": [
{
"angle": 0.009967775084078312,
"confidence": 0.9949162602424622,
"cy": 0.5055747032165527,
"sx": 1.0111944675445557,
"valid": true,
"i": 1,
"failure": 0,
"sy": 1.0095919370651245,
"cx": 0.5062549710273743
},
{
"angle": 0.02062590979039669,
"confidence": 0.9966701865196228,
"cy": 0.5111720561981201,
"sx": 1.0224586725234985,
"valid": true,
"i": 2,
"failure": 0,
"sy": 1.0171892642974854,
"cx": 0.5125352740287781
},
{
"angle": 0.03139157593250275,
"confidence": 0.9969140887260437,
"cy": 0.5167808532714844,
"sx": 1.033342957496643,
"valid": true,
"i": 3,
"failure": 0,
"sy": 1.0242987871170044,
"cx": 0.5188140869140625
},
{
"angle": 0.042038943618535995,
"confidence": 0.9961121678352356,
"cy": 0.5224273800849915,
"sx": 1.0442034006118774,
"valid": true,
"i": 4,
"failure": 0,
"sy": 1.0314151048660278,
"cx": 0.5251041650772095
},
{
"angle": 0.05254638195037842,
"confidence": 0.9968076944351196,
"cy": 0.5280846953392029,
"sx": 1.0549098253250122,
"valid": true,
"i": 5,
"failure": 0,
"sy": 1.0389935970306396,
"cx": 0.531261682510376
}
],
"flatLossPass": true,
"mode": 1,
"geometryPass": true
},
{
"steps": [
{
"angle": 0.0012855837121605873,
"confidence": 0.996295690536499,
"cy": 0.505118191242218,
"sx": 0.9726772308349609,
"valid": true,
"i": 1,
"failure": 0,
"sy": 0.9731171131134033,
"cx": 0.24520695209503174
},
{
"angle": 0.0026874535251408815,
"confidence": 0.9993696808815002,
"cy": 0.5102159976959229,
"sx": 0.9476237893104553,
"valid": true,
"i": 2,
"failure": 0,
"sy": 0.9473755359649658,
"cx": 0.24039006233215332
},
{
"angle": 0.00400719977915287,
"confidence": 0.9978270530700684,
"cy": 0.5151881575584412,
"sx": 0.9213101863861084,
"valid": true,
"i": 3,
"failure": 0,
"sy": 0.9214370846748352,
"cx": 0.23562279343605042
},
{
"angle": 0.0054705156944692135,
"confidence": 0.9968448281288147,
"cy": 0.5200582146644592,
"sx": 0.8955021500587463,
"valid": true,
"i": 4,
"failure": 0,
"sy": 0.8958438634872437,
"cx": 0.23082032799720764
},
{
"angle": 0.0065700458362698555,
"confidence": 0.9971773028373718,
"cy": 0.5250596404075623,
"sx": 0.8697163462638855,
"valid": true,
"i": 5,
"failure": 0,
"sy": 0.8707844614982605,
"cx": 0.22602543234825134
}
],
"flatLossPass": true,
"mode": 2,
"geometryPass": true
},
{
"steps": [
{
"angle": -0.0033070251811295748,
"confidence": 0.9962567090988159,
"cy": 0.49610283970832825,
"sx": 1.0306658744812012,
"valid": true,
"i": 1,
"failure": 0,
"sy": 1.034022569656372,
"cx": 0.7563123106956482
},
{
"angle": -0.006257329136133194,
"confidence": 0.9978556632995605,
"cy": 0.4922579526901245,
"sx": 1.0616891384124756,
"valid": true,
"i": 2,
"failure": 0,
"sy": 1.068353533744812,
"cx": 0.762669563293457
},
{
"angle": -0.009793867357075214,
"confidence": 0.997668445110321,
"cy": 0.48837438225746155,
"sx": 1.0926778316497803,
"valid": true,
"i": 3,
"failure": 0,
"sy": 1.1025370359420776,
"cx": 0.7689304351806641
},
{
"angle": -0.011967367492616177,
"confidence": 0.9984378814697266,
"cy": 0.48451682925224304,
"sx": 1.127761721611023,
"valid": true,
"i": 4,
"failure": 0,
"sy": 1.1363595724105835,
"cx": 0.7753861546516418
},
{
"angle": -0.01359553448855877,
"confidence": 0.9974396228790283,
"cy": 0.48052653670310974,
"sx": 1.166257619857788,
"valid": true,
"i": 5,
"failure": 0,
"sy": 1.1704301834106445,
"cx": 0.7819676399230957
}
],
"flatLossPass": true,
"mode": 3,
"geometryPass": true
}
],
"scope": "CLI synthetic regions: rectangle translation/scale; nonrectangular polygon rotation/scale; two independently moving/scaling clone regions; flat loss. Host acceptance pending.",
"build": 108
}
+17
查看文件
@@ -0,0 +1,17 @@
{
"date": "2026-11-06",
"time": "19:49:08 Asia/Shanghai",
"build": 108,
"process": "大鱼调色 XPC Service",
"host": "Final Cut Pro stayed running",
"imageUUID": "8481DB88-B8F3-38B9-A457-980A627B41DE",
"exception": "EXC_BAD_ACCESS / SIGSEGV",
"frame": "-[DYColorWorkspace parentChanged:]",
"file": "大鱼调色/Plugin/DYColorWorkspace.mm",
"line": 181,
"imageOffset": 54184,
"trigger": "Open/cancel mosaic menu and repeatedly reopen remote workspace before queued main-thread callbacks drain",
"finding": "Unretained _remoteParent can outlive the host-owned FxXPView; queued callback sent window to freed object.",
"fix": "Retain remote parent through attachment, release at close, ignore geometry for detached root and stale window-close notifications.",
"validation": "Two lifetime regressions added; formal retest pending. Raw IPS stays in system DiagnosticReports; no raw log uploaded."
}
-3
查看文件
@@ -333,7 +333,6 @@
shellPath = /bin/sh;
shellScript = (
"set -eu",
"/usr/bin/python3 \"$SRCROOT/tools/build_tracking_opencv.py\" --resources \"$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/ThirdParty/OpenCV\"",
"/usr/bin/python3 \"$SRCROOT/ColorManagement/build_runtime.py\" \"$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH\"",
"/usr/bin/python3 \"$SRCROOT/tools/build_kernels.py\" --output \"$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/default.metallib\" --intermediates \"$DERIVED_FILE_DIR/DayuKernels\"",
"/usr/bin/python3 - \"$SRCROOT/大鱼调色/Plugin/Resources\" \"$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH\" <<'PYBUILD'",
@@ -388,7 +387,6 @@
MACOSX_DEPLOYMENT_TARGET = 14.6;
OTHER_LDFLAGS = (
"@/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/cms-runtime/bridge-link.rsp",
"@/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-opencv/link.rsp",
"$(inherited)",
"-framework",
Metal,
@@ -425,7 +423,6 @@
MACOSX_DEPLOYMENT_TARGET = 14.6;
OTHER_LDFLAGS = (
"@/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/cms-runtime/bridge-link.rsp",
"@/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tracking-opencv/link.rsp",
"$(inherited)",
"-framework",
Metal,
+7 -4
查看文件
@@ -168,7 +168,10 @@ static BOOL DYWorkspaceEnabled(DYUniforms u,NSString *type){if([type isEqual:@"b
}@finally{[action endAction:self];}
}
- (void)attachToParent:(NSView *)parent{
if(_remoteParent!=parent){if(_remoteParent)for(NSNotificationName name in @[NSViewFrameDidChangeNotification,NSViewBoundsDidChangeNotification])[NSNotificationCenter.defaultCenter removeObserver:self name:name object:_remoteParent];_remoteParent=parent;
// FxPlug may discard its view before the deferred presentation callback runs
// (notably while an NSMenu owns the event loop). Own the borrowed parent for
// the entire attachment, rather than leaving a dangling geometry pointer.
if(_remoteParent!=parent){if(_remoteParent)for(NSNotificationName name in @[NSViewFrameDidChangeNotification,NSViewBoundsDidChangeNotification])[NSNotificationCenter.defaultCenter removeObserver:self name:name object:_remoteParent];[parent retain];[_remoteParent release];_remoteParent=parent;
parent.postsFrameChangedNotifications=YES;parent.postsBoundsChangedNotifications=YES;for(NSNotificationName name in @[NSViewFrameDidChangeNotification,NSViewBoundsDidChangeNotification])[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(parentChanged:) name:name object:parent];
}
[_root removeFromSuperview];_root.frame=parent.bounds;_root.autoresizingMask=NSViewWidthSizable|NSViewHeightSizable;[parent addSubview:_root];_visible=YES;_root.hidden=NO;[self refreshToolWorkspace:nil];[self pageChanged:nil];[self parentChanged:nil];
@@ -178,7 +181,7 @@ static BOOL DYWorkspaceEnabled(DYUniforms u,NSString *type){if([type isEqual:@"b
});
}
- (void)parentChanged:(NSNotification *)notification{
if(!_visible||!_remoteParent)return;NSWindow *window=_remoteParent.window;
if(!_visible||!_remoteParent||_root.superview!=_remoteParent)return;NSWindow *window=_remoteParent.window;
if(window&&_remoteParent==window.contentView&&_remoteParent.superview){NSRect content=[window convertRectFromScreen:[window contentRectForFrameRect:window.frame]];NSPoint origin=[_remoteParent.superview convertPoint:content.origin fromView:nil];if(std::isfinite(origin.x)&&std::isfinite(origin.y)&&!NSEqualPoints(_remoteParent.frame.origin,origin))[_remoteParent setFrameOrigin:origin];}
_root.frame=_remoteParent.bounds;[self layoutWorkspace];
}
@@ -287,13 +290,13 @@ static BOOL DYWorkspaceEnabled(DYUniforms u,NSString *type){if([type isEqual:@"b
}
- (void)closePressed:(id)sender{[self close];}
- (void)toggleWorkspaceSize:(id)sender{BOOL expanded=!_expanded;[self close];_expanded=expanded;[self showRelativeToView:nil];}
- (void)remoteClosed:(NSNotification *)notification{_closing=YES;[self close];_closing=NO;}
- (void)remoteClosed:(NSNotification *)notification{if(notification.object!=_presentationWindow)return;_closing=YES;[self close];_closing=NO;}
- (void)close{
if(_closed)return;BOOL hadPresentation=_visible||_opening||_remoteParent;_closed=YES;_visible=NO;_opening=NO;_session++;_selectionID++;[_selectionTask cancel];[_selectionTask release];_selectionTask=nil;[_renderer setScopeEnabled:NO];
[_trackingPreview reset];[self setTrackingPreviewVisible:NO];
BOOL wasClosing=_closing;_closing=YES;[_browser close];[_browser release];_browser=nil;
[_toolEditor removeFromSuperview];[_toolEditor release];_toolEditor=nil;[_editorNode release];_editorNode=nil;_maskScroll.documentView=nil;[_maskEditor release];_maskEditor=nil;[_maskNode release];_maskNode=nil;
if(_remoteParent)for(NSNotificationName name in @[NSViewFrameDidChangeNotification,NSViewBoundsDidChangeNotification])[NSNotificationCenter.defaultCenter removeObserver:self name:name object:_remoteParent];_remoteParent=nil;
if(_remoteParent)for(NSNotificationName name in @[NSViewFrameDidChangeNotification,NSViewBoundsDidChangeNotification])[NSNotificationCenter.defaultCenter removeObserver:self name:name object:_remoteParent];[_root removeFromSuperview];[_remoteParent release];_remoteParent=nil;
if(_presentationWindow)[NSNotificationCenter.defaultCenter removeObserver:self name:NSWindowWillCloseNotification object:_presentationWindow];[_presentationWindow release];_presentationWindow=nil;[_root removeFromSuperview];
if(hadPresentation&&!wasClosing){id<FxCustomParameterActionAPI_v4> action=[self actionAPI];if(action){[action startAction:self];@try{id<FxRemoteWindowAPI_v3> api=[_manager apiForProtocol:@protocol(FxRemoteWindowAPI_v3)];[api closeRemoteWindow];}@finally{[action endAction:self];}}}_closing=wasClosing;
}
+11 -8
查看文件
@@ -980,15 +980,20 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
@try {
CMTime t=action.currentTime;
id<FxParameterRetrievalAPI_v6> get=[_manager apiForProtocol:@protocol(FxParameterRetrievalAPI_v6)];
_unified=DYUnifiedColorState(DYReadAssets(_embedded?[(DYToolManager*)_manager host]:_manager,t).colorManagement);
id<PROAPIAccessing> maskHost=_embedded?[(DYToolManager*)_manager host]:_manager;
DYAssetState *assets=DYReadAssets(_manager,t);
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];
_unified=DYUnifiedColorState(cms);
if(!_embedded&&!_workspaceEditor){
[_renderOrder release];_renderOrder=[DYUnifiedRenderOrder(DYReadTools(_manager,t).document)copy];
[_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;}
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;
}
NSDictionary *initialTools=DYReadTools(_embedded?[(DYToolManager*)_manager host]:_manager,t).document;
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];
for(NSNumber *pid in _controls) {
@@ -1009,8 +1014,7 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
NSNumber *extra=c[@"section"][@"extraEnabled"];double extraValue=0;
if(extra)[get getFloatValue:&extraValue fromParameter:extra.unsignedIntValue atTime:t];
BOOL enabled=v>=.5||extraValue>=.5;
DYInspectorToken *token=nil;[get getCustomParameterValue:&token fromParameter:DYInspectorParameterID atTime:t];
NSNumber *saved=[token isKindOfClass:DYInspectorToken.class]?token.folds[c[@"section"][@"key"]]:nil;
NSNumber *saved=[oldToken isKindOfClass:DYInspectorToken.class]?oldToken.folds[c[@"section"][@"key"]]:nil;
BOOL collapsed=_workspaceEditor?NO:saved?saved.boolValue:![self initiallyExpandedSection:c[@"section"][@"key"]];
groupingChanged|=collapsed!=[c[@"collapsed"]boolValue];c[@"collapsed"]=@(collapsed);
[c[@"header"]setState:collapsed?NSControlStateValueOff:NSControlStateValueOn];
@@ -1021,7 +1025,7 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
[c[@"enabled"]setToolTip:enabled?@"停用本组,保留参数和展开状态":@"启用本组,保留展开状态"];[c[@"enabled"]setAccessibilityHelp:[c[@"enabled"]toolTip]];
for(NSView *row in c[@"body"])row.alphaValue=enabled?1:.45;
}
id<PROAPIAccessing> maskHost=_embedded?[(DYToolManager*)_manager host]:_manager;NSDictionary *tools=DYReadTools(maskHost,t).document;for(NSDictionary *card in _cards){
for(NSDictionary *card in _cards){
NSString *type=card[@"section"][@"key"];
BOOL removed=[type isEqual:@"output"]?!_unified:!_embedded&&DYBaseToolRemoved(tools,type);groupingChanged|=[card[@"removed"]boolValue]!=removed;((NSMutableDictionary *)card)[@"removed"]=@(removed);
[card[@"maskPanel"]refreshWithDocument:tools time:t];
@@ -1029,11 +1033,10 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
[(DYMaskCountBadge*)card[@"maskBadge"]setCount:count];NSString *hint=count?[NSString stringWithFormat:@"已有 %lu 个蒙版;点击添加独立蒙版",(unsigned long)count]:@"添加本工具的独立蒙版";
[card[@"maskButton"]setToolTip:hint];[card[@"maskButton"]setAccessibilityHelp:hint];
}
DYAssetState *assets=DYReadAssets(_manager,t);NSDictionary *cms=_embedded?DYReadAssets([(DYToolManager*)_manager host],t).colorManagement:assets.colorManagement;_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 混合"];
_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];
DYInspectorToken *oldToken=nil;[get getCustomParameterValue:&oldToken fromParameter:DYInspectorParameterID atTime:t];
_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"];
+5 -2
查看文件
@@ -13,7 +13,8 @@
#import <MetalPerformanceShaders/MetalPerformanceShaders.h>
#import <os/log.h>
#include "MaskCore/DYTracker.hpp"
#include "MaskCore/DYOpenCVTracker.hpp"
#include "MaskCore/DYVisionRegionTracker.hpp"
#include "MaskCore/DYObjectTracker.hpp"
#include <atomic>
#include "DYViewerParameterBridge.inc.h"
#include "DYToolHostDeclarations.inc.h"
@@ -41,12 +42,14 @@
// remote parameter read and view rebuild for every scalar in the burst.
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;
}@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 beta=!_betaFirstRenderStarted.exchange(true)?DYBetaSpanBegin(@"first_render",nil):0;BOOL 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];DYBetaSpanEnd(beta,@{@"status":ok?@"passed":@"failed"});if(!ok)DYBetaEvent(@"render_error",@{@"error_domain":(e&&*e)?(*e).domain:@"unknown",@"error_code":@((e&&*e)?(*e).code:0)});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 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){
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;
@@ -9,6 +9,19 @@
DYToolManager *one=[[[DYToolManager alloc]initWithHost:manager node:first]autorelease];DYWriteTools(manager,doc,kCMTimeZero);id<FxCustomParameterActionAPI_v4>action=(id)one;[action startAction:one];
[(id<FxParameterSettingAPI_v6>)one setFloatValue:17 toParameter:2068 atTime:kCMTimeZero];[(id<FxParameterSettingAPI_v6>)one setFloatValue:26 toParameter:2076 atTime:kCMTimeZero];[action endAction:one];NSDictionary *written=DYReadTools(manager,kCMTimeZero).document;
run.record(@"instance-proxy-batches-multiple-fields-without-clobber",[DYToolWithID(written,first[@"id"])[@"values"][@"hsl0_0"]isEqual:@17]&&[DYToolWithID(written,first[@"id"])[@"values"][@"hsl1_0"]isEqual:@26]&&[DYToolWithID(written,second[@"id"])[@"values"][@"hsl1_2"]isEqual:@55]);
// A cached action must see writes immediately, and a later action must see
// host-side undo/external edits. Exercise both the numeric snapshot and scope.
[action startAction:one];double before=0,after=0;
[(id<FxParameterRetrievalAPI_v6>)one getFloatValue:&before fromParameter:2068 atTime:kCMTimeZero];
[(id<FxParameterSettingAPI_v6>)one setFloatValue:19 toParameter:2068 atTime:kCMTimeZero];
[(id<FxParameterRetrievalAPI_v6>)one getFloatValue:&after fromParameter:2068 atTime:kCMTimeZero];
[action endAction:one];run.record(@"layer-snapshot-read-after-write-in-one-action",before==17&&after==19);
NSMutableDictionary *external=DYMutablePlist(DYReadTools(manager,kCMTimeZero).document);
((NSMutableDictionary*)DYToolWithID(external,first[@"id"]))[@"values"][@"hsl0_0"]=@23;
DYWriteTools(manager,external,kCMTimeZero);[action startAction:one];
[(id<FxParameterRetrievalAPI_v6>)one getFloatValue:&after fromParameter:2068 atTime:kCMTimeZero];[action endAction:one];
run.record(@"layer-snapshot-next-action-sees-external-edit",after==23);
DYWriteTools(manager,written,kCMTimeZero);
DYInspector *stackInspector=[[[DYInspector alloc]initWithAPIManager:manager renderer:renderer]autorelease];[stackInspector refresh];[stackInspector setFrameSize:NSMakeSize(360,780)];[stackInspector layoutSubtreeIfNeeded];NSDictionary *stackViews=[stackInspector valueForKey:@"_stackViews"];BOOL nativeViews=stackViews.count==2;for(NSString *ID in stackViews){NSArray *c=[stackViews[ID]valueForKey:@"_cards"];nativeViews&=c.count==1&&c[0][@"maskButton"]&&c[0][@"repeatButton"]&&[c[0][@"section"][@"key"]isEqual:@"hsl"];}run.record(@"two-native-hsl-panels-with-mask-and-repeat-buttons",nativeViews);
NSMutableDictionary *invalid=DYMutablePlist(doc);invalid[@"layers"][1][@"id"]=first[@"id"];run.record(@"tool-document-rejects-duplicate-identity",!DYValidToolDocument(invalid));invalid=DYMutablePlist(doc);invalid[@"layers"][0][@"values"][@"hsl0_0"]=@(NAN);run.record(@"tool-document-rejects-nonfinite",!DYValidToolDocument(invalid));
NSMutableDictionary *mask=DYMutablePlist(DYNewMask(DYMaskRectangle));DYMaskParameters p=DYMaskAtTime(mask,kCMTimeZero);p.feather=0;p.width=.5;p.height=.5;mask[@"parameters"]=[NSData dataWithBytes:&p length:sizeof(p)];CMTime a=CMTimeMake(1001,24000),b=CMTimeMake(2002,24000);DYMaskParameters moved=p;moved.centerX=.7;moved.width=.6;moved.angle=.2;mask[@"keys"]=@[DYMaskKey(a,p,YES,1),DYMaskKey(b,moved,NO,.9)];
+2
查看文件
@@ -31,6 +31,7 @@ public:
~MetalFlow(){for(int i=0;i<2;i++)[frames_[i] release];[points_ release];[results_ release];[pyramid_ release];[flow_ release];[queue_ release];[device_ release];}
bool ready()const{return device_&&queue_&&pyramid_&&flow_&&flow_.threadExecutionWidth==32;}
bool reset(const dy::GrayFrame& f) override {
if(f.valid()&&f.pixels.empty())return reset(f.expanded());
if(!ready()||!f.valid())return false;
info_={};info_.levels=1;info_.width[0]=f.width;info_.height[0]=f.height;
int total=f.width*f.height;
@@ -47,6 +48,7 @@ public:
id<MTLCommandBuffer>b=[queue_ commandBuffer];pyramid(b,frames_[0]);return finish(b);
}
bool advance(const dy::GrayFrame& f,const std::vector<dy::FlowPoint>& points,std::vector<dy::FlowMatch>& matches) override {
if(f.valid()&&f.pixels.empty())return advance(f.expanded(),points,matches);
if(!f.valid()||f.width!=info_.width[0]||f.height!=info_.height[0]||points.empty()||points.size()>dy::TrackerFeatureLimit)return false;
int next=1-previous_;memcpy(frames_[next].contents,f.pixels.data(),f.pixels.size()*sizeof(float));
memcpy(points_.contents,points.data(),points.size()*sizeof(dy::FlowPoint));
+7 -3
查看文件
@@ -2,7 +2,11 @@
// CF asks the host for video gamma 2.2, then Lanczos-scales to RGBA8 before
// OpenCV gray conversion. Adapt our linear host contract in a separate texture.
- (dy::GrayFrame)toolGrayFrame:(FxImageTile*)tile error:(NSError**)error {
return [self toolGrayFrame:tile preview:nil error: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.
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 {
@synchronized(_toolCaptureDevices){
@@ -27,7 +31,7 @@
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*sizeof(float)){buffer=[[device newBufferWithLength:width*height*sizeof(float) options:MTLResourceStorageModeShared]autorelease];if(!buffer)return {};entry[@"buffer"]=buffer;}
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;}
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];
@@ -58,6 +62,6 @@
*preview=@{@"rgba":[NSData dataWithBytes:previewBuffer.contents length:previewBuffer.length],
@"width":@(previewInfo.x),@"height":@(previewInfo.y),@"aspect":@(aspect)};
}
dy::GrayFrame result{int(width),int(height),std::vector<float>(width*height)};memcpy(result.pixels.data(),buffer.contents,width*height*sizeof(float));return result;
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;
}
}
+6 -1
查看文件
@@ -22,5 +22,10 @@
DYMaskParameters _trackingSeed;
DYStampMotion _trackingStampMotion;
dy::TrackerROI _trackingStampSourceSeed;
dy::OpenCVTracker _toolTracker,_stampSourceTracker;
dy::VisionRegionTracker _toolTracker,_stampSourceTracker;
std::vector<dy::FlowPoint> _trackingShapePolygon;
dy::TrackerROI _trackingObjectROI;
dy::ObjectTracker _objectTracker;
BOOL _trackingObjectMode;
NSUInteger _trackingObjectPending,_trackingObjectRepaired;
NSMutableDictionary *_toolCaptureDevices;
+42 -10
查看文件
@@ -35,6 +35,7 @@
NSString *direction=[frame[@"backward"]boolValue]?@"反向":@"正向";
NSString *message=total?[NSString stringWithFormat:@"%@ · %lu / %lu 帧 · %.0f%%",direction,(unsigned long)done,(unsigned long)total,100.*done/total]
:[NSString stringWithFormat:@"%@ · 已分析 %lu 帧",direction,(unsigned long)done];
if([frame[@"predicted"]boolValue])message=[message stringByAppendingString:@" · 暂时丢失,预测并寻找目标"];
[self postTrackingPreview:frame active:YES message:message];
}
- (void)queueTrackingPreview:(NSDictionary*)frame {
@@ -46,7 +47,7 @@
}
// Keep one coherent packet pending. A slow UI may skip intermediate updates
// without ever pairing geometry from one frame with pixels from another.
dispatch_after(dispatch_time(DISPATCH_TIME_NOW,NSEC_PER_SEC/30),dispatch_get_main_queue(),^{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW,NSEC_PER_SEC/15),dispatch_get_main_queue(),^{
if(self->_trackingGeneration==generation)[self publishTrackingPreview];
});
}
@@ -163,6 +164,7 @@
[_trackingNode release];_trackingNode=[node copy];[_trackingMaskID release];_trackingMaskID=[notification.userInfo[@"mask"]copy];[_trackingFrozenMask release];_trackingFrozenMask=[mask copy];[_trackingCandidate release];_trackingCandidate=[DYMutablePlist(mask)retain];[_trackingSamples release];_trackingSamples=[NSMutableArray new];[_trackingMessage release];_trackingMessage=nil;
NSArray *source=DYStampSourceAtTime(mask,time);
_trackingStampMotion=DYStampMotionAtTime(mask,time);
_trackingObjectMode=DYMosaicTracksMask(doc,mask[@"id"]);_trackingObjectPending=_trackingObjectRepaired=0;
if(source){
_trackingStampMotion.active=true;
_trackingStampSourceSeed={[source[0] floatValue],[source[1] floatValue],
@@ -204,6 +206,7 @@
}
- (BOOL)setupAnalysisForTimeRange:(CMTimeRange)range frameDuration:(CMTime)duration error:(NSError**)error {
if(!CMTIME_IS_NUMERIC(duration)||duration.value<=0||duration.epoch!=0)return [self stopToolAnalysis:@"宿主分析帧长无效" error:error];_trackingFrameDuration=duration;_trackingPreviousTime=kCMTimeInvalid;_trackingFlip=NO;[_trackingSamples removeAllObjects];
_objectTracker.stop();_trackingObjectPending=0;
if(!_trackingSingle&&CMTIMERANGE_IS_VALID(_trackingPreviewInputRange)){
double step=CMTimeGetSeconds(duration);
double forward=CMTimeGetSeconds(CMTimeSubtract(CMTimeRangeGetEnd(_trackingPreviewInputRange),_trackingReferenceTime))/step;
@@ -215,7 +218,7 @@
}
std::vector<dy::FlowPoint>polygon;NSData *nodes=_trackingCandidate[@"nodes"];if(_trackingSeed.kind==DYMaskBezier){auto path=dyFlattenMask((const DYBezierNode*)nodes.bytes,nodes.length/sizeof(DYBezierNode));for(int i=0;i<path.count;i++)polygon.push_back({path.x[i],path.y[i]});}else if(_trackingSeed.kind==DYMaskRectangle)polygon={{-.5f,-.5f},{.5f,-.5f},{.5f,.5f},{-.5f,.5f}};else for(int i=0;i<128;i++){float angle=i*(2.f*M_PI/128);polygon.push_back({.5f*std::cos(angle),.5f*std::sin(angle)});}
if(_trackingStampMotion.active)_stampSourceTracker.setMask(polygon);
_toolTracker.setMask(std::move(polygon));return YES;
_trackingShapePolygon=polygon;_toolTracker.setMask(std::move(polygon));return YES;
}
- (BOOL)finishToolTrackingLoss:(const dy::TrackResult&)lost region:(NSString*)region atTime:(CMTime)time error:(NSError**)error {
NSString *reason=@"区域内运动不一致";
@@ -232,17 +235,32 @@
return [self finishToolAnalysis:[NSString stringWithFormat:@"%@,已保留 %lu 帧可信轨迹;可调整区域后从此处继续",detail,(unsigned long)_trackingSamples.count] error:error];
}
- (BOOL)analyzeFrame:(FxImageTile*)tile atTime:(CMTime)time error:(NSError**)error {
if(!_trackingActive.load()||_trackingFinishing.load()){if(error)*error=[NSError errorWithDomain:FxPlugErrorDomain code:kFxError_UserCancelled userInfo:nil];return NO;}_trackingInFrame.store(true);@try{
if(!_trackingActive.load()||_trackingFinishing.load()){if(error)*error=[NSError errorWithDomain:FxPlugErrorDomain code:kFxError_UserCancelled userInfo:nil];return NO;}_trackingInFrame.store(true);uint64_t trackingSpan=DYBetaSpanBegin(@"tracking_frame",nil);@try{
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?nullptr:&preview error:error];
dy::GrayFrame frame=[self toolGrayFrame:tile preview:(_trackingSingle&&!_trackingObjectMode)?nullptr:&preview error:error];
if(!frame.valid())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.pixels[y*frame.width+x];same+=fabs(p-_trackingReferenceFrame.pixels[y*frame.width+x]);flip+=fabs(p-_trackingReferenceFrame.pixels[(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)for(int y=0;y<frame.height/2;y++)for(int x=0;x<frame.width;x++)std::swap(frame.pixels[y*frame.width+x],frame.pixels[(frame.height-1-y)*frame.width+x]);
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;
dy::TrackResult target,source;
if(!_trackingSamples.count){
dy::ObjectStep objectStep;
if(_trackingObjectMode&&!stamp){
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){
dy::TrackerROI seed={_trackingSeed.centerX,_trackingSeed.centerY,_trackingSeed.width,_trackingSeed.height,_trackingSeed.angle};
dy::TrackerROI roi=dy::visionMaskBounds(seed,_trackingShapePolygon,float(width)/height);_trackingObjectROI=roi;
os_log(OS_LOG_DEFAULT,"dayu_object_track_worker main=%{public}d",(int)NSThread.isMainThread);
if(!_objectTracker.reset((const uint8_t*)rgba.bytes,width,height,_trackingFlip,roi,1./CMTimeGetSeconds(_trackingFrameDuration)))return [self finishToolAnalysis:@"无法建立目标外观,请调整蒙版后重试" error:error];
objectStep={{roi.cx,roi.cy,roi.width,roi.height,1},true,false,false,0};
}else objectStep=_objectTracker.track((const uint8_t*)rgba.bytes,width,height,_trackingFlip);
target=_objectTracker.result(objectStep);
target.cx+=(_trackingSeed.centerX-_trackingObjectROI.cx)*target.scale;target.cy+=(_trackingSeed.centerY-_trackingObjectROI.cy)*target.scale;
if(!target.valid)return [self finishToolAnalysis:@"目标未能重新确认,已停止;请调整蒙版后继续" error:error];
}else if(!_trackingSamples.count){
os_log(OS_LOG_DEFAULT,"dayu_vision_region_worker main=%{public}d stamp=%{public}d",(int)NSThread.isMainThread,(int)stamp);
dy::TrackerROI targetROI={_trackingSeed.centerX,_trackingSeed.centerY,_trackingSeed.width,_trackingSeed.height,_trackingSeed.angle};
if(!_toolTracker.reset(frame,targetROI))
return [self finishToolAnalysis:stamp?@"覆盖区域内纹理不足,原图章已保留":@"蒙版内纹理不足,原蒙版已保留" error:error];
@@ -277,6 +295,13 @@
p.angle=_trackingSeed.angle+target.rotation;
}
if(!dyValidMaskParameters(p))return [self stopToolAnalysis:@"跟踪变换无效,未写入错误结果" error:error];
if(_trackingObjectMode){
if(objectStep.recovered){
if(!DYRepairObjectTrackingGap(_trackingSamples,p,objectStep.gap))return [self finishToolAnalysis:@"遮挡段无法安全补齐,已保留确认轨迹" error:error];
_trackingObjectRepaired+=objectStep.gap;
}
_trackingObjectPending=objectStep.predicted?objectStep.gap:0;
}
[_trackingSamples addObject:DYStampKey(time,p,NO,confidence,motion)];_trackingPreviousTime=time;
if(!_trackingSingle){
if(!(_trackingBoth&&_trackingBackward&&_trackingSamples.count==1&&_trackingPreviewCompleted))++_trackingPreviewCompleted;
@@ -290,7 +315,7 @@
sampled.height=_trackingStampSourceSeed.height*source.scaleY;
packet[@"sourceShape"]=[NSData dataWithBytes:&sampled length:sizeof(sampled)];
}
packet[@"shape"]=[NSData dataWithBytes:&covered length:sizeof(covered)];
packet[@"shape"]=[NSData dataWithBytes:&covered length:sizeof(covered)];packet[@"predicted"]=@(objectStep.predicted);
packet[@"nodes"]=_trackingFrozenMask[@"nodes"];
packet[@"flip"]=@(_trackingFlip);packet[@"time"]=@(CMTimeGetSeconds(time));
packet[@"completed"]=@(_trackingPreviewCompleted);
@@ -302,10 +327,16 @@
if(stamp)os_log(OS_LOG_DEFAULT,"dayu_stamp_track_pair time=%{public}.6f target=%{public}.5f,%{public}.5f source=%{public}.5f,%{public}.5f target_scale=%{public}.4f,%{public}.4f source_scale=%{public}.4f,%{public}.4f",CMTimeGetSeconds(time),target.cx,target.cy,source.cx,source.cy,motion.targetScaleX,motion.targetScaleY,motion.sourceScaleX,motion.sourceScaleY);
}
return YES;
}@finally{_trackingInFrame.store(false);}
}@finally{DYBetaSpanEnd(trackingSpan,nil);_trackingInFrame.store(false);}
}
- (BOOL)cleanupAnalysis:(NSError**)error {
if(!_trackingActive.load()||_trackingFinishing.exchange(true))return YES;BOOL changed=_trackingSamples.count>1;if(changed&&!DYMergeTracking(_trackingCandidate,_trackingSamples,_trackingFrameDuration)){[_trackingMessage release];_trackingMessage=[@"轨迹合并失败,原蒙版已保留" copy];_trackingDiscard=YES;}
if(!_trackingActive.load()||_trackingFinishing.exchange(true))return YES;
if(_trackingObjectPending){
NSUInteger remove=MIN(_trackingObjectPending,_trackingSamples.count);[_trackingSamples removeObjectsInRange:NSMakeRange(_trackingSamples.count-remove,remove)];
NSString *message=[NSString stringWithFormat:@"%@;已排除末尾 %lu 帧未确认预测",_trackingMessage?:@"目标丢失,请检查并从最后确认位置继续",(unsigned long)remove];[_trackingMessage release];_trackingMessage=[message copy];_trackingObjectPending=0;
}
BOOL changed=_trackingSamples.count>1;if(changed&&!DYMergeTracking(_trackingCandidate,_trackingSamples,_trackingFrameDuration)){[_trackingMessage release];_trackingMessage=[@"轨迹合并失败,原蒙版已保留" copy];_trackingDiscard=YES;}
_objectTracker.stop();
_toolTracker.stop();
if(_trackingStampMotion.active)_stampSourceTracker.stop();
uint64_t generation=_trackingGeneration;BOOL second=_trackingBoth&&!_trackingBackward&&!_trackingCancelled.load()&&!_trackingDiscard;
@@ -313,6 +344,7 @@
if(!self->_trackingSingle)[self publishTrackingPreview];
if(second){self->_trackingBackward=YES;self->_trackingFinishing.store(false);self->_trackingStarted=NSProcessInfo.processInfo.systemUptime;id<FxCustomParameterActionAPI_v4>a=[self->_apiManager apiForProtocol:@protocol(FxCustomParameterActionAPI_v4)];BOOL started=NO;if(a){[a startAction:self];@try{started=[[self->_apiManager apiForProtocol:@protocol(FxAnalysisAPI)]startBackwardAnalysis:kFxAnalysisLocation_GPU error:nil];}@finally{[a endAction:self];}}if(started){[self toolStatus:@"正向完成,正在从同一起点反向跟踪…"];return;}self->_trackingFinishing.store(true);}
BOOL hasResults=![self->_trackingCandidate[@"keys"]isEqual:self->_trackingFrozenMask[@"keys"]];NSString *message=self->_trackingMessage?:[NSString stringWithFormat:@"%@跟踪完成 · %lu 个轨迹键",self->_trackingBoth?@"双向":(self->_trackingBackward?@"反向":@"正向"),(unsigned long)[self->_trackingCandidate[@"keys"]count]];
if(self->_trackingObjectRepaired)message=[message stringByAppendingFormat:@" · 补齐 %lu 帧短暂遮挡,请复核",(unsigned long)self->_trackingObjectRepaired];
if(hasResults&&!self->_trackingDiscard){id<FxCustomParameterActionAPI_v4>a=[self->_apiManager apiForProtocol:@protocol(FxCustomParameterActionAPI_v4)];if(a){[a startAction:self];@try{NSMutableDictionary *doc=DYMutablePlist(DYReadTools(self->_apiManager,a.currentTime).document);NSString *node=DYSharedMaskWithID(doc,self->_trackingMaskID)?@"shared":self->_trackingNode;NSMutableDictionary *mask=[self toolMask:self->_trackingMaskID node:node document:doc];if(mask&&[mask isEqual:self->_trackingFrozenMask]){self->_trackingCandidate[@"status"]=message;[mask setDictionary:self->_trackingCandidate];id<FxUndoAPI>undo=[self->_apiManager apiForProtocol:@protocol(FxUndoAPI)];[undo startUndoGroup:mask[@"stampSource"]?@"仿制图章跟踪":@"蒙版区域跟踪"];BOOL written=DYWriteTools(self->_apiManager,doc,a.currentTime);[undo endUndoGroup];if(!written)message=@"宿主未接受轨迹,原蒙版已保留";}else message=@"目标工具或蒙版已更改,已丢弃过期跟踪结果";}@finally{[a endAction:self];}}}
CMTime stepTime=self->_trackingPreviousTime;BOOL advance=self->_trackingSingle&&changed&&!self->_trackingDiscard&&!self->_trackingCancelled.load()&&CMTIME_IS_NUMERIC(stepTime);
@synchronized(self->_toolCaptureDevices){for(NSMutableDictionary *entry in self->_toolCaptureDevices.allValues)[entry removeObjectsForKeys:@[@"encoded",@"bytes",@"buffer",@"previewBuffer"]];}
+2
查看文件
@@ -57,6 +57,8 @@ NSArray *DYStampSourceAtTime(NSDictionary *stamp,CMTime time);
NSArray *DYStampSamplingScaleAtTime(NSDictionary *stamp,CMTime time);
NSDictionary *DYStampKey(CMTime time,DYMaskParameters parameters,BOOL manual,float confidence,DYStampMotion motion);
BOOL DYMergeTracking(NSMutableDictionary *mask,NSArray *samples,CMTime frameDuration=kCMTimeInvalid);
BOOL DYMosaicTracksMask(NSDictionary *document,NSString *maskID);
BOOL DYRepairObjectTrackingGap(NSMutableArray *samples,DYMaskParameters next,NSUInteger gap);
NSDictionary *DYToolRenderSnapshot(NSDictionary *document,CMTime time);
DYUniforms DYToolUniforms(NSDictionary *node);
BOOL DYToolIsNeutral(NSDictionary *node);
+34 -4
查看文件
@@ -316,6 +316,30 @@ static NSArray *smoothStampTrackingSamples(NSArray *samples){
[result addObject:samples.lastObject];
return result;
}
BOOL DYMosaicTracksMask(NSDictionary *doc,NSString *maskID){
NSDictionary *mosaic=doc[@"mosaic"],*mask=DYSharedMaskWithID(doc,maskID);
NSArray *ids=mosaic[@"maskIDs"]?: (mosaic[@"maskID"]?@[mosaic[@"maskID"]]:@[]);
DYMaskParameters p=DYMaskAtTime(mask,kCMTimeInvalid);
return mask&&(p.kind<=DYMaskBezier)&&!mask[@"stampSource"]&&[mask[@"enabled"]boolValue]&&[mosaic[@"enabled"]boolValue]&&[mosaic[@"source"]isEqual:@"mask"]&&[ids containsObject:maskID];
}
BOOL DYRepairObjectTrackingGap(NSMutableArray *samples,DYMaskParameters next,NSUInteger gap){
if(!gap)return YES;if(samples.count<=gap||!dyValidMaskParameters(next))return NO;
NSUInteger anchor=samples.count-gap-1;DYMaskParameters left;
if(!readParameters(samples[anchor][@"parameters"],&left)||left.kind!=next.kind)return NO;
NSMutableArray *repaired=[NSMutableArray arrayWithCapacity:gap];
for(NSUInteger i=1;i<=gap;i++){
NSDictionary *original=samples[anchor+i];if([original[@"manual"]boolValue]||original[@"stampMotion"])return NO;
float t=float(i)/float(gap+1);DYMaskParameters p=left;
p.centerX=left.centerX+(next.centerX-left.centerX)*t;p.centerY=left.centerY+(next.centerY-left.centerY)*t;
p.width=std::exp(std::log(left.width)+(std::log(next.width)-std::log(left.width))*t);
p.height=std::exp(std::log(left.height)+(std::log(next.height)-std::log(left.height))*t);
p.angle=left.angle+std::remainder(next.angle-left.angle,float(2*M_PI))*t;
if(!dyValidMaskParameters(p))return NO;
NSMutableDictionary *key=[[original mutableCopy]autorelease];key[@"parameters"]=parameterData(p);key[@"confidence"]=@.35;
[repaired addObject:key];
}
[samples replaceObjectsInRange:NSMakeRange(anchor+1,gap) withObjectsFromArray:repaired];return YES;
}
BOOL DYMergeTracking(NSMutableDictionary *m,NSArray *samples,CMTime frameDuration){
if(!samples.count)return YES;
NSMutableArray *all=[NSMutableArray array];
@@ -395,12 +419,13 @@ BOOL DYToolIsNeutral(NSDictionary *node){NSString *type=node[@"type"];DYUniforms
@implementation DYToolManager {
id<PROAPIAccessing> _host;NSString *_nodeID,*_type;NSInteger _depth;CMTime _time;NSMutableDictionary *_pending;DYInspectorToken *_token;
DYUniforms _readUniforms;BOOL _readUniformsValid;
}
@synthesize host=_host,nodeID=_nodeID,type=_type;
- (instancetype)initWithHost:(id<PROAPIAccessing>)h node:(NSDictionary*)n{if((self=[super init])){_host=h;_nodeID=[n[@"id"]copy];_type=[n[@"type"]copy];}return self;}
- (void)dealloc{[_nodeID release];[_type release];[_pending release];[_token release];[super dealloc];}
- (id)apiForProtocol:(Protocol*)p{if(protocol_isEqual(p,@protocol(FxParameterRetrievalAPI_v6))||protocol_isEqual(p,@protocol(FxParameterSettingAPI_v6))||protocol_isEqual(p,@protocol(FxCustomParameterActionAPI_v4)))return self;return [_host apiForProtocol:p];}
- (void)startAction:(id)sender{if(_depth++==0){[[_host apiForProtocol:@protocol(FxCustomParameterActionAPI_v4)]startAction:sender];_time=[(id<FxCustomParameterActionAPI_v4>)[_host apiForProtocol:@protocol(FxCustomParameterActionAPI_v4)]currentTime];[_pending release];_pending=[DYMutablePlist(DYReadTools(_host,_time).document)retain];}}
- (void)startAction:(id)sender{if(_depth++==0){_readUniformsValid=NO;[[_host apiForProtocol:@protocol(FxCustomParameterActionAPI_v4)]startAction:sender];_time=[(id<FxCustomParameterActionAPI_v4>)[_host apiForProtocol:@protocol(FxCustomParameterActionAPI_v4)]currentTime];[_pending release];_pending=[DYMutablePlist(DYReadTools(_host,_time).document)retain];}}
- (void)endAction:(id)sender{
if(_depth<=0||--_depth>0)return;
@try{
@@ -415,9 +440,14 @@ BOOL DYToolIsNeutral(NSDictionary *node){NSString *type=node[@"type"];DYUniforms
}
}
- (CMTime)currentTime{return _time;}
- (NSDictionary*)node{return DYToolWithID(_pending?:DYReadTools(_host,_time).document,_nodeID);}
- (BOOL)getFloatValue:(double*)out fromParameter:(UInt32)pid atTime:(CMTime)t{NSDictionary *n=[self node];DYUniforms u=DYToolUniforms(n?:@{@"type":_type});for(NSDictionary *d in DYDescriptors())if([d[@"pid"]unsignedIntValue]==pid){*out=[d[@"offset"]integerValue]>=0?*(float*)((uint8_t*)&u+[d[@"offset"]unsignedIntegerValue]):[d[@"default"]doubleValue];return YES;}return NO;}
- (BOOL)setFloatValue:(double)v toParameter:(UInt32)pid atTime:(CMTime)t{if(!_depth||!std::isfinite(v))return NO;NSMutableDictionary *n=(id)[self node];if(!n)return NO;for(NSDictionary *d in DYDescriptors())if([d[@"pid"]unsignedIntValue]==pid){NSString *key=d[@"key"];if(n[@"primaryFollow"]&&([key hasSuffix:@"Transfer"]||[key hasSuffix:@"Gamut"])){NSUInteger bit=[key hasPrefix:@"cminput"]?1:[key hasPrefix:@"cmworking"]?2:[key hasPrefix:@"cmoutput"]?4:0;n[@"primaryFollow"]=@([n[@"primaryFollow"]unsignedIntegerValue]&~bit);}n[@"values"][key]=@(v);return YES;}return NO;}
- (NSDictionary*)node{return DYToolWithID(_depth?_pending:DYReadTools(_host,_time).document,_nodeID);}
- (BOOL)getFloatValue:(double*)out fromParameter:(UInt32)pid atTime:(CMTime)t{
// One coherent snapshot per action, invalidated by any authoring write.
// Inspector controls previously rebuilt every section for every scalar.
if(!_depth||!_readUniformsValid){_readUniforms=DYToolUniforms([self node]?:@{@"type":_type});_readUniformsValid=_depth>0;}
for(NSDictionary *d in DYDescriptors())if([d[@"pid"]unsignedIntValue]==pid){if(out)*out=[d[@"offset"]integerValue]>=0?*(float*)((uint8_t*)&_readUniforms+[d[@"offset"]unsignedIntegerValue]):[d[@"default"]doubleValue];return YES;}return NO;
}
- (BOOL)setFloatValue:(double)v toParameter:(UInt32)pid atTime:(CMTime)t{if(!_depth||!std::isfinite(v))return NO;NSMutableDictionary *n=(id)[self node];if(!n)return NO;for(NSDictionary *d in DYDescriptors())if([d[@"pid"]unsignedIntValue]==pid){NSString *key=d[@"key"];if(n[@"primaryFollow"]&&([key hasSuffix:@"Transfer"]||[key hasSuffix:@"Gamut"])){NSUInteger bit=[key hasPrefix:@"cminput"]?1:[key hasPrefix:@"cmworking"]?2:[key hasPrefix:@"cmoutput"]?4:0;n[@"primaryFollow"]=@([n[@"primaryFollow"]unsignedIntegerValue]&~bit);}n[@"values"][key]=@(v);_readUniformsValid=NO;return YES;}return NO;}
- (BOOL)getCustomParameterValue:(id*)out fromParameter:(UInt32)pid atTime:(CMTime)t{if(pid==DYAssetsParameterID){DYAssetState *a=[[[DYAssetState alloc]init]autorelease];NSDictionary *n=[self node];a.paths=n[@"paths"]?:@{};a.spiderMesh=n[@"spider"];a.spiderLinked=[n[@"spiderLinked"]boolValue];*out=a;return YES;}if(pid==DYInspectorParameterID){DYInspectorToken *global=_token; if(!global)[[_host apiForProtocol:@protocol(FxParameterRetrievalAPI_v6)]getCustomParameterValue:&global fromParameter:pid atTime:t];DYInspectorToken *local=[[[DYInspectorToken alloc]init]autorelease];NSMutableDictionary *folds=[NSMutableDictionary dictionary];for(NSString *key in global.folds)if([key hasPrefix:[_nodeID stringByAppendingString:@":"]])folds[[key substringFromIndex:_nodeID.length+1]]=global.folds[key];local.folds=folds;*out=local;return YES;}return NO;}
- (BOOL)setCustomParameterValue:(id)v toParameter:(UInt32)pid atTime:(CMTime)t{if(!_depth)return NO;NSMutableDictionary *n=(id)[self node];if(!n)return NO;if(pid==DYAssetsParameterID&&[v isKindOfClass:DYAssetState.class]){n[@"paths"]=DYMutablePlist([v paths]);if([v spiderMesh])n[@"spider"]=[v spiderMesh];else[n removeObjectForKey:@"spider"];n[@"spiderLinked"]=@([v spiderLinked]);return YES;}if(pid==DYInspectorParameterID){DYInspectorToken *old=nil;[[_host apiForProtocol:@protocol(FxParameterRetrievalAPI_v6)]getCustomParameterValue:&old fromParameter:pid atTime:t];[_token release];_token=old?[old copy]:[DYInspectorToken new];NSMutableDictionary *folds=[[_token.folds mutableCopy]autorelease];for(NSString *key in [v folds])folds[[_nodeID stringByAppendingFormat:@":%@",key]]=[v folds][key];_token.folds=folds;return YES;}return NO;}
@end
@@ -10,7 +10,7 @@
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];}];
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-opencv-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)});
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;
DYMaskParameters shown{};
[lastPreview[@"shape"] getBytes:&shown length:sizeof(shown)];
@@ -62,7 +62,10 @@
const NSUInteger w=3840,h=2160;DYDiagnosticTile *fine=[[[DYDiagnosticTile alloc]initWithDevice:gpu width:w height:h]autorelease];Pixels pixels(w*h*4);
for(NSUInteger y=0;y<h;y++)for(NSUInteger x=0;x<w;x++){float encoded=x%3==1?.8f:.2f,linear=powf((encoded+.055f)/1.055f,2.4f);auto i=(y*w+x)*4;pixels[i]=pixels[i+1]=pixels[i+2]=linear;pixels[i+3]=1;}
[[fine metalTextureForDevice:gpu]replaceRegion:MTLRegionMake2D(0,0,w,h) mipmapLevel:0 withBytes:pixels.data() bytesPerRow:w*8];auto gray=[plugin toolGrayFrame:fine error:nil];double maximum=0;for(NSUInteger y=0;y<(NSUInteger)gray.height;y++)for(NSUInteger x=0;x<(NSUInteger)gray.width;x++){double code=x%3==1?.8:.2;double expected=std::round(std::pow(std::pow((code+.055)/1.055,2.4),1/2.2)*255)/255.;maximum=std::max(maximum,fabs(double(gray.pixels[y*gray.width+x])-expected));}
run.record(@"tracking-4k-frame-preserves-full-detail-for-opencv",gray.valid()&&gray.width==3840&&gray.height==2160&&maximum<.002,@{@"width":@(gray.width),@"height":@(gray.height),@"maximumError":@(maximum)});
run.record(@"tracking-4k-frame-preserves-full-detail-for-vision-crops",gray.valid()&&gray.width==3840&&gray.height==2160&&maximum<.002,@{@"width":@(gray.width),@"height":@(gray.height),@"maximumError":@(maximum)});
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))});
}
// 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.
@@ -169,6 +172,43 @@
paired&&ended&&[saved[@"keys"] count]==3&&[sourceLoss.domain isEqual:FxPlugErrorDomain]&&
sourceLoss.code==kFxError_UserCancelled&&[sourceLoss.localizedDescription containsString:@"取样区域"]);
}
{
NSMutableDictionary *objectDoc=DYMutablePlist([[[DYToolDocument alloc]init]autorelease].document),*objectMask=(id)DYAddSharedMask(objectDoc,DYMaskRectangle);
NSString *ID=objectMask[@"id"];DYMaskParameters shape=DYMaskAtTime(objectMask,kCMTimeZero);shape.width=shape.height=.45;shape.feather=0;objectMask[@"parameters"]=[NSData dataWithBytes:&shape length:sizeof(shape)];
objectDoc[@"mosaic"]=[NSMutableDictionary dictionaryWithDictionary:@{@"enabled":@YES,@"source":@"mask",@"maskIDs":@[ID],@"size":@16}];
run.record(@"mosaic-selected-mask-uses-object-tracking",DYMosaicTracksMask(objectDoc,ID)&&!DYMosaicTracksMask(objectDoc,@"missing"));
shape.kind=DYMaskBezier;objectMask[@"parameters"]=[NSData dataWithBytes:&shape length:sizeof(shape)];
run.record(@"bezier-mosaic-uses-vision-object-tracking",DYMosaicTracksMask(objectDoc,ID));
shape.kind=DYMaskRectangle;objectMask[@"parameters"]=[NSData dataWithBytes:&shape length:sizeof(shape)];
objectDoc[@"mosaic"][@"enabled"]=@NO;run.record(@"disabled-mosaic-uses-precise-vision-registration",!DYMosaicTracksMask(objectDoc,ID));objectDoc[@"mosaic"][@"enabled"]=@YES;
DYWriteTools(base,objectDoc,kCMTimeZero);capture(0);host->_state=kFxAnalysisState_NotAnalyzing;
[plugin toolTrackRequested:[NSNotification notificationWithName:@"DYToolTrack" object:host userInfo:@{@"node":@"shared",@"mask":ID,@"direction":@1}]];
BOOL ok=[plugin desiredAnalysisTimeRange:&desired forInputWithTimeRange:inputRange error:nil]&&[plugin setupAnalysisForTimeRange:desired frameDuration:timeAt(1) error:nil];
for(int i=0;i<6&&ok;i++){setFrame(i);ok&=[plugin analyzeFrame:frame atTime:timeAt(i) error:nil];}
run.record(@"mosaic-object-host-callbacks-produce-six-frames",ok&&[[(NSObject*)plugin valueForKey:@"trackingSamples"]count]==6);
// Simulate cancellation while two provisional predictions are awaiting a
// confirmed endpoint. Those keys must never reach the host document.
[(NSObject*)plugin setValue:@2 forKey:@"trackingObjectPending"];[plugin cleanupAnalysis:nil];drain();
NSDictionary *savedMask=DYSharedMaskWithID(DYReadTools(base,kCMTimeZero).document,ID);
run.record(@"object-tracking-discards-unconfirmed-tail-before-commit",[savedMask[@"keys"]count]==4&&[savedMask[@"status"]containsString:@"未确认预测"]);
}
[NSNotificationCenter.defaultCenter removeObserver:observer];
[plugin release];
}
{
dy::ObjectMotion motion;dy::ObjectBox box{.3,.4,.1,.15,.95};motion.reset(box,25);bool ok=true;
for(int i=1;i<=10;i++){box.cx=.3f+.002f*i;ok&=motion.advance(box,true).valid;}
auto predicted=motion.advance({},false);run.record(@"object-short-loss-predicts-prior-motion",ok&&predicted.valid&&predicted.predicted&&predicted.box.cx>box.cx&&predicted.box.confidence<.3);
motion.advance({},false);box.cx=.326;auto first=motion.advance(box,true);box.cx=.328;auto second=motion.advance(box,true);
run.record(@"object-reacquisition-requires-two-consistent-observations",first.predicted&&second.recovered&&second.gap==3&&!second.predicted);
auto teleport=box;teleport.cx=.9;run.record(@"object-motion-rejects-distant-distractor",motion.advance(teleport,true).predicted);
dy::ObjectStep last;for(int i=0;i<25;i++)last=motion.advance({},false);run.record(@"object-long-loss-stops-bounded-prediction",!last.valid&&!motion.active());
motion.reset({.5,.5,.1,.1,.9},std::numeric_limits<double>::quiet_NaN());
run.record(@"object-invalid-fps-does-not-enable-prediction",!motion.active());
DYMaskParameters a=dyDefaultMaskParameters(),b=a;a.centerX=.2;b.centerX=.8;a.width=.1;b.width=.4;
NSMutableArray *keys=[NSMutableArray arrayWithObjects:DYMaskKey(CMTimeMake(3,25),a,NO,1),DYMaskKey(CMTimeMake(2,25),a,NO,.1),DYMaskKey(CMTimeMake(1,25),a,NO,.1),nil];
BOOL repaired=DYRepairObjectTrackingGap(keys,b,2);DYMaskParameters x,y;[keys[1][@"parameters"]getBytes:&x length:sizeof(x)];[keys[2][@"parameters"]getBytes:&y length:sizeof(y)];
run.record(@"object-gap-repair-uses-both-endpoints-in-reverse-order",repaired&&fabs(x.centerX-.4)<1e-6&&fabs(y.centerX-.6)<1e-6&&[keys[1][@"value"]intValue]==2&&[keys[1][@"confidence"]floatValue]<.5);
NSArray *before=[[keys copy]autorelease];run.record(@"object-gap-repair-rejects-missing-confirmed-anchor",!DYRepairObjectTrackingGap(keys,b,3)&&[keys isEqual:before]);
keys[1]=DYMaskKey(CMTimeMake(2,25),a,YES,1);before=[[keys copy]autorelease];run.record(@"object-gap-repair-never-overwrites-manual-key",!DYRepairObjectTrackingGap(keys,b,2)&&[keys isEqual:before]);
}
@@ -1,4 +1,5 @@
#include "MaskCore/DYTracker.hpp"
#include "MaskCore/DYObjectMotion.hpp"
@interface DYToolTrackingProbe : NSObject<PROAPIAccessing> {
@public
id _base;CMTime _time,_timelineOffset,_seekTime;int _seekCount;FxAnalysisState _state;int _forwardStarts,_backwardStarts;
@@ -27,6 +28,7 @@
- (BOOL)analyzeFrame:(FxImageTile*)frame atTime:(CMTime)time error:(NSError**)error;
- (BOOL)cleanupAnalysis:(NSError**)error;
- (dy::GrayFrame)toolGrayFrame:(FxImageTile*)tile error:(NSError**)error;
- (dy::GrayFrame)toolGrayFrame:(FxImageTile*)tile preview:(NSDictionary**)preview error:(NSError**)error;
@end
@interface DYToolCanvasProbe : DYToolTrackingProbe
+2 -2
查看文件
@@ -54,9 +54,9 @@ kernel void dyToolEncodeGamma22(texture2d<float,access::read> source [[texture(0
if(pos.x>=output.get_width()||pos.y>=output.get_height())return;float4 pixel=source.read(pos);float alpha=max(pixel.a,0.f);float3 straight=alpha>0?pixel.rgb/alpha:float3(0);output.write(float4(pow(max(straight,float3(0)),float3(1.f/2.2f))*alpha,alpha),pos);
}
// Lanczos RGBA8 -> top-first OpenCV Gray8. Analysis never changes color output.
kernel void dyToolCapture(texture2d<float> source [[texture(0)]],device float* pixels [[buffer(0)]],constant uint3& info [[buffer(1)]],uint2 pos [[thread_position_in_grid]]){
kernel void dyToolCapture(texture2d<float> source [[texture(0)]],device uchar* pixels [[buffer(0)]],constant uint3& info [[buffer(1)]],uint2 pos [[thread_position_in_grid]]){
if(pos.x>=info.x||pos.y>=info.y)return;uint2 point=uint2(pos.x,info.z?info.y-1-pos.y:pos.y);uint3 rgb=uint3(rint(source.read(point).rgb*255.f));
pixels[pos.y*info.x+pos.x]=float((rgb.r*9798u+rgb.g*19235u+rgb.b*3735u+16384u)>>15)/255.f;
pixels[pos.y*info.x+pos.x]=uchar((rgb.r*9798u+rgb.g*19235u+rgb.b*3735u+16384u)>>15);
}
// Reuse the analysis source texture for the lightweight color preview.
@@ -162,7 +162,7 @@ static BOOL DYViewerSanitizeValue(NSDictionary *d,double input,double *output) {
if(current&&[faces[@"boxes"]count])add([NSString stringWithFormat:@"将本帧 %lu 张人脸转为可选跟踪蒙版",(unsigned long)[faces[@"boxes"]count]],@{@"importFaces":faces,@"actionTime":[(NSDictionary*)CMTimeCopyAsDictionary(actionTime,kCFAllocatorDefault)autorelease]},NO);
else {NSMenuItem *hint=[menu addItemWithTitle:current?@"本帧未识别到人脸":@"先开启全部人脸,暂停后再次打开以指定人脸" action:nil keyEquivalent:@""];hint.enabled=NO;}
[menu addItem:NSMenuItem.separatorItem];
NSMenuItem *hint=[menu addItemWithTitle:@"勾选要遮挡的蒙版(可多选);在控制面板逐个跟踪" action:nil keyEquivalent:@""];hint.enabled=NO;
NSMenuItem *hint=[menu addItemWithTitle:@"勾选后逐个跟踪;支持短时预测与重新定位" action:nil keyEquivalent:@""];hint.enabled=NO;
NSArray *IDs=settings[@"maskIDs"]?: (settings[@"maskID"]?@[settings[@"maskID"]]:@[]);NSInteger count=0;
for(NSDictionary *mask in DYSharedMasks(doc)){if(mask[@"stampSource"])continue;count++;DYMaskParameters p=DYMaskAtTime(mask,kCMTimeInvalid);NSString *shape=mask[@"label"]?:[NSString stringWithFormat:@"蒙版 %ld · %@",(long)count,@[@"椭圆",@"矩形",@"钢笔",@"渐变",@"HSL",@"亮度"][p.kind]];
add([shape stringByAppendingString:[mask[@"keys"]count]?@" · 已跟踪":@" · 静态"],@{@"toggleMask":mask[@"id"]},[settings[@"enabled"]boolValue]&&[settings[@"source"]isEqual:@"mask"]&&[IDs containsObject:mask[@"id"]]);
@@ -1,5 +1,11 @@
#import "DYColorWorkspace.h"
// Offscreen fixtures: no window is ordered onto the user's screen.
static NSUInteger DYWorkspaceEphemeralParentDeallocations=0;
@interface DYWorkspaceEphemeralParent : NSView
@end
@implementation DYWorkspaceEphemeralParent
- (void)dealloc{++DYWorkspaceEphemeralParentDeallocations;[super dealloc];}
@end
@interface DYColorWorkspace (DiagnosticActions)
- (NSDictionary *)selectionContext;
- (void)showPage:(NSString *)page maskKind:(NSNumber *)kind;
@@ -8,6 +8,21 @@
}
{
auto workspaceDrain=[](){double end=NSProcessInfo.processInfo.systemUptime+.04;while(NSProcessInfo.processInfo.systemUptime<end)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.002]];};
// Reproduce host ownership ending before the queued geometry callback. This
// previously dereferenced a freed FxXPView in parentChanged: on the main queue.
NSUInteger ephemeralBefore=DYWorkspaceEphemeralParentDeallocations;
@autoreleasepool {
DYWorkspaceDiagnosticHost *ephemeralHost=[[[DYWorkspaceDiagnosticHost alloc]init]autorelease];DYCreateParameters(ephemeralHost,&error);
DYWorkspaceDiagnosticRenderer *ephemeralRenderer=[[[DYWorkspaceDiagnosticRenderer alloc]init]autorelease];
DYLUTLibrary *ephemeralLibrary=[[[DYLUTLibrary alloc]initWithRootURL:[NSURL fileURLWithPath:[runtime stringByAppendingPathComponent:@"ephemeral-library"]]]autorelease];
NSView *parent=[[DYWorkspaceEphemeralParent alloc]initWithFrame:NSMakeRect(0,0,1120,360)];ephemeralHost->_parent=parent;
NSUInteger before=DYWorkspaceEphemeralParentDeallocations;
DYColorWorkspace *owned=[[DYColorWorkspace alloc]initWithManager:ephemeralHost renderer:ephemeralRenderer library:ephemeralLibrary title:@"生命周期"];
[owned showRelativeToView:nil];[parent release];BOOL retained=DYWorkspaceEphemeralParentDeallocations==before;
workspaceDrain();run.record(@"workspace-owns-remote-parent-through-deferred-geometry",retained&&owned.visible&&[(NSView*)[owned valueForKey:@"root"]superview]==ephemeralHost->_parent);
[owned close];[owned release];ephemeralHost->_parent=nil;workspaceDrain();
}
run.record(@"workspace-releases-owned-remote-parent-on-close",DYWorkspaceEphemeralParentDeallocations==ephemeralBefore+1);
NSString *oldLUT=[runtime stringByAppendingPathComponent:@"old.cube"],*retainLUT=[runtime stringByAppendingPathComponent:@"retain.cube"],*newLUT=[runtime stringByAppendingPathComponent:@"new.cube"],*lateLUT=[runtime stringByAppendingPathComponent:@"late.cube"],*userLUT=[runtime stringByAppendingPathComponent:@"user-new.cube"],*nodeLUT=[runtime stringByAppendingPathComponent:@"node.cube"],*deletedLUT=[runtime stringByAppendingPathComponent:@"deleted.cube"];
DYWorkspaceDiagnosticHost *host=[[[DYWorkspaceDiagnosticHost alloc]init]autorelease];DYCreateParameters(host,&error);
DYWorkspaceDiagnosticRenderer *scopeRenderer=[[[DYWorkspaceDiagnosticRenderer alloc]init]autorelease];
+4 -1
查看文件
@@ -65,7 +65,10 @@
}
for(NSDictionary*mask in DYSharedMasks(document))if(!DYToolIDsForSharedMask(document,mask[@"id"]).count){DYMaskParameters p=DYMaskAtTime(mask,_toolTime);[rows addObject:@{@"node":@"shared",@"mask":mask[@"id"],@"enabled":mask[@"enabled"],@"title":mask[@"stampSource"]?@"◩ 仿制图章":[@"◩ " stringByAppendingString:mask[@"label"]?:[@"未分配 · " stringByAppendingString:@[@"椭圆",@"矩形",@"钢笔",@"渐变",@"HSL",@"亮度"][p.kind]]],@"kind":@"mask"}];}
}@finally{[action endAction:self];}
[_toolDocument release];_toolDocument=document;[_layerRows release];_layerRows=[rows copy];[_layerTable reloadData];
[_toolDocument release];_toolDocument=document;
// A scalar drag changes the editor, not the layer list. Retain row views and
// selection while their actual displayed model is unchanged.
if(![_layerRows isEqual:rows]){[_layerRows release];_layerRows=[rows copy];[_layerTable reloadData];}
NSString *requested=note.userInfo[@"scrollToTool"];if(requested.length){_hasUserSelection=YES;[_selectedNode release];_selectedNode=[requested copy];[_selectedMask release];_selectedMask=nil;}
NSInteger selected=-1;for(NSUInteger i=0;i<_layerRows.count;i++){NSDictionary*row=_layerRows[i];if([row[@"node"]isEqual:_selectedNode]&&(_selectedMask?[row[@"mask"]isEqual:_selectedMask]:!row[@"mask"])){selected=i;break;}}
if(selected<0&&_selectedMask)for(NSUInteger i=0;i<_layerRows.count;i++)if([_layerRows[i][@"mask"]isEqual:_selectedMask]){selected=i;[_selectedNode release];_selectedNode=[_layerRows[i][@"node"]copy];break;}
+3 -3
查看文件
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.17.1</string>
<string>1.19.0</string>
<key>CFBundleVersion</key>
<string>103</string>
<string>109</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>PlugInKit</key>
@@ -71,7 +71,7 @@
<key>uuid</key>
<string>1C17B73B-F229-4C09-A434-EAF6DFF5F22A</string>
<key>version</key>
<string>1.17.1</string>
<string>1.18.1</string>
</dict>
<dict>
<key>className</key>
@@ -0,0 +1,51 @@
#pragma once
#include <algorithm>
#include <cmath>
namespace dy {
struct ObjectBox {float cx=.5f,cy=.5f,width=.1f,height=.1f,confidence=0;};
struct ObjectStep {ObjectBox box;bool valid=false,predicted=false,recovered=false;int gap=0;};
// Bounded prediction in analysis-frame order (also valid for reverse passes).
// An unconfirmed tail is never an observed trajectory. Host commit trims it.
class ObjectMotion {
ObjectBox trusted_{},candidate_{};
float vx_=0,vy_=0;
int missing_=0,limit_=20,candidateCount_=0;
bool active_=false;
static bool finite(ObjectBox b){return std::isfinite(b.cx)&&std::isfinite(b.cy)&&std::isfinite(b.width)&&std::isfinite(b.height)&&std::isfinite(b.confidence)&&b.width>.003f&&b.height>.003f&&b.width<=1&&b.height<=1&&b.cx>=0&&b.cx<=1&&b.cy>=0&&b.cy<=1;}
public:
void reset(ObjectBox b,double fps){trusted_=b;vx_=vy_=0;missing_=candidateCount_=0;active_=finite(b)&&std::isfinite(fps)&&fps>0;limit_=active_?std::clamp(int(std::ceil(std::clamp(fps,1.,240.)*.8)),2,192):2;}
int missing()const{return missing_;}
bool active()const{return active_;}
ObjectBox prediction(int ahead=1)const{auto b=trusted_;b.cx+=vx_*(missing_+ahead);b.cy+=vy_*(missing_+ahead);return b;}
ObjectStep advance(ObjectBox measurement,bool observed){
if(!active_)return {};
auto expected=prediction();
float size=std::max(trusted_.width,trusted_.height);
float delta=std::hypot(measurement.cx-expected.cx,measurement.cy-expected.cy);
float scaleX=measurement.width/trusted_.width,scaleY=measurement.height/trusted_.height;
bool good=observed&&finite(measurement)&&measurement.confidence>=(missing_?.70f:.55f)&&
delta<size*(missing_?.65f:.45f)&&scaleX>.65f&&scaleX<1.55f&&scaleY>.65f&&scaleY<1.55f;
if(good&&missing_){
if(candidateCount_&&std::hypot(measurement.cx-candidate_.cx,measurement.cy-candidate_.cy)<size*.25f)++candidateCount_;
else candidateCount_=1;
candidate_=measurement;good=candidateCount_>=2;
}else if(!good)candidateCount_=0;
if(good){
int gap=missing_;float dt=float(gap+1);
float nx=(measurement.cx-trusted_.cx)/dt,ny=(measurement.cy-trusted_.cy)/dt;
float maximum=size*.12f;float length=std::hypot(nx,ny);if(length>maximum){nx*=maximum/length;ny*=maximum/length;}
vx_=gap?nx:.65f*vx_+.35f*nx;vy_=gap?ny:.65f*vy_+.35f*ny;
trusted_=measurement;missing_=candidateCount_=0;return {measurement,true,false,gap>0,gap};
}
++missing_;
if(missing_>limit_||!finite(expected)){active_=false;return {trusted_,false,false,false,missing_};}
// Preview grows conservatively during a gap; committed gaps are later
// reconstructed from both confirmed endpoints, not these guesses.
expected.confidence=.2f*(1.f-float(missing_)/float(limit_+1));
float margin=1.f+.2f*float(missing_)/float(limit_);expected.width*=margin;expected.height*=margin;
return {expected,true,true,false,missing_};
}
};
}
@@ -0,0 +1,72 @@
#pragma once
#import <Vision/Vision.h>
#import <CoreVideo/CoreVideo.h>
#include "DYObjectMotion.hpp"
#include "DYTracker.hpp"
namespace dy {
// Mosaic/object tracking uses small RGB frames and never trains on a lost
// observation. A fresh sequence probes from the last trusted image during gaps.
// All methods are called on the serialized host analysis worker, never UI refresh.
class ObjectTracker {
VNSequenceRequestHandler *sequence_=nil;
VNTrackObjectRequest *request_=nil;
CVPixelBufferRef current_=nullptr,trusted_=nullptr;
ObjectBox trustedBox_{};
ObjectMotion motion_;
TrackerROI seed_{};
int width_=0,height_=0;
bool started_=false;
static CGRect rect(ObjectBox b){return CGRectMake(b.cx-b.width*.5f,1-b.cy-b.height*.5f,b.width,b.height);}
void newSequence(ObjectBox box){
[request_ release];[sequence_ release];sequence_=[VNSequenceRequestHandler new];
request_=[[VNTrackObjectRequest alloc]initWithDetectedObjectObservation:[VNDetectedObjectObservation observationWithBoundingBox:rect(box)]];
request_.trackingLevel=VNRequestTrackingLevelAccurate;
}
bool perform(CVPixelBufferRef image,ObjectBox& box){
NSError *error=nil;BOOL ok=[sequence_ performRequests:@[request_] onCVPixelBuffer:image orientation:kCGImagePropertyOrientationUp error:&error];
VNDetectedObjectObservation *observation=request_.results.firstObject;
if(!ok||!observation)return false;
CGRect b=observation.boundingBox;box={float(CGRectGetMidX(b)),float(1-CGRectGetMidY(b)),float(b.size.width),float(b.size.height),observation.confidence};
request_.inputObservation=observation;return true;
}
bool copyInput(const uint8_t *rgba,int w,int h,bool flip){
if(!rgba||w<16||h<16||w>640||h>640)return false;
if(w!=width_||h!=height_)return false;
CVPixelBufferLockBaseAddress(current_,0);auto *out=(uint8_t*)CVPixelBufferGetBaseAddress(current_);size_t stride=CVPixelBufferGetBytesPerRow(current_);
for(int y=0;y<h;++y){const auto *row=rgba+size_t(flip?h-1-y:y)*w*4;auto *dst=out+y*stride;for(int x=0;x<w;++x){dst[x*4]=row[x*4+2];dst[x*4+1]=row[x*4+1];dst[x*4+2]=row[x*4];dst[x*4+3]=255;}}
CVPixelBufferUnlockBaseAddress(current_,0);return true;
}
public:
ObjectTracker()=default;
ObjectTracker(const ObjectTracker&)=delete;
ObjectTracker& operator=(const ObjectTracker&)=delete;
~ObjectTracker(){stop();}
void stop(){[request_ release];request_=nil;[sequence_ release];sequence_=nil;if(current_)CVPixelBufferRelease(current_);if(trusted_)CVPixelBufferRelease(trusted_);current_=trusted_=nullptr;width_=height_=0;started_=false;}
bool reset(const uint8_t *rgba,int w,int h,bool flip,TrackerROI roi,double fps){
stop();seed_=roi;width_=w;height_=h;
if(w<16||h<16||w>640||h>640)return false;
for(auto p:{&current_,&trusted_})if(CVPixelBufferCreate(kCFAllocatorDefault,w,h,kCVPixelFormatType_32BGRA,(CFDictionaryRef)@{(id)kCVPixelBufferIOSurfacePropertiesKey:@{}},p)!=kCVReturnSuccess){stop();return false;}
trustedBox_={roi.cx,roi.cy,roi.width,roi.height,1};motion_.reset(trustedBox_,fps);if(!motion_.active()||!copyInput(rgba,w,h,flip)){stop();return false;}
newSequence(trustedBox_);ObjectBox first;if(!perform(current_,first)){stop();return false;}
std::swap(current_,trusted_);started_=true;return true;
}
ObjectStep track(const uint8_t *rgba,int w,int h,bool flip){
if(!started_||!copyInput(rgba,w,h,flip))return {};
if(motion_.missing()){
newSequence(trustedBox_);ObjectBox ignored;if(!perform(trusted_,ignored))return {};
}
ObjectBox observed{};bool found=perform(current_,observed);
auto step=motion_.advance(observed,found);
if(step.valid&&!step.predicted){trustedBox_=observed;std::swap(current_,trusted_);}
return step;
}
int pendingFrames()const{return motion_.missing();}
TrackResult result(ObjectStep step)const{
TrackResult r;r.cx=step.box.cx;r.cy=step.box.cy;r.confidence=step.box.confidence;r.valid=step.valid;
// Keep a mosaic's authored aspect and avoid narrowing it across a turn.
r.scale=r.scaleX=r.scaleY=std::max(step.box.width/seed_.width,step.box.height/seed_.height);
r.rotation=0;r.failure=step.valid?TrackFailure::None:TrackFailure::LowConfidence;return r;
}
};
}
@@ -13,6 +13,9 @@ public:
OpenCVTracker(const OpenCVTracker&) = delete;
OpenCVTracker& operator=(const OpenCVTracker&) = delete;
void setMask(std::vector<FlowPoint>);
// Optional GPU optical flow; feature selection and robust fitting stay in
// the pinned OpenCV implementation. A backend failure stops this run.
void setFlowBackend(std::shared_ptr<FlowBackend>);
bool reset(const GrayFrame&, TrackerROI);
TrackResult track(const GrayFrame&);
TrackResult result() const;
+18 -1
查看文件
@@ -23,9 +23,24 @@ constexpr float TrackerFitTolerance = 3.f;
struct GrayFrame {
int width = 0, height = 0;
std::vector<float> pixels;
// Compact GPU analysis input. Legacy/synthetic callers keep using floats.
std::vector<uint8_t> bytes;
bool valid() const {
return width >= 16 && height >= 16 &&
pixels.size() == static_cast<size_t>(width) * height;
(pixels.size() == static_cast<size_t>(width) * height ||
(pixels.empty() && bytes.size() == static_cast<size_t>(width) * height));
}
float at(size_t i) const {return pixels.empty()?bytes[i]/255.f:pixels[i];}
GrayFrame expanded() const {
GrayFrame f{width,height,std::vector<float>(bytes.size())};
for(size_t i=0;i<bytes.size();++i)f.pixels[i]=bytes[i]/255.f;
return f;
}
void flipVertically() {
for(int y=0;y<height/2;++y)for(int x=0;x<width;++x){
size_t a=size_t(y)*width+x,b=size_t(height-1-y)*width+x;
if(pixels.empty())std::swap(bytes[a],bytes[b]);else std::swap(pixels[a],pixels[b]);
}
}
static GrayFrame fromRGBA8(const uint8_t* data, int w, int h, size_t stride) {
if (!data || w <= 0 || h <= 0 || stride < static_cast<size_t>(w) * 4) return {};
@@ -347,6 +362,7 @@ public:
void setBackend(std::shared_ptr<FlowBackend> b) {backend_=std::move(b);active_=false;}
void setMask(std::vector<P> p) {mask_=std::move(p);}
bool reset(const GrayFrame& frame,TrackerROI roi) {
if(frame.valid()&&frame.pixels.empty())return reset(frame.expanded(),roi);
active_=false;points_.clear();previous_.clear();cumulative_={};frameIndex_=0;
result_={roi.cx,roi.cy,1,0,0,0,0,false};
if (!frame.valid() || !std::isfinite(roi.cx) || !std::isfinite(roi.cy) ||
@@ -361,6 +377,7 @@ public:
return true;
}
TrackResult track(const GrayFrame& frame) {
if(frame.valid()&&frame.pixels.empty())return track(frame.expanded());
if (!active_ || !frame.valid() || frame.width!=width_ || frame.height!=height_) {
result_.valid=false;result_.confidence=0;result_.failure=TrackFailure::InvalidFrame;active_=false;return result_;
}
@@ -0,0 +1,99 @@
#pragma once
#import <Vision/Vision.h>
#import <CoreVideo/CoreVideo.h>
#include "DYTracker.hpp"
namespace dy {
inline TrackerROI visionMaskBounds(TrackerROI roi,const std::vector<FlowPoint>& polygon,float aspect){
float x0=1e9f,y0=1e9f,x1=-1e9f,y1=-1e9f,c=std::cos(roi.angle),s=std::sin(roi.angle);
for(auto p:polygon){float x=p.x*roi.width*aspect,y=p.y*roi.height;
float xx=roi.cx+(x*c-y*s)/aspect,yy=roi.cy+x*s+y*c;
x0=std::min(x0,xx);x1=std::max(x1,xx);y0=std::min(y0,yy);y1=std::max(y1,yy);}
return polygon.size()<3?roi:TrackerROI{(x0+x1)*.5f,(y0+y1)*.5f,x1-x0,y1-y0,0};
}
// Precision path for authored masks and independently moving clone regions.
// Vision estimates the local projective motion. We validate it against pixels
// inside the actual polygon, then expose the existing center/scale/angle format.
// No OpenCV code or fallback is used.
class VisionRegionTracker {
struct H {
double a[9]={1,0,0,0,1,0,0,0,1};
FlowPoint map(FlowPoint p)const{double z=a[6]*p.x+a[7]*p.y+a[8];return {float((a[0]*p.x+a[1]*p.y+a[2])/z),float((a[3]*p.x+a[4]*p.y+a[5])/z)};}
static H mul(const H& l,const H& r){H h;for(int y=0;y<3;y++)for(int x=0;x<3;x++){h.a[y*3+x]=0;for(int k=0;k<3;k++)h.a[y*3+x]+=l.a[y*3+k]*r.a[k*3+x];}return h;}
} cumulative_;
GrayFrame previous_;
std::vector<FlowPoint> polygon_,samples_;
TrackerROI seed_{};
TrackResult result_;
int width_=0,height_=0;
bool active_=false;
static float pixel(const GrayFrame& f,float x,float y){
x=std::clamp(x,0.f,float(f.width-1));y=std::clamp(y,0.f,float(f.height-1));
int ix=int(x),iy=int(y),jx=std::min(ix+1,f.width-1),jy=std::min(iy+1,f.height-1);float fx=x-ix,fy=y-iy;
return (f.at(iy*f.width+ix)*(1-fx)+f.at(iy*f.width+jx)*fx)*(1-fy)+(f.at(jy*f.width+ix)*(1-fx)+f.at(jy*f.width+jx)*fx)*fy;
}
static bool inside(const std::vector<FlowPoint>& polygon,float x,float y){bool yes=false;for(size_t i=0,j=polygon.size()-1;i<polygon.size();j=i++){
auto a=polygon[i],b=polygon[j];if((a.y>y)!=(b.y>y))if(x<(b.x-a.x)*(y-a.y)/(b.y-a.y)+a.x)yes=!yes;}return yes;}
bool framePoint(FlowPoint p)const{return std::isfinite(p.x)&&std::isfinite(p.y)&&p.x>=1&&p.y>=1&&p.x<width_-2&&p.y<height_-2;}
double correlation(const GrayFrame& current,const H& next,int& count)const{
double a=0,b=0,aa=0,bb=0,ab=0;count=0;
for(auto p:samples_){auto l=cumulative_.map(p),r=next.map(p);if(!framePoint(l)||!framePoint(r))continue;double x=pixel(previous_,l.x,l.y),y=pixel(current,r.x,r.y);a+=x;b+=y;aa+=x*x;bb+=y*y;ab+=x*y;++count;}
if(count<30)return -1;double va=aa-a*a/count,vb=bb-b*b/count;if(va/count<.0004||vb/count<.0004)return -1;
return (ab-a*b/count)/std::sqrt(va*vb);
}
CVPixelBufferRef crop(const GrayFrame& frame,float ox,float oy,float rw,float rh,int w,int h){
CVPixelBufferRef p=nullptr;if(CVPixelBufferCreate(kCFAllocatorDefault,w,h,kCVPixelFormatType_32BGRA,nullptr,&p)!=kCVReturnSuccess)return nullptr;
CVPixelBufferLockBaseAddress(p,0);auto *out=(uint8_t*)CVPixelBufferGetBaseAddress(p);size_t stride=CVPixelBufferGetBytesPerRow(p);
for(int y=0;y<h;y++)for(int x=0;x<w;x++){uint8_t v=std::lround(std::clamp(pixel(frame,ox+x*rw/w,oy+y*rh/h),0.f,1.f)*255);auto *d=out+y*stride+x*4;d[0]=d[1]=d[2]=v;d[3]=255;}
CVPixelBufferUnlockBaseAddress(p,0);return p;
}
TrackResult fail(TrackFailure reason){active_=false;result_.valid=false;result_.failure=reason;return result_;}
public:
void setMask(std::vector<FlowPoint> p){polygon_=std::move(p);}
void stop(){active_=false;previous_={};samples_.clear();}
bool active()const{return active_;}
TrackResult result()const{return result_;}
bool reset(const GrayFrame& frame,TrackerROI roi){
stop();result_={};seed_=roi;width_=frame.width;height_=frame.height;cumulative_=H{};
if(!frame.valid()||!std::isfinite(roi.cx)||!std::isfinite(roi.cy)||!std::isfinite(roi.width)||!std::isfinite(roi.height)||!std::isfinite(roi.angle)||roi.width<=0||roi.height<=0)return false;
if(polygon_.size()<3)polygon_={{-.5,-.5},{.5,-.5},{.5,.5},{-.5,.5}};
float loX=1e9,loY=1e9,hiX=-1e9,hiY=-1e9;for(auto p:polygon_){loX=std::min(loX,p.x);hiX=std::max(hiX,p.x);loY=std::min(loY,p.y);hiY=std::max(hiY,p.y);}
float c=std::cos(roi.angle),s=std::sin(roi.angle);
for(int y=0;y<24;y++)for(int x=0;x<24;x++){
float u=loX+(hiX-loX)*(x+.5f)/24,v=loY+(hiY-loY)*(y+.5f)/24;if(!inside(polygon_,u,v))continue;
float xx=u*roi.width*width_,yy=v*roi.height*height_;FlowPoint p{roi.cx*width_+xx*c-yy*s,roi.cy*height_+xx*s+yy*c};if(framePoint(p))samples_.push_back(p);
}
previous_=frame;int count;double score=correlation(frame,cumulative_,count);if(score<.6){stop();result_.failure=TrackFailure::InsufficientTexture;return false;}
result_.cx=roi.cx;result_.cy=roi.cy;result_.valid=true;result_.confidence=1;result_.features=result_.inliers=count;active_=true;return true;
}
TrackResult track(const GrayFrame& frame){
if(!active_||!frame.valid()||frame.width!=width_||frame.height!=height_)return fail(TrackFailure::InvalidFrame);
float x0=1e9,y0=1e9,x1=-1e9,y1=-1e9;
for(auto p:samples_){auto q=cumulative_.map(p);x0=std::min(x0,q.x);y0=std::min(y0,q.y);x1=std::max(x1,q.x);y1=std::max(y1,q.y);}
float cx=(x0+x1)*.5f,cy=(y0+y1)*.5f,rw=std::min(float(width_),std::max(96.f,(x1-x0)*1.5f)),rh=std::min(float(height_),std::max(96.f,(y1-y0)*1.5f));
float ox=std::clamp(cx-rw*.5f,0.f,width_-rw),oy=std::clamp(cy-rh*.5f,0.f,height_-rh);
float factor=std::min(1.f,320.f/std::max(rw,rh));int w=std::max(16,int(std::lround(rw*factor))),h=std::max(16,int(std::lround(rh*factor)));
CVPixelBufferRef from=crop(previous_,ox,oy,rw,rh,w,h),to=crop(frame,ox,oy,rw,rh,w,h);if(!from||!to){if(from)CVPixelBufferRelease(from);if(to)CVPixelBufferRelease(to);return fail(TrackFailure::Backend);}
H m;bool found=false;
@autoreleasepool {
auto request=[[VNHomographicImageRegistrationRequest alloc]initWithTargetedCVPixelBuffer:from options:@{}];
auto handler=[[VNImageRequestHandler alloc]initWithCVPixelBuffer:to options:@{}];NSError *error=nil;
if([handler performRequests:@[request] error:&error]&&request.results.count){auto warp=request.results.firstObject.warpTransform;found=true;for(int y=0;y<3;y++)for(int x=0;x<3;x++){m.a[y*3+x]=warp.columns[x][y];found&=std::isfinite(m.a[y*3+x]);}}
[handler release];[request release];
}
CVPixelBufferRelease(from);CVPixelBufferRelease(to);if(!found)return fail(TrackFailure::Backend);
double sx=w/rw,sy=h/rh;H into{{sx,0,-ox*sx,0,-sy,h-1+oy*sy,0,0,1}},out{{1/sx,0,ox,0,-1/sy,oy+(h-1)/sy,0,0,1}};
H step=H::mul(out,H::mul(m,into)),next=H::mul(step,cumulative_);
FlowPoint seed{seed_.cx*width_,seed_.cy*height_};auto center=next.map(seed),before=cumulative_.map(seed);
float c=std::cos(seed_.angle),s=std::sin(seed_.angle);auto xp=next.map({seed.x+20*c,seed.y+20*s}),yp=next.map({seed.x-20*s,seed.y+20*c});
float ax=(xp.x-center.x)/20,ay=(xp.y-center.y)/20,bx=(yp.x-center.x)/20,by=(yp.y-center.y)/20;
float scaleX=std::hypot(ax,ay),scaleY=std::hypot(bx,by),angle=std::atan2(ay,ax)-seed_.angle;
if(!framePoint(center)||!std::isfinite(scaleX)||!std::isfinite(scaleY)||scaleX<.0625||scaleY<.0625||scaleX>16||scaleY>16||ax*by-ay*bx<=0||
scaleX/result_.scaleX<.8||scaleX/result_.scaleX>1.25||scaleY/result_.scaleY<.8||scaleY/result_.scaleY>1.25||std::abs(std::remainder(angle-result_.rotation,float(2*M_PI)))>.2||std::hypot(center.x-before.x,center.y-before.y)>std::max(rw,rh)*.3)
return fail(TrackFailure::InvalidTransform);
int count;double ncc=correlation(frame,next,count);if(ncc<.65||count<samples_.size()*.6)return fail(TrackFailure::LowConfidence);
cumulative_=next;previous_=frame;result_.cx=center.x/width_;result_.cy=center.y/height_;result_.scaleX=scaleX;result_.scaleY=scaleY;result_.scale=std::sqrt(scaleX*scaleY);result_.rotation=angle;result_.confidence=ncc;result_.valid=true;result_.features=result_.inliers=result_.matches=count;result_.failure=TrackFailure::None;return result_;
}
};
}
+4
查看文件
@@ -13,3 +13,7 @@ FOUNDATION_EXPORT void DYBetaSetEnabled(BOOL enabled);
FOUNDATION_EXPORT NSDictionary *DYBetaStatus(void);
FOUNDATION_EXPORT void DYBetaSendSummary(void);
FOUNDATION_EXPORT BOOL DYBetaAllowedURL(NSURL *url, BOOL download);
// Pure evidence parsing also used by offline regression checks; never transmits input.
FOUNDATION_EXPORT NSDictionary *DYBetaCrashEvidence(NSDictionary *header, NSDictionary *body);
FOUNDATION_EXPORT NSString *DYBetaSampleFrames(NSString *sample);
FOUNDATION_EXPORT NSDictionary *DYBetaErrorFields(NSError *error, NSString *stage);
+136 -45
查看文件
@@ -7,6 +7,8 @@
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <libproc.h>
#include <sys/resource.h>
NSString *const DYBetaDiagnosticsChanged = @"DYBetaDiagnosticsChanged";
static NSString *const DYBetaPreferenceDomain = @"com.dayu.color.preferences";
@@ -14,7 +16,8 @@ static std::atomic_bool gEnabled(true);
static std::atomic_uint_fast64_t gSpan(0);
static std::atomic<double> gMainReply(0);
static NSObject *gSpanLock, *gStatusLock;
static NSMutableDictionary *gActive;
static NSMutableDictionary *gActive, *gMetrics;
static void mainPulse(CFRunLoopTimerRef timer,void *context){gMainReply.store(NSProcessInfo.processInfo.systemUptime);}
static NSDictionary *gStatus;
static BOOL gProduct;
@@ -26,7 +29,7 @@ BOOL DYBetaAllowedURL(NSURL *url, BOOL download) {
}
NSDictionary *DYBetaSafeFields(NSDictionary *fields) {
static NSSet *allowed; static dispatch_once_t once;
dispatch_once(&once,^{allowed=[[NSSet alloc]initWithArray:@[@"phase",@"stage",@"pipeline",@"duration_ms",@"status",@"error_domain",@"error_code",@"exception",@"signal",@"frames",@"report_time",@"count",@"pending",@"model",@"os_version",@"fcp_version",@"cpu_cores",@"memory_gb",@"gpu",@"main_delay_ms",@"active_stages",@"source_version"]];});
dispatch_once(&once,^{allowed=[[NSSet alloc]initWithArray:@[@"phase",@"stage",@"pipeline",@"duration_ms",@"status",@"error_domain",@"error_code",@"exception",@"signal",@"frames",@"report_time",@"count",@"pending",@"model",@"os_version",@"fcp_version",@"cpu_cores",@"memory_gb",@"gpu",@"main_delay_ms",@"active_stages",@"source_version",@"source_build",@"process_role",@"termination_namespace",@"termination_code",@"pid",@"resource_kind",@"memory_mb",@"cpu_percent",@"thread_count",@"uptime_s",@"max_duration_ms",@"average_ms",@"width",@"height",@"layer_count",@"mask_count",@"sample_status"]];});
NSMutableDictionary *out=[NSMutableDictionary dictionary];
if(![fields isKindOfClass:NSDictionary.class])return @{};
for (NSString *key in fields) {
@@ -43,9 +46,11 @@ NSDictionary *DYBetaSafeFields(NSDictionary *fields) {
return out;
}
#include "DYBetaEvidence.inc.h"
@interface DYBetaTransport : NSObject <NSURLSessionTaskDelegate> {
@public
dispatch_queue_t queue;
dispatch_queue_t queue, evidenceQueue;
dispatch_source_t timer;
NSMutableArray *pending;
NSMutableSet *seenCrashes;
@@ -56,13 +61,18 @@ NSDictionary *DYBetaSafeFields(NSDictionary *fields) {
NSNumber *build;
NSURL *folder, *journal;
NSDictionary *environment;
NSTimeInterval nextAttempt, lastTick, lastStall;
NSTimeInterval nextAttempt, lastTick, lastStall, lastMaintenance, lastSample, sampleWindow, previousCPU, previousResourceTime, startedAt;
NSUInteger sampleCount;
BOOL sampling;
BOOL ready;
}
- (void)enqueue:(NSString *)event fields:(NSDictionary *)fields;
- (void)drain;
- (void)persist;
- (void)scanCrashSummaries;
- (NSUInteger)recoverPending;
- (NSDictionary *)resources:(double)now;
- (void)captureSample:(NSString *)stage;
@end
static DYBetaTransport *transport;
static void publishStatus(NSDictionary *values) {
@@ -79,6 +89,8 @@ static NSString *sysctlString(const char *key) {
- (instancetype)init {
if((self=[super init])) {
queue=dispatch_queue_create("com.dayu.color.beta-diagnostics",DISPATCH_QUEUE_SERIAL);
evidenceQueue=dispatch_queue_create("com.dayu.color.beta-evidence",DISPATCH_QUEUE_SERIAL);
dispatch_set_target_queue(evidenceQueue,dispatch_get_global_queue(QOS_CLASS_UTILITY,0));
pending=[NSMutableArray new];seenCrashes=[NSMutableSet new];lastEvents=[NSMutableDictionary new];sessionID=[NSUUID.UUID.UUIDString.lowercaseString copy];
source=[([NSBundle.mainBundle.bundleIdentifier isEqual:@"com.dayu.color.XPC"]?@"plugin":@"app")copy];
version=[[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]copy];build=@([[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]integerValue]);[build retain];
@@ -89,6 +101,13 @@ static NSString *sysctlString(const char *key) {
NSUserDefaults *prefs=preferences();[prefs registerDefaults:@{@"betaDiagnosticsEnabled":@YES}];gEnabled.store([prefs boolForKey:@"betaDiagnosticsEnabled"]);
folder=[[[NSFileManager.defaultManager URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask].firstObject URLByAppendingPathComponent:@"com.dayu.color/Beta" isDirectory:YES]retain];
[NSFileManager.defaultManager createDirectoryAtURL:folder withIntermediateDirectories:YES attributes:@{NSFilePosixPermissions:@0700} error:nil];
// A process can exit while the independent sampler is writing. Only remove our stale samples.
if([source isEqual:@"app"])for(NSURL *file in [NSFileManager.defaultManager contentsOfDirectoryAtURL:folder includingPropertiesForKeys:@[NSURLContentModificationDateKey] options:0 error:nil]) {
NSString *name=file.lastPathComponent;
if(![name hasPrefix:@"sample-"]||![[[NSUUID alloc]initWithUUIDString:[name substringFromIndex:7]]autorelease])continue;
NSDate *date=nil;[file getResourceValue:&date forKey:NSURLContentModificationDateKey error:nil];
if(date&&date.timeIntervalSinceNow< -300)[NSFileManager.defaultManager removeItemAtURL:file error:nil];
}
// O_EXCL gives the APP and XPC one random installation ID without hardware UUIDs.
NSURL *identity=[folder URLByAppendingPathComponent:@"installation.txt"];
NSString *newID=NSUUID.UUID.UUIDString.lowercaseString;
@@ -108,12 +127,25 @@ static NSString *sysctlString(const char *key) {
for(NSString *ID in @[@"com.apple.FinalCut",@"com.apple.FinalCutApp"]){NSURL *url=[NSWorkspace.sharedWorkspace URLForApplicationWithBundleIdentifier:ID];if(url){fcp=[[NSBundle bundleWithURL:url]objectForInfoDictionaryKey:@"CFBundleShortVersionString"]?:@"unknown";break;}}
environment=[@{@"model":sysctlString("hw.model"),@"os_version":NSProcessInfo.processInfo.operatingSystemVersionString,@"fcp_version":fcp,@"cpu_cores":@(NSProcessInfo.processInfo.processorCount),@"memory_gb":@(double(memory)/(1024*1024*1024))}copy];
journal=[[folder URLByAppendingPathComponent:[NSString stringWithFormat:@"pending-%d-%@.json",getpid(),sessionID]]retain];
NSArray *seen=[NSArray arrayWithContentsOfURL:[folder URLByAppendingPathComponent:@"seen-crashes.plist"]];
for(id key in seen)if([key isKindOfClass:NSString.class]&&[[[NSUUID alloc]initWithUUIDString:key]autorelease])[seenCrashes addObject:key];
NSUInteger recovered=[self recoverPending];
ready=YES;gMainReply.store(NSProcessInfo.processInfo.systemUptime);lastTick=gMainReply.load();startedAt=lastTick;
NSMutableDictionary *start=[[environment mutableCopy]autorelease];start[@"pid"]=@(getpid());[self enqueue:@"process_start" fields:start];if(recovered)[self enqueue:@"previous_session_pending" fields:@{@"count":@(recovered)}];
publishStatus(@{@"installation_id":installationID,@"enabled":@(gEnabled.load()),@"pending":@(pending.count)});
timer=dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER,0,0,queue);
dispatch_source_set_timer(timer,dispatch_time(DISPATCH_TIME_NOW,2*NSEC_PER_SEC),3*NSEC_PER_SEC,NSEC_PER_SEC/4);
dispatch_source_set_event_handler(timer,^{@autoreleasepool{[self tick];}});dispatch_resume(timer);
[NSDistributedNotificationCenter.defaultCenter addObserver:self selector:@selector(settingsChanged:) name:@"com.dayu.color.beta.preferences" object:nil];
if([source isEqual:@"app"])[self scanCrashSummaries];
}
- (NSUInteger)recoverPending {
NSArray *files=[NSFileManager.defaultManager contentsOfDirectoryAtURL:folder includingPropertiesForKeys:@[NSURLContentModificationDateKey] options:NSDirectoryEnumerationSkipsHiddenFiles error:nil];
NSUInteger recovered=0;
for(NSURL *url in files){if(![url.lastPathComponent hasPrefix:@"pending-"]||![url.pathExtension isEqual:@"json"])continue;
NSNumber *bytes=nil;[url getResourceValue:&bytes forKey:NSURLFileSizeKey error:nil];if(bytes.unsignedLongLongValue>384*1024)continue;
NSDictionary *old=[NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfURL:url]?:[NSData data] options:0 error:nil];if(![old isKindOfClass:NSDictionary.class])continue;
if(![old[@"pid"]isKindOfClass:NSNumber.class])continue;int pid=[old[@"pid"]intValue];if(pid>0&&kill(pid,0)==0)continue;
if(![old[@"pid"]isKindOfClass:NSNumber.class])continue;int pid=[old[@"pid"]intValue];if(pid==getpid()||pid<=0||kill(pid,0)==0||errno!=ESRCH)continue;
NSDate *date=nil;[url getResourceValue:&date forKey:NSURLContentModificationDateKey error:nil];
if(gEnabled.load()&&date.timeIntervalSinceNow> -7*86400&&[old[@"events"]isKindOfClass:NSArray.class])for(NSDictionary *event in old[@"events"]){if(pending.count>=256)break;
if(![event isKindOfClass:NSDictionary.class]||![event[@"event_id"]isKindOfClass:NSString.class]||![event[@"session_id"]isKindOfClass:NSString.class]||
@@ -123,36 +155,32 @@ static NSString *sysctlString(const char *key) {
NSMutableDictionary *safe=[[event mutableCopy]autorelease];safe[@"fields"]=DYBetaSafeFields(event[@"fields"]);[pending addObject:safe];recovered++;}
[NSFileManager.defaultManager removeItemAtURL:url error:nil];
}
ready=YES;gMainReply.store(NSProcessInfo.processInfo.systemUptime);lastTick=gMainReply.load();
[self enqueue:@"process_start" fields:environment];if(recovered)[self enqueue:@"previous_session_pending" fields:@{@"count":@(recovered)}];
publishStatus(@{@"installation_id":installationID,@"enabled":@(gEnabled.load()),@"pending":@(pending.count)});
timer=dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER,0,0,queue);
dispatch_source_set_timer(timer,dispatch_time(DISPATCH_TIME_NOW,2*NSEC_PER_SEC),3*NSEC_PER_SEC,NSEC_PER_SEC/4);
dispatch_source_set_event_handler(timer,^{@autoreleasepool{[self tick];}});dispatch_resume(timer);
[NSDistributedNotificationCenter.defaultCenter addObserver:self selector:@selector(settingsChanged:) name:@"com.dayu.color.beta.preferences" object:nil];
if([source isEqual:@"app"])[self scanCrashSummaries];
return recovered;
}
- (void)enqueue:(NSString *)event fields:(NSDictionary *)fields {
if(!ready||!gEnabled.load())return;
// A bad render must not turn diagnostics into per-frame disk writes.
if([@[@"render_error",@"inspector_refresh"]containsObject:event]){
double now=NSProcessInfo.processInfo.systemUptime;if(now-[lastEvents[event]doubleValue]<5)return;lastEvents[event]=@(now);
if([@[@"render_error",@"inspector_refresh",@"render",@"plugin_state",@"tracking_frame"]containsObject:event]){
double now=NSProcessInfo.processInfo.systemUptime;if(now-[lastEvents[event]doubleValue]<([event isEqual:@"render_error"]?5:30))return;lastEvents[event]=@(now);
}
if(pending.count>=256)[pending removeObjectsInRange:NSMakeRange(0,32)];
[pending addObject:@{@"event_id":NSUUID.UUID.UUIDString.lowercaseString,@"session_id":sessionID,@"source":source,@"version":version?:@"0.0",@"build":build?:@1,@"event":event,@"occurred_at":@(NSDate.date.timeIntervalSince1970),@"fields":DYBetaSafeFields(fields?:@{})}];
NSMutableDictionary *context=[[DYBetaSafeFields(fields?:@{})mutableCopy]autorelease];if(!context[@"pid"])context[@"pid"]=@(getpid());
if([NSProcessInfo.processInfo.arguments containsObject:@"--diagnostics-probe"])context[@"phase"]=@"verification";
[pending addObject:@{@"event_id":NSUUID.UUID.UUIDString.lowercaseString,@"session_id":sessionID,@"source":source,@"version":version?:@"0.0",@"build":build?:@1,@"event":event,@"occurred_at":@(NSDate.date.timeIntervalSince1970),@"fields":context}];
[self persist];
}
- (void)persist {
if(!journal)return;
NSData *data=[NSJSONSerialization dataWithJSONObject:@{@"pid":@(getpid()),@"events":pending} options:0 error:nil];
if(data.length>384*1024){while(pending.count>64)[pending removeObjectAtIndex:0];data=[NSJSONSerialization dataWithJSONObject:@{@"pid":@(getpid()),@"events":pending} options:0 error:nil];}
while(data.length>384*1024&&pending.count>1){[pending removeObjectAtIndex:0];data=[NSJSONSerialization dataWithJSONObject:@{@"pid":@(getpid()),@"events":pending} options:0 error:nil];}
[data writeToURL:journal options:NSDataWritingAtomic error:nil];chmod(journal.fileSystemRepresentation,0600);
}
- (void)drain {
if(!ready||!gEnabled.load()||sending||!pending.count||NSDate.date.timeIntervalSince1970<nextAttempt)return;
NSArray *batch=[[pending subarrayWithRange:NSMakeRange(0,MIN((NSUInteger)16,pending.count))]copy];
NSData *data=[NSJSONSerialization dataWithJSONObject:@{@"bundle_id":@"com.dayu.color",@"installation_id":installationID,@"events":batch} options:0 error:nil];
if(data.length>98304){[pending removeObjectAtIndex:0];[batch release];[self persist];return;}
while(data.length>98304&&batch.count>1){NSArray *smaller=[[batch subarrayWithRange:NSMakeRange(0,batch.count-1)]copy];[batch release];batch=smaller;data=[NSJSONSerialization dataWithJSONObject:@{@"bundle_id":@"com.dayu.color",@"installation_id":installationID,@"events":batch} options:0 error:nil];}
if(!data||data.length>98304){[pending removeObjectAtIndex:0];[batch release];[self persist];return;}
NSMutableURLRequest *request=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://dayu.media/wp-json/dayu-color/v1/diagnostics"]];request.HTTPMethod=@"POST";request.HTTPBody=data;[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
sending=[[session dataTaskWithRequest:request completionHandler:^(NSData *body,NSURLResponse *response,NSError *error){
dispatch_async(self->queue,^{@autoreleasepool{
@@ -160,20 +188,66 @@ static NSString *sysctlString(const char *key) {
NSSet *accepted=[reply[@"event_ids"]isKindOfClass:NSArray.class]?[NSSet setWithArray:reply[@"event_ids"]]:[NSSet set];
NSSet *expected=[NSSet setWithArray:[batch valueForKey:@"event_id"]];
BOOL ok=!error&&[(NSHTTPURLResponse*)response statusCode]==200&&[reply[@"accepted"]isKindOfClass:NSNumber.class]&&[reply[@"accepted"]boolValue]&&[accepted isEqualToSet:expected];
if(ok){NSIndexSet *remove=[self->pending indexesOfObjectsPassingTest:^BOOL(NSDictionary *event,NSUInteger i,BOOL *stop){return [accepted containsObject:event[@"event_id"]];}];[self->pending removeObjectsAtIndexes:remove];self->nextAttempt=0;
if(ok){
BOOL acknowledgedCrash=NO;
for(NSDictionary *event in batch)if([event[@"event"]isEqual:@"crash_summary"]){[self->seenCrashes addObject:event[@"event_id"]];acknowledgedCrash=YES;}
if(acknowledgedCrash){NSArray *seen=self->seenCrashes.allObjects;if(seen.count>1024){seen=[seen subarrayWithRange:NSMakeRange(seen.count-1024,1024)];[self->seenCrashes setSet:[NSSet setWithArray:seen]];}
NSURL *seenURL=[self->folder URLByAppendingPathComponent:@"seen-crashes.plist"];[seen writeToURL:seenURL atomically:YES];chmod(seenURL.fileSystemRepresentation,0600);}
NSIndexSet *remove=[self->pending indexesOfObjectsPassingTest:^BOOL(NSDictionary *event,NSUInteger i,BOOL *stop){return [accepted containsObject:event[@"event_id"]];}];[self->pending removeObjectsAtIndexes:remove];self->nextAttempt=0;
publishStatus(@{@"installation_id":self->installationID,@"enabled":@(gEnabled.load()),@"pending":@(self->pending.count),@"last_upload":@([NSDate.date timeIntervalSince1970])});
}else self->nextAttempt=NSDate.date.timeIntervalSince1970+30;
[self->sending release];self->sending=nil;[batch release];[self persist];
}});
}]retain];[sending resume];
}
- (NSDictionary *)resources:(double)now {
struct proc_taskinfo info={};NSMutableDictionary *result=[NSMutableDictionary dictionaryWithDictionary:@{@"pid":@(getpid()),@"uptime_s":@(now-startedAt)}];
if(proc_pidinfo(getpid(),PROC_PIDTASKINFO,0,&info,sizeof(info))==sizeof(info)) {
result[@"memory_mb"]=@(double(info.pti_resident_size)/(1024*1024));result[@"thread_count"]=@(info.pti_threadnum);
double cpu=(info.pti_total_user+info.pti_total_system)/1e9;
if(previousResourceTime>0&&now>previousResourceTime)result[@"cpu_percent"]=@(MAX(0.,(cpu-previousCPU)/(now-previousResourceTime)*100));
previousCPU=cpu;previousResourceTime=now;
}return result;
}
- (void)captureSample:(NSString *)stage {
double now=NSProcessInfo.processInfo.systemUptime;
if(sampling||now-lastSample<120)return;
if(now-sampleWindow>3600){sampleWindow=now;sampleCount=0;}if(sampleCount>=6)return;
sampling=YES;lastSample=now;sampleCount++;
dispatch_async(evidenceQueue,^{@autoreleasepool{
NSURL *output=[self->folder URLByAppendingPathComponent:[@"sample-" stringByAppendingString:NSUUID.UUID.UUIDString]];
NSTask *task=[[[NSTask alloc]init]autorelease];task.executableURL=[NSURL fileURLWithPath:@"/usr/bin/sample"];
// Sample first, then symbolize; -mayDie preloads symbols and can miss a short hang.
task.arguments=@[[@(getpid())stringValue],@"1",@"10",@"-file",output.path];
task.standardOutput=[NSFileHandle fileHandleWithNullDevice];task.standardError=[NSFileHandle fileHandleWithNullDevice];
NSString *result=@"unavailable",*frames=@"";NSError *error=nil;
if(gEnabled.load()&&[task launchAndReturnError:&error]) {
double deadline=NSProcessInfo.processInfo.systemUptime+30;
while(task.running&&gEnabled.load()&&NSProcessInfo.processInfo.systemUptime<deadline)[NSThread sleepForTimeInterval:.05];
if(task.running){[task terminate];[NSThread sleepForTimeInterval:.1];if(task.running)kill(task.processIdentifier,SIGKILL);result=@"timeout_or_disabled";}
else if(task.terminationStatus==0){NSNumber *size=nil;[output getResourceValue:&size forKey:NSURLFileSizeKey error:nil];if(size.unsignedLongLongValue<=4*1024*1024)frames=DYBetaSampleFrames([NSString stringWithContentsOfURL:output encoding:NSUTF8StringEncoding error:nil]);result=frames.length?@"captured":@"no_frames";}
}
[NSFileManager.defaultManager removeItemAtURL:output error:nil];
dispatch_async(self->queue,^{@autoreleasepool{self->sampling=NO;[self enqueue:@"hang_sample" fields:@{@"stage":stage,@"sample_status":result,@"frames":frames,@"pid":@(getpid())}];[self drain];}});
}});
}
- (void)tick {
double now=NSProcessInfo.processInfo.systemUptime;
if(now-lastTick>15)gMainReply.store(now); // Sleep/wake and timer coalescing are not proof of a hang.
lastTick=now;
if(gEnabled.load()&&now-gMainReply.load()>6&&now-lastStall>30){lastStall=now;[self enqueue:@"main_thread_stall" fields:@{@"status":@"suspected",@"main_delay_ms":@((now-gMainReply.load())*1000),@"active_stages":[self activeStages:now]}];}
else if(gEnabled.load()&&now-lastStall>30){NSString *stages=[self activeStages:now];if(stages.length){lastStall=now;[self enqueue:@"operation_stall" fields:@{@"status":@"suspected",@"active_stages":stages}];}}
dispatch_async(dispatch_get_main_queue(),^{gMainReply.store(NSProcessInfo.processInfo.systemUptime);});
BOOL suspended=now-lastTick>15;lastTick=now;
if(suspended)gMainReply.store(now); // Sleep/wake or process suspension isn't a measured hang.
if(gEnabled.load()) {
NSString *stages=[self activeStages:now];double delay=now-gMainReply.load();
if((delay>6||stages.length)&&now-lastStall>30){lastStall=now;NSMutableDictionary *fields=[[[self resources:now]mutableCopy]autorelease];
fields[@"status"]=@"suspected";fields[@"main_delay_ms"]=@(delay*1000);fields[@"active_stages"]=stages;
NSString *event=delay>6?@"main_thread_stall":@"operation_stall";[self enqueue:event fields:fields];[self captureSample:event];
}
if(now-lastMaintenance>=60){lastMaintenance=now;
[self enqueue:@"process_health" fields:[self resources:now]];
NSDictionary *metrics;@synchronized(gSpanLock){metrics=[[gMetrics copy]autorelease];[gMetrics removeAllObjects];}
for(NSString *stage in metrics){NSMutableDictionary *fields=[[metrics[stage]mutableCopy]autorelease];fields[@"stage"]=stage;fields[@"average_ms"]=@([fields[@"duration_ms"]doubleValue]/MAX(1,[fields[@"count"]integerValue]));[self enqueue:@"performance_summary" fields:fields];}
if([source isEqual:@"app"]){NSUInteger recovered=[self recoverPending];if(recovered)[self enqueue:@"previous_session_pending" fields:@{@"count":@(recovered)}];[self scanCrashSummaries];}
}
}
[self drain];
}
- (NSString *)activeStages:(double)now {
@@ -183,7 +257,7 @@ static NSString *sysctlString(const char *key) {
}
- (void)settingsChanged:(NSNotification *)note {
dispatch_async(queue,^{@autoreleasepool{NSUserDefaults *prefs=preferences();[prefs synchronize];gEnabled.store([prefs objectForKey:@"betaDiagnosticsEnabled"]?[prefs boolForKey:@"betaDiagnosticsEnabled"]:YES);
if(!gEnabled.load()){[self->sending cancel];[self->pending removeAllObjects];[self persist];}
if(!gEnabled.load()){[self->sending cancel];[self->pending removeAllObjects];[self persist];@synchronized(gSpanLock){[gActive removeAllObjects];[gMetrics removeAllObjects];}}
publishStatus(@{@"installation_id":self->installationID?:@"",@"enabled":@(gEnabled.load()),@"pending":@(self->pending.count)});
}});
}
@@ -191,34 +265,44 @@ static NSString *sysctlString(const char *key) {
completionHandler(DYBetaAllowedURL(request.URL,NO)?request:nil);
}
- (void)scanCrashSummaries {
if(!gEnabled.load())return;
if(!gEnabled.load()||![source isEqual:@"app"])return;
NSURL *reports=[NSFileManager.defaultManager.homeDirectoryForCurrentUser URLByAppendingPathComponent:@"Library/Logs/DiagnosticReports"];
NSArray *files=[NSFileManager.defaultManager contentsOfDirectoryAtURL:reports includingPropertiesForKeys:@[NSURLContentModificationDateKey,NSURLFileSizeKey] options:NSDirectoryEnumerationSkipsHiddenFiles error:nil];
NSUInteger count=0;
for(NSURL *url in files){if(count>=12)break;if(![url.pathExtension isEqual:@"ips"])continue;
files=[files sortedArrayUsingComparator:^NSComparisonResult(NSURL *a,NSURL *b){NSDate *ad=nil,*bd=nil;[a getResourceValue:&ad forKey:NSURLContentModificationDateKey error:nil];[b getResourceValue:&bd forKey:NSURLContentModificationDateKey error:nil];return [(bd?:NSDate.distantPast) compare:ad?:NSDate.distantPast];}];
NSUInteger count=0,examined=0;
NSMutableSet *queued=[NSMutableSet setWithArray:[pending valueForKey:@"event_id"]];
for(NSURL *url in files){if(count>=12||examined++>=512||pending.count>=240)break;
if(![url.pathExtension isEqual:@"ips"]||![url.lastPathComponent hasPrefix:@"大鱼调色"])continue;
NSNumber *size=nil;[url getResourceValue:&size forKey:NSURLFileSizeKey error:nil];if(size.unsignedLongLongValue>8*1024*1024)continue;
NSDate *date=nil;[url getResourceValue:&date forKey:NSURLContentModificationDateKey error:nil];if(date.timeIntervalSinceNow< -7*86400)continue;
NSFileHandle *handle=[NSFileHandle fileHandleForReadingFromURL:url error:nil];NSData *head=[handle readDataUpToLength:8192 error:nil];[handle closeFile];
if(!head.length)continue;NSString *prefix=[[[NSString alloc]initWithData:head encoding:NSUTF8StringEncoding]autorelease];NSRange first=[prefix rangeOfString:@"\n"];if(!prefix||first.location==NSNotFound)continue;
NSDictionary *header=[NSJSONSerialization JSONObjectWithData:[[prefix substringToIndex:first.location]dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];if(![header isKindOfClass:NSDictionary.class]||![header[@"bundleID"]isEqual:@"com.dayu.color.XPC"])continue;
NSData *data=[NSData dataWithContentsOfURL:url options:NSDataReadingMappedIfSafe error:nil];if(!data.length)continue;NSString *text=[[[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding]autorelease];NSRange newline=[text rangeOfString:@"\n"];if(!text||newline.location==NSNotFound)continue;
NSString *key=header[@"incident_id"];if(![key isKindOfClass:NSString.class]||![[[NSUUID alloc]initWithUUIDString:key]autorelease])continue;if([seenCrashes containsObject:key])continue;[seenCrashes addObject:key];
NSDictionary *body=[NSJSONSerialization JSONObjectWithData:[[text substringFromIndex:newline.location+1]dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];
if(![body isKindOfClass:NSDictionary.class])continue;NSDictionary *exception=[body[@"exception"]isKindOfClass:NSDictionary.class]?body[@"exception"]:@{};
NSInteger fault=[body[@"faultingThread"]isKindOfClass:NSNumber.class]?[body[@"faultingThread"]integerValue]:-1;NSArray *threads=body[@"threads"];NSMutableArray *frames=[NSMutableArray array];
if([threads isKindOfClass:NSArray.class]&&fault>=0&&fault<threads.count&&[threads[fault]isKindOfClass:NSDictionary.class]&&[threads[fault][@"frames"]isKindOfClass:NSArray.class])for(NSDictionary *frame in threads[fault][@"frames"]){if(frames.count>=30)break;if(![frame isKindOfClass:NSDictionary.class])continue;NSString *symbol=frame[@"symbol"];if([symbol isKindOfClass:NSString.class]&&![symbol containsString:@"/"])[frames addObject:symbol];}
[self enqueue:@"crash_summary" fields:@{@"source_version":header[@"app_version"]?:@"unknown",@"report_time":header[@"timestamp"]?:@"unknown",@"exception":exception[@"type"]?:@"unknown",@"signal":exception[@"signal"]?:@"unknown",@"frames":[frames componentsJoinedByString:@"\n"]}];
if(pending.count){NSMutableDictionary *event=[[pending.lastObject mutableCopy]autorelease];event[@"event_id"]=key.lowercaseString;[pending replaceObjectAtIndex:pending.count-1 withObject:event];[self persist];}count++;
NSDate *date=nil;[url getResourceValue:&date forKey:NSURLContentModificationDateKey error:nil];if(!date||date.timeIntervalSinceNow< -7*86400)continue;
NSData *data=[NSData dataWithContentsOfURL:url options:NSDataReadingMappedIfSafe error:nil];if(!data.length)continue;
NSString *text=[[[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding]autorelease];if(!text)continue;
NSRange newline=[text rangeOfString:@"\n"];if(newline.location==NSNotFound)continue;
NSDictionary *header=DYBetaDictionary([NSJSONSerialization JSONObjectWithData:[[text substringToIndex:newline.location]dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil]);
NSString *key=DYBetaString(header[@"incident_id"]).lowercaseString;
if(![[[NSUUID alloc]initWithUUIDString:key]autorelease]||[seenCrashes containsObject:key]||[queued containsObject:key])continue;
NSDictionary *body=DYBetaDictionary([NSJSONSerialization JSONObjectWithData:[[text substringFromIndex:newline.location+1]dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil]);
if(!body.count)continue;NSDictionary *fields=DYBetaCrashEvidence(header,body);if(!fields)continue;
NSUInteger before=pending.count;[self enqueue:@"crash_summary" fields:fields];
if(pending.count==before+1){NSMutableDictionary *event=[[pending.lastObject mutableCopy]autorelease];event[@"event_id"]=key;[pending replaceObjectAtIndex:pending.count-1 withObject:event];[queued addObject:key];[self persist];count++;}
}
}
@end
void DYBetaStart(void) {
static dispatch_once_t once;dispatch_once(&once,^{
NSString *ID=NSBundle.mainBundle.bundleIdentifier;
gProduct=([ID isEqual:@"com.dayu.color"]||[ID isEqual:@"com.dayu.color.XPC"])&&![NSProcessInfo.processInfo.arguments containsObject:@"--self-test"];
gSpanLock=[NSObject new];gStatusLock=[NSObject new];gActive=[NSMutableDictionary new];
if(gProduct)transport=[DYBetaTransport new];
gSpanLock=[NSObject new];gStatusLock=[NSObject new];gActive=[NSMutableDictionary new];gMetrics=[NSMutableDictionary new];
if(gProduct){
NSUserDefaults *prefs=preferences();gEnabled.store([prefs objectForKey:@"betaDiagnosticsEnabled"]?[prefs boolForKey:@"betaDiagnosticsEnabled"]:YES);
gMainReply.store(NSProcessInfo.processInfo.systemUptime);
// Common modes continue to pulse while menus / file panels run nested loops.
CFRunLoopTimerRef pulse=CFRunLoopTimerCreate(NULL,CFAbsoluteTimeGetCurrent()+1,1,0,0,mainPulse,NULL);
CFRunLoopAddTimer(CFRunLoopGetMain(),pulse,kCFRunLoopCommonModes);CFRelease(pulse);
transport=[DYBetaTransport new];
}
});
}
BOOL DYBetaEnabled(void){DYBetaStart();return gEnabled.load();}
@@ -226,8 +310,15 @@ void DYBetaSetEnabled(BOOL enabled){DYBetaStart();gEnabled.store(enabled);NSUser
NSDictionary *DYBetaStatus(void){DYBetaStart();return statusSnapshot();}
void DYBetaEvent(NSString *event,NSDictionary *fields){DYBetaStart();if(!gProduct||!gEnabled.load())return;NSDictionary *safe=DYBetaSafeFields(fields?:@{});dispatch_async(transport->queue,^{@autoreleasepool{[transport enqueue:event fields:safe];}});}
uint64_t DYBetaSpanBegin(NSString *stage,NSDictionary *fields){DYBetaStart();if(!gProduct||!gEnabled.load())return 0;uint64_t token=++gSpan;NSDictionary *value=@{@"stage":stage,@"start":@(NSProcessInfo.processInfo.systemUptime),@"fields":DYBetaSafeFields(fields?:@{})};@synchronized(gSpanLock){if(gActive.count>=128)return 0;gActive[@(token)]=value;}
if(![stage isEqual:@"inspector_refresh"]){NSMutableDictionary *begin=[[value[@"fields"]mutableCopy]autorelease];begin[@"phase"]=@"begin";DYBetaEvent(stage,begin);}return token;
if(![@[@"inspector_refresh",@"render",@"tracking_frame",@"plugin_state"]containsObject:stage]){NSMutableDictionary *begin=[[value[@"fields"]mutableCopy]autorelease];begin[@"phase"]=@"begin";DYBetaEvent(stage,begin);}return token;
}
void DYBetaSpanEnd(uint64_t token,NSDictionary *fields){if(!token)return;NSDictionary *span;@synchronized(gSpanLock){span=[[gActive[@(token)]retain]autorelease];[gActive removeObjectForKey:@(token)];}if(!span)return;double elapsed=(NSProcessInfo.processInfo.systemUptime-[span[@"start"]doubleValue])*1000;if([span[@"stage"]isEqual:@"inspector_refresh"]&&elapsed<100)return;NSMutableDictionary *result=[[span[@"fields"]mutableCopy]autorelease];[result addEntriesFromDictionary:fields?:@{}];result[@"duration_ms"]=@(elapsed);result[@"phase"]=@"end";DYBetaEvent(span[@"stage"],result);}
void DYBetaStop(void){DYBetaEvent(@"process_exit",@{@"status":@"normal"});}
void DYBetaSpanEnd(uint64_t token,NSDictionary *fields){
if(!token)return;NSDictionary *span;
@synchronized(gSpanLock){span=[[gActive[@(token)]retain]autorelease];[gActive removeObjectForKey:@(token)];}
if(!span||!gEnabled.load())return;double elapsed=(NSProcessInfo.processInfo.systemUptime-[span[@"start"]doubleValue])*1000;
NSString *stage=span[@"stage"];BOOL frequent=[@[@"inspector_refresh",@"render",@"tracking_frame",@"plugin_state"]containsObject:stage];
if(frequent){@synchronized(gSpanLock){NSDictionary *old=gMetrics[stage];gMetrics[stage]=@{@"count":@([old[@"count"]integerValue]+1),@"duration_ms":@([old[@"duration_ms"]doubleValue]+elapsed),@"max_duration_ms":@(MAX([old[@"max_duration_ms"]doubleValue],elapsed))};}if(elapsed<100)return;}
NSMutableDictionary *result=[[span[@"fields"]mutableCopy]autorelease];[result addEntriesFromDictionary:fields?:@{}];result[@"duration_ms"]=@(elapsed);result[@"phase"]=@"end";DYBetaEvent(stage,result);
}
void DYBetaStop(void){DYBetaStart();if(!gProduct)return;dispatch_group_t group=dispatch_group_create();dispatch_group_async(group,transport->queue,^{@autoreleasepool{[transport enqueue:@"process_exit" fields:@{@"status":@"normal"}];[transport persist];[transport drain];}});dispatch_group_wait(group,dispatch_time(DISPATCH_TIME_NOW,NSEC_PER_SEC/2));dispatch_release(group);}
void DYBetaSendSummary(void){DYBetaStart();if(!gProduct)return;dispatch_async(transport->queue,^{@autoreleasepool{[transport enqueue:@"diagnostic_summary" fields:transport->environment];[transport scanCrashSummaries];[transport drain];}});}
+78
查看文件
@@ -0,0 +1,78 @@
// Only structured, product-owned evidence leaves the computer. No raw IPS/sample upload.
static NSString *DYBetaString(id value) { return [value isKindOfClass:NSString.class]?value:@""; }
static NSDictionary *DYBetaDictionary(id value) { return [value isKindOfClass:NSDictionary.class]?value:@{}; }
static NSArray *DYBetaArray(id value) { return [value isKindOfClass:NSArray.class]?value:@[]; }
static NSString *DYBetaImageName(NSDictionary *image) {
NSString *name=DYBetaString(image[@"name"]);
if([@[@"大鱼调色",@"大鱼调色 XPC Service",@"FxPlug",@"PluginManager"]containsObject:name])return name;
NSString *path=DYBetaString(image[@"path"]);
if([path hasPrefix:@"/System/Library/"]||[path hasPrefix:@"/usr/lib/"])return name.lastPathComponent;
return @"other-image";
}
NSDictionary *DYBetaCrashEvidence(NSDictionary *header,NSDictionary *body) {
header=DYBetaDictionary(header);body=DYBetaDictionary(body);
NSString *bundle=DYBetaString(header[@"bundleID"]);
if(![@[@"com.dayu.color",@"com.dayu.color.XPC"]containsObject:bundle])return nil;
NSArray *threads=DYBetaArray(body[@"threads"]),*images=DYBetaArray(body[@"usedImages"]);
// Development self-tests must not be presented as users' crashes.
for(id t in threads)for(id f in DYBetaArray(DYBetaDictionary(t)[@"frames"])) {
NSString *symbol=DYBetaString(DYBetaDictionary(f)[@"symbol"]);
if([symbol containsString:@"DYRunDiagnostics"]||[symbol containsString:@"__asan"]||[symbol containsString:@"__sanitizer"])return nil;
}
NSInteger fault=[body[@"faultingThread"]isKindOfClass:NSNumber.class]?[body[@"faultingThread"]integerValue]:-1;
if(fault<0||fault>=threads.count)for(NSUInteger i=0;i<threads.count;i++)if([DYBetaDictionary(threads[i])[@"triggered"]boolValue]){fault=i;break;}
NSMutableArray *frames=[NSMutableArray array];
if(fault>=0&&fault<threads.count)for(id item in DYBetaArray(DYBetaDictionary(threads[fault])[@"frames"])) {
if(frames.count>=32)break;NSDictionary *frame=DYBetaDictionary(item);
NSInteger index=[frame[@"imageIndex"]isKindOfClass:NSNumber.class]?[frame[@"imageIndex"]integerValue]:-1;
NSDictionary *image=index>=0&&index<images.count?DYBetaDictionary(images[index]):@{};
NSString *uuid=DYBetaString(image[@"uuid"]);if(![[[NSUUID alloc]initWithUUIDString:uuid]autorelease])uuid=@"unknown";
NSString *symbol=DYBetaString(frame[@"symbol"]);
if(symbol.length>300)symbol=[symbol substringToIndex:300];
if([symbol containsString:@"/"])symbol=@"[symbol omitted]";
[frames addObject:[NSString stringWithFormat:@"%@ | %@ + %@ | %@",symbol.length?symbol:@"unsymbolicated",DYBetaImageName(image),[frame[@"imageOffset"]isKindOfClass:NSNumber.class]?frame[@"imageOffset"]:@0,uuid]];
}
NSDictionary *exception=DYBetaDictionary(body[@"exception"]),*termination=DYBetaDictionary(body[@"termination"]),*info=DYBetaDictionary(body[@"bundleInfo"]);
NSMutableDictionary *out=[@{@"source_version":DYBetaString(header[@"app_version"]).length?header[@"app_version"]:DYBetaString(info[@"CFBundleShortVersionString"]),
@"source_build":DYBetaString(header[@"build_version"]).length?header[@"build_version"]:DYBetaString(info[@"CFBundleVersion"]),
@"process_role":[bundle hasSuffix:@".XPC"]?@"plugin":@"app",@"report_time":DYBetaString(header[@"timestamp"]),
@"exception":DYBetaString(exception[@"type"]),@"signal":DYBetaString(exception[@"signal"]),
@"termination_namespace":DYBetaString(termination[@"namespace"]),@"frames":[frames componentsJoinedByString:@"\n"],
@"os_version":DYBetaString(DYBetaDictionary(body[@"osVersion"])[@"train"])}mutableCopy];
if([termination[@"code"]isKindOfClass:NSNumber.class])out[@"termination_code"]=termination[@"code"];
if([body[@"pid"]isKindOfClass:NSNumber.class])out[@"pid"]=body[@"pid"];
// Full dyld reason may contain user paths. Retain only a fixed classification.
NSString *reason=[[DYBetaArray(termination[@"details"]) description]stringByAppendingString:DYBetaString(termination[@"indicator"])];
out[@"status"]=[reason localizedCaseInsensitiveContainsString:@"Library not loaded"]?@"library_missing":
[reason localizedCaseInsensitiveContainsString:@"Symbol not found"]?@"symbol_missing":
[reason localizedCaseInsensitiveContainsString:@"signature"]?@"signature_rejected":@"system_report";
NSDictionary *safe=DYBetaSafeFields(out);[out release];return safe;
}
NSString *DYBetaSampleFrames(NSString *sample) {
if(![sample isKindOfClass:NSString.class]||sample.length>4*1024*1024)return @"";
NSMutableArray *main=[NSMutableArray array],*other=[NSMutableArray array];BOOL graph=NO,mainThread=NO;
for(NSString *line in [sample componentsSeparatedByString:@"\n"]) {
if([line isEqual:@"Call graph:"]){graph=YES;continue;}
if([line hasPrefix:@"Total number in stack"]||[line hasPrefix:@"Binary Images:"])break;
if(!graph)continue;
if([line containsString:@"Thread_"]){mainThread=[line containsString:@"com.apple.main-thread"];continue;}
NSRange marker=[line rangeOfString:@" (in "];if(marker.location==NSNotFound)continue;
NSString *frame=[line stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet];
if(frame.length>500)frame=[frame substringToIndex:500];
if([frame containsString:@"/"])continue;
if(mainThread)[main addObject:frame];
else if(other.count<25&&([frame containsString:@"DY"]||[frame containsString:@"大鱼调色"]||[frame containsString:@"Metal"]||[frame containsString:@"Vision"]||[frame containsString:@"cv::"]))[other addObject:frame];
}
// Keep the deepest main-thread frames, which contain the actual wait/work.
if(main.count>28)[main removeObjectsInRange:NSMakeRange(0,main.count-28)];
NSString *result=[NSString stringWithFormat:@"main:\n%@\nproduct/work:\n%@",[main componentsJoinedByString:@"\n"],[other componentsJoinedByString:@"\n"]];
return main.count||other.count?DYBetaSafeFields(@{@"frames":result})[@"frames"]:@"";
}
NSDictionary *DYBetaErrorFields(NSError *error,NSString *stage) {
NSMutableDictionary *fields=[NSMutableDictionary dictionaryWithDictionary:@{@"stage":stage?:@"unknown",@"error_domain":error.domain?:@"unknown",@"error_code":@(error.code)}];
id url=error.userInfo[NSURLErrorKey];NSString *path=[url isKindOfClass:NSURL.class]?[url path]:DYBetaString(error.userInfo[NSFilePathErrorKey]);
NSString *ext=path.pathExtension.lowercaseString;
if([@[@"cube",@"dylut",@"metallib",@"bin"]containsObject:ext])fields[@"resource_kind"]=ext;
else if(path.length)fields[@"resource_kind"]=@"other_file";
return fields;
}
+41 -34
查看文件
@@ -121,9 +121,8 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
@property(assign) NSProgressIndicator *progress;
@property(assign) DYSurface *registrationCard;
@property DYRegistrationState registrationState;
@property BOOL keepOpen, terminating;
@property NSInteger secondsRemaining;
@property(retain) NSTimer *exitTimer;
@property BOOL terminating;
@property(retain) NSStatusItem *statusItem;
@property(retain) NSMutableDictionary *diagnostics;
@property(retain) DYBetaUpdater *updater;
@property(assign) NSTextField *updateTitle, *updateDetail, *diagnosticDetail, *reportID;
@@ -137,18 +136,16 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)notification {
self.keepOpen = [NSProcessInfo.processInfo.arguments containsObject:@"--show-introduction"];
self.window.title = @"大鱼调色";
self.window.appearance = [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua];
self.window.titlebarAppearsTransparent = YES; self.window.backgroundColor = DYColor(.105,.14,.20);
self.window.contentMinSize = NSMakeSize(760,620); [self.window setContentSize:NSMakeSize(920,850)]; [self.window center];
DYBetaStart();
[self buildInterface]; [self buildMenu];
[self buildInterface]; [self buildMenu]; [self buildStatusItem];
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(refreshDiagnostics:) name:DYBetaDiagnosticsChanged object:nil];
self.updater = [[[DYBetaUpdater alloc] init] autorelease];
__block AppDelegate *owner = self;
self.updater.changed = ^(NSDictionary *state) { [owner updateChanged:state]; };
self.updateProgressTimer = [NSTimer scheduledTimerWithTimeInterval:.2 target:self selector:@selector(refreshUpdateProgress:) userInfo:nil repeats:YES];
NSInteger expected=[NSUserDefaults.standardUserDefaults integerForKey:@"betaPendingUpdateBuild"];
if(expected>0 && [NSBundle.mainBundle.infoDictionary[@"CFBundleVersion"]integerValue]>=expected){
DYBetaEvent(@"update_installer",@{@"status":@"completed",@"count":@(expected)});
@@ -157,6 +154,14 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
[NSWorkspace.sharedWorkspace.notificationCenter addObserver:self selector:@selector(accessibilityChanged:)
name:NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification object:nil];
[self.window makeKeyAndOrderFront:nil]; [self refreshDiagnostics:nil]; [self checkRegistration:nil]; [self.updater check];
// Explicit QA opt-in on the signed, installed wrapper only. Never stalls the host.
if([NSProcessInfo.processInfo.arguments containsObject:@"--diagnostics-probe"])
[self performSelector:@selector(runDiagnosticsProbe) withObject:nil afterDelay:5];
}
- (void)runDiagnosticsProbe {
DYBetaEvent(@"diagnostic_summary",@{@"status":@"probe_begin"});
[NSThread sleepForTimeInterval:12];
DYBetaEvent(@"diagnostic_summary",@{@"status":@"probe_recovered"});
}
- (void)buildMenu {
NSMenu *menu = [[[NSMenu alloc] initWithTitle:@"大鱼调色"] autorelease];
@@ -203,12 +208,12 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
self.progress.style = NSProgressIndicatorStyleBar; self.progress.indeterminate = YES; self.progress.translatesAutoresizingMaskIntoConstraints = NO;
self.retryButton = DYButton(@"检查中…",DYBlue(),NO,self,@selector(checkRegistration:));
self.keepButton = DYButton(@"查看功能介绍",DYColor(.20,.46,.94),YES,self,@selector(keepIntroduction:));
self.exitDetail = DYLabel(@"注册成功后,将显示 3 秒退出倒计时。",15,NSFontWeightSemibold,DYGreen());
self.exitDetail = DYLabel(@"应用会保持运行,关闭窗口后继续后台诊断。",15,NSFontWeightSemibold,DYGreen());
[self.exitDetail.heightAnchor constraintGreaterThanOrEqualToConstant:38].active = YES;
NSStackView *registration = DYStack(@[DYHeading(@"puzzlepiece.extension",@"插件连接",DYBlue()),self.statusTitle,self.statusDetail,self.progress,
self.exitDetail,DYStack(@[self.retryButton,self.keepButton],NSUserInterfaceLayoutOrientationHorizontal,8)],NSUserInterfaceLayoutOrientationVertical,13);
self.registrationCard = DYCard(DYBlue(),registration);
self.confirmationButton = DYButton(@"已确认正常,退出",DYGreen(),NO,self,@selector(confirmHost:));
self.confirmationButton = DYButton(@"已确认,后台运行",DYGreen(),NO,self,@selector(confirmHost:));
self.confirmationButton.enabled = NO;
self.confirmationButton.toolTip = @"请先在 Final Cut Pro 中应用大鱼调色并确认效果正常,再点击此按钮。";
NSStackView *host = DYStack(@[DYHeading(@"play.rectangle",@"在 Final Cut Pro 中检查",DYGreen()),
@@ -237,7 +242,7 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
self.reportID=DYLabel(@"报告标识准备中…",10,NSFontWeightRegular,DYSecondary());self.reportID.selectable=YES;
self.sendSummaryButton=DYButton(@"发送诊断摘要",DYColor(.67,.59,1),NO,self,@selector(sendSummary:));
DYSurface *diagnosticCard=DYCard(DYColor(.67,.59,1),DYStack(@[DYHeading(@"waveform.path.ecg",@"一起完善大鱼调色",DYColor(.67,.59,1)),self.diagnosticToggle,
DYLabel(@"仅发送版本、系统环境、加载耗时和本插件错误摘要;不发送素材、预设或账号。可随时关闭,诊断保留 30 天。",12,NSFontWeightRegular,DYSecondary()),
DYLabel(@"后台自动发送版本、系统环境、阶段耗时、内存及本产品崩溃/卡顿调用栈摘要到 dayu.media;不发送素材、预设或账号。可随时关闭,保留 30 天。",12,NSFontWeightRegular,DYSecondary()),
self.reportID,self.diagnosticDetail,self.sendSummaryButton],NSUserInterfaceLayoutOrientationVertical,10));
NSStackView *beta=DYStack(@[updateCard,diagnosticCard],NSUserInterfaceLayoutOrientationHorizontal,14);
[updateCard.heightAnchor constraintEqualToAnchor:diagnosticCard.heightAnchor].active=YES;
@@ -326,7 +331,7 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
- (void)checkRegistration:(id)sender {
if (self.integrityRejected) return;
if (self.diagnostics && (self.registrationState == DYChecking || self.registrationState == DYRegistering)) return;
[self.exitTimer invalidate]; self.exitTimer = nil; self.registrationState = DYChecking;
self.registrationState = DYChecking;
self.retryButton.enabled = NO; self.retryButton.title = @"检查中…";
self.statusTitle.stringValue = @"正在检查插件…"; self.statusTitle.textColor = NSColor.whiteColor;
self.statusDetail.stringValue = @"正在检查本机插件登记,随后自动提交注册。";
@@ -400,17 +405,25 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
NSAccessibilityPostNotificationWithUserInfo(self.window,NSAccessibilityAnnouncementRequestedNotification,
@{NSAccessibilityAnnouncementKey:self.statusTitle.stringValue,NSAccessibilityPriorityKey:@(NSAccessibilityPriorityHigh)});
DYBetaEvent(@"registration",@{@"status":success?@"registered":@"failed"});
if(success)[self maybeStartCountdown];
if(success)[self refreshBackgroundState];
else self.exitDetail.stringValue=@"注册尚未完成,应用会保留此窗口以便重试。";
}
- (void)maybeStartCountdown {
if(self.terminating || self.registrationState!=DYReady)return;
if(self.keepOpen){self.exitDetail.stringValue=@"插件已就绪。关闭此窗口后,可继续在宿主中使用。";return;}
if(!self.updateCheckDone){self.exitDetail.stringValue=@"注册成功,正在检查公测更新…";return;}
if(self.exitTimer)return;
self.secondsRemaining=3;[self updateCountdown];
self.exitTimer=[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(exitTick:) userInfo:nil repeats:YES];
- (void)refreshBackgroundState {
if(self.registrationState==DYReady)self.exitDetail.stringValue=DYBetaEnabled()?@"后台诊断已开启。关闭窗口后继续运行,可从菜单栏重新打开或退出。":@"诊断已关闭。应用保持运行,可从菜单栏退出。";
}
- (void)buildStatusItem {
self.statusItem=[NSStatusBar.systemStatusBar statusItemWithLength:NSVariableStatusItemLength];
self.statusItem.button.image=[NSImage imageWithSystemSymbolName:@"slider.horizontal.3" accessibilityDescription:@"大鱼调色后台诊断"];
self.statusItem.button.toolTip=@"大鱼调色 · 后台运行";
NSMenu *menu=[[[NSMenu alloc]initWithTitle:@"大鱼调色"]autorelease];
NSMenuItem *show=[menu addItemWithTitle:@"打开大鱼调色" action:@selector(showMainWindow:) keyEquivalent:@""];show.target=self;
NSMenuItem *send=[menu addItemWithTitle:@"发送诊断摘要" action:@selector(sendSummary:) keyEquivalent:@""];send.target=self;
[menu addItem:NSMenuItem.separatorItem];
NSMenuItem *quit=[menu addItemWithTitle:@"退出大鱼调色" action:@selector(terminate:) keyEquivalent:@""];quit.target=NSApp;
self.statusItem.menu=menu;
}
- (void)showMainWindow:(id)sender { [self.window makeKeyAndOrderFront:nil];[NSApp activateIgnoringOtherApps:YES]; }
- (BOOL)applicationShouldHandleReopen:(NSApplication *)app hasVisibleWindows:(BOOL)visible { if(!visible)[self showMainWindow:nil];return YES; }
- (void)updateChanged:(NSDictionary *)state {
if(self.terminating)return;
NSString *phase=state[@"phase"];
@@ -425,10 +438,12 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
self.updateInstallButton.enabled=[@[@"available",@"ready",@"host_wait",@"installer"]containsObject:phase];
self.updateInstallButton.title=[phase isEqual:@"available"]?@"下载更新":@"安装更新";
self.updateCancelButton.hidden=![phase isEqual:@"downloading"];
[self.updateProgressTimer invalidate];self.updateProgressTimer=nil;
if([phase isEqual:@"downloading"])self.updateProgressTimer=[NSTimer scheduledTimerWithTimeInterval:.5 target:self selector:@selector(refreshUpdateProgress:) userInfo:nil repeats:YES];
self.updateProgress.indeterminate=[@[@"checking",@"validating"]containsObject:phase];
if(self.updateProgress.indeterminate)[self.updateProgress startAnimation:nil];else [self.updateProgress stopAnimation:nil];
self.updateProgress.doubleValue=[@[@"ready",@"host_wait",@"installer"]containsObject:phase]?1:0;
[self maybeStartCountdown];
[self refreshBackgroundState];
}
- (void)refreshUpdateProgress:(NSTimer *)timer {
if([self.updater.state[@"phase"]isEqual:@"downloading"])self.updateProgress.doubleValue=self.updater.downloadFraction;
@@ -441,7 +456,7 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
- (void)cancelUpdate:(id)sender { [self keepIntroduction:nil];[self.updater cancel]; }
- (void)refreshDiagnostics:(NSNotification *)note {
NSDictionary *state=DYBetaStatus();BOOL enabled=DYBetaEnabled();self.diagnosticToggle.state=enabled?NSControlStateValueOn:NSControlStateValueOff;
self.sendSummaryButton.enabled=enabled;
self.sendSummaryButton.enabled=enabled; [self refreshBackgroundState];
self.reportID.stringValue=[NSString stringWithFormat:@"报告标识:%@",state[@"installation_id"]?:@"准备中…"];
NSNumber *uploaded=state[@"last_upload"];
if(!enabled)self.diagnosticDetail.stringValue=@"诊断已关闭。不会继续上传,待发送摘要已清除。";
@@ -451,23 +466,14 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
}
- (void)toggleDiagnostics:(id)sender { [self keepIntroduction:nil];DYBetaSetEnabled(self.diagnosticToggle.state==NSControlStateValueOn);[self refreshDiagnostics:nil]; }
- (void)sendSummary:(id)sender { [self keepIntroduction:nil];DYBetaSendSummary();self.diagnosticDetail.stringValue=@"已加入后台发送队列,送达后会显示时间。"; }
- (void)updateCountdown { self.exitDetail.stringValue = [NSString stringWithFormat:@"%ld 秒后自动退出\n点击“查看功能介绍”可保留窗口",(long)self.secondsRemaining]; }
- (void)exitTick:(NSTimer *)timer {
if (--self.secondsRemaining <= 0) {
[timer invalidate]; self.exitTimer = nil; self.diagnostics[@"terminationReason"] = @"registration-succeeded"; [self writeDiagnostics]; [NSApp terminate:nil];
} else [self updateCountdown];
}
- (void)keepIntroduction:(id)sender {
self.keepOpen = YES; [self.exitTimer invalidate]; self.exitTimer = nil;
self.keepButton.title = @"正在浏览介绍"; self.keepButton.enabled = NO;
self.exitDetail.stringValue = @"已保留功能介绍窗口。插件可独立在宿主中使用。";
[self showMainWindow:sender]; [self refreshBackgroundState];
}
- (void)confirmHost:(id)sender {
if (self.registrationState != DYReady) return;
DYBetaEvent(@"host_confirmed",@{@"status":@"user_confirmed"});
self.diagnostics[@"hostVerification"] = @"user-confirmed";
self.diagnostics[@"terminationReason"] = @"user-confirmed-host";
[self writeDiagnostics]; [NSApp terminate:nil];
[self writeDiagnostics]; [self.window orderOut:nil];
}
- (void)writeDiagnostics {
NSURL *base = [NSFileManager.defaultManager URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask].firstObject;
@@ -493,13 +499,14 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
}
- (void)closeWindow:(id)sender { [self.window performClose:sender]; }
- (void)accessibilityChanged:(NSNotification *)note { [self.window.contentView setNeedsDisplay:YES]; }
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)app { return YES; }
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)app { return NO; }
- (void)applicationWillTerminate:(NSNotification *)note {
self.terminating = YES; [self.exitTimer invalidate]; self.exitTimer = nil;
self.terminating = YES;
[NSStatusBar.systemStatusBar removeStatusItem:self.statusItem];
self.updater.changed=nil; [self.updater cancel];DYBetaStop();
[self.updateProgressTimer invalidate];self.updateProgressTimer=nil;
[NSNotificationCenter.defaultCenter removeObserver:self];
[NSWorkspace.sharedWorkspace.notificationCenter removeObserver:self];
}
- (void)dealloc { [_exitTimer invalidate]; [_exitTimer release]; [_diagnostics release]; [_updater release]; [_updateProgressTimer invalidate]; [_updateProgressTimer release]; [super dealloc]; }
- (void)dealloc { [_statusItem release]; [_diagnostics release]; [_updater release]; [_updateProgressTimer invalidate]; [_updateProgressTimer release]; [super dealloc]; }
@end
+2 -2
查看文件
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.17.1</string>
<string>1.19.0</string>
<key>CFBundleVersion</key>
<string>103</string>
<string>109</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
已加载 100/101 个文件。由于本次变更涉及的文件过多,其余文件未显示。 显示更多