From 43364549327470291abd82ca1d0eded2becd1579 Mon Sep 17 00:00:00 2001 From: mac Date: Sun, 8 Nov 2026 19:13:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=20IOSurface=20=E8=A1=8C=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E8=A6=81=E6=B1=82=E5=88=9B=E5=BB=BA=E5=A5=87=E6=95=B0?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E7=9A=84=E8=BF=BD=E8=B8=AA=E8=AF=8A=E6=96=AD?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 大鱼调色/Plugin/DYDiagnostics.mm | 3 ++- 开发交接.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/大鱼调色/Plugin/DYDiagnostics.mm b/大鱼调色/Plugin/DYDiagnostics.mm index e9054c5..8544730 100644 --- a/大鱼调色/Plugin/DYDiagnostics.mm +++ b/大鱼调色/Plugin/DYDiagnostics.mm @@ -120,8 +120,9 @@ @implementation DYDiagnosticTile - (instancetype)initWithDevice:(id)device width:(NSUInteger)width height:(NSUInteger)height { if((self=[super init])) { + size_t bytesPerRow=IOSurfaceAlignProperty(kIOSurfaceBytesPerRow,width*8); NSDictionary *properties=@{(id)kIOSurfaceWidth:@(width),(id)kIOSurfaceHeight:@(height), - (id)kIOSurfaceBytesPerElement:@8,(id)kIOSurfaceBytesPerRow:@(width*8), + (id)kIOSurfaceBytesPerElement:@8,(id)kIOSurfaceBytesPerRow:@(bytesPerRow), (id)kIOSurfacePixelFormat:@(kCVPixelFormatType_64RGBAHalf)}; _surface=IOSurfaceCreate((CFDictionaryRef)properties); MTLTextureDescriptor *d=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA16Float width:width height:height mipmapped:NO]; diff --git a/开发交接.md b/开发交接.md index faecd0c..24ebf2c 100644 --- a/开发交接.md +++ b/开发交接.md @@ -6,7 +6,7 @@ 当前在候选验证阶段。目标追踪由 Metal 写入带 IOSurface 的 BGRA 像素缓冲,交给 Vision;必要时沿用原 CPU 转换。LUT 浏览器右侧显示可拖动的原图和所选 LUT 对比,缩略图可切换为 640×360 源帧的高清预览。 -FCP 12.4 同一 4K 素材使用 UHD 25 fps 时间线,285 帧。正式 1.21.2 的热态完整追踪用时 3.651、3.717、3.682 秒,四次均保存 285 个键。基线已导出全部轨迹和 4K ProRes。待正式候选自检、公证安装、宿主逐键与逐帧对照及 LUT 浏览器验收后,再制作和发布 PKG。 +FCP 12.4 同一 4K 素材使用 UHD 25 fps 时间线,285 帧。正式 1.21.2 的热态完整追踪用时 3.651、3.717、3.682 秒,四次均保存 285 个键。基线已导出全部轨迹和 4K ProRes。候选已完成编译,首轮自检的奇数宽度诊断图触发 Metal 行对齐断言,已按 IOSurface 要求修正测试图的行跨度。待正式候选自检、公证安装、宿主逐键与逐帧对照及 LUT 浏览器验收后,再制作和发布 PKG。 ## 1.21.2(119)局部马赛克与蒙版分析性能