比较提交

..
作者 SHA1 备注 提交日期
mac d0eadccc29 Clarify tagged package provenance and post-publication Release records 2026-11-04 08:23:14 +08:00
mac 0d286c3924 Package notarized 1.8.1 (57) CST correction for versioned Release 2026-11-04 08:22:42 +08:00
mac 24520e7848 Verify formal 57 CMS, legacy preset preservation, cold reopen and remote rebuild 2026-11-04 08:22:03 +08:00
mac 0592458580 Preserve nil-state FCP projects: withdraw automatic template opt-in after host regression 2026-11-04 08:07:32 +08:00
mac 072bf881b9 Fix primary CST working domains and delayed output; 581 checks pass; seed new effects explicitly 2026-11-04 08:01:39 +08:00
mac d5aba63b4e Restore workspace inheritance and declared Cube output; extend CMS regressions (validation ongoing) 2026-11-04 07:53:14 +08:00
mac 0b1b4454b4 WIP restore primary CST controls and defer main output; shader and Release build pass 2026-11-04 07:46:31 +08:00
mac 2cf93fafe5 Record correction contract: restore primary CST and defer main output 2026-11-04 07:42:45 +08:00
mac aa9a8d24f2 Verify CMS Release downloads and remote restore; finish generated-copy cleanup 2026-11-03 13:22:41 +08:00
mac a5a2bddeb3 Deliver notarized 1.8.0 build 55 CMS with 530 checks, FCP recovery tests and signed PKG evidence 2026-11-03 13:18:07 +08:00
mac 11a8851828 Preserve NSError across render pools and prepare input LUT before mode activation; build 55 2026-11-03 13:07:42 +08:00
mac 8bd2ba91fa Use float tetrahedral input LUT interpolation after identity-LUT regression exposed hardware quantization 2026-11-03 12:59:18 +08:00
mac 9f5c9a1237 Polish CMS input LUT feedback and add direct LUT-path regression; prepare build 54 2026-11-03 12:57:50 +08:00
mac 54e68b4810 Add ACES CMS regression coverage and 1.8.0 Release candidate; 527 native checks passed 2026-11-03 12:51:23 +08:00
mac bb5ede7be4 WIP: integrate opt-in ACES renderer and inspector; Release compiles, regression validation pending 2026-11-03 12:44:08 +08:00
mac 70a50ab445 WIP: add pinned public CMS runtime and versioned color state; renderer integration pending 2026-11-03 12:37:59 +08:00
mac 5b8ef04f7e Document target CMS evidence, reversible transport limits and a versioned upgrade plan 2026-11-03 11:49:02 +08:00
mac a1e49e2eb5 Add identity-bound GPU observations for BASIS, CST and the current primary color kernel 2026-11-03 11:44:25 +08:00
mac d0b4e9d2ba Publish 1.7.4 installer, verify complete Release and article downloads, and record recovery 2026-11-03 00:05:03 +08:00
mac 468d530bf0 Verify 1.7.4 module deletion in the installed notarized build and package the release 2026-11-03 00:01:09 +08:00
mac 06a00371df Defer deletion accessibility updates until the remote action has unwound (build 52) 2026-11-02 23:50:37 +08:00
mac c18a0890ed Cache module-removal descriptor ownership and verify hidden shared skin shortcut 2026-11-02 23:41:24 +08:00
mac 72a0269fe7 Keep shared skin controls owned by the skin module when deleting basic adjustment (build 51) 2026-11-02 23:37:51 +08:00
mac 85ec27d49f Use existing preset snapshot selector in deletion checks and add isolated host fixtures 2026-11-02 23:28:02 +08:00
mac 5212187cc8 Add deletion regressions for fourteen modules, animation reset, fresh re-add and neutral rendering 2026-11-02 23:26:23 +08:00
mac 48b3e2d033 Add on-header deletion with parameter reset and persistent removal of native modules (WIP 1.7.4) 2026-11-02 23:21:00 +08:00
mac 4d2a71d9e2 Publish verified 1.7.3 article package and save release, recovery and cleanup records 2026-11-02 22:57:49 +08:00
mac f2038f12eb Verify More Space host repair, notarized 1.7.3 installer and source recovery 2026-11-02 22:50:45 +08:00
mac 2688b22f99 Align displaced remote content origin through AppKit coordinate conversion (build 49) 2026-11-02 22:41:37 +08:00
mac 3ba2c0b823 Add opt-in local remote geometry sampling for More Space reproduction (build 48) 2026-11-02 22:34:33 +08:00
mac 2360ec5c91 Record remaining 1.7.2 More Space remote-window issue and evidence limits 2026-11-02 22:29:45 +08:00
mac 67beeda7e1 Publish verified 1.7.2 article installer and save release recovery and cleanup records 2026-11-02 21:59:24 +08:00
mac 7720d9a042 Verify notarized 1.7.2 browser window fix, native host and signed installer 2026-11-02 21:51:54 +08:00
mac f9dea76a45 Respect FxRemoteWindow geometry and follow host content bounds in LUT browser 2026-11-02 21:42:20 +08:00
mac e62d5532f2 Update published article 15792 to the verified 1.7.1 installer and LUT compatibility notes 2026-11-02 21:32:26 +08:00
mac 5f25034506 Save published article baseline and 1.7.1 package update request 2026-11-02 21:29:29 +08:00
mac 04d74e1dd2 Record verified 1.7.1 Release download, tag recovery and cleanup 2026-11-02 20:25:54 +08:00
共修改 146 个文件,包含 10999 行新增和 260 行删除

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

+104
查看文件
@@ -0,0 +1,104 @@
#pragma once
#include "DYPremultiplied.h"
#include <memory>
#include <span>
#include <string>
#include <vector>
// Independent from the frozen grade ABI. Values are Dayu-owned, append-only IDs.
namespace dycm {
inline constexpr unsigned Version = 1;
inline constexpr const char *Engine = "OpenColorIO-2.5.2";
inline constexpr const char *Config = "studio-config-v2.2.0_aces-v1.3_ocio-v2.4";
enum class Space : unsigned {
ACES2065=1, ACEScg=2, ACEScc=3, ACEScct=4,
Linear709=10, Gamma22_709=11, SRGB=12, Linear2020=13,
AppleLog=100, ARRI_LogC3=101, ARRI_LogC4=102, BMD_Gen5=103,
CanonLog2=104, CanonLog3=105, PanasonicVLog=106, REDLog3G10=107,
SonySLog3=108, SonySLog3Cine=109, SonyVeniceSLog3=110, SonyVeniceSLog3Cine=111,
DaVinciIntermediate=112
};
enum class Output : unsigned {
Rec709_100=1, SRGB_100=2, DisplayP3_100=3, Rec709D60_100=4,
Rec2020_100=5, Rec2020PQ_1000=6, Rec2020HLG_1000=7,
P3D60_48=8, P3DCI_48=9, P3D65_48=10
};
enum class Alpha { Straight, Premultiplied };
struct SpaceInfo { Space id; const char *label; const char *ocioName; };
struct OutputInfo { Output id; const char *label; const char *display; const char *view; };
std::span<const SpaceInfo> spaces();
std::span<const OutputInfo> outputs();
const SpaceInfo &spaceInfo(Space);
const OutputInfo &outputInfo(Output);
struct Settings {
unsigned version=Version;
bool enabled=false;
Space input=Space::ACEScg, working=Space::ACEScct;
Output output=Output::Rec709_100;
// Explicit scene-domain LMT, before the display/output transform.
bool referenceGamutCompression=false;
void validate() const;
std::string key() const;
};
struct ShaderTexture {
unsigned dimensions=0,width=0,height=0,depth=0,channels=0;
bool linear=false;
std::vector<float> values;
};
struct MetalProgram {std::string source;std::vector<ShaderTexture> textures;};
// Immutable processor, independent of OCIO environment variables and monitor state.
// A no-op never normalizes or unpremultiplies pixels (including hidden RGB).
class Transform {
public:
static Transform identity();
static Transform convert(Space from, Space to);
static Transform display(Space from, Output to, bool gamutCompression=false);
bool isIdentity() const;
const std::string &key() const;
void apply(std::span<DYCompositeRGBA> pixels, Alpha alpha) const;
// Shader resources are copied from the fixed built-in config; no filesystem
// LUT loading, process-global config, or dynamic uniform is allowed here.
MetalProgram metalProgram() const;
private:
struct Impl;
std::shared_ptr<const Impl> impl;
explicit Transform(std::shared_ptr<const Impl>);
};
struct Plan {
Settings settings;
Transform input, output;
static Plan compile(const Settings &);
std::string key() const;
};
enum class FrameStage : unsigned { Input, Output, ToLinear, FromLinear, Count };
enum class ToolDomain : unsigned { Working, Linear, Segmented };
// An immutable platform profile conversion at a frame boundary. This interface
// keeps host ICC objects out of archives and the portable grading engine.
class PhysicalTransform {
public:
virtual ~PhysicalTransform() = default;
virtual bool isIdentity() const = 0;
virtual void apply(std::span<DYCompositeRGBA>, Alpha) const = 0;
virtual std::string key() const = 0;
};
// The frame executor depends on this immutable contract, not on OCIO itself.
// Header-only legacy render tests therefore do not acquire a runtime dependency.
class FramePipeline {
public:
virtual ~FramePipeline() = default;
virtual void validate() const = 0;
virtual const Settings &settings() const = 0;
virtual const Transform &transform(FrameStage) const = 0;
virtual bool isIdentity(FrameStage) const = 0;
virtual void apply(FrameStage, std::span<DYCompositeRGBA>, Alpha) const = 0;
virtual std::string key() const = 0;
// Input boundary runs before the declared input transform; Output runs
// after the complete ODT. Intermediate tool domains have no ICC boundary.
virtual std::shared_ptr<const PhysicalTransform> physicalBoundary(FrameStage) const {return {};}
};
std::shared_ptr<const FramePipeline> compileFramePipeline(const Settings &);
} // namespace dycm
+6
查看文件
@@ -0,0 +1,6 @@
#pragma once
#include <cmath>
struct DYCompositeRGBA {float r,g,b,a;};
inline DYCompositeRGBA dyPMFinite(DYCompositeRGBA p){return {std::isfinite(p.r)?p.r:0,std::isfinite(p.g)?p.g:0,std::isfinite(p.b)?p.b:0,std::isfinite(p.a)?p.a:0};}
inline DYCompositeRGBA dyPMUnpremultiply(DYCompositeRGBA p){float a=p.a>1e-5f?p.a:1e-5f;return dyPMFinite({p.r/a,p.g/a,p.b/a,p.a});}
inline DYCompositeRGBA dyPMPremultiply(DYCompositeRGBA p){return dyPMFinite({p.r*p.a,p.g*p.a,p.b*p.a,p.a});}
+47
查看文件
@@ -0,0 +1,47 @@
{
"sourceRepository": "https://dayu.media/git/dayu/dayu-colorplate.git",
"sourceCommit": "f8950384e514685c8809fe8e8ee2dd5f16ad0bd7",
"files": [
{
"path": "Core/DYColorManagement.hpp",
"sourceSHA256": "78f6c2d5acdb611368370c3c9050d02d3a807f79b6f409906a4be7680a0c3746"
},
{
"path": "Sources/DYColorManagement.cpp",
"sourceSHA256": "68648a1d2b1e4be8d3c59679e47d4b07de239ec2b5196dc1eb99b59af2ba6306"
},
{
"path": "Sources/DYColorManagementGPU.h",
"sourceSHA256": "ed724b0cc73e27d8e238862bad120570939401e27f127d7afaf48c0e198cc4d7"
},
{
"path": "Sources/DYColorManagementGPU.mm",
"sourceSHA256": "dd2c68a3b29baae0cd19b86e224d70a49c222010e6232a56e13d7500285ff1c5"
},
{
"path": "Sources/DYColorManagementState.h",
"sourceSHA256": "5c39f949d83c160977b2cf6793ace991c0d66c81846c29dfd3bc705703b1c514"
},
{
"path": "Sources/DYColorManagementState.mm",
"sourceSHA256": "2e0035b59d0ff028530b0766c07c143b76f12c4b785d404fd7aff1e46ed8d9eb"
},
{
"path": "Sources/DYColorProfile.h",
"sourceSHA256": "38685ea23cbfe5686c1ade7ae8cf2eff231fd222e9d480245d3732ce5fecf7bb"
},
{
"path": "Sources/DYColorProfile.mm",
"sourceSHA256": "ccf1d6bf401c7d11fb4a2a745ee1e399d45cc99b62eba61e3818a582ab8c672c"
},
{
"path": "Tools/build_ocio.py",
"sourceSHA256": "ba1004e4d788590a44ae8ce2e124dcd65ee3b6b50d834cd615013d6355e6500b"
}
],
"adaptations": [
"Dedicated com.dayu.color runtime cache",
"Standalone RGBA/alpha header, excluding unrelated layer engine",
"No dependency on the sibling installed application"
]
}
@@ -0,0 +1,221 @@
#include "../Core/DYColorManagement.hpp"
#include <OpenColorIO/OpenColorIO.h>
#include <array>
#include <algorithm>
#include <stdexcept>
namespace O = OCIO_NAMESPACE;
namespace dycm {
namespace {
constexpr SpaceInfo spaceTable[] = {
{Space::ACES2065,"ACES2065-1 / AP0 线性","ACES2065-1"},
{Space::ACEScg,"ACEScg / AP1 线性","ACEScg"},
{Space::ACEScc,"ACEScc","ACEScc"}, {Space::ACEScct,"ACEScct","ACEScct"},
{Space::Linear709,"Rec.709 线性","Linear Rec.709 (sRGB)"},
{Space::Gamma22_709,"Rec.709 Gamma 2.2","Gamma 2.2 Encoded Rec.709"},
{Space::SRGB,"sRGB","sRGB Encoded Rec.709 (sRGB)"},
{Space::Linear2020,"Rec.2020 线性","Linear Rec.2020"},
{Space::AppleLog,"Apple Log","Apple Log"},
{Space::ARRI_LogC3,"ARRI LogC3 / EI800","ARRI LogC3 (EI800)"},
{Space::ARRI_LogC4,"ARRI LogC4","ARRI LogC4"},
{Space::BMD_Gen5,"Blackmagic Film Gen 5 / Wide Gamut","BMDFilm WideGamut Gen5"},
{Space::CanonLog2,"Canon Log2 / Cinema Gamut D55","CanonLog2 CinemaGamut D55"},
{Space::CanonLog3,"Canon Log3 / Cinema Gamut D55","CanonLog3 CinemaGamut D55"},
{Space::PanasonicVLog,"Panasonic V-Log / V-Gamut","V-Log V-Gamut"},
{Space::REDLog3G10,"RED Log3G10 / REDWideGamutRGB","Log3G10 REDWideGamutRGB"},
{Space::SonySLog3,"Sony S-Log3 / S-Gamut3","S-Log3 S-Gamut3"},
{Space::SonySLog3Cine,"Sony S-Log3 / S-Gamut3.Cine","S-Log3 S-Gamut3.Cine"},
{Space::SonyVeniceSLog3,"Sony Venice S-Log3 / S-Gamut3","S-Log3 Venice S-Gamut3"},
{Space::SonyVeniceSLog3Cine,"Sony Venice S-Log3 / S-Gamut3.Cine","S-Log3 Venice S-Gamut3.Cine"},
{Space::DaVinciIntermediate,"DaVinci Intermediate / Wide Gamut","DaVinci Intermediate WideGamut"}
};
constexpr OutputInfo outputTable[] = {
{Output::Rec709_100,"Rec.709 / 100 nit","Rec.1886 Rec.709 - Display","ACES 1.0 - SDR Video"},
{Output::SRGB_100,"sRGB / 100 nit","sRGB - Display","ACES 1.0 - SDR Video"},
{Output::DisplayP3_100,"Display P3 / 100 nit","Display P3 - Display","ACES 1.0 - SDR Video"},
{Output::Rec709D60_100,"Rec.709 / D60 模拟 / 100 nit","Rec.1886 Rec.709 - Display","ACES 1.0 - SDR Video (D60 sim on D65)"},
{Output::Rec2020_100,"Rec.2020 SDR / 100 nit","Rec.1886 Rec.2020 - Display","ACES 1.0 - SDR Video"},
{Output::Rec2020PQ_1000,"Rec.2020 PQ / 1000 nit","Rec.2100-PQ - Display","ACES 1.1 - HDR Video (1000 nits & Rec.2020 lim)"},
{Output::Rec2020HLG_1000,"Rec.2020 HLG / 1000 nit","Rec.2100-HLG - Display","ACES 1.1 - HDR Video (1000 nits & Rec.2020 lim)"},
{Output::P3D60_48,"P3 D60 / 48 nit","P3-D60 - Display","ACES 1.0 - SDR Cinema"},
{Output::P3DCI_48,"P3 DCI / 48 nit","P3-DCI - Display","ACES 1.0 - SDR Cinema (D60 sim on DCI)"},
{Output::P3D65_48,"P3 D65 / 48 nit","P3-D65 - Display","ACES 1.0 - SDR Cinema"}
};
O::ConstConfigRcPtr config() {
static const auto value=[] {auto c=O::Config::CreateFromBuiltinConfig(Config);c->validate();return c;}();
return value;
}
std::string prefix(){return std::string("dayu-cms:")+std::to_string(Version)+":"+Engine+":"+Config+":";}
}
std::span<const SpaceInfo> spaces(){return spaceTable;}
std::span<const OutputInfo> outputs(){return outputTable;}
const SpaceInfo &spaceInfo(Space id){for(auto &s:spaceTable)if(s.id==id)return s;throw std::invalid_argument("Unknown color space ID");}
const OutputInfo &outputInfo(Output id){for(auto &s:outputTable)if(s.id==id)return s;throw std::invalid_argument("Unknown output transform ID");}
void Settings::validate() const {
if(version!=Version)throw std::invalid_argument("Unsupported color management version");
spaceInfo(input);spaceInfo(working);outputInfo(output);
if(working!=Space::ACEScc&&working!=Space::ACEScct&&working!=Space::ACEScg)
throw std::invalid_argument("Unsupported ACES grading space");
}
std::string Settings::key() const {
validate();return prefix()+std::to_string(enabled)+":"+std::to_string(unsigned(input))+":"+
std::to_string(unsigned(working))+":"+std::to_string(unsigned(output))+":"+std::to_string(referenceGamutCompression);
}
struct Transform::Impl {
std::string key;
std::vector<O::ConstProcessorRcPtr> processors;
std::vector<O::ConstCPUProcessorRcPtr> cpus;
bool identity=true;
bool decodeCC=false,encodeCC=false;
Impl(std::string k,std::vector<O::ConstProcessorRcPtr> steps={},bool decode=false,bool encode=false):key(std::move(k)),processors(std::move(steps)),decodeCC(decode),encodeCC(encode) {
identity=!decode&&!encode;
for(auto &p:processors){auto cpu=p->getOptimizedCPUProcessor(O::OPTIMIZATION_LOSSLESS);identity=identity&&cpu->isNoOp();cpus.push_back(cpu);}
}
};
// Academy ACEScc analytic encoding. The pinned OCIO config's cc entry uses a
// 4096-sample LUT; use AP1 linear at that boundary to avoid LUT approximation.
static float encodeCC(float x){return x<=0?float((-16.+9.72)/17.52):float((std::log2(x<1.f/32768?1./65536+double(x)*.5:double(x))+9.72)/17.52);}
static float decodeCC(float x){return x<float((9.72-15.)/17.52)?float((std::exp2(double(x)*17.52-9.72)-1./65536)*2):float(std::min(std::exp2(double(x)*17.52-9.72),65504.));}
Transform::Transform(std::shared_ptr<const Impl> value):impl(std::move(value)){}
Transform Transform::identity(){return Transform(std::make_shared<Impl>(prefix()+"identity"));}
Transform Transform::convert(Space from,Space to) {
auto &source=spaceInfo(from);auto &destination=spaceInfo(to);
if(from==to)return identity();
return Transform(std::make_shared<Impl>(prefix()+"space:"+std::to_string(unsigned(from))+":"+std::to_string(unsigned(to)),
std::vector<O::ConstProcessorRcPtr>{config()->getProcessor(from==Space::ACEScc?"ACEScg":source.ocioName,"ACEScg"),
config()->getProcessor("ACEScg",to==Space::ACEScc?"ACEScg":destination.ocioName)},from==Space::ACEScc,to==Space::ACEScc));
}
Transform Transform::display(Space from,Output to,bool gamutCompression) {
auto &source=spaceInfo(from);auto &destination=outputInfo(to);const char *sourceName=from==Space::ACEScc?"ACEScg":source.ocioName;
auto group=O::GroupTransform::Create();
if(gamutCompression){
auto look=O::LookTransform::Create();look->setSrc("ACEScg");look->setDst("ACEScg");
look->setLooks("ACES 1.3 Reference Gamut Compression");group->appendTransform(look);
}
auto view=O::DisplayViewTransform::Create();view->setSrc("ACEScg");view->setDisplay(destination.display);view->setView(destination.view);
group->appendTransform(view);
return Transform(std::make_shared<Impl>(prefix()+"display:"+std::to_string(unsigned(from))+":"+std::to_string(unsigned(to))+":"+std::to_string(gamutCompression),
std::vector<O::ConstProcessorRcPtr>{config()->getProcessor(sourceName,"ACEScg"),config()->getProcessor(group)},from==Space::ACEScc));
}
bool Transform::isIdentity() const{return impl->identity;}
const std::string &Transform::key() const{return impl->key;}
void Transform::apply(std::span<DYCompositeRGBA> pixels,Alpha alpha) const {
if(alpha!=Alpha::Straight&&alpha!=Alpha::Premultiplied)throw std::invalid_argument("Unknown alpha representation");
if(isIdentity()||pixels.empty())return;
std::array<DYCompositeRGBA,4096> scratch;
std::array<float,4096> originalAlpha;
for(size_t offset=0;offset<pixels.size();offset+=scratch.size()){
size_t count=std::min(scratch.size(),pixels.size()-offset);
for(size_t i=0;i<count;i++){
auto p=dyPMFinite(pixels[offset+i]);originalAlpha[i]=p.a;
if(alpha==Alpha::Premultiplied)p=dyPMUnpremultiply(p);
if(impl->decodeCC){p.r=decodeCC(p.r);p.g=decodeCC(p.g);p.b=decodeCC(p.b);}
p.a=1;scratch[i]=p;
}
O::PackedImageDesc image(scratch.data(),long(count),1,4);
for(auto &cpu:impl->cpus){cpu->apply(image);for(size_t i=0;i<count;i++)scratch[i]=dyPMFinite(scratch[i]);}
for(size_t i=0;i<count;i++){
auto p=dyPMFinite(scratch[i]);p.a=originalAlpha[i];
if(impl->encodeCC){p.r=encodeCC(p.r);p.g=encodeCC(p.g);p.b=encodeCC(p.b);}
pixels[offset+i]=alpha==Alpha::Premultiplied?dyPMPremultiply(p):p;
}
}
}
MetalProgram Transform::metalProgram() const {
if(isIdentity())return {"float4 dyOCIO(float4 p) { return p; }\n",{}};
MetalProgram program;auto &source=program.source;std::string calls;
for(size_t step=0;step<impl->processors.size();step++){
auto desc=O::GpuShaderDesc::CreateShaderDesc();desc->setLanguage(O::GPU_LANGUAGE_MSL_2_0);
std::string function="dyCMSBase"+std::to_string(step),prefix="dyCMS"+std::to_string(step)+"_";
desc->setFunctionName(function.c_str());desc->setResourcePrefix(prefix.c_str());
impl->processors[step]->getOptimizedGPUProcessor(O::OPTIMIZATION_LOSSLESS)->extractGpuShaderInfo(desc);
if(desc->getNumUniforms())throw std::runtime_error("Fixed CMS transform unexpectedly requires dynamic uniforms: "+key());
source+=desc->getShaderText();size_t firstTexture=program.textures.size();
// OCIO's generic shader blends camera-log branches arithmetically. In MSL,
// 0 * an overflowing inactive linear branch becomes NaN. Select the branch
// as the CPU does, without changing the active curve or clamping HDR.
const std::string branch="isAboveBreak * logSeg + ( float3(1., 1., 1.) - isAboveBreak ) * linSeg";
for(size_t pos=0;(pos=source.find(branch,pos))!=std::string::npos;){
const std::string replacement="select(linSeg, logSeg, isAboveBreak > float3(0.5))";
source.replace(pos,branch.size(),replacement);pos+=replacement.size();
}
for(const char *boundary:{"linear_break","log_break"})for(int component=0;component<3;component++){
auto c=std::to_string(component);
std::string match="(outColor.rgb["+c+"] > "+boundary+"["+c+"]) ? 1.0 : 0.0";
std::string replacement="(outColor.rgb["+c+"] < "+boundary+"["+c+"]) ? 0.0 : 1.0";
for(size_t pos=0;(pos=source.find(match,pos))!=std::string::npos;){source.replace(pos,match.size(),replacement);pos+=replacement.size();}
}
// The public MSL wrapper takes 3D textures/samplers first, then 1D/2D pairs.
auto copyTexture=[&](ShaderTexture t,const float *values,O::Interpolation interpolation){
uint64_t count=uint64_t(t.width)*t.height*t.depth*t.channels;
if(!values||!count||count>32*1024*1024||(interpolation!=O::INTERP_NEAREST&&interpolation!=O::INTERP_LINEAR&&interpolation!=O::INTERP_TETRAHEDRAL))
throw std::runtime_error("Unsupported CMS shader texture: "+key());
t.linear=interpolation==O::INTERP_LINEAR;t.values.assign(values,values+count);program.textures.push_back(std::move(t));
};
for(unsigned i=0;i<desc->getNum3DTextures();i++){
const char *name=nullptr,*sampler=nullptr;unsigned edge=0;O::Interpolation interpolation;const float *values=nullptr;
desc->get3DTexture(i,name,sampler,edge,interpolation);desc->get3DTextureValues(i,values);
if(edge>256)throw std::runtime_error("CMS 3D texture is too large");
copyTexture({3,edge,edge,edge,3,false,{}},values,interpolation);
}
for(unsigned i=0;i<desc->getNumTextures();i++){
const char *name=nullptr,*sampler=nullptr;unsigned width=0,height=0;O::GpuShaderDesc::TextureType channels;O::GpuShaderDesc::TextureDimensions dimensions;O::Interpolation interpolation;const float *values=nullptr;
desc->getTexture(i,name,sampler,width,height,channels,dimensions,interpolation);desc->getTextureValues(i,values);
if(width>16384||height>16384)throw std::runtime_error("CMS texture is too large");
unsigned dim=dimensions==O::GpuShaderDesc::TEXTURE_1D?1:2;
copyTexture({dim,width,height,1,channels==O::GpuShaderDesc::TEXTURE_RED_CHANNEL?1u:3u,false,{}},values,interpolation);
if(interpolation==O::INTERP_LINEAR){
// Hardware samplers quantize the interpolation fraction. Near the
// ACEScc toe this becomes measurable; interpolate fetched float
// texels explicitly using the same LUT values as the CPU.
std::string helper="dyCMSLookup"+std::to_string(program.textures.size()-1),text;
if(dim==1)text="float4 "+helper+"(texture1d<float> t,float uv){float q=clamp(uv*float(t.get_width())-0.5f,0.f,float(t.get_width()-1));uint a=uint(floor(q)),b=min(a+1,t.get_width()-1);return mix(t.read(a),t.read(b),q-float(a));}\n";
else text="float4 "+helper+"(texture2d<float> t,float2 uv){uint2 size=uint2(t.get_width(),t.get_height());float2 q=clamp(uv*float2(size)-0.5f,float2(0),float2(size-1));uint2 a=uint2(floor(q)),b=min(a+1,size-1);float2 f=q-float2(a);return mix(mix(t.read(a),t.read(uint2(b.x,a.y)),f.x),mix(t.read(uint2(a.x,b.y)),t.read(b),f.x),f.y);}\n";
std::string match=std::string(name)+".sample("+sampler+", ",replacement=helper+"("+name+", ";
for(size_t pos=0;(pos=source.find(match,pos))!=std::string::npos;){source.replace(pos,match.size(),replacement);pos+=replacement.size();}
source=text+source;
}
}
calls+="p="+function+"(";
for(size_t i=firstTexture;i<program.textures.size();i++){auto suffix=std::to_string(i);calls+="dyBound"+suffix+",dySampler"+suffix+",";}
calls+="p);p=select(float4(0),p,isfinite(p));\n";
}
source+="\nfloat dyCCEncode(float x) {return x<=0?((-16.f+9.72f)/17.52f):((log2(x<1.f/32768.f?1.f/65536.f+x*.5f:x)+9.72f)/17.52f);}\n";
source+="float dyCCDecode(float x) {return x<((9.72f-15.f)/17.52f)?((exp2(x*17.52f-9.72f)-1.f/65536.f)*2.f):min(exp2(x*17.52f-9.72f),65504.f);}\nfloat4 dyOCIO(";
for(size_t i=0;i<program.textures.size();i++){
auto suffix=std::to_string(i);source+="texture"+std::to_string(program.textures[i].dimensions)+"d<float> dyBound"+suffix+", sampler dySampler"+suffix+", ";
}
source+="float4 p) {\n";
if(impl->decodeCC)source+="p.rgb=float3(dyCCDecode(p.r),dyCCDecode(p.g),dyCCDecode(p.b));\n";
source+=calls;
if(impl->encodeCC)source+="p=select(float4(0),p,isfinite(p));p.rgb=float3(dyCCEncode(p.r),dyCCEncode(p.g),dyCCEncode(p.b));\n";
source+="return p;}\n";return program;
}
Plan Plan::compile(const Settings &s){
s.validate();return {s,s.enabled?Transform::convert(s.input,s.working):Transform::identity(),
s.enabled?Transform::display(s.working,s.output,s.referenceGamutCompression):Transform::identity()};
}
std::string Plan::key()const{return settings.key();}
namespace {
class CompiledFramePipeline final : public FramePipeline {
Plan plan;
Transform toLinear,fromLinear;
public:
explicit CompiledFramePipeline(const Settings&s):plan(Plan::compile(s)),
toLinear(Transform::convert(s.working,Space::ACEScg)),
fromLinear(Transform::convert(Space::ACEScg,s.working)){validate();}
void validate()const override {plan.settings.validate();if(!plan.settings.enabled)throw std::invalid_argument("A frame CMS pipeline must be enabled");}
const Settings&settings()const override{return plan.settings;}
const Transform&transform(FrameStage stage)const override{
switch(stage){case FrameStage::Input:return plan.input;case FrameStage::Output:return plan.output;
case FrameStage::ToLinear:return toLinear;case FrameStage::FromLinear:return fromLinear;
default:throw std::invalid_argument("Invalid frame CMS stage");}
}
bool isIdentity(FrameStage stage)const override{return transform(stage).isIdentity();}
void apply(FrameStage stage,std::span<DYCompositeRGBA>pixels,Alpha alpha)const override{transform(stage).apply(pixels,alpha);}
std::string key()const override{return plan.key();}
};
}
std::shared_ptr<const FramePipeline> compileFramePipeline(const Settings&s){
s.validate();return s.enabled?std::make_shared<const CompiledFramePipeline>(s):nullptr;
}
} // namespace dycm
@@ -0,0 +1,33 @@
#pragma once
#import <Foundation/Foundation.h>
#import <Metal/Metal.h>
#include "../Core/DYColorManagement.hpp"
// Own one immutable pipeline per transform/device. The caller commits and checks
// its frame command buffer, so CMS joins the existing frame transaction.
@interface DYColorManagementGPU : NSObject
@property(nonatomic,readonly,copy) NSString *transformKey;
@property(nonatomic,readonly) uint64_t retainedTextureBytes;
- (instancetype)initWithDevice:(id<MTLDevice>)device transform:(const dycm::Transform&)transform error:(NSError**)error;
- (instancetype)initWithDevice:(id<MTLDevice>)device transform:(const dycm::Transform&)transform
resourceBudget:(uint64_t)bytes error:(NSError**)error;
- (BOOL)encodeInput:(id<MTLTexture>)input output:(id<MTLTexture>)output
alpha:(dycm::Alpha)alpha commandBuffer:(id<MTLCommandBuffer>)command
workspaceBudget:(uint64_t)bytes error:(NSError**)error;
@end
struct DYColorManagementCacheStatistics {
NSUInteger entries=0;
uint64_t retainedTextureBytes=0, builds=0, hits=0, evictions=0;
};
// Immutable device/transform resources shared by independent frame requests.
// Limits bound cache ownership, not resources still leased by active frames.
// Every frame must also charge its leased tables to its own resource budget.
@interface DYColorManagementGPUCache : NSObject
+ (instancetype)sharedCache;
- (instancetype)initWithCountLimit:(NSUInteger)count textureByteLimit:(uint64_t)bytes;
- (DYColorManagementGPU*)pipelineWithDevice:(id<MTLDevice>)device
transform:(const dycm::Transform&)transform resourceBudget:(uint64_t)bytes error:(NSError**)error;
- (DYColorManagementCacheStatistics)statistics;
- (void)removeAllObjects;
@end
@@ -0,0 +1,130 @@
#import "DYColorManagementGPU.h"
#include <stdexcept>
namespace {
NSError *failure(NSString *text){return [NSError errorWithDomain:@"com.dayu.colorplate.cms" code:1 userInfo:@{NSLocalizedDescriptionKey:text}];}
}
@implementation DYColorManagementGPU {
id<MTLDevice> _device;
id<MTLComputePipelineState> _pipeline;
NSString *_transformKey;
NSArray *_textures,*_samplers;
uint64_t _lutBytes;
}
- (NSString*)transformKey{return _transformKey;}
- (uint64_t)retainedTextureBytes{return _lutBytes;}
- (instancetype)initWithDevice:(id<MTLDevice>)device transform:(const dycm::Transform&)transform error:(NSError**)error {
return [self initWithDevice:device transform:transform resourceBudget:128*1024*1024 error:error];
}
- (instancetype)initWithDevice:(id<MTLDevice>)device transform:(const dycm::Transform&)transform resourceBudget:(uint64_t)bytes error:(NSError**)error {
if(!(self=[super init]))return nil;
try {
if(!device)throw std::invalid_argument("色彩管理需要可用的显卡");
_device=device;_transformKey=[NSString stringWithUTF8String:transform.key().c_str()];
auto program=transform.metalProgram();NSMutableArray *textures=[NSMutableArray new],*samplers=[NSMutableArray new];
if(program.textures.size()>16)throw std::runtime_error("色彩管理查找表数量超过限制");
std::string source="#include <metal_stdlib>\nusing namespace metal;\n"+program.source;
source+="\nkernel void dyCMSFrame(texture2d<float,access::read> src [[texture(0)]], texture2d<float,access::write> dst [[texture(1)]], ";std::string arguments;
for(size_t i=0;i<program.textures.size();i++){
auto &t=program.textures[i];auto suffix=std::to_string(i);
source+="texture"+std::to_string(t.dimensions)+"d<float> dyBound"+suffix+" [[texture("+std::to_string(i+2)+")]], sampler dySampler"+suffix+" [[sampler("+suffix+")]], ";
arguments+="dyBound"+suffix+",dySampler"+suffix+",";
auto d=[MTLTextureDescriptor new];d.pixelFormat=MTLPixelFormatRGBA32Float;d.textureType=t.dimensions==3?MTLTextureType3D:(t.dimensions==1?MTLTextureType1D:MTLTextureType2D);d.width=t.width;d.height=t.height;d.depth=t.depth;d.storageMode=MTLStorageModeShared;d.usage=MTLTextureUsageShaderRead;
uint64_t limit=std::min(bytes,uint64_t(128)*1024*1024);
if(_lutBytes>limit||uint64_t(t.width)*t.height*t.depth*16>limit-_lutBytes)throw std::runtime_error("色彩管理查找表超过预算");
id<MTLTexture> texture=[device newTextureWithDescriptor:d];if(!texture)throw std::runtime_error("无法分配色彩查找表");_lutBytes+=texture.allocatedSize;if(_lutBytes>limit)throw std::runtime_error("色彩管理查找表超过预算");
std::vector<float> rgba(uint64_t(t.width)*t.height*t.depth*4,1);
for(size_t p=0;p<t.values.size()/t.channels;p++)for(unsigned c=0;c<3;c++)rgba[p*4+c]=t.values[p*t.channels+(t.channels==1?0:c)];
if(t.dimensions==3)[texture replaceRegion:MTLRegionMake3D(0,0,0,t.width,t.height,t.depth) mipmapLevel:0 slice:0 withBytes:rgba.data() bytesPerRow:t.width*16 bytesPerImage:t.width*t.height*16];
else [texture replaceRegion:MTLRegionMake2D(0,0,t.width,t.height) mipmapLevel:0 withBytes:rgba.data() bytesPerRow:t.dimensions==1?0:t.width*16];
MTLSamplerDescriptor *sd=[MTLSamplerDescriptor new];sd.minFilter=sd.magFilter=t.linear?MTLSamplerMinMagFilterLinear:MTLSamplerMinMagFilterNearest;sd.sAddressMode=sd.tAddressMode=sd.rAddressMode=MTLSamplerAddressModeClampToEdge;sd.normalizedCoordinates=YES;
id<MTLSamplerState> sampler=[device newSamplerStateWithDescriptor:sd];if(!sampler)throw std::runtime_error("无法分配色彩查找表采样器");[textures addObject:texture];[samplers addObject:sampler];
}
_textures=[textures copy];_samplers=[samplers copy];
source+="constant uint &premult [[buffer(0)]], uint2 xy [[thread_position_in_grid]]) {\nif(any(xy >= uint2(src.get_width(),src.get_height()))) return;\nfloat4 p=src.read(xy);\n";
if(!transform.isIdentity()){
// Same finite and alpha-floor contract as Core/DYPremultiplied.h.
// Alpha is excluded from the OCIO processor, including gamma ops.
source+="p=select(float4(0),p,isfinite(p));float a=p.a;\nif(premult) { p.rgb/=max(a,1e-5f);p=select(float4(0),p,isfinite(p)); }\np=dyOCIO("+arguments+"float4(p.rgb,1));p=select(float4(0),p,isfinite(p));p.a=a;\nif(premult){p.rgb*=a;p=select(float4(0),p,isfinite(p));}\n";
}
source+="dst.write(p,xy);}\n";
MTLCompileOptions *options=[MTLCompileOptions new];options.languageVersion=MTLLanguageVersion3_1;options.fastMathEnabled=NO;
id<MTLLibrary> library=[device newLibraryWithSource:[NSString stringWithUTF8String:source.c_str()] options:options error:error];
if(!library)return nil;
id<MTLFunction> function=[library newFunctionWithName:@"dyCMSFrame"];
if(!function)throw std::runtime_error("色彩管理显卡函数缺失");
_pipeline=[device newComputePipelineStateWithFunction:function error:error];
if(!_pipeline)return nil;
return self;
}catch(const std::exception &e){if(error)*error=failure([NSString stringWithUTF8String:e.what()]);return nil;}
}
- (BOOL)encodeInput:(id<MTLTexture>)input output:(id<MTLTexture>)output alpha:(dycm::Alpha)alpha commandBuffer:(id<MTLCommandBuffer>)command workspaceBudget:(uint64_t)bytes error:(NSError**)error {
try {
if(alpha!=dycm::Alpha::Straight&&alpha!=dycm::Alpha::Premultiplied)throw std::invalid_argument("色彩管理透明度表示无效");
auto valid=[&](id<MTLTexture> t){return t&&t.device.registryID==_device.registryID&&t.pixelFormat==MTLPixelFormatRGBA32Float&&t.textureType==MTLTextureType2D&&t.sampleCount==1&&t.mipmapLevelCount==1&&t.width&&t.height&&t.width<=16384&&t.height<=16384&&uint64_t(t.width)*t.height<=uint64_t(64)*1024*1024;};
if(!valid(input)||!valid(output)||input==output||input.width!=output.width||input.height!=output.height)
throw std::invalid_argument("色彩管理需要独立、同尺寸的 RGBA32Float 纹理");
if((input.usage!=MTLTextureUsageUnknown&&!(input.usage&MTLTextureUsageShaderRead))||(output.usage!=MTLTextureUsageUnknown&&!(output.usage&MTLTextureUsageShaderWrite)))
throw std::invalid_argument("色彩管理纹理缺少读写用途");
if(!command||command.commandQueue.device.registryID!=_device.registryID||command.status!=MTLCommandBufferStatusNotEnqueued)
throw std::invalid_argument("色彩管理帧命令不可写入");
if(_lutBytes>bytes||input.allocatedSize>bytes-_lutBytes||output.allocatedSize>bytes-_lutBytes-input.allocatedSize)
throw std::runtime_error("色彩管理超过图像预算");
id<MTLComputeCommandEncoder> encoder=[command computeCommandEncoder];
if(!encoder)throw std::runtime_error("色彩管理显卡编码器不可用");
uint32_t pm=alpha==dycm::Alpha::Premultiplied;
[encoder setComputePipelineState:_pipeline];[encoder setTexture:input atIndex:0];[encoder setTexture:output atIndex:1];[encoder setBytes:&pm length:sizeof(pm) atIndex:0];
for(NSUInteger i=0;i<_textures.count;i++){[encoder setTexture:_textures[i] atIndex:i+2];[encoder setSamplerState:_samplers[i] atIndex:i];}
NSUInteger x=_pipeline.threadExecutionWidth,y=std::min(NSUInteger(8),_pipeline.maxTotalThreadsPerThreadgroup/x);
[encoder dispatchThreads:MTLSizeMake(input.width,input.height,1) threadsPerThreadgroup:MTLSizeMake(x,y,1)];[encoder endEncoding];
return YES;
}catch(const std::exception &e){if(error)*error=failure([NSString stringWithUTF8String:e.what()]);return NO;}
}
@end
@implementation DYColorManagementGPUCache {
NSMutableDictionary<NSString*,DYColorManagementGPU*> *_entries;
NSMutableArray<NSString*> *_order;
NSUInteger _countLimit;
uint64_t _byteLimit;
DYColorManagementCacheStatistics _statistics;
}
+ (instancetype)sharedCache {
static DYColorManagementGPUCache *cache;static dispatch_once_t once;
dispatch_once(&once,^{cache=[[self alloc]initWithCountLimit:32 textureByteLimit:uint64_t(128)*1024*1024];});
return cache;
}
- (instancetype)init {return [self initWithCountLimit:32 textureByteLimit:uint64_t(128)*1024*1024];}
- (instancetype)initWithCountLimit:(NSUInteger)count textureByteLimit:(uint64_t)bytes {
if((self=[super init])){_entries=[NSMutableDictionary new];_order=[NSMutableArray new];_countLimit=count;_byteLimit=bytes;}
return self;
}
- (DYColorManagementGPU*)pipelineWithDevice:(id<MTLDevice>)device transform:(const dycm::Transform&)transform resourceBudget:(uint64_t)bytes error:(NSError**)error {
if(!device){if(error)*error=failure(@"色彩管理需要可用的显卡");return nil;}
NSString *key=[NSString stringWithFormat:@"%llu:%s",(unsigned long long)device.registryID,transform.key().c_str()];
// Coalesce simultaneous first frames. Compilation happens on the caller's
// render queue; the cache never calls back into a frame or holds its buffers.
@synchronized(self){
DYColorManagementGPU *pipeline=_entries[key];
if(pipeline){
if(pipeline.retainedTextureBytes>bytes){if(error)*error=failure(@"色彩管理查找表超过预算");return nil;}
[_order removeObject:key];[_order addObject:key];_statistics.hits++;return pipeline;
}
pipeline=[[DYColorManagementGPU alloc]initWithDevice:device transform:transform resourceBudget:bytes error:error];
if(!pipeline)return nil;_statistics.builds++;
uint64_t cost=pipeline.retainedTextureBytes;
if(!_countLimit||cost>_byteLimit)return pipeline;
while(_order.count&&(_order.count>=_countLimit||cost>_byteLimit-_statistics.retainedTextureBytes)){
NSString *old=_order.firstObject;_statistics.retainedTextureBytes-=_entries[old].retainedTextureBytes;
[_entries removeObjectForKey:old];[_order removeObjectAtIndex:0];_statistics.evictions++;
}
_entries[key]=pipeline;[_order addObject:key];_statistics.retainedTextureBytes+=cost;
return pipeline;
}
}
- (DYColorManagementCacheStatistics)statistics {
@synchronized(self){auto value=_statistics;value.entries=_entries.count;return value;}
}
- (void)removeAllObjects {
@synchronized(self){[_entries removeAllObjects];[_order removeAllObjects];_statistics.retainedTextureBytes=0;}
}
@end
@@ -0,0 +1,17 @@
#pragma once
#import <Foundation/Foundation.h>
#include "../Core/DYColorManagement.hpp"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,DYCMSInputMode){DYCMSInputDeclared=0,DYCMSInputHostProfile=1};
// Root-level authoring state. Integration must explicitly whitelist this class;
// missing state in older documents means the unchanged unmanaged pipeline.
@interface DYColorManagementState : NSObject <NSSecureCoding,NSCopying>
@property(nonatomic) NSInteger version,inputSpace,workingSpace,outputTransform;
@property(nonatomic) DYCMSInputMode inputMode;
@property(nonatomic) BOOL enabled,referenceGamutCompression;
@property(nonatomic,copy) NSString *engineIdentifier,*configIdentifier;
- (BOOL)getSettings:(dycm::Settings*)settings error:(NSError* _Nullable * _Nullable)error;
- (nullable NSData*)archiveDataWithError:(NSError* _Nullable * _Nullable)error;
+ (nullable instancetype)stateFromArchiveData:(NSData*)data error:(NSError* _Nullable * _Nullable)error;
@end
NS_ASSUME_NONNULL_END
@@ -0,0 +1,77 @@
#import "DYColorManagementState.h"
#include <limits>
#include <stdexcept>
namespace {
NSError *failure(NSString *message){return [NSError errorWithDomain:@"com.dayu.colorplate.cms-state" code:1 userInfo:@{NSLocalizedDescriptionKey:message}];}
NSArray<NSString*> *keys(){return @[@"version",@"inputMode",@"inputSpace",@"workingSpace",@"outputTransform",@"enabled",@"referenceGamutCompression",@"engineIdentifier",@"configIdentifier"];}
}
@implementation DYColorManagementState
+ (BOOL)supportsSecureCoding{return YES;}
- (instancetype)init {
if((self=[super init])){dycm::Settings s;_version=2;_inputMode=DYCMSInputDeclared;_inputSpace=NSInteger(s.input);_workingSpace=NSInteger(s.working);_outputTransform=NSInteger(s.output);_enabled=s.enabled;_referenceGamutCompression=s.referenceGamutCompression;
_engineIdentifier=[NSString stringWithUTF8String:dycm::Engine];_configIdentifier=[NSString stringWithUTF8String:dycm::Config];}
return self;
}
- (BOOL)getSettings:(dycm::Settings*)settings error:(NSError**)error {
try {
if(!settings)throw std::invalid_argument("色彩管理参数目的地缺失");
if(![_engineIdentifier isKindOfClass:NSString.class]||![_configIdentifier isKindOfClass:NSString.class]||![_engineIdentifier isEqualToString:[NSString stringWithUTF8String:dycm::Engine]]||![_configIdentifier isEqualToString:[NSString stringWithUTF8String:dycm::Config]])
throw std::invalid_argument("工程使用了不支持的色彩转换组件版本");
for(NSNumber *value in @[@(_version),@(_inputSpace),@(_workingSpace),@(_outputTransform)])
if(value.longLongValue<0||value.unsignedLongLongValue>std::numeric_limits<unsigned>::max())throw std::invalid_argument("色彩管理标识超出范围");
if((_version!=1&&_version!=2)||(_inputMode!=DYCMSInputDeclared&&_inputMode!=DYCMSInputHostProfile)||(_version==1&&_inputMode!=DYCMSInputDeclared))throw std::invalid_argument("色彩管理输入方式或归档版本无效");
dycm::Settings s;s.enabled=_enabled;s.input=dycm::Space(_inputSpace);s.working=dycm::Space(_workingSpace);s.output=dycm::Output(_outputTransform);s.referenceGamutCompression=_referenceGamutCompression;
s.validate();if(_inputMode==DYCMSInputHostProfile)s.input=dycm::Space::ACEScg;*settings=s;return YES;
}catch(const std::exception &e){if(error)*error=failure([NSString stringWithUTF8String:e.what()]);return NO;}
}
- (void)encodeWithCoder:(NSCoder*)coder {
dycm::Settings s;NSError *error=nil;if(![self getSettings:&s error:&error]){[coder failWithError:error];return;}
for(NSString *key in @[@"version",@"inputSpace",@"workingSpace",@"outputTransform"])[coder encodeInteger:[[self valueForKey:key]integerValue] forKey:key];
if(_version>=2)[coder encodeInteger:_inputMode forKey:@"inputMode"];
[coder encodeBool:_enabled forKey:@"enabled"];[coder encodeBool:_referenceGamutCompression forKey:@"referenceGamutCompression"];
[coder encodeObject:_engineIdentifier forKey:@"engineIdentifier"];[coder encodeObject:_configIdentifier forKey:@"configIdentifier"];
}
- (instancetype)initWithCoder:(NSCoder*)coder {
if(!(self=[self init]))return nil;
for(NSString *key in keys())if(![key isEqual:@"inputMode"]&&![coder containsValueForKey:key]){[coder failWithError:failure(@"色彩管理归档不完整")];return nil;}
for(NSString *key in @[@"version",@"inputSpace",@"workingSpace",@"outputTransform"])[self setValue:@([coder decodeIntegerForKey:key]) forKey:key];
if((_version>=2)!=[coder containsValueForKey:@"inputMode"]){[coder failWithError:failure(@"色彩管理输入方式与归档版本不一致")];return nil;}
_inputMode=_version>=2?DYCMSInputMode([coder decodeIntegerForKey:@"inputMode"]):DYCMSInputDeclared;
// Keyed archives distinguish CFBoolean from integer NSNumber. The boolean
// decoder already rejects integer 0/1/2; an integer decoder rejects our own
// valid encodeBool fields. Do not coerce either representation via KVC.
_enabled=[coder decodeBoolForKey:@"enabled"];
_referenceGamutCompression=[coder decodeBoolForKey:@"referenceGamutCompression"];
if(coder.error)return nil;
_engineIdentifier=[[coder decodeObjectOfClass:NSString.class forKey:@"engineIdentifier"]copy];_configIdentifier=[[coder decodeObjectOfClass:NSString.class forKey:@"configIdentifier"]copy];
dycm::Settings s;NSError *error=nil;if(![self getSettings:&s error:&error]){[coder failWithError:error];return nil;}return self;
}
- (id)copyWithZone:(NSZone*)zone {
DYColorManagementState *copy=[[[self class]allocWithZone:zone]init];
for(NSString *key in keys())[copy setValue:[self valueForKey:key] forKey:key];return copy;
}
- (BOOL)isEqual:(id)object {
if(object==self)return YES;if(![object isMemberOfClass:self.class])return NO;
for(NSString *key in keys()){id a=[self valueForKey:key],b=[object valueForKey:key];if(a!=b&&![a isEqual:b])return NO;}return YES;
}
- (NSUInteger)hash {
NSUInteger value=1469598103934665603ull;
for(NSString *key in keys())value=(value^[[self valueForKey:key]hash])*1099511628211ull;return value;
}
- (NSData*)archiveDataWithError:(NSError**)error {
dycm::Settings s;if(![self getSettings:&s error:error])return nil;
@try{return [NSKeyedArchiver archivedDataWithRootObject:self requiringSecureCoding:YES error:error];}
@catch(NSException *exception){if(error)*error=failure(@"无法保存色彩管理设置");return nil;}
}
+ (instancetype)stateFromArchiveData:(NSData*)data error:(NSError**)error {
if(![data isKindOfClass:NSData.class]||!data.length||data.length>16384){if(error)*error=failure(@"色彩管理归档大小无效");return nil;}
@try{
id decoded=[NSKeyedUnarchiver unarchivedObjectOfClass:self fromData:data error:error];
// Foundation permits some scalar classes even with a specific root
// whitelist. Check the returned root before exposing typed state.
if(![decoded isMemberOfClass:self]){if(error)*error=failure(@"色彩管理归档根对象无效");return nil;}
dycm::Settings s;if(![decoded getSettings:&s error:error])return nil;return decoded;
}
@catch(NSException *exception){if(error)*error=failure(@"无法读取色彩管理设置");return nil;}
}
@end
+42
查看文件
@@ -0,0 +1,42 @@
#pragma once
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <Metal/Metal.h>
#include "../Core/DYColorManagement.hpp"
#include <optional>
#include <atomic>
// A physical RGB profile conversion, separate from a declared camera encoding
// or an ACES display rendering transform. Profiles and keys are immutable.
@interface DYColorProfile : NSObject
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)initWithSource:(CGColorSpaceRef)source target:(CGColorSpaceRef)target error:(NSError**)error;
// Encoded ACES ODT values to a real host/display profile. In particular, HLG
// uses the BT.2100 reference EOTF before the physical profile conversion.
- (instancetype)initWithDisplayOutput:(dycm::Output)output target:(CGColorSpaceRef)target error:(NSError**)error;
@property(nonatomic,readonly) CGColorSpaceRef source;
@property(nonatomic,readonly) CGColorSpaceRef target;
@property(nonatomic,readonly) BOOL identity;
@property(nonatomic,readonly,copy) NSString*key;
// Opaque fingerprint metadata only, never decoded as an authoring field.
@property(nonatomic,readonly,copy) NSData*sourceDescription;
@property(nonatomic,readonly,copy) NSData*targetDescription;
// No additional display tone mapping or [0,1] clipping. The selected physical
// profile still defines its own transfer-function range and extrapolation.
// Output storage is private. Input remains untouched on success or failure.
- (std::optional<std::vector<DYCompositeRGBA>>)convertPixels:(std::span<const DYCompositeRGBA>)input
alpha:(dycm::Alpha)alpha budget:(uint64_t)bytes cancelled:(const std::atomic_bool*)cancelled error:(NSError**)error;
@end
@interface DYColorProfileGPU : NSObject
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)initWithDevice:(id<MTLDevice>)device profile:(DYColorProfile*)profile error:(NSError**)error;
- (BOOL)renderInput:(id<MTLTexture>)input output:(id<MTLTexture>)output alpha:(dycm::Alpha)alpha
workspaceBudget:(uint64_t)bytes cancelled:(const std::atomic_bool*)cancelled error:(NSError**)error;
@end
// Nominal output profile. For conversion use initWithDisplayOutput:target:;
// Apple's HLG profile alone is not the reference BT.2100 chromatic EOTF.
CGColorSpaceRef DYCreateCMSOutputColorSpace(dycm::Output output) CF_RETURNS_RETAINED;
+132
查看文件
@@ -0,0 +1,132 @@
#import "DYColorProfile.h"
#import <CoreImage/CoreImage.h>
#import <CommonCrypto/CommonDigest.h>
#include <mutex>
#include <stdexcept>
#include <simd/simd.h>
namespace {
struct CacheClear {CIContext*context;~CacheClear(){[context clearCaches];}};
NSError*failure(NSString*message){return [NSError errorWithDomain:@"com.dayu.colorplate.profile" code:1 userInfo:@{NSLocalizedDescriptionKey:message}];}
void check(const std::atomic_bool*cancelled){if(cancelled&&cancelled->load())throw std::runtime_error("颜色配置转换已取消");}
void validAlpha(dycm::Alpha alpha){if(alpha!=dycm::Alpha::Straight&&alpha!=dycm::Alpha::Premultiplied)throw std::invalid_argument("颜色配置透明度表示无效");}
void admission(uint64_t pixels,uint64_t bytes){if(!pixels||pixels>uint64_t(64)*1024*1024||pixels>bytes/(6*sizeof(DYCompositeRGBA)))throw std::runtime_error("颜色配置转换的估算工作集超过预算");}
NSData*description(CGColorSpaceRef space){
if(!space||CGColorSpaceGetModel(space)!=kCGColorSpaceModelRGB)throw std::invalid_argument("颜色转换需要明确的 RGB 配置");
CGColorSpaceRef device=CGColorSpaceCreateDeviceRGB();bool unspecified=CFEqual(space,device);CGColorSpaceRelease(device);if(unspecified)throw std::invalid_argument("Device RGB 没有明确的原色和传递函数");
CFPropertyListRef plist=CGColorSpaceCopyPropertyList(space);if(!plist)throw std::runtime_error("无法保存颜色配置描述");
NSData*data=[NSPropertyListSerialization dataWithPropertyList:CFBridgingRelease(plist) format:NSPropertyListBinaryFormat_v1_0 options:0 error:nil];
if(!data.length||data.length>16*1024*1024)throw std::runtime_error("颜色配置描述无效或超过限制");
return data;
}
NSString*fingerprint(NSData*data){unsigned char digest[CC_SHA256_DIGEST_LENGTH];CC_SHA256(data.bytes,(CC_LONG)data.length,digest);NSMutableString*result=[NSMutableString new];for(auto c:digest)[result appendFormat:@"%02x",c];return result;}
NSDictionary*options(bool software){
CGColorSpaceRef working=CGColorSpaceCreateWithName(kCGColorSpaceACESCGLinear);if(!working)throw std::runtime_error("无法建立线性颜色转换空间");
NSMutableDictionary*value=[@{kCIContextWorkingColorSpace:CFBridgingRelease(working),kCIContextWorkingFormat:@(kCIFormatRGBAf),kCIContextOutputPremultiplied:@YES,kCIContextCacheIntermediates:@NO}mutableCopy];if(software)value[kCIContextUseSoftwareRenderer]=@YES;return value;
}
void configure(CIRenderDestination*d,CGColorSpaceRef target){d.colorSpace=target;d.alphaMode=CIRenderDestinationAlphaPremultiplied;d.clamped=NO;d.dithered=NO;d.flipped=NO;}
bool render(CIContext*context,CIImage*image,CIRenderDestination*destination,size_t width,size_t height,NSError**error){
NSError*underlying=nil;auto task=[context startTaskToRender:image fromRect:CGRectMake(0,0,width,height) toDestination:destination atPoint:CGPointZero error:&underlying];
if(!task||![task waitUntilCompletedAndReturnError:&underlying]){if(error)*error=underlying?:failure(@"系统颜色配置转换未完成");return false;}return true;
}
id<MTLTexture>rootTexture(id<MTLTexture>t){while(t.parentTexture)t=t.parentTexture;return t;}
bool aliases(id<MTLTexture>a,id<MTLTexture>b){a=rootTexture(a);b=rootTexture(b);return a==b||(a.buffer&&a.buffer==b.buffer)||(a.iosurface&&a.iosurface==b.iosurface)||(a.heap&&a.heap==b.heap);}
CGColorSpaceRef calibrated(double rx,double ry,double gx,double gy,double bx,double by,double wx,double wy,double gamma){
simd_double3 white={wx/wy,1,(1-wx-wy)/wy};simd_double3x3 primaries={simd_double3{rx/ry,1,(1-rx-ry)/ry},simd_double3{gx/gy,1,(1-gx-gy)/gy},simd_double3{bx/by,1,(1-bx-by)/by}};auto scales=simd_mul(simd_inverse(primaries),white);
CGFloat w[3]={white.x,white.y,white.z},g[3]={gamma,gamma,gamma},matrix[9];for(int c=0;c<3;c++)for(int r=0;r<3;r++)matrix[c*3+r]=primaries.columns[c][r]*scales[c];return CGColorSpaceCreateCalibratedRGB(w,nullptr,g,matrix);
}
DYCompositeRGBA decodeHLG(DYCompositeRGBA p){
// BT.2100 reference display: 1000 cd/m2, gamma 1.2, black 0. Apple's
// physical linear profile uses ISO HDR reference white 203 cd/m2.
// Signed extension is explicit; finite values are not clipped to [0,1].
auto inverse=[](float c){float v=fabsf(c);return copysignf(v<=.5f?v*v/3.f:(expf((v-.55991073f)/.17883277f)+.28466892f)/12.f,c);};p.r=inverse(p.r);p.g=inverse(p.g);p.b=inverse(p.b);
float scale=(1000.f/203.f)*powf(fabsf(.2627f*p.r+.6780f*p.g+.0593f*p.b),.2f);p.r*=scale;p.g*=scale;p.b*=scale;return dyPMFinite(p);
}
}
@interface DYColorProfile ()
@property(nonatomic,readonly) CGColorSpaceRef conversionSource;
@property(nonatomic,readonly) BOOL decodeHLG;
@end
CGColorSpaceRef DYCreateCMSOutputColorSpace(dycm::Output output){
switch(output){
case dycm::Output::Rec709_100:case dycm::Output::Rec709D60_100:return calibrated(.64,.33,.30,.60,.15,.06,.3127,.3290,2.4);
case dycm::Output::SRGB_100:return CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
case dycm::Output::DisplayP3_100:return CGColorSpaceCreateWithName(kCGColorSpaceDisplayP3);
case dycm::Output::Rec2020_100:return calibrated(.708,.292,.170,.797,.131,.046,.3127,.3290,2.4);
case dycm::Output::Rec2020PQ_1000:return CGColorSpaceCreateWithName(kCGColorSpaceITUR_2100_PQ);
case dycm::Output::Rec2020HLG_1000:return CGColorSpaceCreateWithName(kCGColorSpaceITUR_2100_HLG);
case dycm::Output::P3D60_48:return calibrated(.68,.32,.265,.69,.15,.06,.32168,.33767,2.6);
case dycm::Output::P3DCI_48:return CGColorSpaceCreateWithName(kCGColorSpaceDCIP3);
case dycm::Output::P3D65_48:return calibrated(.68,.32,.265,.69,.15,.06,.3127,.3290,2.6);
}return nullptr;
}
@implementation DYColorProfile {
CGColorSpaceRef _source,_target,_conversionSource;BOOL _identity,_decodeHLG;NSString*_key;NSData*_sourceDescription,*_targetDescription;CIContext*_cpu;std::mutex _mutex;
}
- (CGColorSpaceRef)source{return _source;}
- (CGColorSpaceRef)target{return _target;}
- (BOOL)identity{return _identity;}
- (NSString*)key{return _key;}
- (NSData*)sourceDescription{return _sourceDescription;}
- (NSData*)targetDescription{return _targetDescription;}
- (CGColorSpaceRef)conversionSource{return _conversionSource?:_source;}
- (BOOL)decodeHLG{return _decodeHLG;}
- (instancetype)initWithSource:(CGColorSpaceRef)source target:(CGColorSpaceRef)target error:(NSError**)error {
if(!(self=[super init]))return nil;try{_sourceDescription=description(source);_targetDescription=description(target);_source=CGColorSpaceRetain(source);_target=CGColorSpaceRetain(target);_identity=CFEqual(source,target);_key=[NSString stringWithFormat:@"dayu-profile:1:%@:%@",fingerprint(_sourceDescription),fingerprint(_targetDescription)];return self;}catch(const std::exception&e){if(error)*error=failure(@(e.what()));return nil;}
}
- (instancetype)initWithDisplayOutput:(dycm::Output)output target:(CGColorSpaceRef)target error:(NSError**)error {
CGColorSpaceRef source=DYCreateCMSOutputColorSpace(output);self=[self initWithSource:source target:target error:error];if(source)CGColorSpaceRelease(source);if(!self)return nil;
if(output==dycm::Output::Rec2020HLG_1000){_conversionSource=CGColorSpaceCreateWithName(kCGColorSpaceExtendedLinearITUR_2020);if(!_conversionSource){if(error)*error=failure(@"无法建立 HLG 参考输出空间");return nil;}_decodeHLG=YES;_identity=NO;_key=[_key stringByAppendingString:@":reference-hlg:1000:203:v1"];}
return self;
}
- (void)dealloc{if(_source)CGColorSpaceRelease(_source);if(_target)CGColorSpaceRelease(_target);if(_conversionSource)CGColorSpaceRelease(_conversionSource);}
- (std::optional<std::vector<DYCompositeRGBA>>)convertPixels:(std::span<const DYCompositeRGBA>)input alpha:(dycm::Alpha)alpha budget:(uint64_t)bytes cancelled:(const std::atomic_bool*)cancelled error:(NSError**)error {
try{validAlpha(alpha);check(cancelled);if(input.empty()||input.size()>uint64_t(64)*1024*1024)throw std::invalid_argument("颜色转换输入大小无效");if(input.size()>bytes/(2*sizeof(DYCompositeRGBA)))throw std::runtime_error("颜色转换副本超过预算");if(_identity)return std::vector<DYCompositeRGBA>(input.begin(),input.end());admission(input.size(),bytes);
std::lock_guard<std::mutex>lock(_mutex);check(cancelled);@autoreleasepool{@try{
if(!_cpu)_cpu=[CIContext contextWithOptions:options(true)];if(!_cpu)throw std::runtime_error("无法建立 CPU 颜色转换");
CacheClear cleanup{_cpu};std::vector<DYCompositeRGBA>result(input.size());std::vector<DYCompositeRGBA>opaque(std::min(size_t(4096),input.size()));
for(size_t offset=0;offset<input.size();offset+=opaque.size()){
check(cancelled);size_t count=std::min(opaque.size(),input.size()-offset);
for(size_t i=0;i<count;i++){auto p=dyPMFinite(input[offset+i]);if(alpha==dycm::Alpha::Premultiplied)p=dyPMUnpremultiply(p);if(_decodeHLG)p=decodeHLG(p);p.a=1;opaque[i]=p;}
NSData*data=[NSData dataWithBytesNoCopy:opaque.data() length:count*sizeof(DYCompositeRGBA) freeWhenDone:NO];auto image=[CIImage imageWithBitmapData:data bytesPerRow:count*16 size:CGSizeMake(count,1) format:kCIFormatRGBAf colorSpace:self.conversionSource];
auto destination=[[CIRenderDestination alloc]initWithBitmapData:result.data()+offset width:count height:1 bytesPerRow:count*16 format:kCIFormatRGBAf];configure(destination,_target);
if(!image||!render(_cpu,image,destination,count,1,error)){[_cpu clearCaches];return std::nullopt;}
for(size_t i=0;i<count;i++){auto p=dyPMFinite(result[offset+i]);p.a=dyPMFinite(input[offset+i]).a;result[offset+i]=alpha==dycm::Alpha::Premultiplied?dyPMPremultiply(p):p;}
}[_cpu clearCaches];check(cancelled);return result;
}@catch(NSException*e){[_cpu clearCaches];if(error)*error=failure(e.reason?:@"CPU 颜色转换异常");return std::nullopt;}}
}catch(const std::exception&e){if(error)*error=failure(@(e.what()));return std::nullopt;}
}
@end
@implementation DYColorProfileGPU {
id<MTLDevice>_device;id<MTLCommandQueue>_queue;DYColorProfile*_profile;CIContext*_context;
id<MTLComputePipelineState>_prepare,_restore;std::mutex _mutex;
}
- (instancetype)initWithDevice:(id<MTLDevice>)device profile:(DYColorProfile*)profile error:(NSError**)error {
if(!(self=[super init]))return nil;try{
if(!device||!profile)throw std::invalid_argument("颜色配置或显卡缺失");_device=device;_profile=profile;_queue=[device newCommandQueue];if(!_queue)throw std::runtime_error("无法建立颜色转换队列");
if(profile.identity)return self;_context=[CIContext contextWithMTLCommandQueue:_queue options:options(false)];if(!_context)throw std::runtime_error("无法建立显卡颜色转换");
NSString*source=@"#include <metal_stdlib>\nusing namespace metal;\nfloat4 safe(float4 p){return select(float4(0),p,isfinite(p));}\nkernel void prepare(texture2d<float,access::read> src [[texture(0)]],texture2d<float,access::write> dst [[texture(1)]],constant uint2& options [[buffer(0)]],uint2 p [[thread_position_in_grid]]){if(any(p>=uint2(src.get_width(),src.get_height())))return;float4 c=safe(src.read(p));if(options.x)c=safe(float4(c.rgb/max(c.a,1e-5f),c.a));if(options.y){float3 v=abs(c.rgb);c.rgb=sign(c.rgb)*select((exp((v-.55991073f)/.17883277f)+.28466892f)/12.f,v*v/3.f,v<=.5f);c.rgb*=1000.f/203.f*pow(abs(dot(c.rgb,float3(.2627f,.6780f,.0593f))),.2f);c=safe(c);}dst.write(float4(c.rgb,1),p);}\nkernel void restore(texture2d<float,access::read> original [[texture(0)]],texture2d<float,access::read> converted [[texture(1)]],texture2d<float,access::write> dst [[texture(2)]],constant uint2& options [[buffer(0)]],uint2 p [[thread_position_in_grid]]){if(any(p>=uint2(dst.get_width(),dst.get_height())))return;float a=safe(original.read(p)).a;float3 rgb=safe(converted.read(p)).rgb;if(options.x)rgb*=a;dst.write(safe(float4(rgb,a)),p);}";
auto options=[MTLCompileOptions new];options.languageVersion=MTLLanguageVersion3_1;options.fastMathEnabled=NO;auto library=[device newLibraryWithSource:source options:options error:error];if(!library)return nil;
_prepare=[device newComputePipelineStateWithFunction:[library newFunctionWithName:@"prepare"] error:error];_restore=[device newComputePipelineStateWithFunction:[library newFunctionWithName:@"restore"] error:error];if(!_prepare||!_restore)return nil;return self;
}catch(const std::exception&e){if(error)*error=failure(@(e.what()));return nil;}
}
- (BOOL)renderInput:(id<MTLTexture>)input output:(id<MTLTexture>)output alpha:(dycm::Alpha)alpha workspaceBudget:(uint64_t)bytes cancelled:(const std::atomic_bool*)cancelled error:(NSError**)error {
try{validAlpha(alpha);check(cancelled);auto valid=[&](id<MTLTexture>t){return t&&t.device.registryID==_device.registryID&&t.textureType==MTLTextureType2D&&t.pixelFormat==MTLPixelFormatRGBA32Float&&t.width&&t.height&&t.width<=16384&&t.height<=16384&&t.sampleCount==1&&t.mipmapLevelCount==1&&!t.framebufferOnly&&t.storageMode!=MTLStorageModeMemoryless;};
if(!valid(input)||!valid(output)||input.width!=output.width||input.height!=output.height||aliases(input,output))throw std::invalid_argument("颜色转换需要同设备、同尺寸且独立的 RGBA32Float 纹理");
if((input.usage!=MTLTextureUsageUnknown&&!(input.usage&MTLTextureUsageShaderRead))||(output.usage!=MTLTextureUsageUnknown&&!(output.usage&MTLTextureUsageShaderWrite)))throw std::invalid_argument("颜色转换纹理缺少读写用途");
if(uint64_t(input.width)*input.height>uint64_t(64)*1024*1024)throw std::invalid_argument("颜色转换图像过大");
if(input.allocatedSize>bytes||output.allocatedSize>bytes-input.allocatedSize)throw std::runtime_error("颜色转换纹理超过预算");
std::lock_guard<std::mutex>lock(_mutex);check(cancelled);@autoreleasepool{@try{
CacheClear cleanup{_context};auto finish=[&](id<MTLCommandBuffer>b){if(!b)throw std::runtime_error("颜色转换命令缺失");[b commit];[b waitUntilCompleted];if(b.status!=MTLCommandBufferStatusCompleted)throw std::runtime_error(b.error.localizedDescription.UTF8String?:"颜色转换命令未完成");check(cancelled);};
if(_profile.identity){auto command=[_queue commandBuffer];auto blit=[command blitCommandEncoder];if(!blit)throw std::runtime_error("无法复制恒等颜色图像");[blit copyFromTexture:input sourceSlice:0 sourceLevel:0 sourceOrigin:MTLOriginMake(0,0,0) sourceSize:MTLSizeMake(input.width,input.height,1) toTexture:output destinationSlice:0 destinationLevel:0 destinationOrigin:MTLOriginMake(0,0,0)];[blit endEncoding];finish(command);return YES;}
admission(uint64_t(input.width)*input.height,bytes);auto desc=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA32Float width:input.width height:input.height mipmapped:NO];desc.storageMode=MTLStorageModePrivate;desc.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;
auto opaque=[_device newTextureWithDescriptor:desc],converted=[_device newTextureWithDescriptor:desc];if(!opaque||!converted)throw std::runtime_error("无法分配颜色转换图像");uint64_t actual=input.allocatedSize+output.allocatedSize+opaque.allocatedSize+converted.allocatedSize;
if(actual>bytes||2*uint64_t(input.width)*input.height*16>bytes-actual)throw std::runtime_error("颜色转换实际纹理及估算系统工作区超过预算");
auto dispatch=[&](id<MTLComputePipelineState>pipeline,NSArray*textures){check(cancelled);auto command=[_queue commandBuffer];auto encoder=[command computeCommandEncoder];if(!encoder)throw std::runtime_error("无法建立颜色转换编码器");[encoder setComputePipelineState:pipeline];for(NSUInteger i=0;i<textures.count;i++)[encoder setTexture:textures[i] atIndex:i];uint32_t parameters[2]={alpha==dycm::Alpha::Premultiplied,uint32_t(_profile.decodeHLG)};[encoder setBytes:parameters length:sizeof(parameters) atIndex:0];NSUInteger x=pipeline.threadExecutionWidth,y=std::min(NSUInteger(8),pipeline.maxTotalThreadsPerThreadgroup/x);[encoder dispatchThreads:MTLSizeMake(input.width,input.height,1) threadsPerThreadgroup:MTLSizeMake(x,y,1)];[encoder endEncoding];finish(command);};
dispatch(_prepare,@[input,opaque]);auto image=[CIImage imageWithMTLTexture:opaque options:@{kCIImageColorSpace:(__bridge id)_profile.conversionSource,kCIImageToneMapHDRtoSDR:@NO}];auto destination=[[CIRenderDestination alloc]initWithMTLTexture:converted commandBuffer:nil];configure(destination,_profile.target);
if(!image||!render(_context,image,destination,input.width,input.height,error)){[_context clearCaches];return NO;}check(cancelled);dispatch(_restore,@[input,converted,output]);[_context clearCaches];return YES;
}@catch(NSException*e){[_context clearCaches];if(error)*error=failure(e.reason?:@"显卡颜色转换异常");return NO;}}
}catch(const std::exception&e){if(error)*error=failure(@(e.what()));return NO;}
}
@end
+11
查看文件
@@ -0,0 +1,11 @@
# 固定版本的公开色彩管理依赖
这里保留 OpenColorIO 2.5.2 及其六个静态依赖、ARM SIMD 头文件的原始源码压缩包,供离线恢复与构建。不是已安装的依赖目录或编译产物。每个来源 URL、版本、字节数、SHA-256 和许可证见 `dependencies.lock.json`;原压缩包包含完整版权声明。
`python3 Tools/build_ocio.py` 在产品固定缓存的 `cms-runtime` 中编译 Release arm64/macOS 14.6,使用私有命名空间 `DayuOCIO_2_5_2`,不链接 Homebrew 动态库,不在构建时下载源码。需要 Xcode 和 CMake 3.24 以上(本机为 4.4.4)。缓存修改有两处:下载入口改为已校验的本地源码包;禁用 `OCIO_OPTIMIZATION_FLAGS` 环境覆盖,防止宿主环境悄悄改变工程精度。上游转换算法保持原样。构建有进程锁,所有实际静态库均校验后才复用。
固定 Studio 配置 `studio-config-v2.2.0_aces-v1.3_ocio-v2.4`,不使用随升级漂移的 `studio-config-latest`。OCIO 软件版本、配置版本和 ACES 系统版本是三个独立标识。完整输出使用 DisplayViewTransform;显示编码转换不能替代 ACES 输出渲染。
大鱼的 ACEScc 边界使用 [Academy 公开公式](https://docs.acescentral.com/encodings/acescc/) 与 AP1 线性衔接,避免此配置 ACEScc 的 4096 点查表近似。ACEScct 和相机/显示转换仍用固定 OCIO 配置。CPU/GPU选择 `OPTIMIZATION_LOSSLESS`,输出域和透明度政策由独立模块验证。
当前为独立模块准备,尚未接入产品渲染、工程归档或界面。正式33及旧工程不受影响。后续集成时须将这些许可证装入发行 APP,并验证 CPU/Metal、透明度、旧工程旁路以及宿主输入/输出边界。
+96
查看文件
@@ -0,0 +1,96 @@
{
"version": 1,
"namespace": "DayuOCIO_2_5_2",
"builtin_config": "studio-config-v2.2.0_aces-v1.3_ocio-v2.4",
"sources": [
{
"name": "OpenColorIO",
"version": "2.5.2",
"url": "https://codeload.github.com/AcademySoftwareFoundation/OpenColorIO/tar.gz/refs/tags/v2.5.2",
"archive": "OpenColorIO-2.5.2.tar.gz",
"bytes": 14182890,
"sha256": "722601e01b78b7a12da4829cb450674935f404b0e508f3f20046fa77570e3272",
"licenses": [
"licenses/OpenColorIO.txt"
]
},
{
"name": "expat",
"version": "2.7.2",
"url": "https://codeload.github.com/libexpat/libexpat/tar.gz/R_2_7_2",
"archive": "expat-2.7.2.tar.gz",
"bytes": 8439887,
"sha256": "d09e2dd23398805cec1bac2860304714c96dc2fde629a7a1a77d0880ab7cd242",
"licenses": [
"licenses/expat.txt",
"licenses/expat-1.txt"
]
},
{
"name": "yaml-cpp",
"version": "0.8.0",
"url": "https://codeload.github.com/jbeder/yaml-cpp/tar.gz/0.8.0",
"archive": "yaml-cpp-0.8.0.tar.gz",
"bytes": 1017151,
"sha256": "fbe74bbdcee21d656715688706da3c8becfd946d92cd44705cc6098bb23b3a16",
"licenses": [
"licenses/yaml-cpp.txt"
]
},
{
"name": "Imath",
"version": "3.2.1",
"url": "https://codeload.github.com/AcademySoftwareFoundation/Imath/tar.gz/v3.2.1",
"archive": "Imath-3.2.1.tar.gz",
"bytes": 689041,
"sha256": "b2c8a44c3e4695b74e9644c76f5f5480767355c6f98cde58ba0e82b4ad8c63ce",
"licenses": [
"licenses/Imath.txt"
]
},
{
"name": "pystring",
"version": "1.1.4",
"url": "https://codeload.github.com/imageworks/pystring/tar.gz/v1.1.4",
"archive": "pystring-1.1.4.tar.gz",
"bytes": 19184,
"sha256": "49da0fe2a049340d3c45cce530df63a2278af936003642330287b68cefd788fb",
"licenses": [
"licenses/pystring.txt"
]
},
{
"name": "minizip-ng",
"version": "4.0.10",
"url": "https://codeload.github.com/zlib-ng/minizip-ng/tar.gz/4.0.10",
"archive": "minizip-ng-4.0.10.tar.gz",
"bytes": 773269,
"sha256": "c362e35ee973fa7be58cc5e38a4a6c23cc8f7e652555daf4f115a9eb2d3a6be7",
"licenses": [
"licenses/minizip-ng.txt"
]
},
{
"name": "zlib",
"version": "1.3.1",
"url": "https://codeload.github.com/madler/zlib/tar.gz/v1.3.1",
"archive": "zlib-1.3.1.tar.gz",
"bytes": 1572744,
"sha256": "17e88863f3600672ab49182f217281b6fc4d3c762bde361935e436a95214d05c",
"licenses": [
"licenses/zlib.txt"
]
},
{
"name": "sse2neon",
"version": "227cc413fb2d50b2a10073087be96b59d5364aea",
"url": "https://codeload.github.com/DLTcollab/sse2neon/tar.gz/227cc413fb2d50b2a10073087be96b59d5364aea",
"archive": "sse2neon-227cc413fb2d50b2a10073087be96b59d5364aea.tar.gz",
"bytes": 136342,
"sha256": "3427a495743bb6fd1b5f9f806b80f57d67b1ac7ccf39a5f44aedd487fd7e6da1",
"licenses": [
"licenses/sse2neon.txt"
]
}
]
}
@@ -0,0 +1,11 @@
Copyright 2013 Colour Developers
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
+11
查看文件
@@ -0,0 +1,11 @@
Copyright Contributors to the OpenEXR Project. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,26 @@
Copyright Contributors to the OpenColorIO Project.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+21
查看文件
@@ -0,0 +1,21 @@
Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
Copyright (c) 2001-2025 Expat maintainers
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+21
查看文件
@@ -0,0 +1,21 @@
Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
Copyright (c) 2001-2025 Expat maintainers
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,17 @@
Condition of use and distribution are the same as zlib:
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgement in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
+27
查看文件
@@ -0,0 +1,27 @@
Copyright (c) 2008-present Contributors to the Pystring project.
All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+21
查看文件
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2015-2024 SSE2NEON Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+19
查看文件
@@ -0,0 +1,19 @@
Copyright (c) 2008-2015 Jesse Beder.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+22
查看文件
@@ -0,0 +1,22 @@
Copyright notice:
(C) 1995-2022 Jean-loup Gailly and Mark Adler
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Jean-loup Gailly Mark Adler
jloup@gzip.org madler@alumni.caltech.edu
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
+98
查看文件
@@ -0,0 +1,98 @@
#!/usr/bin/env python3
"""Build the pinned color runtime offline; no Homebrew libraries or implicit downloads."""
from pathlib import Path
import fcntl, hashlib, json, os, re, shutil, subprocess, tarfile
ROOT = Path(__file__).resolve().parent.parent
VENDOR = ROOT / 'ThirdParty/ColorManagement'
CACHE = Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/cms-runtime')
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def extract(archive, destination):
with tarfile.open(archive) as tf:
for member in tf.getmembers():
path = (destination / member.name).resolve()
if destination not in path.parents or member.isdev():
raise ValueError('Unsafe source archive member')
if member.issym() or member.islnk():
target = ((path.parent if member.issym() else destination) / member.linkname).resolve()
if target != destination and destination not in target.parents:
raise ValueError('Unsafe source archive link')
# Python 3.9 on the supported build machine has no extraction filter API.
tf.extractall(destination)
def _build():
lock = json.loads((VENDOR / 'dependencies.lock.json').read_text())
archives = {}
for item in lock['sources']:
archive = VENDOR / 'sources' / item['archive']
if archive.stat().st_size != item['bytes'] or digest(archive) != item['sha256']:
raise ValueError('Source checksum mismatch: ' + item['name'])
archives[item['name']] = (archive, item['sha256'])
cmake = shutil.which('cmake') or '/opt/homebrew/bin/cmake'
compiler = subprocess.check_output(['xcrun', 'clang++', '--version'], text=True)
sdk = subprocess.check_output(['xcrun', '--show-sdk-version'], text=True).strip()
identity = hashlib.sha256((json.dumps(lock, sort_keys=True) + Path(__file__).read_text() + compiler + sdk).encode()).hexdigest()
CACHE.mkdir(parents=True, exist_ok=True)
stamp = CACHE / 'build.json'
if stamp.exists():
previous = json.loads(stamp.read_text())
if previous.get('identity') == identity and all(Path(p).is_file() and digest(Path(p)) == sha for p, sha in previous['libraries'].items()):
return previous
source_dir, build_dir, install = CACHE / 'source', CACHE / 'build', CACHE / 'install'
# These are dedicated generated directories; no product APP or user source lives here.
for path in (source_dir, build_dir, install):
if path.exists(): shutil.rmtree(path)
path.mkdir()
extract(archives['OpenColorIO'][0], source_dir)
source = source_dir / 'OpenColorIO-2.5.2'
modules = source / 'share/cmake/modules/install'
# Keep upstream's dependency options and target wiring, replacing only network retrieval.
for name, (archive, sha) in archives.items():
if name == 'OpenColorIO': continue
filename = modules / ('Install' + ('ZLIB' if name == 'zlib' else name) + '.cmake')
text = filename.read_text()
text, count = re.subn(r'(?m)^\s*GIT_REPOSITORY[^\n]*\n\s*GIT_TAG[^\n]*',
'\n URL "' + str(archive) + '"\n URL_HASH SHA256=' + sha + '\n DOWNLOAD_EXTRACT_TIMESTAMP TRUE', text)
if count != 1: raise ValueError('Upstream install recipe changed: ' + name)
text = re.sub(r'(?m)^\s*GIT_(CONFIG|SHALLOW)[^\n]*\n', '', text)
filename.write_text(text)
# This is a private, versioned runtime. A host's OCIO_OPTIMIZATION_FLAGS
# must not silently override the precision explicitly chosen by the product.
processor = source / 'src/OpenColorIO/Processor.cpp'
text = processor.read_text()
text, count = re.subn(r'OptimizationFlags EnvironmentOverride\(OptimizationFlags oFlags\)\n\{.*?\n\}',
'OptimizationFlags EnvironmentOverride(OptimizationFlags oFlags)\n{\n return oFlags; // Dayu: fixed per-processor precision; ignore process environment.\n}', text, flags=re.S)
if count != 1: raise ValueError('Upstream optimization override changed')
processor.write_text(text)
flags = ['-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_OSX_ARCHITECTURES=arm64',
'-DCMAKE_OSX_DEPLOYMENT_TARGET=14.6', '-DBUILD_SHARED_LIBS=OFF',
'-DCMAKE_INSTALL_PREFIX=' + str(install), '-DCMAKE_INSTALL_LIBDIR=lib',
'-DOCIO_NAMESPACE=' + lock['namespace'], '-DOCIO_INSTALL_EXT_PACKAGES=ALL',
'-DOCIO_BUILD_APPS=OFF', '-DOCIO_BUILD_PYTHON=OFF', '-DOCIO_BUILD_TESTS=OFF',
'-DOCIO_BUILD_GPU_TESTS=OFF', '-DOCIO_BUILD_DOCS=OFF', '-DOCIO_BUILD_JAVA=OFF',
'-DOCIO_BUILD_NUKE=OFF', '-DOCIO_BUILD_OPENFX=OFF']
environment = dict(os.environ, CMAKE_BUILD_PARALLEL_LEVEL='6')
for args in ([cmake, '-S', source, '-B', build_dir] + flags,
[cmake, '--build', build_dir, '--parallel', '6'],
[cmake, '--install', build_dir]):
subprocess.run([str(x) for x in args], check=True, env=environment)
libraries = [install / 'lib/libOpenColorIO.a'] + sorted((build_dir / 'ext/dist/lib').glob('*.a'))
if len(libraries) != 7 or not all(p.is_file() for p in libraries):
raise ValueError('Expected OCIO and six pinned static dependencies')
result = dict(identity=identity, compiler=compiler, sdk=sdk, namespace=lock['namespace'],
include=str(install / 'include'), libraries={str(p): digest(p) for p in libraries},
builtin_config=lock['builtin_config'])
stamp.write_text(json.dumps(result, indent=2) + '\n')
return result
def build():
CACHE.mkdir(parents=True, exist_ok=True)
with (CACHE / 'build.lock').open('a') as guard:
fcntl.flock(guard, fcntl.LOCK_EX)
return _build()
if __name__ == '__main__':
print(json.dumps(build(), indent=2))
+37
查看文件
@@ -0,0 +1,37 @@
#!/usr/bin/env python3
"""Build the pinned, ARC-isolated CMS bridge and a deterministic Xcode link file."""
from pathlib import Path
import hashlib, json, os, subprocess, sys, fcntl, shutil
ROOT=Path(__file__).resolve().parent
sys.path.insert(0,str(ROOT/'Tools'))
from build_ocio import build
CACHE=Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/cms-runtime')
def prepare():
runtime=build();work=CACHE/'bridge';work.mkdir(parents=True,exist_ok=True)
with (work/'build.lock').open('a') as guard:
fcntl.flock(guard,fcntl.LOCK_EX)
sources=[p for p in sorted((ROOT/'Sources').glob('*.cpp'))+sorted((ROOT/'Sources').glob('*.mm')) if not p.name.startswith('._')]
inputs=sources+[p for p in sorted((ROOT/'Sources').glob('*.h'))+sorted((ROOT/'Core').glob('*.h*')) if not p.name.startswith('._')]+[Path(__file__)]
key=hashlib.sha256((json.dumps(runtime,sort_keys=True)+''.join(hashlib.sha256(p.read_bytes()).hexdigest() for p in inputs)).encode()).hexdigest()
stamp=work/'build.json';library=work/'libDayuColorManagement.a'
if not stamp.exists() or json.loads(stamp.read_text()).get('key')!=key or not library.exists():
objects=[]
for src in sources:
obj=work/(src.stem+'.o');args=['xcrun','clang++','-std=c++20','-O2','-arch','arm64','-mmacosx-version-min=14.6','-I',runtime['include'],'-c',str(src),'-o',str(obj)]
if src.suffix=='.mm':args.insert(2,'-fobjc-arc')
subprocess.run(args,check=True);objects.append(str(obj))
subprocess.run(['xcrun','libtool','-static','-o',str(library),*objects],check=True)
stamp.write_text(json.dumps(dict(key=key,librarySHA256=hashlib.sha256(library.read_bytes()).hexdigest()),indent=2)+'\n')
frameworks=['Metal','CoreGraphics','CoreImage','ColorSync','IOKit']
args=['-Wl,-ObjC',str(library),*runtime['libraries']]
for name in frameworks:args+=['-framework',name]
response=CACHE/'bridge-link.rsp';response.write_text('\n'.join('"'+s.replace('"','\\"')+'"' for s in args)+'\n')
return str(response)
if __name__=='__main__':
print(prepare())
if len(sys.argv)>1:
destination=Path(sys.argv[1])/'ColorManagement';destination.mkdir(parents=True,exist_ok=True)
source=ROOT/'ThirdParty/ColorManagement'
shutil.copytree(source/'licenses',destination/'licenses',dirs_exist_ok=True,ignore=shutil.ignore_patterns('._*'))
for name in ['dependencies.lock.json','README.md']:shutil.copy2(source/name,destination/name)
shutil.copy2(ROOT/'PROVENANCE.json',destination/'PROVENANCE.json')
+11
查看文件
@@ -0,0 +1,11 @@
# 大鱼调色 1.7.2(47)
修正风格LUT缩略图浏览库的远程窗口尺寸处理:按FCP提供的实际内容区域布局,避免用本地保存的位置、尺寸和min/max覆盖宿主窗口;容器变更时同步填充深色内容区。缩略图大小、列表/网格、侧栏、分类和最近使用继续保留。
本地脱离式窗口使用系统实际标题栏尺寸,并把恢复位置约束到当前显示器。保留1.7.1的Cube文字行兼容。
要求Apple Silicon、macOS14.6或更新,唯一位置`/Library/Plug-Ins/FxPlug/大鱼调色.app`。本机宿主为FCP12.4;反馈来自FCP12.3/系统27.01,目标机显示器配置未知,目标版本仍需更新后复测。测试和交付结果见本轮verification记录。
APP实际编译 `f9dea76a453319abceaff2d66ba401d30ae10468`;公证 `5606289a-3d55-4d57-99ef-95ad7812734d` Accepted。PKG公证 `5167b3e0-89a0-457e-a832-753bd385ca93` Accepted,签名、票据、Gatekeeper及20项展开验包通过。408项正式原生检查与本机宿主验收通过;本轮未重复运行PKG安装脚本。
包名`大鱼调色-1.7.2.pkg`,40904714字节,SHA-256 `dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6`。
+11
查看文件
@@ -0,0 +1,11 @@
# 大鱼调色 1.7.3(49)
修正部分显示器选择“更多空间”后,LUT缩略图浏览库出现大片灰色、内容偏移和裁切的问题。浏览库首次打开即可对齐完整内容区,无需点击窗口绿色按钮恢复;宿主窗口大小、网格/列表、侧栏与缩略图设置继续保留。
本机FCP12.4/macOS27.0.1在相同显示设置下复现旧问题并验证修正,首次打开、热/冷重开及绿色按钮缩放通过。目标MacBook/FCP12.3仍需使用者更新复测。保留Cube文字行兼容,不改调色数学、模板与Metal库。
要求Apple Silicon、macOS14.6或更新,唯一安装位置`/Library/Plug-Ins/FxPlug/大鱼调色.app`。
实际编译源码`2688b22f99b5118153b94a43f6c184a204d4ce7e`。APP公证`06e09906-676f-414b-adcc-acf2bec6864a`、PKG公证`4d2d6a3c-4dba-4711-b2d0-a59707ff72ce`均Accepted;签名、票据、Gatekeeper及20项展开验包通过。411项正式原生、27项几何及23项浏览库检查通过。本轮APP独立正式安装并验收,未再次运行PKG安装脚本。
包名`大鱼调色-1.7.3.pkg`,40908193字节,SHA-256 `f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324`。
+11
查看文件
@@ -0,0 +1,11 @@
# 大鱼调色 1.7.4(52)
每个模块和新增图层标题增加减号,可删除不需要的层。删除同时还原参数、清除已有关键帧及所属LUT、蒙版等设置,避免界面隐藏后继续影响画面;其它模块和后续层保留。一组宿主撤销即可恢复。顶部“添加模块”从初始参数创建新层,不继承旧值;原有“再加一层”保留,删除状态随工程和完整预设保存。
436项正式原生检查通过,覆盖14类模块、资源归属、关键帧清理、独立层和实际渲染/Cube导出。本机FCP12.4/macOS27.0.1验证删除、一次撤销、重做、重新添加、独立层删除和正常退出冷重开;用户手动确认删除已验证。中间构建51自动化时曾出现远程检查器空白,52延后界面无障碍通知后同一路径复验通过;未将该现象等同于已证明所有宿主问题。保留Cube文字行兼容和“更多空间”窗口修正。
要求Apple Silicon、macOS14.6或更新,唯一安装位置`/Library/Plug-Ins/FxPlug/大鱼调色.app`。
实际编译源码`06a00371dfba6d9857dc75f48121232fb0ea01b8`。APP公证`673758ed-55f7-418d-8094-d05cf4932111`、PKG公证`102e93fc-2214-4dbf-8d67-68412464a5c2`均Accepted;签名、票据、Gatekeeper及20项展开验包通过。本轮APP独立正式安装并验收,未再次运行PKG安装脚本。
包名`大鱼调色-1.7.4.pkg`,40918925字节,SHA-256`bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5`。
+18
查看文件
@@ -0,0 +1,18 @@
大鱼调色 1.8.0(55)公测版,适用于 Apple Silicon / macOS 14.6 或更高版本。
新增独立色彩管理方式:旧版兼容、跟随 FCP、相机编码 → ACES、输入 LUT → ACES。新版采用固定 OpenColorIO 2.5.2 / ACES 1.3 配置,一级层统一在 ACEScct/AP1 中处理,印片位于输出之前;明确区分实际宿主颜色配置与手动声明的相机编码。
新增一级层默认关闭额外映射,添加中性层保持画面。旧工程和 v1–v6 预设继续原有渲染,升级不会自动替换其管理方式;新版完整预设为 v7。输入 LUT 使用浮点四面体插值,并显示已选文件名。新版静态 Cube 为 65³,输出约定为 sRGB/Rec.709;HDR、空间/时间处理请保存完整预设。
PQ/HLG 输出或跟随 Rec.2020 宿主暂仅开放一级调色与印片;活跃 SDR 修饰工具会明确报错。旧工具尚未全部改写为 HDR/场景算法。
安装前保存工程并正常退出 Final Cut Pro 与 Motion。安装到唯一位置 /Library/Plug-Ins/FxPlug/大鱼调色.app,模板安装到当前用户“影片/Motion Templates/Effects/大鱼调色”。重新打开宿主后,在调色参数顶部选择管理方式。
验证:530 项正式原生检查、FCP 12.4 管理切换/撤销、输入 LUT 取消及错误恢复、两份预设冷重开逐字节比对、65³ Cube、1080p25 ProRes 100 帧导出通过。FCPXML 1.12 回导的三个项目与输入结构比较一致。
APP 与 PKG 均经 Developer ID 签名、Apple 公证 Accepted、票据粘附与验证。PKG 20 项展开验包通过;本轮未重复运行系统安装脚本,APP 已在正式路径单独安装并完成宿主验收。
安装包:大鱼调色-1.8.0.pkg
字节数:42851034
SHA-256:fd59203d387122e768090a97851daf3bd7c07193a8073b9497a10c05d5fd6c42
实际编译源码:11a88518280f0665f3cd0f388d1d66e5446ece14
+16
查看文件
@@ -0,0 +1,16 @@
大鱼调色 1.8.1(57)公测
修正 1.8.0 固定 ACEScct 接管一级 CST 的设计,恢复输入、工作曲线/色域与输出设置。主输出移至所有一级层及印片之后;新增一级层继承工作空间,默认关闭额外映射。局部 CST、线性混合、负值和超白保留经过回归;线性工作曲线增加明确的 DI 适配。
在参数顶部明确选择“一级 CST · 延后输出(推荐)”启用。模板与注册缺省、已保存的 nil/v2 状态保持原流程,避免 FCP 把新缺省应用到旧实例。65³ Cube 按一级声明的输入、输出编码导出,所选 Gamma/Log 不再统一写成 sRGB。
旧工具仍作为输出后的 SDR 修饰;Log/线性码值输出不运行活跃的 SDR 修饰。上游 FCP 已还原或裁切的数据不能由插件恢复,请核对相机 LUT 与颜色符合。受控 Log 码值载体不等于所有相机文件的上游路由认证。
581 项原生检查通过,包括独立曝光/高光参考、负值/超白、局部 CST、线性混合、印片域和 Cube 输出曲线。
正式签名、公证、宿主验收与包校验以 verification/Delivery.json、HostPrimaryCST1.8.1.json、Package.json 和 Release.json 为准。安装包已通过20项展开验包;本轮未重新执行系统安装脚本,APP已在正式位置独立安装和宿主验收。
安装包:大鱼调色-1.8.1.pkg
字节数:42999475
SHA-256:f94aa3a21ffbe52bc68b482289b71112d9895161e18f983af918d11547d254cd
实际编译源码:059245858035e74f78bd669ef25913408d07d235
+70
查看文件
@@ -0,0 +1,70 @@
#!/usr/bin/env python3
"""Preserve Dayu Color's beta flag while reusing PKG Forge's authenticated transport.
Draft web downloads may require a normal browser session. A supplied download is
only accepted when it is a distinct file with the exact verified size and hash.
No release, attachment, tag or repository visibility is overwritten.
"""
import argparse, hashlib, json, runpy, subprocess
from pathlib import Path
from urllib.parse import quote
ROOT=Path(__file__).resolve().parent.parent
REPOSITORY='dayu/dayu-color'
def git(*args):return subprocess.check_output(['git',*args],cwd=ROOT,text=True,stderr=subprocess.DEVNULL).strip()
def digest(path):
h=hashlib.sha256()
with path.open('rb') as f:
for block in iter(lambda:f.read(1024*1024),b''):h.update(block)
return h.hexdigest()
def main():
parser=argparse.ArgumentParser(description=__doc__)
parser.add_argument('--tag',required=True);parser.add_argument('--notes',required=True,type=Path)
parser.add_argument('--verified-download',type=Path)
parser.add_argument('--pkg-forge-repo',type=Path,default=Path.home()/'Documents/dayu-git/repositories/pkg-forge')
args=parser.parse_args();helper=runpy.run_path(str(args.pkg_forge_repo/'skills/pkg-forge/scripts/publish_release.py'),run_name='dayu_beta_transport')
Failure=helper['Failure']
try:
report=json.loads((ROOT/'verification/Package.json').read_text());expected=json.loads(git('show',args.tag+':verification/Package.json'))
assert report['pass'] and not report['testUnsigned'] and report['notarization']['status']=='Accepted'
for key in ['sha256','bytes','appCompiledSource','appBuild']:assert report[key]==expected[key]
package=Path(report['package']);assert package.stat().st_size==report['bytes'] and digest(package)==report['sha256']
subprocess.run(['pkgutil','--check-signature',str(package)],check=True,capture_output=True)
subprocess.run(['xcrun','stapler','validate',str(package)],check=True,capture_output=True)
subprocess.run(['spctl','--assess','--type','install',str(package)],check=True,capture_output=True)
notes=args.notes.read_text().strip();title='大鱼调色 '+report['resources'][0]['version']+'('+report['appBuild']+')'
provider=runpy.run_path(str(Path.home()/'.local/bin/dayu-git'),run_name='dayu_beta_credentials');token,source=provider['credential']('dayu');api=helper['API'](token)
with helper['repository_lock'](REPOSITORY):
commit=git('rev-parse',args.tag+'^{commit}');assert git('ls-remote','origin','refs/tags/'+args.tag).split()[0]==commit
assert api.request('GET','/user')['login']=='dayu'
prefix='/repos/'+REPOSITORY;repo=api.request('GET',prefix);assert repo['full_name']==REPOSITORY and repo['permissions']['push']
try:release=api.request('GET',prefix+'/releases/tags/'+quote(args.tag,safe=''))
except Failure as e:
if e.status!=404:raise
release=api.request('POST',prefix+'/releases',payload=dict(tag_name=args.tag,target_commitish=commit,name=title,body=notes,draft=True,prerelease=True))
assert release['tag_name']==args.tag and release['name']==title and release['body'].strip()==notes and release['prerelease']
path=prefix+'/releases/'+str(release['id']);assets=api.request('GET',path+'/assets');matches=[a for a in assets if a['name']==package.name];assert len(matches)<=1
asset=matches[0] if matches else api.upload(path+'/assets',package);assert asset['name']==package.name and asset['size']==report['bytes']
proof=None
try:sha,size=api.downloaded_digest(asset['browser_download_url'],report['bytes'])
except Failure as e:
if e.status!=404 or not release['draft']:raise
draft=dict(status='draft-download-required',releaseID=release['id'],releaseURL=release['html_url'],tag=args.tag,commit=commit,assetID=asset['id'],downloadURL=asset['browser_download_url'],bytes=report['bytes'],sha256=report['sha256'])
(ROOT/'verification/CMSReleaseDraft.json').write_text(json.dumps(draft,ensure_ascii=False,indent=2)+'\n')
if not args.verified_download:
print(json.dumps(draft,ensure_ascii=False));return 2
download=args.verified_download.expanduser().resolve();assert download!=package.resolve() and download.is_file()
sha,size=digest(download),download.stat().st_size;proof=dict(path=str(download),sha256=sha,bytes=size,sourceURL=asset['browser_download_url'])
assert sha==report['sha256'] and size==report['bytes']
if release['draft']:api.request('PATCH',path,payload={'draft':False})
final=api.request('GET',path);confirmed=api.request('GET',path+'/assets')
assert not final['draft'] and final['prerelease'] and final['tag_name']==args.tag and final['name']==title and final['body'].strip()==notes
assert any(a['id']==asset['id'] and a['size']==size and a['name']==package.name for a in confirmed)
sha,size=api.downloaded_digest(asset['browser_download_url'],report['bytes']);assert sha==report['sha256'] and size==report['bytes']
assert git('ls-remote','origin','refs/tags/'+args.tag).split()[0]==commit
result=dict(passResult=True,repository=REPOSITORY,repositoryID=repo['id'],private=repo['private'],tag=args.tag,releaseCommit=commit,releaseID=final['id'],releaseURL=final['html_url'],prerelease=True,assetID=asset['id'],assetName=asset['name'],downloadURL=asset['browser_download_url'],bytes=size,sha256=sha,existingAssetReused=bool(matches),verification='Full draft download checked before publication; published attachment downloaded and checked again; release, tag and asset read-back verified.',credentialSource=source)
if proof:result['draftBrowserDownload']=proof
(ROOT/'verification/Release.json').write_text(json.dumps(result,ensure_ascii=False,indent=2)+'\n');print(json.dumps(result,ensure_ascii=False));return 0
except Failure as e:
print(json.dumps({'error':str(e)},ensure_ascii=False));return 1
except (AssertionError,OSError,subprocess.CalledProcessError):
print(json.dumps({'error':'Release validation failed. Existing files and remote assets retained; inspect state before retrying.'}));return 1
if __name__=='__main__':raise SystemExit(main())
+42 -2
查看文件
@@ -1,9 +1,49 @@
# 大鱼调色
原生 FxPlug 4 调色器,当前正式安装的公测版本 **1.7.1(46)**。唯一安装位置为 `/Library/Plug-Ins/FxPlug/大鱼调色.app`;Final Cut Pro 中从“效果 → 大鱼调色”添加。
原生 FxPlug 4 调色器,当前公测版本 **1.8.1(57)**。唯一安装位置为 `/Library/Plug-Ins/FxPlug/大鱼调色.app`;Final Cut Pro 中从“效果 → 大鱼调色”添加。
1.8.1 修正 1.8.0 固定 ACEScct 接管并隐藏一级 CST 的设计问题,恢复原有输入、工作曲线/色域与输出选择,并将主输出放到一级层和印片之后。在参数顶部明确选择“一级 CST · 延后输出(推荐)”启用修正流程。模板与插件注册缺省保持原有流程,保护已有未声明 CMS 的工程。1.8.0 ACES 流程作为兼容方式保留,不自动修改已保存画面。
[1.8.1 安装包 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.8.1-cst-correction-20261104);[修正约定与验证边界](research/cms-correction-20261104/design.md)。1.8.0 的研究来源与历史实施见[只读调查](research/cms-audit-20261103/report.md)。
## 1.8.1 一级 CST · 延后输出
推荐方式的实际顺序:**声明的素材编码 → 一级输入 CST(不做显示映射)→ 所选工作域一级调色 → 独立一级层 → 印片 → 一级输出 CST/可选映射 → SDR 修饰 → 宿主显示**。主输入不先套 Rec.709 显示还原,工作空间由原一级的工作曲线与工作色域决定,可使用 DWG/DaVinci Intermediate、ACEScct/AP1 或其他已列出的独立组合。
新增独立一级默认继承主工作空间,输入/输出相同且映射关闭。切换主工作空间时跟随更新;手动修改某段曲线/色域后,该段保留独立选择。每层明确设置的 CST 实际执行,完成后按声明的输出空间返回主工作域。混合、蒙版在 AP1 线性中进行。主一级眼睛旁路整个主 CST 模块;其他工具保持既有宿主直通行为。
印片只在自身所需的 ACEScct/AP1 域处理,随后返回所选工作空间。主输出始终在这些步骤之后。其余旧工具仍是输出后的 SDR 修饰;Log/线性码值输出会拒绝活跃的 SDR 修饰。此修正没有把所有旧工具改写为场景域/HDR 算法。
新流程的 CST/BASIS 入口、出口和图像传输为 float32,原算术与旧入口保留;线性工作曲线明确经过 DI 适配。纯 Log/线性直通不产生重复编码量化。新流程 Cube 为 65³,输入、输出均依启用的一级 CST 阶段声明,保留所选输出 Gamma/Log 编码;宿主显示另按实际目标配置解释。
手动 CST 接收 FCP 已交给插件的像素,沿用明确的码值载体。使用相机 Log 时须核对上游相机 LUT、颜色符合和任何其它还原;本插件不能恢复上游已经压缩或裁切的信息。受控宿主样本使用带 sRGB 标签的 16-bit PNG Log 码值载体,不代表验证所有相机文件的上游路由。
完整预设仍为 v7,新增独立 CMS 状态 v3;旧 nil/v2 状态按原流程渲染,不静默升级。 581 项正式原生检查、FCP12.4 两代预设逐字节保存重开、独立层跟随与撤销重做、65³ Cube、100帧 ProRes 和 XML 回读通过,见[宿主验收](verification/HostPrimaryCST1.8.1.json)。
## 1.8.0 兼容色彩管理
在调色参数顶部选择管理方式;色彩管理独立于可删除的调色模块。旧工程与 v1–v6 预设缺省仍走原有渲染,不自动改变原画面。新增一级层默认关闭额外色调映射,旧层明确保存的开关保留。
- **跟随 FCP**:按实际源/目标颜色配置转换,不重复还原相机,不加显示映射。内部一级工作空间固定为 ACEScct/AP1。
- **相机编码 → ACES**:明确指定输入曲线/原色,再经过一次所选输出变换。此方式保留旧版 sRGB 码值载体约定,使用前须关闭上游相机还原和重复的颜色符合。
- **输入 LUT → ACES**:明确选择输入 LUT 及其输出编码,使用浮点四面体插值后进入同一工作链,避免低阶 LUT 的硬件插值精度误差。
引擎固定 OpenColorIO 2.5.2 / ACES 1.3 studio-config v2.2.0,源码、依赖源包、摘要与许可证保存在 ColorManagement/,不依赖兄弟 APP 的安装。宿主颜色配置用实际 CGColorSpace 描述及指纹分别缓存;只有已知 RGB Linear / Rec.709 或 Rec.2020 才允许缺失配置的回退。
1.8.0 兼容方式的处理顺序固定:所有一级层 → 所有印片(ACEScct)→ 一次输出变换 → SDR 修饰工具 → 实际宿主目标。一级混合、蒙版及印片强度在 AP1 线性域混合。核心图像传输、OCIO 与配置转换采用 float32;沿用的 BASIS 入口及活跃旧工具仍有 half 精度。SDR 修饰域明确为 Rec.709 线性/sRGB,物理色域转换后接入;新版减色用有界效果差量延伸保留超范围残差,旧版限幅保持。
PQ/HLG 输出或跟随 Rec.2020 宿主暂只接受一级与印片;存在活跃 SDR 修饰时返回明确错误,不静默进入有界 LUT。此版本没有把全部旧工具改写成场景/HDR 算法。
完整预设为 v7,包含独立 CMS 状态,兼容 v1–v6。新版 Cube 为 65³,输入为声明的相机/LUT 码值,跟随宿主方式导出时输入约定为 sRGB;输出固定为 sRGB/Rec.709 编码。它不保存工程的宿主上下文。HDR、蒙版、空间/时间处理和画面分析应保存完整预设。旧兼容方式维持原有 33³ 导出。
交接与恢复入口:[大鱼调色FxPlug4交接.md](大鱼调色FxPlug4交接.md)。
1.7.4 在每个模块和新增图层标题增加减号,删除时还原参数、清除关键帧及所属LUT/蒙版,再从界面隐藏。顶部“添加模块”创建初始参数的新层;一次撤销恢复原设置。436项正式原生检查和FCP删除、撤销、重做、重新添加、独立层删除、冷重开通过。见[删除实现](research/ToolDeletion1.7.4.md)及[宿主记录](verification/HostToolDeletion1.7.4.json)。
1.7.3 修正“更多空间”下远程内容容器原点偏移造成的大片灰色和裁切。首次打开自动对齐内容区,无需点击绿色按钮;不调整宿主窗口尺寸。411项正式原生、27项几何与23项浏览库检查通过,本机FCP12.4同一显示设置的首次、热/冷重开与缩放正常。见[实际原因与修正](research/BrowserMoreSpace1.7.3.md)、[宿主验证](verification/HostBrowserMoreSpace1.7.3.json)和[资源文章](https://dayu.media/15792/)。目标MacBook/FCP12.3仍需使用者更新复测。
1.7.2 修正LUT缩略图浏览库远程窗口的尺寸归属和容器同步,不再把本地位置记录强加给FCP;本地脱离式窗口改用系统实际标题栏换算。408项正式原生、21项几何及23项浏览库检查通过,FCP12.4/macOS27.0.1观察到完整深色窗口、网格/列表及冷重开正常;报告中的FCP12.3目标机尚未直接复测。见[修复依据](research/BrowserRemoteGeometry1.7.2.md)、[宿主记录](verification/HostBrowserGeometry1.7.2.json)、[1.7.2 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.2-browser-geometry-20261102)及[资源文章](https://dayu.media/15792/)。
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。暂未加入登录、授权及业务加密模块。
@@ -24,7 +64,7 @@
349项原生检查、四种尺寸184项原版组件对照通过。FCP12.4验证旧234参数、LUT路径、蜘蛛盘和全部287键蒙版载荷不变;新增层默认值、蒙版数量、折叠、删除撤销/重做、冷重开通过。1920×1080正式导出验证“两帧保持”,组合预设8987字节及颗粒预设8420字节重开前后逐字节一致。见[研究与边界](research/ColorFinaleFilmMixer.md)、[组件对照](verification/FilmMixerReference.json)、[宿主验收](verification/HostFilmMixer1.5.0.json)。
FCP新实例、全部还原及新加一级层的自动色调映射默认开启;旧独立一级层的缺省关闭保持;FCP沿用模板默认值的旧主效果会跟随为开启,新版中手动关闭后可独立保存并在冷重开后保留。在主标题区增加可点击的“更多插件访问 https://dayu.media”。
历史 1.6–1.7 的 FCP 新实例、全部还原及新加一级层的自动色调映射默认开启;旧独立一级层的缺省关闭保持;FCP沿用模板默认值的旧主效果会跟随为开启,新版中手动关闭后可独立保存并在冷重开后保留。在主标题区增加可点击的“更多插件访问 https://dayu.media”。
## 1.6.0 八种印片与简洁模板
+72 -1
查看文件
@@ -1,8 +1,75 @@
# 1.8.1(57)CST 修正交付
实际编译源码:`059245858035e74f78bd669ef25913408d07d235`。仓库:`https://dayu.media/git/dayu/dayu-color.git`;版本标签为 `v1.8.1-cst-correction-20261104`。标签包含最终 `verification/Package.json`;Release 发布记录在完成上传/下载校验后提交到后续 main。标签快照中的旧 `Release.json` 属于上一版历史,不能当作本版的安装包记录;本版以版本页面及后续 main 的发布校验为准。
正式位置 `/Library/Plug-Ins/FxPlug/大鱼调色.app`,Bundle ID `com.dayu.color`。启用修正流程需在顶部选择“一级 CST · 延后输出(推荐)”;旧 nil/v2 工程与模板缺省保留。候选56自动模板切换在实际宿主验收中发现会影响旧 nil 工程,已回滚,未发布安装包。
581 项正式原生检查、FCP12.4 两代预设逐字节保存重开、输入/工作/输出及独立层跟随/撤销重做、65³ Cube、100帧 ProRes 与两个项目的 XML1.12 回读通过。独立远程克隆重建源码版本并通过581项检查;8个依赖源包按锁定摘要验证,复用已验证的静态依赖缓存,不宣称全部依赖冷构建。
恢复源码与构建步骤沿用下文;需要恢复本版时检出上述编译提交或最终版本标签。重新验证证书、FxPlug SDK和 Xcode,正式交付仍需 Release 签名、公证、票据、唯一位置安装和宿主验收。受控 Log 载体可用正式服务的 `--self-test` 生成的 `primary-host-chart.json`,再运行 `tools/create_primary_host_fixture.py --diagnostic <路径>` 重建,不需要用户媒体或预设。
详细范围:[数值验证](verification/PrimaryCSTNumerical1.8.1.json)、[宿主验收](verification/HostPrimaryCST1.8.1.json)、[恢复构建](verification/PrimaryCSTRecovery1.8.1.json)。Git 保存不包含签名私钥;服务端备份仍遵循仓库指南,不假定已有异地备份。
---
# 大鱼调色恢复说明
## 当前1.8.0(55):版本化 ACES 色彩管理
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.8.0-cms-20261103`。实际编译源码 `11a88518280f0665f3cd0f388d1d66e5446ece14`,可先以该完整 SHA 恢复程序,标签与安装包的最终远程核验见 `verification/Release.json`。无 LFS 或子模块。固定 OCIO 2.5.2 / ACES 1.3 配置与全部必要依赖源码包、SHA-256 和许可证已放入 `ColorManagement/`,不依赖兄弟应用或其工作副本。
使用 Xcode 27.1、FxPlug SDK 4.3.5、Metal Toolchain、CMake 3.24 以上(当前 4.4.4)。`python3 ColorManagement/build_runtime.py` 在固定 `com.dayu.color/cms-runtime` 缓存中校验源包、离线编译私有静态运行时及 ARC 桥;Xcode 的 Release 阶段自动调用。`python3 tools/build_template.py --refresh-model --overwrite` 和 `python3 tools/verify_template.py` 校验原生参数与模板;正式流程为 `python3 tools/deliver.py`。证书、私钥和钥匙串公证凭据须独立恢复,不在 Git。
旧工程与 v1–v6 预设没有 CMS 状态时继续旧渲染;新完整预设 v7。新版统一 ACEScct/AP1 的一级与印片顺序,实际宿主源/目标颜色配置分别解释。跟随宿主不添加显示映射;相机/LUT 模式只使用一次所选输出变换。PQ/HLG 及跟随 Rec.2020 暂拒绝活跃的未验证 SDR 修饰。低阶输入 LUT 用浮点四面体插值;NSError 跨渲染池保活,选择输入 LUT 前置,取消不改变模式。
唯一安装 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。APP 公证 `ab2b40ea-886f-49fa-8735-aa392e65f036`、PKG 公证 `2d32b77f-b825-4119-afcf-372588ad03c1` 均 Accepted。530 项正式安装版原生检查、FCP 12.4 下三种新路径、撤销、缺失资源报错/恢复、两份预设冷重开逐字节一致、最终 65³ Cube 与 1080p25 ProRes 100 帧导出通过;FCPXML 三项目回导比较一致。见 `HostColorManagement1.8.0.json`、`CMSContract1.8.0.json` 及 `InstalledSelfTest.json`。HDR 显示器/交付链和其他 FCP 版本未实机覆盖。
包 `../发行包/大鱼调色-1.8.0.pkg`,42851034 字节,SHA-256 `fd59203d387122e768090a97851daf3bd7c07193a8073b9497a10c05d5fd6c42`。签名、票据、Gatekeeper 和 20 项展开验包通过。本轮仅生成并验包,未再次运行 PKG 安装脚本;正式 APP 已有独立安装和宿主验证。源码、版本标签和 Release 的恢复证明另见 `CMSRecovery1.8.0.json`。本任务不改网站文章或自动更新后端。
正式 [1.8.0 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.8.0-cms-20261103),Release381 / 附件25,保留公测标记。发行标签完整 SHA `a5a2bddeb361aac66899c5939671122075a6cffa`;草稿浏览器下载和发布后的完整下载均验证 42851034 字节、SHA-256 `fd59203d387122e768090a97851daf3bd7c07193a8073b9497a10c05d5fd6c42`。发布后的 `Release.json` 与恢复报告保存在 main 的后续核验提交;发行标签内 `Package.json` 为本版已验包记录。
远端标签独立恢复440个文件,full/strict fsck、八个依赖源包摘要、程序源码与编译节点一致、新检出的 Release 构建及530项无界面集成检查通过。依赖静态库缓存经过内容校验复用,未声称重新冷编译整套依赖。恢复 APP 未以 GUI 或宿主运行。恢复 clone、构建 APP/独立服务、提交 ZIP、旧 APP 备份及浏览器下载副本已核验清理;仅保留正式安装、当前发行包和私人验收资料。签名、票据与正式 PluginKit 唯一路径再次核验通过。
## 历史1.7.4(52):删除模块和图层
远程`https://dayu.media/git/dayu/dayu-color.git`,main;实际编译源码`06a00371dfba6d9857dc75f48121232fb0ea01b8`。通过`git switch --detach 06a00371dfba6d9857dc75f48121232fb0ea01b8`恢复,Xcode27.1 / FxPlugSDK4.3.5;无LFS或子模块。新机器签名证书、私钥、公证凭据仍需独立恢复。构建与交付使用`tools/deliver.py`,436项正式安装版原生检查通过。模块删除实现、真实宿主边界见`research/ToolDeletion1.7.4.md`、`verification/HostToolDeletion1.7.4.json`。
唯一正式位置`/Library/Plug-Ins/FxPlug/大鱼调色.app`,APP公证`673758ed-55f7-418d-8094-d05cf4932111`、PKG公证`102e93fc-2214-4dbf-8d67-68412464a5c2`均Accepted。签名、票据、Gatekeeper及20项展开验包通过。包`../发行包/大鱼调色-1.7.4.pkg`,40918925字节,SHA-256`bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5`。APP独立正式安装后在FCP12.4/macOS27.0.1验证,PKG未重复运行系统安装脚本;目标FCP12.3未实机覆盖。正式路径之外本轮生成APP、临时提交ZIP和旧APP备份已核验清理;私人验收工程与历史发行包保留。
当前交接:[大鱼调色FxPlug4交接.md](大鱼调色FxPlug4交接.md)。
## 当前1.7.1(46):Cube文字行容错
正式[1.7.4 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.4-tool-deletion-20261103) / Release380 / 附件24已发布并保留公测标记。标签`v1.7.4-tool-deletion-20261103`指向`468d530bf002a34e407bd5e182cb6b90d6df1eb4`;草稿浏览器下载及发布后完整下载均校验40918925字节、SHA-256`bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5`一致。标签从远端独立恢复并逐文件比对,程序源码与实际编译节点相同;见`ToolDeletionRecovery1.7.4.json`、`ToolDeletionReleaseDraft1.7.4.json`及`Release.json`。临时恢复clone与浏览器下载副本已清理。
文章 https://dayu.media/15792/ 已更新1.7.4(52),主下载媒体15805完整下载与同一正式包一致。售价50元、会员免费、封面、分类、作者和原FCPX隐藏设置保持,正文、SEO、安装说明及普通/新请求页面通过。见`publication/ArticleUpdate1.7.4.json`和`ArticleUpdateVerification1.7.4.json`。本轮没有修改网站自动更新清单。
## 历史1.7.3(49):更多空间的内容原点
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.7.3-browser-origin-20261102`,实际编译源码 `2688b22f99b5118153b94a43f6c184a204d4ce7e`。版本标签完整SHA与Release/附件下载校验以 `verification/Release.json` 为准;可用 `git switch --detach v1.7.3-browser-origin-20261102` 或完整编译SHA恢复。Xcode27.1 / FxPlugSDK4.3.5,无LFS、子模块或新增必要外部资源;签名私钥与公证凭据需独立恢复。
唯一APP `/Library/Plug-Ins/FxPlug/大鱼调色.app`,APP公证 `06e09906-676f-414b-adcc-acf2bec6864a`、PKG公证 `4d2d6a3c-4dba-4711-b2d0-a59707ff72ce` 均Accepted,签名、票据、Gatekeeper与20项展开验包通过。411项正式原生、27项几何、23项浏览库检查及本机FCP12.4/macOS27.0.1“更多空间”的首次/热重开/冷重开/绿色缩放通过。目标使用者MacBook/FCP12.3未直接覆盖,需其复测。
真实运行记录显示parent contentView原点(789,521)残留,浏览器在parent内部正确但映射到窗口后整体偏移;以公开AppKit坐标转换只修正内容原点,不移动或缩放宿主窗口。见 `research/BrowserMoreSpace1.7.3.md`、`verification/MoreSpaceBridgeRuntime1.7.3.json` 和 `HostBrowserMoreSpace1.7.3.json`。
正式包 `../发行包/大鱼调色-1.7.3.pkg`,40908193字节,SHA-256 `f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324`。APP直接正式替换并启动验证,PKG只生成及展开验包,未再次运行系统安装脚本。诊断48版未制作或发布安装包,其旧APP备份已在49版验收后清理;本机临时开启的几何采样偏好已删除。模板、Metal和用户LUT保留。源码独立恢复368个文件并重建27项几何检查通过,最终标签核验与清理记录见 `verification/MoreSpaceRecovery1.7.3.json`。网站自动更新清单仍为原1.7.0,本轮不修改后端。
1.7.3发行标签完整SHA `f2038f12ebf24ec5c298ba67212e7f7f29afa60c`,Release379 / 附件23 已发布并保留公测标记;草稿浏览器下载与发布后完整下载均校验 40908193 字节及SHA-256一致。版本页 https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.3-browser-origin-20261102 。最终标签独立恢复373个文件、full/strict fsck及程序源码与编译节点一致通过;临时clone、验证程序和浏览器下载副本已清理,记录见 `MoreSpaceRecovery1.7.3.json` / `MoreSpaceCleanup1.7.3.json`。
文章 https://dayu.media/15792/ 已更新1.7.3(49),主下载媒体15803完整下载与正式PKG一致;售价50元、会员免费、封面、分类和FCPX同步设置保留,正文/SEO/安装说明及匿名页面通过。见 `publication/ArticleUpdate1.7.3.json` / `ArticleUpdateVerification1.7.3.json`。
## 历史1.7.2(47):远程LUT窗口
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.7.2-browser-geometry-20261102`,实际编译源码 `f9dea76a453319abceaff2d66ba401d30ae10468`,完整标签SHA见 `verification/Release.json`。独立克隆后用 `git switch --detach v1.7.2-browser-geometry-20261102` 或上述完整编译SHA恢复,Xcode27.1 / FxPlugSDK4.3.5;无LFS、子模块和新增外部资源,证书/私钥/公证凭据仍需独立恢复。
唯一APP `/Library/Plug-Ins/FxPlug/大鱼调色.app`。APP公证 `5606289a-3d55-4d57-99ef-95ad7812734d`、PKG公证 `5167b3e0-89a0-457e-a832-753bd385ca93` 均Accepted;签名、票据、Gatekeeper与20项展开验包通过。408项正式原生、21项几何及23项浏览库回归通过。FCP12.4/macOS27.0.1检查打开/缩放/深色填充、列表网格、热重开及正常退出冷重开;目标FCP12.3未实机覆盖。Metal和模板与1.7.1逐字节一致,未修改LUT颜色数学。
包 `../发行包/大鱼调色-1.7.2.pkg`,40904714字节,SHA-256 `dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6`。本轮APP直接正式替换并启动验证,PKG仅生成及展开验包,未重复运行系统安装脚本。源码/宿主/包记录见 `verification/BrowserGeometryRecovery1.7.2.json`、`HostBrowserGeometry1.7.2.json`、`Delivery.json`、`Package.json`。本轮不修改网站自动更新清单,文章和媒体更新另见publication记录。
1.7.2发行标签完整SHA `7720d9a042271ad0147992a7d476b5c06151f616`,Release378 / 附件22 已发布并保留公测标记;草稿正常浏览器下载与发布后完整下载均核对 40904714 字节及SHA-256一致。版本页 https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.2-browser-geometry-20261102 。标签362文件独立恢复和full/strict fsck通过,程序源码与实际编译节点相同;临时clone、验证程序、浏览器下载副本及生成APP已按本任务范围清理。见 `BrowserGeometryReleaseDraft1.7.2.json`、`Release.json`、`BrowserGeometryRecovery1.7.2.json`、`BrowserGeometryCleanup1.7.2.json`。
既有文章 https://dayu.media/15792/ 已更新为1.7.2(47),主下载媒体15801完整下载与同一正式PKG一致;保留50元、会员免费、封面、分类及原FCPX同步设置,正文/SEO/安装说明和匿名页面通过。见 `publication/ArticleUpdate1.7.2.json` / `ArticleUpdateVerification1.7.2.json`;没有变更自动更新清单。
## 历史1.7.1(46):Cube文字行容错
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.7.1-lut-notes-20261102`。实际编译源码 `58a17de43810798570b4965166d33129d949de3d`;完整标签提交及安装包链接见 `verification/Release.json`。克隆后 `git switch --detach v1.7.1-lut-notes-20261102` 恢复发行节点,或按上述完整SHA恢复实际编译源码。Xcode27.1 / FxPlugSDK4.3.5,无LFS或子模块;签名证书、私钥和公证凭据仍需独立恢复。
@@ -12,6 +79,10 @@
PKG `../发行包/大鱼调色-1.7.1.pkg`,40902664字节,SHA-256 `533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791`。源码恢复、宿主与交付证据分别见 `verification/LUTNoteRecovery.json`、`HostLUTNotes1.7.1.json`、`LUTNoteInstalled.json`、`Delivery.json`、`Package.json`。用户LUT及测试数值副本不进入Git/PKG,本轮不更新NAS和网站更新清单。
发行标签完整SHA `14cca24de6901b1d1d57d6a3ff6eccaf12f6a77c`,Release377 / 附件21 已发布(保留公测标记),草稿正常浏览器完整下载和发布后的完整下载均核对 40902664 字节及SHA-256一致。Release:https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.1-lut-notes-20261102;附件:https://dayu.media/git/dayu/dayu-color/releases/download/v1.7.1-lut-notes-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.7.1.pkg。标签351文件全字节恢复、full/strict fsck及程序源码与实际编译节点一致通过;验证clone、Apple分析临时切片、数值基准和浏览器下载副本已清理,保留一个本轮正式发行包与原有历史包。见 `LUTNoteReleaseDraft.json`、`Release.json`、`LUTNoteRecovery.json`、`LUTNoteCleanup.json`。
文章更新:既有文章 `https://dayu.media/15792/` 已更新为1.7.1(46),主下载绑定本站媒体15799;完整下载40,902,664字节与正式PKG的SHA-256一致。保留50元/会员免费、封面15795、分类与FCPX同步设置,标题/正文/SEO及匿名前台验证通过。当前发布副本及回读见 `publication/ArticleUpdate1.7.1.json`、`ArticleUpdateVerification1.7.1.json`、`article.html`。仅更新文章和媒体,网站自动更新清单仍为1.7.0。
## 历史1.7.0(45):公测更新与诊断
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.7.0-beta-20261102` 对应 `b5d842835cef860d27f38b3f9c2efc6743abfaa4`,实际编译源码 `a0f37578f73d7f8faa872d9a81009e2d6586a858`。唯一位置、Bundle ID、团队与系统要求同下方历史版本。Xcode27.1、FxPlugSDK4.3.5;无LFS和子模块。证书、私钥与公证凭据需独立恢复。
+69
查看文件
@@ -0,0 +1,69 @@
{
"status": "published-and-verified",
"postID": 15792,
"articleURL": "https://dayu.media/15792/",
"baselineCommit": "04d74e1dd2bcb46a8cad0e73888707965d525394",
"baselineContentMatchesGit": true,
"baselineContentSHA256": "90f194f604bb96331bd9dd0f03e328ee3fa84d108c8220c3ebc4982a020b1ffb",
"beforeTitle": "大鱼调色 1.7.0 公测版:Final Cut Pro 原生调色插件",
"beforeDownloadURL": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
"beforeResource": {
"cao_status": "1",
"cao_close_novip_pay": "",
"cao_is_boosvip": "",
"cao_video": "",
"cao_is_video_free": "",
"cao_price": "50",
"cao_vip_rate": "0",
"cao_ref_bonus_rate": "0.25",
"cao_expire_day": "0",
"cao_downurl": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
"cao_downurl_bak": "",
"cao_demourl": "",
"video_url": "",
"video_poster_url": "",
"cao_pwd": "",
"post_style": "sidebar",
"cao_info": ""
},
"beforeFeaturedMedia": 15795,
"beforeCategories": [
13,
4
],
"beforeTags": [],
"beforeSEO": {
"title": {
"enabled": true,
"value": "大鱼调色1.7.0公测版:Final Cut Pro原生调色插件,会员免费"
},
"description": {
"enabled": true,
"value": "大鱼调色1.7.0公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,新增自动更新检查和可关闭的公测诊断。完整PKG已签名公证,附安装使用说明。售价50元,站内会员免费。"
},
"keywords": {
"enabled": true,
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费"
}
},
"requestID": "dayu-color-15792-1.7.1-4c7e33754e744324b30fefd242d04fd3",
"requestedTitle": "大鱼调色 1.7.1 公测版:Final Cut Pro 原生调色插件",
"payloadSHA256": "da680bbace7202aa0c6c30e879783415bb3c9adc34599975cbf28f52e8d323a0",
"package": "大鱼调色-1.7.1.pkg",
"packageBytes": 40902664,
"packageSHA256": "533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791",
"newDownload": {
"mediaID": 15799,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793626180-5c87dd962e56c27.pkg",
"bytes": 40902664,
"sha256": "533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791",
"fullDownloadVerified": true
},
"savedContentSHA256": "df8bdab47c0ce51cebb9dcece292682cc8c9f3666262e048774ceba8f998b60a",
"savedContentMatchesProposedAfterHTMLSelfClosingWhitespaceNormalization": true,
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverPreserved": true,
"fcpxSyncSettingsPreserved": true,
"originalPublishedStatusPreserved": true,
"checkedAt": "2026-11-02T13:30:46.042159+00:00"
}
+64
查看文件
@@ -0,0 +1,64 @@
{
"status": "published-and-verified",
"postID": 15792,
"articleURL": "https://dayu.media/15792/",
"baselineCommit": "7720d9a042271ad0147992a7d476b5c06151f616",
"baselineContentMatchesGit": true,
"beforeTitle": "大鱼调色 1.7.1 公测版:Final Cut Pro 原生调色插件",
"beforeResource": {
"cao_status": "1",
"cao_close_novip_pay": "",
"cao_is_boosvip": "",
"cao_video": "",
"cao_is_video_free": "",
"cao_price": "50",
"cao_vip_rate": "0",
"cao_ref_bonus_rate": "0.25",
"cao_expire_day": "0",
"cao_downurl": "https://dayu.media/wp-content/uploads/2026/11/1793626180-5c87dd962e56c27.pkg",
"cao_downurl_bak": "",
"cao_demourl": "",
"video_url": "",
"video_poster_url": "",
"cao_pwd": "",
"cao_original_filename": "1793626180-5c87dd962e56c27.pkg",
"post_style": "sidebar",
"cao_info": ""
},
"beforeSEO": {
"title": {
"enabled": true,
"value": "大鱼调色1.7.1公测版:Final Cut Pro原生调色插件,会员免费"
},
"description": {
"enabled": true,
"value": "大鱼调色1.7.1公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,改善带文字标记的Cube LUT导入兼容性,支持自动更新检查和可关闭的公测诊断。完整PKG已签名公证,售价50元,站内会员免费。"
},
"keywords": {
"enabled": true,
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费"
}
},
"beforeFeaturedMedia": 15795,
"beforeCategories": [
13,
4
],
"beforeTags": [],
"requestID": "dayu-color-15792-1.7.2-a134dbe31d4a46718dc601d04d07a6ad",
"payloadSHA256": "86ac54d1e002f882f4141596dcbcc25fd4a982f2dceefcac4a5c75cf5479739f",
"package": "大鱼调色-1.7.2.pkg",
"packageBytes": 40904714,
"packageSHA256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
"newDownload": {
"mediaID": 15801,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793627751-1071d4780582a45.pkg",
"bytes": 40904714,
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
"fullDownloadVerified": true
},
"savedContentSHA256": "95202f968878076d4542b0027397d08957f962cad7e559922bee7274306e692e",
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
"checkedAt": "2026-11-02T13:57:12.692095+00:00"
}
+64
查看文件
@@ -0,0 +1,64 @@
{
"status": "published-and-verified",
"postID": 15792,
"articleURL": "https://dayu.media/15792/",
"baselineCommit": "f2038f12ebf24ec5c298ba67212e7f7f29afa60c",
"baselineContentMatchesGit": true,
"beforeTitle": "大鱼调色 1.7.2 公测版:Final Cut Pro 原生调色插件",
"beforeResource": {
"cao_status": "1",
"cao_close_novip_pay": "",
"cao_is_boosvip": "",
"cao_video": "",
"cao_is_video_free": "",
"cao_price": "50",
"cao_vip_rate": "0",
"cao_ref_bonus_rate": "0.25",
"cao_expire_day": "0",
"cao_downurl": "https://dayu.media/wp-content/uploads/2026/11/1793627751-1071d4780582a45.pkg",
"cao_downurl_bak": "",
"cao_demourl": "",
"video_url": "",
"video_poster_url": "",
"cao_pwd": "",
"cao_original_filename": "1793627751-1071d4780582a45.pkg",
"post_style": "sidebar",
"cao_info": ""
},
"beforeSEO": {
"title": {
"enabled": true,
"value": "大鱼调色1.7.2公测版:Final Cut Pro原生调色插件,会员免费"
},
"description": {
"enabled": true,
"value": "大鱼调色1.7.2公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,修正LUT缩略图浏览库的窗口尺寸与布局处理,保留Cube文字行兼容。完整PKG已签名公证,售价50元,站内会员免费。"
},
"keywords": {
"enabled": true,
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费"
}
},
"beforeFeaturedMedia": 15795,
"beforeCategories": [
13,
4
],
"beforeTags": [],
"requestID": "dayu-color-15792-1.7.3-39562e9c82c9482c9b6ef04e27fa679b",
"payloadSHA256": "83c5041a6bac809c03304761095f6ee2fba3fd88a5a3985214ac70f57bebbbad",
"package": "大鱼调色-1.7.3.pkg",
"packageBytes": 40908193,
"packageSHA256": "f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324",
"newDownload": {
"mediaID": 15803,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793631185-7b18844539fd4c4.pkg",
"bytes": 40908193,
"sha256": "f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324",
"fullDownloadVerified": true
},
"savedContentSHA256": "a5a5b660f322d7b5d6226806cca93b04d54a1e212d022318a480e0ace02bcbbf",
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
"checkedAt": "2026-11-02T14:55:48.259573+00:00"
}
+64
查看文件
@@ -0,0 +1,64 @@
{
"status": "updated-and-verified",
"postID": 15792,
"articleURL": "https://dayu.media/15792/",
"baselineCommit": "468d530bf002a34e407bd5e182cb6b90d6df1eb4",
"baselineContentMatchesGit": true,
"beforeTitle": "大鱼调色 1.7.3 公测版:Final Cut Pro 原生调色插件",
"beforeResource": {
"cao_status": "1",
"cao_close_novip_pay": "",
"cao_is_boosvip": "",
"cao_video": "",
"cao_is_video_free": "",
"cao_price": "50",
"cao_vip_rate": "0",
"cao_ref_bonus_rate": "0.25",
"cao_expire_day": "0",
"cao_downurl": "https://dayu.media/wp-content/uploads/2026/11/1793631185-7b18844539fd4c4.pkg",
"cao_downurl_bak": "",
"cao_demourl": "",
"video_url": "",
"video_poster_url": "",
"cao_pwd": "",
"cao_original_filename": "1793631185-7b18844539fd4c4.pkg",
"post_style": "sidebar",
"cao_info": ""
},
"beforeSEO": {
"title": {
"enabled": true,
"value": "大鱼调色1.7.3公测版:Final Cut Pro原生调色插件,会员免费"
},
"description": {
"enabled": true,
"value": "大鱼调色1.7.3公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,修正“更多空间”等显示缩放下LUT浏览库偏移、灰色空白与裁切。保留Cube文字行兼容,完整PKG已签名公证,售价50元,站内会员免费。"
},
"keywords": {
"enabled": true,
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费"
}
},
"beforeFeaturedMedia": 15795,
"beforeCategories": [
13,
4
],
"beforeTags": [],
"requestID": "dayu-color-1.7.4-6366328076ed4e63b49f5c76f44a08c5",
"payloadSHA256": "3ecfab918283c191853cdee5f33a73ae7da00bdb5ff3a456eca285a4b5d9111a",
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.7.4.pkg",
"packageBytes": 40918925,
"packageSHA256": "bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5",
"newDownload": {
"mediaID": 15805,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793635244-411a5cac31e43fc.pkg",
"bytes": 40918925,
"sha256": "bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5",
"fullDownloadVerified": true
},
"savedContentSHA256": "6189070a792713ff4a702917b51aeb705d8177c4662c2270349a4c1d1a2028b3",
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
"checkedAt": "2026-11-02T16:03:57.423149+00:00"
}
@@ -0,0 +1,45 @@
{
"passed": true,
"postID": 15792,
"url": "https://dayu.media/15792/",
"version": "1.7.1",
"build": "46",
"checkedAt": "2026-11-02T13:30:46.042159+00:00",
"mainDownload": {
"mediaID": 15799,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793626180-5c87dd962e56c27.pkg",
"bytes": 40902664,
"sha256": "533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791",
"fullDownloadVerified": true
},
"frontend": [
{
"request": "normal",
"url": "https://dayu.media/15792/",
"seoTitleExact": true,
"seoDescriptionExact": true,
"seoKeywordsExact": true,
"articleVersion": "1.7.1",
"build": "46",
"installGuideNativeCodeBlock": true,
"inlineImagePreserved": true,
"guestPrice50": true,
"guestVIPFree": true,
"paidDownloadNotExposedInBody": true
},
{
"request": "fresh",
"url": "https://dayu.media/15792/?dayu_verify=9b75b8bd37314cf09e923f4775f1dbf8",
"seoTitleExact": true,
"seoDescriptionExact": true,
"seoKeywordsExact": true,
"articleVersion": "1.7.1",
"build": "46",
"installGuideNativeCodeBlock": true,
"inlineImagePreserved": true,
"guestPrice50": true,
"guestVIPFree": true,
"paidDownloadNotExposedInBody": true
}
]
}
@@ -0,0 +1,36 @@
{
"passed": true,
"postID": 15792,
"url": "https://dayu.media/15792/",
"version": "1.7.2",
"build": "47",
"checkedAt": "2026-11-02T13:57:12.692095+00:00",
"mainDownload": {
"mediaID": 15801,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793627751-1071d4780582a45.pkg",
"bytes": 40904714,
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
"fullDownloadVerified": true
},
"frontend": [
{
"request": "normal",
"seoTitleDescriptionKeywordsExact": true,
"versionAndChangelog": true,
"guestPrice50AndVIPFree": true,
"inlineImageAndNativeInstallGuidePreserved": true,
"paidDownloadNotInPublicBody": true
},
{
"request": "fresh",
"seoTitleDescriptionKeywordsExact": true,
"versionAndChangelog": true,
"guestPrice50AndVIPFree": true,
"inlineImageAndNativeInstallGuidePreserved": true,
"paidDownloadNotInPublicBody": true
}
],
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
"readBackContentMatchesAfterHTMLWhitespaceNormalization": true
}
@@ -0,0 +1,37 @@
{
"passed": true,
"postID": 15792,
"url": "https://dayu.media/15792/",
"version": "1.7.3",
"build": "49",
"checkedAt": "2026-11-02T14:55:48.259573+00:00",
"mainDownload": {
"mediaID": 15803,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793631185-7b18844539fd4c4.pkg",
"bytes": 40908193,
"sha256": "f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324",
"fullDownloadVerified": true
},
"frontend": [
{
"request": "normal",
"seoTitleDescriptionKeywordsExact": true,
"versionAndChangelog": true,
"guestPrice50AndVIPFree": true,
"inlineImageAndNativeInstallGuidePreserved": true,
"paidDownloadNotInPublicBody": true
},
{
"request": "fresh",
"seoTitleDescriptionKeywordsExact": true,
"versionAndChangelog": true,
"guestPrice50AndVIPFree": true,
"inlineImageAndNativeInstallGuidePreserved": true,
"paidDownloadNotInPublicBody": true
}
],
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
"readBackContentMatchesAfterHTMLWhitespaceNormalization": true,
"frontendScreenshotLocalOnly": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/article-1.7.3.png"
}
@@ -0,0 +1,37 @@
{
"passed": true,
"postID": 15792,
"url": "https://dayu.media/15792/",
"version": "1.7.4",
"build": "52",
"checkedAt": "2026-11-02T16:03:57.423149+00:00",
"mainDownload": {
"mediaID": 15805,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793635244-411a5cac31e43fc.pkg",
"bytes": 40918925,
"sha256": "bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5",
"fullDownloadVerified": true
},
"frontend": [
{
"request": "normal",
"seoTitleDescriptionKeywordsExact": true,
"versionAndChangelog": true,
"guestPrice50AndVIPFree": true,
"inlineImageAndNativeInstallGuidePreserved": true,
"paidDownloadNotInPublicBody": true
},
{
"request": "fresh",
"seoTitleDescriptionKeywordsExact": true,
"versionAndChangelog": true,
"guestPrice50AndVIPFree": true,
"inlineImageAndNativeInstallGuidePreserved": true,
"paidDownloadNotInPublicBody": true
}
],
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
"readBackContentMatchesAfterHTMLWhitespaceNormalization": true,
"frontendScreenshotLocalOnly": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tool-deletion-qa/article-1.7.4.png"
}
+27 -45
查看文件
@@ -2,54 +2,36 @@
"passed": true,
"postID": 15792,
"url": "https://dayu.media/15792/",
"status": "publish",
"actualTitle": "大鱼调色 1.7.0 公测版:Final Cut Pro 原生调色插件",
"price": 50,
"vipRate": 0,
"ordinaryPurchaseAllowed": true,
"featuredMedia": 15795,
"media": [
"version": "1.7.4",
"build": "52",
"checkedAt": "2026-11-02T16:03:57.423149+00:00",
"mainDownload": {
"mediaID": 15805,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793635244-411a5cac31e43fc.pkg",
"bytes": 40918925,
"sha256": "bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5",
"fullDownloadVerified": true
},
"frontend": [
{
"id": 15795,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793613870-285eac993228898.png",
"bytes": 1850952,
"sha256": "7f80bab9def7caa679550d6425f07b8a8fce7b1ec088451151ca625a5f4e6a57",
"alt": "大鱼调色1.7.0公测版介绍封面,展示蓝色插件界面和CST、LUT、胶片模拟、局部蒙版功能",
"width": 1672,
"height": 941
"request": "normal",
"seoTitleDescriptionKeywordsExact": true,
"versionAndChangelog": true,
"guestPrice50AndVIPFree": true,
"inlineImageAndNativeInstallGuidePreserved": true,
"paidDownloadNotInPublicBody": true
},
{
"id": 15796,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793613872-21b2d1772c5ccac.png",
"bytes": 1707253,
"sha256": "e2c17dc759fb43d1ff0e6539e010cfa14ffb1d4e088e6a1ee88ab67d0e01b621",
"alt": "大鱼调色蓝色调色面板与CST色彩管理、LUT、胶片模拟和局部蒙版功能介绍",
"width": 1122,
"height": 1402
"request": "fresh",
"seoTitleDescriptionKeywordsExact": true,
"versionAndChangelog": true,
"guestPrice50AndVIPFree": true,
"inlineImageAndNativeInstallGuidePreserved": true,
"paidDownloadNotInPublicBody": true
}
],
"seo": {
"title": {
"enabled": true,
"value": "大鱼调色1.7.0公测版:Final Cut Pro原生调色插件,会员免费",
"frontendExact": true
},
"description": {
"enabled": true,
"value": "大鱼调色1.7.0公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,新增自动更新检查和可关闭的公测诊断。完整PKG已签名公证,附安装使用说明。售价50元,站内会员免费。",
"frontendExact": true
},
"keywords": {
"enabled": true,
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费",
"frontendExact": true
}
},
"frontendGuestPriceSnippet": "路人用户购买价格 : 50元 鱼粉会员购买价格 : 0元 登录后购买鱼粉年会员开通全站会员全站资源免费下载(极个别开发工具除外)专属临时高速网盘系统(接收方免登录)专属在线审阅系统(内测中……) 登录后开通会员权益以站点设置为准 抖音、B站ID:大鱼先森Media,闲鱼ID:成都大鱼先森文化传媒 蜀ICP备2024",
"frontendInlineImage": true,
"installGuideNativeCodeBlock": true,
"paidURLOnlyInResource": true,
"publishedBy": "user",
"readBackVia": "dayu-publish-article read 15792",
"checkedAt": "2026-11-02T10:44:37.404017+00:00"
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
"readBackContentMatchesAfterHTMLWhitespaceNormalization": true,
"frontendScreenshotLocalOnly": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tool-deletion-qa/article-1.7.4.png"
}
+33 -20
查看文件
@@ -1,24 +1,20 @@
{
"title": "大鱼调色 1.7.0 公测版:Final Cut Pro 原生调色插件,会员免费",
"title": "大鱼调色 1.7.4 公测版:Final Cut Pro 原生调色插件",
"slug": "dayu-color-1-7-0-beta",
"excerpt": "大鱼调色1.7.0公测,面向Apple Silicon的Final Cut Pro原生调色插件,包含CST色彩管理、LUT风格、胶片模拟与局部蒙版,新增自动更新检查和可关闭的公测诊断。售价50元,会员免费。",
"excerpt": "",
"categories": [
4,
13
],
"tags": [
"Final Cut Pro",
"调色插件",
"FxPlug4"
13,
4
],
"tags": [],
"seo": {
"title": {
"enabled": true,
"value": "大鱼调色1.7.0公测版:Final Cut Pro原生调色插件,会员免费"
"value": "大鱼调色1.7.4公测版:Final Cut Pro原生调色插件,会员免费"
},
"description": {
"enabled": true,
"value": "大鱼调色1.7.0公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,新增自动更新检查和可关闭的公测诊断。完整PKG已签名公证,附安装使用说明。售价50元,站内会员免费。"
"value": "大鱼调色1.7.4公测版,适用于Apple Silicon与macOS14.6及以上。支持CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪;新增模块和图层删除,删除时还原参数,重新添加从初始值开始。保留“更多空间”窗口修正,完整PKG已签名公证,售价50元,站内会员免费。"
},
"keywords": {
"enabled": true,
@@ -26,14 +22,26 @@
}
},
"resource": {
"cao_status": true,
"cao_price": 50,
"cao_vip_rate": 0,
"cao_close_novip_pay": false,
"cao_expire_day": 0,
"cao_downurl": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg"
"cao_status": "1",
"cao_close_novip_pay": "",
"cao_is_boosvip": "",
"cao_video": "",
"cao_is_video_free": "",
"cao_price": "50",
"cao_vip_rate": "0",
"cao_ref_bonus_rate": "0.25",
"cao_expire_day": "0",
"cao_downurl": "https://dayu.media/wp-content/uploads/2026/11/1793635244-411a5cac31e43fc.pkg",
"cao_downurl_bak": "",
"cao_demourl": "",
"video_url": "",
"video_poster_url": "",
"cao_pwd": "",
"cao_original_filename": "1793635244-411a5cac31e43fc.pkg",
"post_style": "sidebar",
"cao_info": ""
},
"packageSHA256": "a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb",
"packageSHA256": "bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5",
"skill": {
"installed": "/Users/mac/.codex/skills/dayu-publish-article",
"remote": "https://dayu.media/git/dayu/dayu-publish-article-skill.git",
@@ -49,8 +57,13 @@
"articleURL": "https://dayu.media/15792/",
"actualSlug": "%e5%a4%a7%e9%b1%bc%e8%b0%83%e8%89%b2-1-7-0-%e5%85%ac%e6%b5%8b%e7%89%88%ef%bc%9afinal-cut-pro-%e5%8e%9f%e7%94%9f%e8%b0%83%e8%89%b2%e6%8f%92%e4%bb%b6%ef%bc%8c%e4%bc%9a%e5%91%98%e5%85%8d%e8%b4%b9",
"featuredMedia": 15795,
"actualTitle": "大鱼调色 1.7.0 公测版:Final Cut Pro 原生调色插件",
"actualTitle": "大鱼调色 1.7.4 公测版:Final Cut Pro 原生调色插件",
"userPublished": true,
"actualTags": [],
"actualExcerpt": ""
"actualExcerpt": "",
"packageBytes": 40918925,
"packageMediaID": 15805,
"updatedBy": "dayu-publish-article",
"version": "1.7.4",
"build": "52"
}
+40 -4
查看文件
@@ -1,13 +1,13 @@
<!-- wp:paragraph -->
<p>大鱼调色 1.7.0 公测版是一款适用于 Final Cut Pro 与 Motion 的原生 FxPlug 4 调色插件。从素材色彩还原、基础调整,到 LUT 风格、胶片质感和局部蒙版,可直接在剪辑时间线里完成。</p>
<p>大鱼调色 1.7.4 公测版是一款适用于 Final Cut Pro 与 Motion 的原生 FxPlug 4 调色插件。从素材色彩还原、基础调整,到 LUT 风格、胶片质感和局部蒙版,可直接在剪辑时间线里完成。</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.0,构建45。</p>
<p>本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.4,构建52。</p>
<!-- /wp:paragraph -->
<!-- wp:image {"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://dayu.media/wp-content/uploads/2026/11/1793613872-21b2d1772c5ccac.png" alt="大鱼调色蓝色插件面板与CST、LUT、胶片模拟、局部蒙版功能介绍"/><figcaption class="wp-element-caption">大鱼调色界面与功能介绍图</figcaption></figure>
<figure class="wp-block-image size-full"><img src="https://dayu.media/wp-content/uploads/2026/11/1793613872-21b2d1772c5ccac.png" alt="大鱼调色蓝色插件面板与CST、LUT、胶片模拟、局部蒙版功能介绍" /><figcaption class="wp-element-caption">大鱼调色界面与功能介绍图</figcaption></figure>
<!-- /wp:image -->
<!-- wp:heading -->
@@ -30,6 +30,42 @@
<p><strong>局部蒙版与工具叠层</strong>:可针对单独工具添加蒙版、建立相邻叠层,并使用关键帧与跟踪处理局部区域,方便细调画面的不同部分。</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">1.7.4 更新:删除模块与图层</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>每个模块和新增图层的标题增加减号按钮,可删除不需要的层并让它从界面消失。删除时一并还原该模块的参数、清除关键帧及所属 LUT、蒙版等设置,避免隐藏后仍影响画面;其他模块保持原设置。误删可通过 Final Cut Pro 的一次撤销恢复。</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>顶部“添加模块”菜单可重新添加任意模块,新层从初始参数开始,不继承已删除层的设置。原有“再加一层”继续保留,删除状态随工程和完整预设保存。本机已验证删除、撤销、重做、重新添加与退出重开;本版继续保留此前的 Cube 兼容与“更多空间”窗口修正。</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">1.7.3 更新:显示缩放下的 LUT 窗口</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>修正部分显示器选择“更多空间”后,LUT 缩略图浏览库出现大片灰色、内容偏移和裁切的问题。首次打开即可完整显示搜索、文件夹、预览和底部控件,无需点击窗口绿色按钮恢复;原有窗口缩放、网格/列表与缩略图设置继续保留。本机已在相同显示设置下验证首次打开和重新启动 Final Cut Pro 后打开正常。</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">1.7.2 更新:LUT 浏览窗口</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>LUT 缩略图浏览库改为跟随 Final Cut Pro 提供的实际窗口内容区域,避免旧窗口位置和尺寸记录干扰布局;窗口变化时同步调整深色内容区、列表及底部控件。缩略图大小、网格/列表、侧栏、分类和最近使用设置继续保留。</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">1.7.1 更新:LUT 导入兼容</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>改善 Cube LUT 导入兼容性,可读取部分在颜色数据行夹带文字标记的文件。保留可读取的数值,无法读取的后续通道按 0 处理,各行位置保持不变;这与本机 Final Cut Pro“自定 LUT”处理同类文件的方式一致。原有文件编码支持、缩略图浏览与预览功能继续保留。</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">1.7.0 公测新增</h2>
<!-- /wp:heading -->
@@ -100,4 +136,4 @@
<!-- wp:paragraph -->
<p>若仍显示红色警告或长时间停在加载中,请核对系统及 FCP 版本,并通过主 App 的“发送诊断摘要”反馈报告标识和发生时间。公测阶段的偶发加载无响应仍在收集信息,重新注册并不能保证解决所有问题。</p>
<!-- /wp:paragraph -->
<!-- /wp:paragraph -->
+21 -3
查看文件
@@ -1,8 +1,8 @@
# 大鱼调色 1.7.0 公测版:Final Cut Pro 原生调色插件,会员免费
# 大鱼调色 1.7.4 公测版:Final Cut Pro 原生调色插件
大鱼调色 1.7.0 公测版是一款适用于 Final Cut Pro 与 Motion 的原生 FxPlug 4 调色插件。从素材色彩还原、基础调整,到 LUT 风格、胶片质感和局部蒙版,可直接在剪辑时间线里完成。
大鱼调色 1.7.4 公测版是一款适用于 Final Cut Pro 与 Motion 的原生 FxPlug 4 调色插件。从素材色彩还原、基础调整,到 LUT 风格、胶片质感和局部蒙版,可直接在剪辑时间线里完成。
本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.0,构建45。
本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.4,构建52。
## 在时间线里完成调色
@@ -14,6 +14,24 @@
**局部蒙版与工具叠层**:可针对单独工具添加蒙版、建立相邻叠层,并使用关键帧与跟踪处理局部区域,方便细调画面的不同部分。
## 1.7.4 更新:删除模块与图层
每个模块和新增图层的标题增加减号按钮,可删除不需要的层并让它从界面消失。删除时一并还原该模块的参数、清除关键帧及所属 LUT、蒙版等设置,避免隐藏后仍影响画面;其他模块保持原设置。误删可通过 Final Cut Pro 的一次撤销恢复。
顶部“添加模块”菜单可重新添加任意模块,新层从初始参数开始,不继承已删除层的设置。原有“再加一层”继续保留,删除状态随工程和完整预设保存。本机已验证删除、撤销、重做、重新添加与退出重开;本版继续保留此前的 Cube 兼容与“更多空间”窗口修正。
## 1.7.3 更新:显示缩放下的 LUT 窗口
修正部分显示器选择“更多空间”后,LUT 缩略图浏览库出现大片灰色、内容偏移和裁切的问题。首次打开即可完整显示搜索、文件夹、预览和底部控件,无需点击窗口绿色按钮恢复;原有窗口缩放、网格/列表与缩略图设置继续保留。本机已在相同显示设置下验证首次打开和重新启动 Final Cut Pro 后打开正常。
## 1.7.2 更新:LUT 浏览窗口
LUT 缩略图浏览库改为跟随 Final Cut Pro 提供的实际窗口内容区域,避免旧窗口位置和尺寸记录干扰布局;窗口变化时同步调整深色内容区、列表及底部控件。缩略图大小、网格/列表、侧栏、分类和最近使用设置继续保留。
## 1.7.1 更新:LUT 导入兼容
改善 Cube LUT 导入兼容性,可读取部分在颜色数据行夹带文字标记的文件。保留可读取的数值,无法读取的后续通道按 0 处理,各行位置保持不变;这与本机 Final Cut Pro“自定 LUT”处理同类文件的方式一致。原有文件编码支持、缩略图浏览与预览功能继续保留。
## 1.7.0 公测新增
主 App 启动时自动检查新版,发现更新后由用户确认下载。完整更新包经过完整性、签名和产品版本校验,保存并退出 Final Cut Pro / Motion 后,通过系统安装器完成升级。
+39
查看文件
@@ -0,0 +1,39 @@
# 1.7.2:内置屏幕“更多空间”灰色区域的补充调查
后续:本机已复现并取得实际外层容器原点偏移,修正与验证见[1.7.3记录](BrowserMoreSpace1.7.3.md)。本文保留修复前的调查边界。
2026-11-02,用户提供新的目标机截图:已安装1.7.2,MacBook Pro / M1 Pro(16核GPU),内置Liquid Retina XDR显示屏,系统报告分辨率3456×2234。沿用此前报告的FCP12.3、macOS27.0.1。内置屏幕设为“更多空间”时出现大面积灰色;设为“默认”正常。用户进一步确认在“更多空间”档位完全退出并重启FCP后仍有灰色区域。
## 观察与已排除的解释
- 截图中深色浏览界面整体向右偏移,顶部和右侧被裁切;缩略图和底部工具栏仍可见。它不只是内部网格列数或缩略图大小不合适。
- 显示模式是已确认的触发条件。重启仍复现,不能只归因于切换显示模式瞬间未刷新的布局;也不能据此排除全部持久设置或桥接状态问题。
- 原始LUT在默认模式可用,异常截图也有缩略图。这份证据不支持把问题归到LUT文件内容或编码。
- 1.7.2远程分支已提前返回,不再恢复插件保存的窗口frame、修改远程窗口min/max或标题。因此此前发现的不安全窗口恢复逻辑不足以解释1.7.2的新截图。
## 源码与本机SDK的有限证据
`DYLUTBrowser.mm`的远程接入和跟随逻辑使用`parent.bounds`设置`_root.frame`,内部布局使用`_root.bounds.size`。此路径没有直接使用3456×2234、手工乘除`backingScaleFactor`或按物理屏幕像素算窗口尺寸。
本机SDK的`FxTypes_MacOS.h`将`FxXPView`定义为`NSView`。`FxRemoteWindowAPI.h`说明parent是远程内容容器,并说明v2最大尺寸由宿主窗口的80%限制;不是检视器宽度。NSView的frame/bounds在各自坐标系中表达,截图物理分辨率不能直接当作容器的逻辑尺寸。
本轮还静态分析了本机已安装的Apple FxPlug框架(不是目标机FCP12.3的实测运行):
- 原件:`/Library/Developer/Frameworks/FxPlug.framework/Versions/A/FxPlug`,SHA-256 `07eae772cc14d8bb0b18e515a1c16d5bc03245fc2c908fe4899318703ecbaaa7`。
- 独立arm64分析切片SHA-256 `f1d5110d017d599edb5f11cb6c80d62ecd05c427d9d1e4e7749f110ef1d8ab6a`。
- REA/Ghidra静态证据`ev_4c60191b63451f68d443e25d2a3965934cc3e708a3baa4aad7ee432e695ad3df`:`FxAPIManagerShim::remoteWindowWithMinimumSize:maximumSize:reply:`(arm64偏移0x20df0)经host mediator请求窗口、取得windowContentView。
- 证据`ev_be540b8fa3cc9dae8e1df580895369d804e441a327fba6026566a3873ffc8bd4`:其第二个回调(0x21110)先调用插件reply,然后读取parent第一个子视图的frame.size,调用parent的setFrameSize与setBoundsSize。支持“接入后SDK还会同步几何”的判断,不能证明目标机在此产生了错误的缩放或原点。
- 证据`ev_4e842ef1089426daf462c3568fbb0c73b865336704c75601601eb560b7f19db4`:`FxRemotePlugin::windowContentView`(0x7974)返回windowViewController.view。
- 伪代码不是Apple源码;未执行这些私有方法,未观测目标机容器的实际frame、bounds、visibleRect或backing映射。REA会话已关闭,完整12条静态证据保存在本机构建缓存的`remote-scaling-analysis/FxPlug-window-evidence.snapshot.json`,不作为已远程保存的必要工程资源。
Apple的[高分辨率坐标转换说明](https://developer.apple.com/library/archive/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/APIs/APIs.html)区分view、window、screen、backing各自坐标系,并建议使用对应转换API。[NSWindow.backingScaleFactor](https://developer.apple.com/documentation/appkit/nswindow/backingscalefactor)的说明不支持把该值直接用于布局。不能因为选择“更多空间”就断言backingScaleFactor必然从2变成1.5;屏幕物理像素、桌面逻辑尺寸、backing尺寸和最终显示合成并非同一个量。
## 当前结论和未解项
已确认触发条件,最有力的工作假设是显示缩放下远程容器与插件内容的坐标、裁切或合成映射不同步;尚未锁定是哪一侧、哪个值首次出错。不能把这一假设写成已确认的“插件混用point/pixel”或“FCP自身bug”。
1.7.2的21项隐藏AppKit模型检查覆盖了内容尺寸变化、非零bounds原点及晚到尺寸,未模拟真实ViewBridge跨进程合成和目标屏幕的缩放模式。本机FCP12.4的成功验证也不能替代目标机12.3的该模式复现。
要确定修复,应在目标环境对照两档显示设置,采集接入时、SDK回调返回后和稳定布局后的parent/root frame、bounds、visibleRect、到window的转换矩形及backing转换;同时确认宿主可见窗口/remote view大小。先判断偏移发生在插件子视图内部还是跨进程显示桥接,再选择布局修正或替代呈现路径。不可根据截图补固定偏移、盲目乘除2、扩大窗口、改灰色背景或清空用户设置后宣称修复。
本轮只作调查记录,未修改应用源码、版本、已安装APP、安装包或文章;1.7.2仍需解决该模式下的问题。
+33
查看文件
@@ -0,0 +1,33 @@
# 1.7.3(49):更多空间下的远程内容原点
2026-11-02,本机切换“更多空间”后复现1.7.2的大片灰色、深色内容向右偏移和顶部裁切。用户随后发现点击窗口绿色缩放按钮可恢复。此前[1.7.2调查](BrowserMoreSpace1.7.2.md)只锁定触发条件;本轮取得实际运行几何,不再以缩放假设代替证据。
## 实际原因
正式签名、公证并安装的诊断构建1.7.3(48)记录到:
- SDK提供的parent就是服务窗口的contentView;它的frame为`{{789,521},{1800,1200}}`,bounds为`{{0,0},{1800,1200}}`。
- 浏览器_root.frame为`{{0,0},{1800,1200}}`,在parent内部完全正确;但转换到窗口后变成`{{789,521},{1800,1200}}`。所以仅检查root.frame等于parent.bounds会漏掉外层容器的偏移。
- 服务窗口frame为`{{0,100},{1800,1200}}`,contentLayoutRect为`{{0,0},{1800,1200}}`。接入前、SDK回调返回后、1秒稳定状态都保留错误的contentView原点。
- 用户点击绿色按钮时,parent原点回到`(0,0)`,随后系统缩放过程出现1–5点边缘调整,界面恢复。此操作触发了容器重排。
- 本机主屏逻辑3840×2160/backingScaleFactor1,另有1920×1080/backingScaleFactor2副屏。窗口位于主屏。不能将此比例或偏移数值硬编码为目标MacBook的显示参数。
这是**远程内容容器的frame原点残留**,不是本机这一复现中插件把3456等物理像素直接当作逻辑尺寸。已确认它发生在SDK/ViewBridge提供的外层contentView;未逆推出Apple内部具体哪一处首次写错原点,也未宣称确认所有缩放模式存在同一平台bug。
## 修正
仅在远程模式且SDK提供的parent恰好是当前window.contentView时,用公开AppKit API取得实际内容矩形,依次执行screen→window→parent.superview的坐标转换,修正parent的frame.origin。随后仍按parent.bounds铺满浏览器。接入、parent变化及窗口几何事件使用同一路径。
不修改宿主窗口frame、尺寸限制、标题、保存位置或桥接容器的autoresizing策略;不更改parent尺寸,不调用绿色按钮,不加固定偏移或显示器比例。SDK在reply返回后读取第一个子视图尺寸的机制继续保留。本地弹窗行为不变。
加入默认关闭的本地诊断开关`DYBrowserGeometryDiagnostics`,仅记录视图/窗口/屏幕几何和图层变换,不含LUT名称、文件路径或图像,不发送网络。每进程限1MiB,存于本机Library/Logs/大鱼调色;本轮采样结束后删除临时开启的偏好。采样不属于公测云端诊断。
## 验证与边界
- 隐藏AppKit模型按实际`(789,521)`偏移重现:旧代码27项中3项失败;修正后27项通过,覆盖首次及后续原点偏移、非零bounds和宿主frame/尺寸/桥接策略不变。已有浏览库23项回归通过。
- 正式安装版411项原生检查通过,包括新增3项窗口坐标对齐检查。实际编译源码`2688b22f99b5118153b94a43f6c184a204d4ce7e`,APP公证`06e09906-676f-414b-adcc-acf2bec6864a` Accepted。
- 本机FCP12.4/macOS27.0.1在同一“更多空间”设置下,修正版首次接入仍收到错误原点,但自动对齐为0;服务窗口frame和尺寸不变,稳定采样保持正确。搜索、侧栏、网格、列表、底部完成按钮完整。绿色缩放/还原、热重开和正常退出后冷重开通过;冷重开再次收到错误原点并自动修正。
- 已有58个LUT、tlfs选择及缩略图大小125.4610877403846保留,原始tlfs SHA-256仍为`5ee4eefe92410549abf3e27baf7aea5e74b77101b496af5eddb5ba601bf033fe`。模板与Metal库相对1.7.2逐字节一致。
- 目标使用者的MacBook/FCP12.3仍需更新后复测;本机不是该机的直接测试。代理没有改动系统显示设置。本轮未再次运行PKG安装脚本。
记录:`verification/MoreSpaceBridgeRuntime1.7.3.json`、`HostBrowserMoreSpace1.7.3.json`、`MoreSpaceRegression1.7.3.json`、`MoreSpaceRecovery1.7.3.json`;正式包与Release以对应最终记录为准。诊断48版未制作或发布安装包,不作为修复完成版本。
+23
查看文件
@@ -0,0 +1,23 @@
# 1.7.2:LUT浏览库远程窗口尺寸
基线 `e62d5532f2360d157d5a4d96488e58f4113a55af`,正式安装1.7.1(46)。用户转述另一使用者的“窗口很大、出现灰色空白、深色内容被裁切”,并提供第三方源码分析;版本为FCP12.3、系统输入为27.01(按27.0.1记录),分辨率及缩放未知。本机为FCP12.4,不能把本机验证写成对方12.3实测。
## 已确认的代码问题与分析边界
`DYInspector`优先请求FxRemoteWindowAPI_v3/v2,并同步把浏览器根视图接入SDK提供的parent。随后`configurePresentationWindow`原先还会修改`_root.window`的最小/最大内容尺寸、标题和frame,恢复插件自行保存的位置。远程桥接窗口的几何不应由这条本地恢复逻辑覆盖。
本机FxPlug4.3.5的`FxRemoteWindowAPI.h`说明v2的最大尺寸会限制到宿主**窗口**大小的80%。Apple在线文档同样写明宿主主窗口的80%,见 https://developer.apple.com/documentation/professional_video_applications/fxremotewindowapi_v2/remotewindow(withminimumsize:maximumsize:reply:) 。它没有说按检视器宽度限制;固定28点标题栏换算不准确,也不能单凭不同常量认定每台机器必然出现灰边。多屏时机、FCP12.3具体桥接行为及对方真实灰边仍需目标机复核。
隐藏AppKit桥接模型从相同内容大小开始,关闭parent自动调整子视图,种入离屏/大屏历史记录。旧源码失败9项:宿主frame/min/max/标题被改、桥接缩放策略被覆盖、若干parent变化未跟随、非零bounds原点未跟随、远程窗口事件污染本地历史。修正后21项几何检查、23项浏览库回归通过,摘要见`verification/BrowserGeometryRegression1.7.2.json`。测试模型的失败证明不安全路径,不冒充对方系统的实际截图复现。
## 修改
- 远程模式仅观察生命周期并按parent.bounds布局,直接返回;不设宿主窗口frame、min/max、标题、位置或背景,不从本地历史恢复远程窗口。
- 保留桥接容器自己的autoresizesSubviews设置;监听parent的frame/bounds变化,即使自动缩放关闭、初始零尺寸或bounds原点非零,根视图也填满实际可用区域。关闭后移除这些观察。
- 远程窗口事件不再写插件的本地frame偏好;缩略图大小、布局、分类、侧栏和最近使用保留原机制。
- 仅本地脱离式弹窗保留位置恢复,用AppKit实际frame/content转换取代固定28/448/1228点;按保存frame与显示器的交集选择可用屏幕,将内容和外框约束到真实可见区域。
- SDK v2/v3仍负责可调整远程窗口的范围;不通过改min/max伪装初始尺寸,也不清空用户配置来掩盖问题。
`tools/verify_browser_remote_geometry.mm`覆盖576×336、720×420、1280×800、900×620等桥接内容大小、旧记录、禁用自动缩放、非零原点、晚到尺寸、一次关闭和本地窗口恢复。正式`--self-test`加入8项对应检查。所有构建目录窗口测试保持不可见;用户可见验证只运行正式签名、公证并安装的版本。
本轮继续保留1.7.1的Cube文字行容错。最终公证、宿主、安装包和Release结果以交付记录为准;目标使用者的FCP12.3仍需更新后复测。
+13
查看文件
@@ -0,0 +1,13 @@
# 模块与图层删除(1.7.4)
每个原生模块和新增工具层的标题增加减号按钮。删除会还原该模块全部参数并清除已有关键帧、LUT/输入路径、蜘蛛盘和蒙版,然后隐藏原生模块;独立工具层则从工具文档中移除,后续层仍保留。一次宿主撤销组包含还原与删除。
固定FxPlug参数ID不能随界面移除,所以工具文档记录removedBase,并在渲染和Cube导出前排除这些原生模块。此标记跨工程、完整预设和归档保存,不改变旧文档。重新添加通过顶部“添加模块”菜单创建新UUID及初始参数,不恢复隐藏模块旧数据。每层“再加一层”也保留。全部还原恢复初始模块。
参数归属由不可变目录缓存:基础调整中的肤色开关只是独立肤色模块的快捷入口;删除基础调整保留肤色设置和关键帧,删除肤色后隐藏该快捷入口。一级调色拥有输入、色彩管理和前置LUT;风格LUT拥有全部5个槽位;胶片包含未展示的内部模式值。删除只清除自己的资源和开关。
原生集成检查覆盖14类参数与关键帧还原、相邻模块保留、蒙版及资源清理、完整预设和归档、重新添加初始值、独立子层重连、窄栏按钮布局、失败保留界面、共享肤色归属、实际渲染中性和Cube导出。实际宿主验收与最终交付信息见verification中的对应记录。
自动化验收的中间构建51曾出现远程检查器空白,系统ViewBridge看门狗终止旧插件进程。未发布该构建。删除回调末尾原有同步无障碍通知可能重入宿主;构建52改为跟随模型刷新,在当前远程回调结束后通知。该归因需结合最终宿主复验,不把进程重启本身当作确定的调用栈证据。
最终构建52通过436项正式安装原生检查;FCP12.4/macOS27.0.1实际删除基础调整(曝光0.75→0)、一次撤销完整预设逐字段一致、重做删除、重新添加(曝光0)、新增层删除与正常冷重开通过。删除、撤销和重新添加期间插件PID保持18314,冷重开后正常启动新PID18405;未再次出现空白/超时。用户手动验收工程未被自动化撤销或改写。
文件差异过大,未显示。 加载差异
@@ -0,0 +1,240 @@
{
"authority" : "controlled shader execution; original installed Metal libraries",
"basisDIExposurePlusOneStop" : [
{
"absoluteCodeError" : 1.52587890625e-05,
"actualCode" : [
0.0208740234375,
0.0208740234375,
0.0208740234375
],
"expectedCodeDouble" : 0.0208892822265625,
"halfULPAgainstRoundedReference" : 1,
"inputCode" : 0.010444268584251404,
"shaderInputHalf" : 0.01044464111328125
},
{
"absoluteCodeError" : 8.2587538793865711e-07,
"actualCode" : [
0.133056640625,
0.133056640625,
0.133056640625
],
"expectedCodeDouble" : 0.13305581474961206,
"halfULPAgainstRoundedReference" : 0,
"inputCode" : 0.085275709629058838,
"shaderInputHalf" : 0.08526611328125
},
{
"absoluteCodeError" : 0.00010919044650758991,
"actualCode" : [
0.406982421875,
0.406982421875,
0.406982421875
],
"expectedCodeDouble" : 0.40709161232150759,
"halfULPAgainstRoundedReference" : 0,
"inputCode" : 0.33604326844215393,
"shaderInputHalf" : 0.3359375
},
{
"absoluteCodeError" : 0.0001436520877062808,
"actualCode" : [
0.58642578125,
0.58642578125,
0.58642578125
],
"expectedCodeDouble" : 0.58656943333770628,
"halfULPAgainstRoundedReference" : 0,
"inputCode" : 0.51383745670318604,
"shaderInputHalf" : 0.513671875
},
{
"absoluteCodeError" : 4.8850578683645729e-05,
"actualCode" : [
0.73291015625,
0.73291015625,
0.73291015625
],
"expectedCodeDouble" : 0.73286130567131635,
"halfULPAgainstRoundedReference" : 0,
"inputCode" : 0.65983039140701294,
"shaderInputHalf" : 0.65966796875
}
],
"basisExposureMaximumHalfULP" : 1,
"basisSHA256" : "e164080db3a6d553a0e75d377ac3c5bd28455bddd8a97640d9de6c74e0d105f3",
"cstForwardThenReverse" : [
{
"displayGamma24" : [
0.0169219970703125,
0.0169219970703125,
0.0169219970703125
],
"reverseToLinear709" : [
5.2571296691894531e-05,
5.2571296691894531e-05,
5.2571296691894531e-05
],
"sourceLinear709" : 0
},
{
"displayGamma24" : [
0.0222320556640625,
0.0222320556640625,
0.0222320556640625
],
"reverseToLinear709" : [
0.00010114908218383789,
0.00010114908218383789,
0.00010114908218383789
],
"sourceLinear709" : 0.0010000000474974513
},
{
"displayGamma24" : [
0.0640869140625,
0.0640869140625,
0.0640869140625
],
"reverseToLinear709" : [
0.0012845993041992188,
0.0012845993041992188,
0.0012845993041992188
],
"sourceLinear709" : 0.0099999997764825821
},
{
"displayGamma24" : [
0.40234375,
0.40234375,
0.40234375
],
"reverseToLinear709" : [
0.1143798828125,
0.1143798828125,
0.1143798828125
],
"sourceLinear709" : 0.18000000715255737
},
{
"displayGamma24" : [
0.763671875,
0.763671875,
0.763671875
],
"reverseToLinear709" : [
0.76708984375,
0.76708984375,
0.76708984375
],
"sourceLinear709" : 1
},
{
"displayGamma24" : [
0.86328125,
0.86328125,
0.86328125
],
"reverseToLinear709" : [
1.275390625,
1.275390625,
1.275390625
],
"sourceLinear709" : 2
},
{
"displayGamma24" : [
0.927734375,
0.927734375,
0.927734375
],
"reverseToLinear709" : [
1.83984375,
1.83984375,
1.83984375
],
"sourceLinear709" : 4
},
{
"displayGamma24" : [
0.9853515625,
0.9853515625,
0.9853515625
],
"reverseToLinear709" : [
2.689453125,
2.689453125,
2.689453125
],
"sourceLinear709" : 16
},
{
"displayGamma24" : [
1,
1,
1
],
"reverseToLinear709" : [
3,
3,
3
],
"sourceLinear709" : 64
}
],
"cstSHA256" : "b38165dd86bb6e038f7835373dadb51a54a0ad266c67672ff8fcd9548641c2d3",
"date" : "2026-11-03",
"dayuNewPrimaryDefaultMapping" : [
{
"hostLinearInput" : 0.01000213623046875,
"newPrimaryDefaultMappingOutput" : [
0.0027828216552734375,
0.0027828216552734375,
0.0027828216552734375
]
},
{
"hostLinearInput" : 0.1800537109375,
"newPrimaryDefaultMappingOutput" : [
0.12066650390625,
0.12066650390625,
0.12066650390625
]
},
{
"hostLinearInput" : 0.5,
"newPrimaryDefaultMappingOutput" : [
0.43310546875,
0.43310546875,
0.43310546875
]
},
{
"hostLinearInput" : 1,
"newPrimaryDefaultMappingOutput" : [
0.796875,
0.796875,
0.796875
]
},
{
"hostLinearInput" : 2,
"newPrimaryDefaultMappingOutput" : [
0.796875,
0.796875,
0.796875
]
}
],
"dayuSHA256" : "6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d",
"device" : "Apple M4",
"limitations" : [
"Not a Final Cut Pro render, camera import test or whole-application CMS certification.",
"RGBA32Float transport; target shaders can quantize samples\/results internally to half.",
"CST inverse display mapping is not assumed to be an inverse of the forward DRT.",
"DI formula follows Blackmagic public specification; finite samples and exposure-isolation bypasses only.",
"Dayu primary rows test the actual installed color kernel with source-derived new-layer parameters, not the whole scheduler\/UI."
],
"schema" : 1
}
+124
查看文件
@@ -0,0 +1,124 @@
// Bounded, headless observations of the user-selected installed shaders.
// No vendor source, shader code, LUT data, app launch or host document is copied.
// Build instructions and interpretation limits are in report.md.
#import <Foundation/Foundation.h>
#import <Metal/Metal.h>
#include <simd/simd.h>
#include <cmath>
#include <cstring>
#include <vector>
#include <CommonCrypto/CommonDigest.h>
struct CSTParams { int inputGamut,inputTransfer,outputGamut,outputTransfer,toneMapping; };
struct BasisParams {
int colorspace;
float exposure,balanceTarget,balanceStrength,contrast,pivot,highlights,midtones,shadows;
float trimLow,trimHigh,trimToeStrength,trimShoulderStrength,shadowContrast,shadowPivot,hiContrast,hiPivot,chromaMix;
unsigned char bypassBalance,bypassTone,bypassExposure,bypassContrast;
float saturation;
};
struct DayuRenderParams { CSTParams input,output;BasisParams basis;int stages,sourceLinear,destinationLinear,reserved;CSTParams basisInput,basisOutput; };
static_assert(sizeof(CSTParams)==20 && sizeof(BasisParams)==80);
static_assert(sizeof(DayuRenderParams)==176);
struct Vertex { simd_float2 position,uv; };
static void need(bool value,NSString *reason) {
if(!value) @throw [NSException exceptionWithName:@"CMSAudit" reason:reason userInfo:nil];
}
static NSString *digest(NSString *path) {
NSData *data=[NSData dataWithContentsOfFile:path];need(data!=nil,path);
unsigned char hash[CC_SHA256_DIGEST_LENGTH];CC_SHA256(data.bytes,(CC_LONG)data.length,hash);
NSMutableString *s=[NSMutableString string];for(auto v:hash)[s appendFormat:@"%02x",v];return s;
}
static double encodeDI(double v) {
return v<=.00262409?v*10.44426855:(std::log2(v+.0075)+7)*.07329248;
}
static double decodeDI(double v) {
return v<=.02740668?v/10.44426855:std::exp2(v/.07329248-7)-.0075;
}
static std::vector<float> render(id<MTLDevice>device,id<MTLCommandQueue>queue,
id<MTLRenderPipelineState>pipeline,const std::vector<float>&input,const void *params,NSUInteger length) {
NSUInteger width=input.size()/4;need(width>0 && input.size()%4==0,@"invalid input");
auto desc=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA32Float width:width height:1 mipmapped:NO];
desc.storageMode=MTLStorageModeShared;desc.usage=MTLTextureUsageShaderRead|MTLTextureUsageRenderTarget;
id<MTLTexture>source=[device newTextureWithDescriptor:desc],output=[device newTextureWithDescriptor:desc];
need(source && output,@"texture allocation");
[source replaceRegion:MTLRegionMake2D(0,0,width,1) mipmapLevel:0 withBytes:input.data() bytesPerRow:width*16];
float w=width,h=1;Vertex vertices[]={{{-w/2,-h/2},{0,1}},{{w/2,-h/2},{1,1}},{{-w/2,h/2},{0,0}},{{w/2,h/2},{1,0}}};
simd_uint2 dims={(unsigned)width,1};
auto pass=[MTLRenderPassDescriptor renderPassDescriptor];pass.colorAttachments[0].texture=output;
pass.colorAttachments[0].loadAction=MTLLoadActionDontCare;pass.colorAttachments[0].storeAction=MTLStoreActionStore;
auto cb=[queue commandBuffer];auto enc=[cb renderCommandEncoderWithDescriptor:pass];
[enc setRenderPipelineState:pipeline];[enc setVertexBytes:vertices length:sizeof(vertices) atIndex:0];
[enc setVertexBytes:&dims length:sizeof(dims) atIndex:1];[enc setFragmentTexture:source atIndex:0];
[enc setFragmentBytes:params length:length atIndex:0];[enc drawPrimitives:MTLPrimitiveTypeTriangleStrip vertexStart:0 vertexCount:4];
[enc endEncoding];[cb commit];[cb waitUntilCompleted];need(cb.status==MTLCommandBufferStatusCompleted,cb.error.description?:@"GPU failure");
std::vector<float>result(input.size());[output getBytes:result.data() bytesPerRow:width*16 fromRegion:MTLRegionMake2D(0,0,width,1) mipmapLevel:0];return result;
}
static id<MTLRenderPipelineState> pipeline(id<MTLDevice>device,id<MTLLibrary>library) {
auto d=[MTLRenderPipelineDescriptor new];d.vertexFunction=[library newFunctionWithName:@"vertexShader"];
d.fragmentFunction=[library newFunctionWithName:@"fragmentShader"];d.colorAttachments[0].pixelFormat=MTLPixelFormatRGBA32Float;
NSError *error=nil;auto result=[device newRenderPipelineStateWithDescriptor:d error:&error];need(result!=nil,error.description);return result;
}
static NSArray *rgb(const std::vector<float>&v,NSUInteger pixel) {
NSMutableArray *a=[NSMutableArray array];for(int c=0;c<3;c++){
float x=v[pixel*4+c];[a addObject:std::isfinite(x)?(id)@(x):(id)[NSString stringWithFormat:@"%g",x]];
}return a;
}
int main(int argc,const char *argv[]) { @autoreleasepool { @try {
need(argc==2,@"usage: probe /absolute/report.json");
NSString *cstPath=@"/Library/Plug-Ins/FxPlug/Colour Space Transform.app/Contents/PlugIns/Colour Space Transform XPC Service.pluginkit/Contents/Resources/default.metallib";
NSString *basisPath=@"/Library/Plug-Ins/FxPlug/BASIS.app/Contents/PlugIns/Basis XPC Service.pluginkit/Contents/Resources/default.metallib";
need([digest(cstPath)isEqual:@"b38165dd86bb6e038f7835373dadb51a54a0ad266c67672ff8fcd9548641c2d3"],@"CST identity changed; re-inspect before probing");
need([digest(basisPath)isEqual:@"e164080db3a6d553a0e75d377ac3c5bd28455bddd8a97640d9de6c74e0d105f3"],@"BASIS identity changed; re-inspect before probing");
auto device=MTLCreateSystemDefaultDevice();need(device!=nil,@"Metal device unavailable");auto queue=[device newCommandQueue];
NSError *error=nil;auto cst=[device newLibraryWithURL:[NSURL fileURLWithPath:cstPath] error:&error];need(cst!=nil,error.description);
auto basis=[device newLibraryWithURL:[NSURL fileURLWithPath:basisPath] error:&error];need(basis!=nil,error.description);
auto cp=pipeline(device,cst),bp=pipeline(device,basis);
const float levels[]={0,.001f,.01f,.18f,1,2,4,16,64};std::vector<float>gray;
for(auto v:levels)gray.insert(gray.end(),{v,v,v,1});
CSTParams forward={22,20,22,1002,1},reverse={22,1002,22,20,2};
auto mapped=render(device,queue,cp,gray,&forward,sizeof(forward));
auto restored=render(device,queue,cp,mapped,&reverse,sizeof(reverse));
NSMutableArray *mapping=[NSMutableArray array];for(NSUInteger i=0;i<sizeof(levels)/sizeof(float);i++)
[mapping addObject:@{@"sourceLinear709":@(levels[i]),@"displayGamma24":rgb(mapped,i),@"reverseToLinear709":rgb(restored,i)}];
std::vector<float>codes;for(double v:{.001,.01,.18,1.0,4.0}){float c=(float)encodeDI(v);codes.insert(codes.end(),{c,c,c,1});}
BasisParams b={};b.colorspace=10;b.exposure=2;b.contrast=b.pivot=b.trimLow=b.trimHigh=b.shadowPivot=b.hiPivot=b.saturation=1;
b.trimToeStrength=8.5;b.trimShoulderStrength=4.5;b.chromaMix=.5;
// Isolate the exposure operation rather than asserting a whole tone stack is neutral.
b.bypassBalance=b.bypassTone=b.bypassContrast=1;
auto exposed=render(device,queue,bp,codes,&b,sizeof(b));NSMutableArray *exposure=[NSMutableArray array];unsigned maximumHalfULP=0;
for(NSUInteger i=0;i<codes.size()/4;i++){
float inputHalf=(float)(__fp16)codes[i*4];double expected=encodeDI(decodeDI(inputHalf)*2);
__fp16 reference=(__fp16)expected,actual=(__fp16)exposed[i*4];uint16_t referenceBits,actualBits;
std::memcpy(&referenceBits,&reference,2);std::memcpy(&actualBits,&actual,2);
unsigned halfULP=unsigned(std::abs(int(referenceBits)-int(actualBits)));maximumHalfULP=std::max(maximumHalfULP,halfULP);
[exposure addObject:@{@"inputCode":@(codes[i*4]),@"shaderInputHalf":@(inputHalf),@"expectedCodeDouble":@(expected),@"actualCode":rgb(exposed,i),@"absoluteCodeError":@(std::fabs(expected-exposed[i*4])),@"halfULPAgainstRoundedReference":@(halfULP)}];
}
NSString *dayuPath=@"/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/Resources/default.metallib";
need([digest(dayuPath)isEqual:@"6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d"],@"Dayu identity changed; re-inspect before probing");
auto dayu=[device newLibraryWithURL:[NSURL fileURLWithPath:dayuPath] error:&error];need(dayu!=nil,error.description);
auto dp=[device newComputePipelineStateWithFunction:[dayu newFunctionWithName:@"dyColorManagement"] error:&error];need(dp!=nil,error.description);
// Matches DYToolUniforms(new primary) + DYCMRender at the audited source revision.
// It does not simulate the tool scheduler, masks, or the full host render.
DayuRenderParams p={};p.input={22,1002,16,10,2};p.output={16,10,22,1002,1};p.basis=b;
p.basis.exposure=1;p.basis.bypassBalance=p.basis.bypassTone=p.basis.bypassContrast=0;p.stages=7;
const float hostLevels[]={.01f,.18f,.5f,1,2};std::vector<float>host;
for(float level:hostLevels)host.insert(host.end(),{(float)(__fp16)level,(float)(__fp16)level,(float)(__fp16)level,1});
auto td=[MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA32Float width:5 height:1 mipmapped:NO];td.storageMode=MTLStorageModeShared;td.usage=MTLTextureUsageShaderRead|MTLTextureUsageShaderWrite;
auto source=[device newTextureWithDescriptor:td],dest=[device newTextureWithDescriptor:td];
[source replaceRegion:MTLRegionMake2D(0,0,5,1) mipmapLevel:0 withBytes:host.data() bytesPerRow:80];
auto cb=[queue commandBuffer];auto e=[cb computeCommandEncoder];[e setComputePipelineState:dp];[e setTexture:source atIndex:0];[e setTexture:dest atIndex:1];
[e setBytes:&p length:sizeof(p) atIndex:0];float amount=1;[e setBytes:&amount length:sizeof(amount) atIndex:1];
[e dispatchThreads:MTLSizeMake(5,1,1) threadsPerThreadgroup:MTLSizeMake(5,1,1)];[e endEncoding];[cb commit];[cb waitUntilCompleted];need(cb.status==MTLCommandBufferStatusCompleted,cb.error.description?:@"Dayu GPU failure");
std::vector<float>dayuResult(20);[dest getBytes:dayuResult.data() bytesPerRow:80 fromRegion:MTLRegionMake2D(0,0,5,1) mipmapLevel:0];
NSMutableArray *dayuRows=[NSMutableArray array];for(NSUInteger i=0;i<5;i++)[dayuRows addObject:@{@"hostLinearInput":@(host[i*4]),@"newPrimaryDefaultMappingOutput":rgb(dayuResult,i)}];
NSDictionary *report=@{@"schema":@1,@"date":@"2026-11-03",@"device":device.name,
@"authority":@"controlled shader execution; original installed Metal libraries",
@"cstSHA256":digest(cstPath),@"basisSHA256":digest(basisPath),
@"cstForwardThenReverse":mapping,@"basisDIExposurePlusOneStop":exposure,@"basisExposureMaximumHalfULP":@(maximumHalfULP),
@"dayuSHA256":digest(dayuPath),@"dayuNewPrimaryDefaultMapping":dayuRows,
@"limitations":@[@"Not a Final Cut Pro render, camera import test or whole-application CMS certification.",@"RGBA32Float transport; target shaders can quantize samples/results internally to half.",@"CST inverse display mapping is not assumed to be an inverse of the forward DRT.",@"DI formula follows Blackmagic public specification; finite samples and exposure-isolation bypasses only.",@"Dayu primary rows test the actual installed color kernel with source-derived new-layer parameters, not the whole scheduler/UI."]};
NSData *json=[NSJSONSerialization dataWithJSONObject:report options:NSJSONWritingPrettyPrinted|NSJSONWritingSortedKeys error:&error];need(json!=nil,error.description);
need([json writeToFile:[NSString stringWithUTF8String:argv[1]] options:NSDataWritingAtomic error:&error],error.description);
puts([[NSString alloc]initWithData:json encoding:NSUTF8StringEncoding].UTF8String);return 0;
} @catch(NSException *e) {fputs(e.reason.UTF8String,stderr);return 1;} }}
+156
查看文件
@@ -0,0 +1,156 @@
# 三个目标插件的色彩管理分析与大鱼调色改进方案
日期:2026年11月3日,Asia/Shanghai。大鱼调色源码基线 `d0b4e9d2ba1cd27b8677cfb723f540deb9027cbe`,正式安装版1.7.4(52);本次仅增加研究、探针和方案记录,没有修改产品渲染、模板或安装。
建议保留现有算法作为有版本的兼容管线,建立独立的新版根级色彩管理:明确宿主实际空间与用户声明输入、让各调色工具在适合的空间工作、统一印片与输出顺序,并限制每条场景输入链的显示渲染次数。优先修复新增一级层的默认映射行为,再接入已有的公开OCIO与ICC基础设施。
需要修正上一轮评估的措辞:固定sRGB编解码桥本身可以构成可逆的码值载体,不能单凭该公式推断全部FCP画面有错。风险在于载体是否匹配宿主交付的实际数值、上游是否已经进行相机或显示变换,以及返回像素是否符合宿主契约。还需区分“跟随宿主”与“场景参考”:宿主已管理的像素可能已经过显示渲染,转换为宽色域不能恢复已丢失的场景信息。
**1.目标身份与调查边界**
| 目标 | 安装版本 | 核心职责 | 本轮证据 |
| --- | --- | --- | --- |
| BASIS.app | 1.0(8) | 在指定编码下进行一级调色 | 当前arm64反编译、同SHA既有AIR研究、原版GPU曝光探针 |
| Colour Space Transform.app | 2.0(8) | 输入/输出曲线与色域变换,附显示映射 | 匹配快照与当前发行字节复核、原版GPU正反映射探针 |
| ColorFinale.app | 2.16.2(625) | 根CMS、工具工作域、LUT、胶片与输出管理 | 同SHA既有CMS证据、新补宿主入口/CIContext/回写静态调用链、官方文档 |
完整文件与arm64切片摘要见 [target-identities.json](target-identities.json)。研究只读用户明确指定的安装目标;派生切片和完整反编译证据留在本机缓存,未将原版二进制、私有着色器或LUT资源加入仓库。静态调用证据、历史运行证据和本轮GPU探针分开记录;没有把静态可达性写成实机执行。
**2.BASIS的色彩逻辑**
BASIS向宿主请求 `DesiredProcessingColorInfo=2`,本机FxPlug SDK对应 `RGB_GAMMA_VIDEO`,说明为视频Gamma 2.2。它不是独立识别摄像机或负责最终显示输出的完整CMS;其“Color Space”主要决定怎样解释送入的编码值。菜单有22个模式,其中KOLOR Default与DaVinci Intermediate是不同模式。
已恢复并与原版有限样本对照的运算顺序是:所选曲线解码 → 线性曝光乘法与RGB色彩平衡 → 编码与饱和度处理 → 影调、对比、趾部/肩部等曲线 → 色度混合 → 输出。它针对不同操作切换运算域,支持“曝光按档位乘以2”的合理模型。色彩平衡色轮是一种RGB增益调整,不能仅因名称相似就当作带明确照明体、白点与色适应定义的摄影白平衡。
本轮直接调用正式原版着色器,在DaVinci Intermediate模式、曝光+1EV且旁路其他影调/对比操作的五个中性灰样本上,与Blackmagic公开公式的差异最大为1个half ULP。说明这组曝光行为有数值基础;不能外推为所有模式、颜色和参数的独立标准认证。原版着色器会经过half精度边界,使用32位输出纹理不等于内核全程32位。
证据:`ev_50cd56935bf6cf1f094ab18a87ec4fb4232745b438b362bd1ee5c377151ae152`(属性);`ev_e641b255869e8e1115bb281a6efb7b332cc2bc43edbaef769d1465c062de2292`(常量2);`ev_02df5b28e8027cb62692d5192ef9cfad1210fe271f8cb36131b2a98423c9b016`(UI到GPU参数);本轮 [gpu-observations.json](gpu-observations.json)。公式依据:[Blackmagic DWG与DI规范](https://documents.blackmagicdesign.com/InformationNotes/DaVinci_Resolve_17_Wide_Gamut_Intermediate.pdf)。
**3.Colour Space Transform的色彩逻辑**
CST也请求视频Gamma编码RGB(数值2)。CPU冻结输入色域、输入曲线、输出色域、输出曲线和映射标志,GPU完成解码、色域矩阵/相关分支、可选显示映射、再编码。曲线和色域独立选择;它是明确指定输入的转换工具,当前检查路径没有摄像机自动识别步骤。
原版按曲线ID分类:大于1000的Gamma 2.2/2.4/2.6视为显示曲线,其他曲线视为场景侧。自动标志由“输入是否显示、输出是否显示”组成。场景→显示会调用自定义DRT;显示→场景会调用另一个逆向形状函数。这套规则体现作者的渲染选择,不等同于Academy ACES输出,也不代表任意正反组合可逆。
本轮原版GPU实测,线性Rec.709经其DRT转Gamma2.4,再使用其显示→场景映射返回线性Rec.709:
| 初始线性灰 | 显示编码结果 | 逆向映射后线性灰 |
| --- | --- | --- |
| 0.18 | 0.402344 | 0.114380 |
| 1 | 0.763672 | 0.767090 |
| 4 | 0.927734 | 1.839844 |
| 16 | 0.985352 | 2.689453 |
| 64 | 1 | 3 |
两个方向不能用作无损的技术往返。这不否定单向显示渲染的创作价值;它直接影响“新增一个默认一级层应保持画面”及反复进入/退出工作空间的设计。DRT末端存在0–1限制,逆向函数也有有限范围,已被压缩或剪掉的信息不能通过逆变换恢复。
证据:`ev_bbe42e9acd5c1e0470681d56d3b4dfcd2e26b3fe1556fac4c23c999751feed84`(属性);`ev_db7337a59c2f40d85a22ecad704ea295ed7f46e65626b9e919b5641ef1bc861b`(常量2);`ev_c8e5be75668f4e69851ffc9d23901083bac7c356252b89287b9d891837bec5e5`(映射标志);[本轮GPU数据](gpu-observations.json)。原着色器SHA与既有AIR研究完全一致,见证据索引。
**4.Color Finale的色彩管理架构**
Color Finale把根级输入管理、工具工作空间与最后输出分开。当前正常入口有四种:
| 模式 | 已观察行为 | 使用边界 |
| --- | --- | --- |
| Assume Video | 新建默认;按宿主视频空间解释已经匹配的输入 | 已经由上游相机LUT还原的素材可走此入口 |
| Assume Log | 固定一般校正后进入视频路径 | 属于通用估计,静态路径没有相机识别或逐片分析 |
| ACES | 相机IDT → ACES → 选定工作编码,末端单独输出 | 新建工作空间ACEScct;旧归档缺字段回退ACEScc |
| Input LUT | 应用输入LUT并保存其输出空间声明 | 支持声明709 Gamma、2020 Gamma、PQ、HLG等输出语义 |
Generic输入分支实际使用所选ODT的逆变换,不能将它宣传为任意未知相机Log的准确解码。产品内部100/200/210等修订值也不能直接命名为Academy ACES 1.0/2.0/2.1。
正常ACES主链是:输入CMS → 基础校正/色卡匹配(有历史版本顺序差异)→ 图层树 → 胶片处理 → 印片LMT → ODT。基础校正主动转入线性域,Log Wheels/Telecine等使用stack空间;并非所有工具全程使用同一种Log编码。LUT也可以先适配到其期望空间,处理后返回工作空间。印片位置在RRT/ODT之前,与大鱼当前显示链后接入印片的方式不同。[官方CMS说明](https://docs.colorfinale.com/docs/inspector/cms/)、[官方印片说明](https://docs.colorfinale.com/docs/inspector/film-emulation/)。
当前产物保存有9种ODT、8种印片外观及具体摄像机输入表。菜单覆盖和“原版组件一致”只能支持各自已检查范围,不能代替整条CMS、所有输入和半透明图像的准确性验证。Color Finale的旧归档还显式保留Legacy ODT路径,升级时不会简单把所有历史输出替换为新算法。
新补的正常宿主衔接证据表明:
1. 属性字典请求视频Gamma RGB(2)。`FTProAPIAccessing`读取宿主 `colorPrimaries`,区分709/2020,再提供相应逻辑空间;当前实现通过API manager的KVC取值,不应照搬为大鱼对所有宿主的稳定公开API保证。
2. `FTCIRenderer`保存destination tile的实际CGColorSpace,用它包装输入图像。`CIImage`入口带有这个颜色空间标签;标签本身不表示已执行摄像机IDT。
3. 内部CIContext把自动工作空间和输出空间设为NSNull,处理空间和变换由自身CMS明确执行。
4. 最终写宿主纹理时Core Image的colorSpace参数为NULL,避免再自动叠加一轮输出转换。
因此可借鉴的是颜色语义、入口标签和变换责任的分离。仅把CIContext打开自动色彩管理,也不会自动得到相机IDT、完整ACES显示渲染和正确印片。
关键证据:`ev_e4aea5e08f51d466349c9b197ce4b2cd24677316f0593a69a4238b8575afda6d`及常量字典读数;`ev_50235366fb24a6970669d43fdbc342e4a7ecc82d3699576b3d63b2d5f1910846`(709/2020);`ev_77ac74cf117fa08eed62cb602525c2f17419ae65c561524f7a45bbbd81ecd186`(正常渲染);`ev_1144f3b54e28a3a29e13899b36fb6688d74086a75f89eb0b7d9adffbe90d91aa`(入图标签);`ev_394c260352b0906c3854e955f30582295f6c2029a2832aaa4379a3c067aaca82`(CIContext);`ev_59dc53561198edfe1effb986550de215d55316f734fa5235ffd6b4d2793ee9bd`(回写NULL)。主CMS与LMT/ODT顺序见 [evidence-index.json](evidence-index.json)。
**5.大鱼调色当前最具体的问题**
| 优先级 | 当前实现 | 影响及处理 |
| --- | --- | --- |
| P0 | 请求linear RGB,固定sRGB运输桥,未读src/dst colorSpace或宿主primaries | 与三个目标的宿主接入策略不同。先测真实数值契约,再决定新模式适配;旧模式保留 |
| P0 | 新独立一级层显式开启自动映射,input=output仍进工作空间并返回 | 逆DRT与正DRT不能相消,新层默认不具备严格中性;新版一级层应gradeOnly |
| P0 | 根级输出先完成,后段与印片继续按sRGB/709假设处理 | 选择2020/P3不能保证后续模块仍正确;每个算子必须声明并适配输入域 |
| P0 | CST mix直接混合输入代码值与另一输出编码值 | 属于旧创意混合语义;新版应在共同工作/宿主线性域混合 |
| P1 | 活跃减色夹断0–1,部分HSL/白平衡/色轮来自RGB8 17³表 | 适合有明确限制的传统SDR风格路径,不能当作全扩展范围场景算法 |
| P1 | 输出菜单、渲染算法、目标峰值和宿主线性回写没有统一描述 | PQ/HLG编码不能直接写进请求linear的目标纹理;需明确显示渲染责任和物理边界 |
| P1 | 静态Cube依赖伪造sRGB载体网格走生产链 | 应使用明确颜色描述评估;补非格点误差、33/65及有限域/shaper合同 |
独立一级层的事实来源是 `DYNewTool`、`DYToolUniforms`和`DYToolIsNeutral`。它不会默认再次按Sony S-Log3解码:新层input/output默认同为709/Gamma2.4,但显式toneMapping=1使其走逆向与正向映射。不能把问题描述成“每层重复Sony还原”。
本轮用正式安装的 `dyColorManagement`,配置为上述新层默认参数,在alpha=1、无蒙版的直接内核检查中,得到线性中性灰0.180054→0.120667、1→0.796875、2→0.796875。参数与当前源代码生成结果对应;这项检查隔离了颜色内核,没有冒充完整FCP/UI或调度器验收。它足以要求新增一级层的中性行为成为优先修复和真实宿主复测项。
源码位置:`DYPlugIn.mm:25,30–36`;`DYGrade.metal:294–313`;`DYRenderer.mm:45–49,163–177,199–211`;`DYToolState.mm:65,120–126`;`DYFilmMath.h:16–21,34–40`;`DYColorTables.mm:104–147`。本轮直接内核结果见 [gpu-observations.json](gpu-observations.json)。
**6.分阶段实施方案**
第一阶段先补诊断并锁定旧画面。新增 `DYColorContext`,在合适的宿主回调冻结项目primaries,在render中核对源/目标 `FxImageTile.colorSpace`,记录空间名称/ICC摘要、线性/非线性、alpha与纹理精度。API或元数据不足时显示未知并保留兼容行为,不静默当作709。缓存键包含这份颜色上下文,避免同一XPC内多个项目互相污染。此阶段不全局改写旧sRGB桥。
第二阶段建立独立版本的根CMS,提供三种明确入口:跟随宿主、专家相机编码、输入LUT。跟随宿主按实际空间接入,不再无条件套默认Sony解码;已渲染输入保留其显示参考语义。相机编码路径要求通过对应FCP设置和数值夹具验证,关闭某个LUT开关本身不能证明拿到了原始代码值。输入LUT附内容hash、输入/输出空间与scene/display语义。上游转换状态无法可靠读取时,保留用户声明与“未知”状态,不能伪装自动检测。
第三阶段拆开根输入、调色工具、显示渲染和宿主输出。多个一级层仅调整统一工作空间中的画面;相机输入和显示映射由根CMS统一负责。印片作为具有AP1/ACEScct合同的look阶段接入匹配的渲染变换之前。传统709 LUT和曲线保留明确的显示域修饰区域;HDR模式下未完成扩展范围适配的工具须明确限制,不能默默夹断。新版强度和蒙版在共同域混合,恒等/关闭/mix=0直接旁路,避免多余编解码及U/P往返。
推荐新版语义主链:
```text
实际宿主像素与颜色描述
→ 输入边界与输入解释
→ 统一工作空间
→ 一级与局部调色(按工具声明适配线性/Log域)
→ 场景外观与印片
→ 一次明确的显示渲染(仅在插件负责时)
→ 明确的显示域修饰
→ 转回宿主要求的颜色空间与alpha合同
```
“一次”指根级场景→显示渲染的责任,不代表所有曲线、艺术映射或系统显示管理只能出现一次。宿主已完成显示渲染的路径不应再默认执行一轮DRT;最终显示器呈现仍由宿主及系统负责。
第四阶段复用兄弟工程现成的公开CMS基础。`大鱼调色盘`固定节点 `f8950384e514685c8809fe8e8ee2dd5f16ad0bd7` 已有OpenColorIO 2.5.2、`studio-config-v2.2.0_aces-v1.3_ocio-v2.4`、ICC边界、CPU/Metal、依赖锁与许可证。可提炼 `DYColorManagement.cpp`、`DYColorManagementGPU.mm`、`DYColorManagementState.mm`、`DYColorProfile.mm`、`DYColorBoundary.mm` 及必要Core声明,构建缓存改用本产品com.dayu.color,不链接兄弟APP或依赖研究缓存。
现成模块的工作空间只允许ACEScg/cc/cct,DI目前只是输入选项。最短的标准参考路径是新模式采用ACEScct并适配现有BASIS;现有DWG/DI继续保留在兼容路径。若新版也提供DWG/DI工作空间,需要扩展工作空间合同、白点/色域适配并进入同样的验收矩阵,不能仅解锁菜单。OCIO 2.5.2、config修订和ACES 1.3是三个不同版本号;不能误写成ACES 2.5.2,也不能借用原版内部210命名。
第五阶段补齐输出目标与高级能力。将tone mapping、目标色域压缩、显示编码分开保存;固定公开输出变换及其版本,按所选算法声明参考白、黑位、峰值与显示原色。提供明确的709 SDR、P3和2020 PQ/HLG目标,但写回前仍适配宿主空间。再逐步增加有定义的场景白平衡、剪切/超色域诊断、参考帧与镜头匹配。是否全程32位由压力测试和误差预算决定,不能把half直接等同不专业,也不能把float纹理等同全程高精度。
**7.兼容与数据模型**
保留当前1312字节uniforms ABI、原参数ID和预设v1–v6读取。新版颜色状态独立归档,包含 `pipelineVersion`、输入模式/声明来源、实际host描述、工作空间、scene/display语义、渲染责任、输出目标/算法版本、LUT空间与内容hash、兼容修订。GPU新常量使用独立buffer,不继续把所有元数据塞进冻结的还原核前缀。
旧工程和旧预设固定走legacyV1;新模式单独分配schema与预设版本。不能依赖“新参数缺省值”识别旧工程:本项目已有FCP省略默认值、模板更新影响旧实例的实际记录。显式迁移操作应可撤销,并保留迁移前状态;不承诺自动迁移后与旧艺术外观逐像素一致。
alpha需逐算子约定。当前产品对非正alpha清零,兄弟工程支持隐藏RGB及区间外alpha,并对极小alpha采用1e-5分母下限;这两种语义不能直接互换。既有Color Finale印片探针也显示原版组件在半透明时直接拼链与alpha=1颜色函数不同。因此先定义新版straight/premultiplied合同,再验证所有转换、空间效果和蒙版;旧工程保留旧行为。
**8.验收与退出条件**
| 组别 | 必须覆盖 | 判断依据 |
| --- | --- | --- |
| 宿主边界 | FCP标准/宽色域库、709/2020、src/dst空间、摄像机LUT/Color Conform组合 | 实际记录tile空间、已知代码值夹具和正式导出;不能只看菜单 |
| 基础科学 | 官方相机曲线、矩阵/跨白点、18%灰、曝光档位、中性轴 | 独立double公式/官方golden vectors,避免仅以同源核为oracle |
| 范围与连续性 | 近黑、负值、超白、灰阶渐变、强饱和LED | 有限值、连续性、单调性、色相及目标色域;HDR用相对/ULP等合适误差预算 |
| 顺序 | 多一级层、空层、印片前后、scene/display工具 | 空层保持像素;输入和DRT执行次数符合计划 |
| alpha与空间 | 0/极小/0.5/1及约定支持的扩展alpha、蒙版、边界/原点 | 隐藏RGB与U/P合同、无意外彩边、预览/导出一致 |
| 兼容 | 真实旧FCP工程、v1–v6预设、撤销/重做/冷重开 | 默认升级保持旧像素;显式迁移可回退 |
| LUT | 33/65、非格点随机样本、有限域或shaper | 给出误差范围;空间/时间效果不能伪装静态Cube |
| 工程交付 | Release构建、签名、公证、正式路径启动/宿主导出 | 按全局交付约定完成;本次研究不代表新版已经实现或发布 |
本轮完成了目标身份、主要管理架构、宿主包装策略、原版有限GPU行为及按文件可实施的改造方案。真实FCP摄像机入口、宽色域/HDR导出、显示器EDR和跨素材精度仍属于实施阶段的必需验收,不能由本轮离线探针替代。
**9.复现与恢复**
探针仅执行本机目标Metal函数,不启动目标GUI或FCP。需macOS、Apple Metal与Xcode命令行工具,原版库SHA改变时探针会停止。源码 [probe.mm](probe.mm),输出 [gpu-observations.json](gpu-observations.json),完整证据位置与摘要 [evidence-index.json](evidence-index.json)。
```sh
xcrun clang++ -std=c++17 -fobjc-arc -framework Foundation -framework Metal research/cms-audit-20261103/probe.mm -o /tmp/dayu-cms-probe
/tmp/dayu-cms-probe /tmp/dayu-cms-observations.json
```
仓库为 `https://dayu.media/git/dayu/dayu-color.git`,分支main。探针与身份检查点 `a1e49e2eb55d1175e1ea52dfcf0f7aaa48eaab7b` 已推送并核对远端;本报告的最终提交可由 `git log -- research/cms-audit-20261103` 定位。本研究无LFS、子模块或新增二进制依赖。远端保存包含本文、探针、数值结果、目标身份和精简取证记录;完整REA缓存和第三方APP不属于远程恢复承诺,未来重跑需重新安装对应版本目标。
@@ -0,0 +1,67 @@
{
"schema": 1,
"date": "2026-11-03",
"timezone": "Asia/Shanghai",
"productSourceCommit": "d0b4e9d2ba1cd27b8677cfb723f540deb9027cbe",
"targets": [
{
"name": "BASIS",
"version": "1.0 (8)",
"path": "/Library/Plug-Ins/FxPlug/BASIS.app/Contents/PlugIns/Basis XPC Service.pluginkit/Contents/MacOS/Basis XPC Service",
"bytes": 305520,
"sha256": "4dcf7bc7d0efd97b6aa733049fe55d4cbeebf15f4490ffd490875ea8fc0b5929",
"arm64": {
"offset": 163840,
"bytes": 141680,
"sha256": "55be57c9f17a94f6fc36beaf6d260a0d2ea8fe8a65f7898fff8f9b66e0b02f3f"
},
"metal": {
"path": "/Library/Plug-Ins/FxPlug/BASIS.app/Contents/PlugIns/Basis XPC Service.pluginkit/Contents/Resources/default.metallib",
"bytes": 26992,
"sha256": "e164080db3a6d553a0e75d377ac3c5bd28455bddd8a97640d9de6c74e0d105f3"
}
},
{
"name": "Colour Space Transform",
"version": "2.0 (8)",
"path": "/Library/Plug-Ins/FxPlug/Colour Space Transform.app/Contents/PlugIns/Colour Space Transform XPC Service.pluginkit/Contents/MacOS/Colour Space Transform XPC Service",
"bytes": 272672,
"sha256": "48b4aa2bc6a79679386096234bf2124d4cd4d1ad75db46d080dd19f75a61bbf5",
"arm64": {
"offset": 131072,
"bytes": 141600,
"sha256": "409c1406668ef855bc55325a106cac13f7ef7527cff21d627cadd8308c91e444"
},
"metal": {
"path": "/Library/Plug-Ins/FxPlug/Colour Space Transform.app/Contents/PlugIns/Colour Space Transform XPC Service.pluginkit/Contents/Resources/default.metallib",
"bytes": 39288,
"sha256": "b38165dd86bb6e038f7835373dadb51a54a0ad266c67672ff8fcd9548641c2d3"
}
},
{
"name": "ColorFinale",
"version": "2.16.2 (625)",
"path": "/Applications/ColorFinale.app/Contents/PlugIns/ColorFinale.pluginkit/Contents/MacOS/ColorFinale",
"bytes": 4098720,
"sha256": "49121a6f5487060d322a59e7658166ab772e8a56f7dc1bcfa9d433a89436b30f",
"arm64": {
"offset": 16384,
"bytes": 4082336,
"sha256": "748f0119cf3a77e0d53e4c3f2b48dfa6fe7227dd44cbd75a28b070e7b962adc4"
}
},
{
"name": "GradeKit",
"path": "/Applications/ColorFinale.app/Contents/PlugIns/ColorFinale.pluginkit/Contents/Frameworks/GradeKit.framework/Versions/A/GradeKit",
"bytes": 1462656,
"sha256": "e868a8c6df64bf03b7c24af5657c5ac7a2259a1943dfe06e01dbb7881df018a3"
},
{
"name": "RenderingEngine",
"path": "/Applications/ColorFinale.app/Contents/PlugIns/ColorFinale.pluginkit/Contents/Frameworks/RenderingEngine.framework/Versions/A/RenderingEngine",
"bytes": 1072736,
"sha256": "32dca93459347e5ad363cb145d0ccf84b933b2045eee2c9535676a01744b84e3"
}
],
"scope": "Read-only inspection of explicit installed targets; derived slices remain local cache; no vendor binary or LUT resource added to repository."
}
@@ -0,0 +1,25 @@
# 1.8.1:恢复一级 CST,延后主输出
基线:aa9a8d24f298a3bd9a52bf6c7078a0a9a93a78cc;正式 1.8.0(55)。用户指出新版固定 ACEScct 隐藏并覆盖原有一级 CST,要求修正。
增加独立版本化的“一级 CST · 延后输出”方式。输入、工作曲线/色域、输出、映射来自原一级参数,不再由全局 ACES 状态覆盖。旧 nil/v2 状态的渲染保持,以免已保存工程变色。
主链:宿主线性像素的既有显式码值载体 → 主输入 CST(仅曲线/色域,无显示映射)→ 用户选定的工作域一级调色 → 独立一级层 → 印片(正确往返 ACEScct/AP1)→ 主输出 CST/可选映射 → SDR 修饰 → 实际宿主配置。主输出不在输入或额外一级层前执行。
独立一级层默认继承主工作曲线/色域,输入/输出相同,映射关闭。其明确设置的输入/工作/输出 CST 均执行;处理后按声明的输出域返回主工作域。混合与蒙版在 AP1 线性中执行。额外映射只在用户明确开启时执行,主输出则在这些层和印片之后执行。
未开启输出或选择 Log/线性数据输出时,保留声明的码值并经显式载体交回宿主;有界 SDR 修饰不在这种数据输出上偷偷运行。显示输出以声明的曲线/色域解释,并转换到实际宿主空间。
原算术 AIR 保留原入口;仅在新流程提供 float32 输入/输出入口,消除原 half 边界的重复量化,内部曲线、矩阵和调色算术沿用原图。需对原入口、OCIO 与生产入口分别回归。
边界:FxPlug 收到的是上游 FCP 像素,手动模式不能绕开或恢复上游已经进行的相机 LUT、颜色符合或裁切。界面明确说明。其他旧工具继续作为输出后的 SDR 修饰,不声称全部已成为场景域/HDR 算法。旧工程不自动升级;通过明确选择启用新版。
验收:恢复输入/工作/输出选择;Sony Log→DWG/DI 与 ACEScct 工作;高光先降曝光后映射的独立参考;新层中性;局部 CST、蒙版与混合;印片域往返;显示/码值输出及错误路径;旧 v1/v2 回归;正式路径 FCP 保存重开、实际导出;签名、公证、PKG/Release 与远程恢复。
独立层输入/工作/输出默认随主工作空间更新;手动修改其中一段的曲线或色域后,该段停止跟随,另外两段继续更新。`primaryFollow` 仅是作者状态,实际渲染仍使用可见的明确参数,绝不在渲染阶段偷偷覆盖。主一级眼睛停用时旁路其完整 CST 模块,其余工具沿用原有宿主直通流程。
“线性”工作曲线采用明确的线性↔DI适配器进入已验证的 BASIS 模式,避免原内核编号对应错误。Log/线性纯直通不引入无意义的编码往返。Cube 使用声明的输入与输出码值;显示预览另按实际宿主颜色配置处理。
受控宿主样本是带 sRGB 标签的 16-bit PNG Log 码值载体,用于核对本插件链路,不代表验证任意相机文件的上游 FCP 路由。
候选 56 的真实 FCP 验收证明:即使 `defaultVal` 与注册缺省保持 nil,修改模板 `dataValue` 仍会影响旧 nil 实例。已回滚该自动启用方案;57 保留模板原 nil 值,由用户明确选择 v3,旧 nil/v2 不自动迁移。候选 56 未制作发行包或 Release,旧版先行恢复。
@@ -0,0 +1,104 @@
{
"saturation": 6,
"y": [
0.5,
0.5,
0.5,
0.5,
0.5,
0.5866025686264038,
0.6732050776481628,
0.7598076462745667,
0.8464101552963257,
0.9330127239227295,
0.5866025686264038,
0.6732050776481628,
0.7598076462745667,
0.8464101552963257,
0.9330127239227295,
0.5,
0.4999999701976776,
0.4999999701976776,
0.4999999701976776,
0.4999999701976776,
0.4133974611759186,
0.32679492235183716,
0.24019235372543335,
0.15358981490135193,
0.06698727607727051,
0.41339749097824097,
0.32679495215415955,
0.24019242823123932,
0.1535899043083191,
0.06698739528656006,
0.5
],
"hues": 6,
"x": [
0.6000000238418579,
0.699999988079071,
0.800000011920929,
0.8999999761581421,
1,
0.550000011920929,
0.6000000238418579,
0.6499999761581421,
0.699999988079071,
0.75,
0.44999998807907104,
0.3999999761581421,
0.34999996423721313,
0.29999998211860657,
0.2499999701976776,
0.4000000059604645,
0.30000001192092896,
0.19999998807907104,
0.09999999403953552,
0,
0.45000001788139343,
0.4000000059604645,
0.3500000238418579,
0.30000004172325134,
0.2500000596046448,
0.550000011920929,
0.6000000834465027,
0.6500000953674316,
0.7000001668930054,
0.7500001788139343,
0.5
],
"pins": [
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1
],
"linked": true
}
+8 -6
查看文件
@@ -1,7 +1,7 @@
{
"archivesBase64": {
"9000": "AAAAAAAAAisqYnBsaXN0MDDUAQIDBAUGBwxYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V5ZWRBcmNoaXZlctIICQoLXERhdGFJc0xlZ2FjeV8QD0JsaW5kRGF0YU9iamVjdIACgAGjDQ4PVSRudWxsTxEBa2JwbGlzdDAw1AECAwQFBgcKWCR2ZXJzaW9uWSRhcmNoaXZlclQkdG9wWCRvYmplY3RzEgABhqBfEA9OU0tleWVkQXJjaGl2ZXLRCAlbQ3VzdG9tIERhdGGAAaULDBMZH1UkbnVsbNMNDg8QERJVZm9sZHNWc2NoZW1hViRjbGFzc4ACEAKABNMUFQ8WFxhXTlMua2V5c1pOUy5vYmplY3RzoKCAA9IaGxwdWiRjbGFzc25hbWVYJGNsYXNzZXNcTlNEaWN0aW9uYXJ5ohweWE5TT2JqZWN00hobICFfEBBEWUluc3BlY3RvclRva2VuoiIeXxAQRFlJbnNwZWN0b3JUb2tlbgAIABEAGgAkACkAMgA3AEkATABYAFoAYABmAG0AcwB6AIEAgwCFAIcAjgCWAKEAogCjAKUAqgC1AL4AywDOANcA3ADvAPIAAAAAAAACAQAAAAAAAAAjAAAAAAAAAAAAAAAAAAABBQgACAARABoAJAApADIANwBJAE4AWwBtAG8AcQB1AHsB6gAAAAAAAAIBAAAAAAAAABAAAAAAAAAAAAAAAAAAAAHrAA==",
"9001": "AAAAAAAAAjcqYnBsaXN0MDDUAQIDBAUGBwxYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V5ZWRBcmNoaXZlctIICQoLXERhdGFJc0xlZ2FjeV8QD0JsaW5kRGF0YU9iamVjdIACgAGjDQ4PVSRudWxsTxEBd2JwbGlzdDAw1AECAwQFBgcKWCR2ZXJzaW9uWSRhcmNoaXZlclQkdG9wWCRvYmplY3RzEgABhqBfEA9OU0tleWVkQXJjaGl2ZXLRCAlbQ3VzdG9tIERhdGGAAaULDBUbIVUkbnVsbNQNDg8QERITFFVwYXRoc1YkY2xhc3Ncc3BpZGVyTGlua2VkWnNwaWRlck1lc2iAAoAECYAA0xYXDhgZGldOUy5rZXlzWk5TLm9iamVjdHOgoIAD0hwdHh9aJGNsYXNzbmFtZVgkY2xhc3Nlc1xOU0RpY3Rpb25hcnmiHiBYTlNPYmplY3TSHB0iI1xEWUFzc2V0U3RhdGWiJCBcRFlBc3NldFN0YXRlAAgAEQAaACQAKQAyADcASQBMAFgAWgBgAGYAbwB1AHwAiQCUAJYAmACZAJsAogCqALUAtgC3ALkAvgDJANIA3wDiAOsA8AD9AQAAAAAAAAACAQAAAAAAAAAlAAAAAAAAAAAAAAAAAAABDQgACAARABoAJAApADIANwBJAE4AWwBtAG8AcQB1AHsB9gAAAAAAAAIBAAAAAAAAABAAAAAAAAAAAAAAAAAAAAH3AA==",
"9001": "AAAAAAAAAlEqYnBsaXN0MDDUAQIDBAUGBwxYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V5ZWRBcmNoaXZlctIICQoLXERhdGFJc0xlZ2FjeV8QD0JsaW5kRGF0YU9iamVjdIACgAGjDQ4PVSRudWxsTxEBkWJwbGlzdDAw1AECAwQFBgcKWCR2ZXJzaW9uWSRhcmNoaXZlclQkdG9wWCRvYmplY3RzEgABhqBfEA9OU0tleWVkQXJjaGl2ZXLRCAlbQ3VzdG9tIERhdGGAAaULDBcdI1UkbnVsbNUNDg8QERITFBUVVXBhdGhzViRjbGFzc1xzcGlkZXJMaW5rZWRfEA9jb2xvck1hbmFnZW1lbnRac3BpZGVyTWVzaIACgAQJgACAANMYGQ4aGxxXTlMua2V5c1pOUy5vYmplY3RzoKCAA9IeHyAhWiRjbGFzc25hbWVYJGNsYXNzZXNcTlNEaWN0aW9uYXJ5oiAiWE5TT2JqZWN00h4fJCVcRFlBc3NldFN0YXRloiYiXERZQXNzZXRTdGF0ZQAIABEAGgAkACkAMgA3AEkATABYAFoAYABmAHEAdwB+AIsAnQCoAKoArACtAK8AsQC4AMAAywDMAM0AzwDUAN8A6AD1APgBAQEGARMBFgAAAAAAAAIBAAAAAAAAACcAAAAAAAAAAAAAAAAAAAEjCAAIABEAGgAkACkAMgA3AEkATgBbAG0AbwBxAHUAewIQAAAAAAAAAgEAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAhEA",
"9002": "AAAAAAAAApUqYnBsaXN0MDDUAQIDBAUGBwxYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V5ZWRBcmNoaXZlctIICQoLXERhdGFJc0xlZ2FjeV8QD0JsaW5kRGF0YU9iamVjdIACgAGjDQ4PVSRudWxsTxEB1WJwbGlzdDAw1AECAwQFBgcKWCR2ZXJzaW9uWSRhcmNoaXZlclQkdG9wWCRvYmplY3RzEgABhqBfEA9OU0tleWVkQXJjaGl2ZXLRCAlbQ3VzdG9tIERhdGGAAawLDBEdHh8gJCotMDFVJG51bGzSDQ4PEFhkb2N1bWVudFYkY2xhc3OAAoAL0xITDhQYHFdOUy5rZXlzWk5TLm9iamVjdHOjFRYXgAOABIAFoxkaG4AGgAiACoAHWWJhc2VNYXNrc1ZsYXllcnNWc2NoZW1h0xITDiEiHKCggAfSJSYnKFokY2xhc3NuYW1lWCRjbGFzc2VzXE5TRGljdGlvbmFyeaInKVhOU09iamVjdNITDissoIAJ0iUmLi9XTlNBcnJheaIuKRAB0iUmMjNeRFlUb29sRG9jdW1lbnSiNCleRFlUb29sRG9jdW1lbnQACAARABoAJAApADIANwBJAEwAWABaAGcAbQByAHsAggCEAIYAjQCVAKAApACmAKgAqgCuALAAsgC0ALYAwADHAM4A1QDWANcA2QDeAOkA8gD/AQIBCwEQAREBEwEYASABIwElASoBOQE8AAAAAAAAAgEAAAAAAAAANQAAAAAAAAAAAAAAAAAAAUsIAAgAEQAaACQAKQAyADcASQBOAFsAbQBvAHEAdQB7AlQAAAAAAAACAQAAAAAAAAAQAAAAAAAAAAAAAAAAAAACVQA="
},
"parameters": [
@@ -3634,15 +3634,17 @@
],
"sourceSHA256": {
"template/tools/dump_model.mm": "04e04446aa351d774913bc25b06512fefe7969bdf4c6e471a91f1e9d6c4fc3b5",
"大鱼调色/Plugin/DYCSTTypes.h": "3372e3cd77248eeb374e54675d2902befceea8e00a2afc4f9543116ef3027696",
"大鱼调色/Plugin/DYCSTTypes.h": "ed5ba7e7ae35d1bba10e80a81184fa26b1f7eb582e47b2e45c3edd294889c76a",
"大鱼调色/Plugin/DYColorManagement.h": "b0a4cd1b8c45dbce90a7b4f30f72ebf95ecd382895e74e3bfeda0f7cdb185157",
"大鱼调色/Plugin/DYFilmMath.h": "945b7036c6aa6d27941a3bf96c4d70dec65a14b1747fba618e650738fa7108f0",
"大鱼调色/Plugin/DYFilmTypes.h": "c35a43b5b93988e8517e5db8f281da0dfd1e02f5b0e7bfb62e7345cec444a36d",
"大鱼调色/Plugin/DYModel.h": "80e88add97deeac7a9dc47d12f68b0245905786297de2e6553b3da15c729da6e",
"大鱼调色/Plugin/DYModel.mm": "bde987e48f79e5cf8e2e6bccc49cac27d420979d27e0e6859a27e98d0bd7bad7",
"大鱼调色/Plugin/DYManagedColor.h": "d5901d6ac11d93f3f4438dd8d48bb3a123d06d9b79ed39e8dca38db4261bc87a",
"大鱼调色/Plugin/DYManagedColor.mm": "d9d2688f26a51d1131ee63b415e0c09989616312d31eb3b636fd299f475ece08",
"大鱼调色/Plugin/DYModel.h": "a28652bd53aa9e1d085af1108c344b5d673c5e1b3731531e1bb2982efeb8708c",
"大鱼调色/Plugin/DYModel.mm": "29fea6064d3131119933401f554cc04e48cadf07d0c62f25b8d66795201396f8",
"大鱼调色/Plugin/DYSpiderState.h": "0c80747e41e8fc97762e301b011bd08c18865a825eaafde086ed79ace37b22f9",
"大鱼调色/Plugin/DYToolState.h": "28088ec819307a60f2e52334fd807a514c3ff8a550bc0efbe7069b68a6242320",
"大鱼调色/Plugin/DYToolState.mm": "7b113450ae43e0e5d478d8f0e4212b7d25e47d3cc8bc0d4d868ab58c98d3c56c",
"大鱼调色/Plugin/DYToolState.h": "0a83109d2c02626d6b9e7340b74be6e6a74f366f31f9d7622b4a88000d5ad7b9",
"大鱼调色/Plugin/DYToolState.mm": "be984c73f5c4e563e3ac8de2b911e33071773f3d823b6b2d631444d3aa2baea2",
"大鱼调色/Plugin/DYUniforms.h": "207d36b5b53ab084fa8eb3813ccbbeb5193178e3468a37e9dc692ab196ffbb6a",
"大鱼调色/Plugin/MaskCore/DYMask.h": "5b9aa44390d4a1fca1baf5e34cb9eefc8483c939a65cc2a0412b7b41fc85bc16",
"大鱼调色/Plugin/MaskCore/DYMaskOperator.h": "43fa701ad574f38ce0ab4f4d3900bb034edaaa1adc09821d2f4443ee2b687ba2",
+3 -3
查看文件
@@ -1,6 +1,6 @@
{
"passed": true,
"sha256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
"sha256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"version": "5.11",
"displayversion": "5.4.5",
"nativeReference": {
@@ -18,7 +18,7 @@
},
"staticContract": {
"passed": true,
"sha256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
"sha256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"version": "5.11",
"displayversion": "5.4.5",
"filterCount": 1,
@@ -55,7 +55,7 @@
},
"savedSelection": {
"passed": true,
"sha256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
"sha256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"version": "5.11",
"selectionMask": "0x10000001",
"projectID": "10000",
+1 -1
查看文件
@@ -1,6 +1,6 @@
{
"passed": true,
"sha256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
"sha256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"version": "5.11",
"selectionMask": "0x10000001",
"projectID": "10000",
+1 -1
查看文件
@@ -1,6 +1,6 @@
{
"passed": true,
"sha256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
"sha256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"version": "5.11",
"displayversion": "5.4.5",
"filterCount": 1,
+2 -2
查看文件
@@ -227,8 +227,8 @@
</parameter>
<parameter name="LUT 文件" id="9001" flags="12889161776">
<numberOfKeypoints>0</numberOfKeypoints>
<defaultVal>*********XQeMb-gOLBoA11I*E61-*I4-klM75NZQbBdPqtN743mMqVdRaJmJ0FoPr-M74xWOaJXR5AG**44c3wE1otHGqJtNKF-QaBcOLNZQh660Ec9L2FVR437QolZNq3XSJwE1o7gOKtYF43oMIxWOaJXR6*0U*4X1EsDJGFiRKlgHl2-Rq7kP4ZnR1*kp*20*kE3-UQ8K0FqNL7nOKxiKGFVQaBcOLNZQZEYR4xkK0FjMadZMrFn2U*-Ve-T2*xCIohZSKJYEL7XO4ZqNL9F0*ZPErJnR4xh62FVR44**OI91-IP6JIYPbJgPBEB1UwE2F6H33JkMLFcQpMYMqlVQrBQQr-dN4JmH4ZiOqJYKbBkOKFZQYpZQqW**c*20M**olML1VUN4ZRCImtfNLZnKYtH9axWOaJXR5CUc6*1oVkR5VxO74BgMLBnPa3hNJUYMqlVQrBZQplCIoFdMrFdPqtVQbaW5W-MHZBDMadZMrHG5-oW6pl2KI3nQqJoIrFVR4KW70-QF3Z-QrBZR3BoMLFZ**U*2E*O*0E*8E*m*1Q*GE-A*3U*KU-U*4M*Pk-p*5k*WE0I*7M*a*0N*7g*cU0e*9I*hU0r*9Y*jU17*B6*rk1W*Cg*w*1x*E*********0*E*********Z*******************-1EU*0**F*-c*7**d*16*Bk-7*2s*Kk-h*4w*QE-p*5g-xU********6-*********-********************5r**</defaultVal>
<dataValue>*********XQeMb-gOLBoA11I*E61-*I4-klM75NZQbBdPqtN743mMqVdRaJmJ0FoPr-M74xWOaJXR5AG**44c3wE1otHGqJtNKF-QaBcOLNZQh660Ec9L2FVR437QolZNq3XSJwE1o7gOKtYF43oMIxWOaJXR6*0U*4X1EsDJGFiRKlgHl2-Rq7kP4ZnR1*kp*20*kE3-UQ8K0FqNL7nOKxiKGFVQaBcOLNZQZEYR4xkK0FjMadZMrFn2U*-Ve-T2*xCIohZSKJYEL7XO4ZqNL9F0*ZPErJnR4xh62FVR44**OI91-IP6JIYPbJgPBEB1UwE2F6H33JkMLFcQpMYMqlVQrBQQr-dN4JmH4ZiOqJYKbBkOKFZQYpZQqW**c*20M**olML1VUN4ZRCImtfNLZnKYtH9axWOaJXR5CUc6*1oVkR5VxO74BgMLBnPa3hNJUYMqlVQrBZQplCIoFdMrFdPqtVQbaW5W-MHZBDMadZMrHG5-oW6pl2KI3nQqJoIrFVR4KW70-QF3Z-QrBZR3BoMLFZ**U*2E*O*0E*8E*m*1Q*GE-A*3U*KU-U*4M*Pk-p*5k*WE0I*7M*a*0N*7g*cU0e*9I*hU0r*9Y*jU17*B6*rk1W*Cg*w*1x*E*********0*E*********Z*******************-1EU*0**F*-c*7**d*16*Bk-7*2s*Kk-h*4w*QE-p*5g-xU********6-*********-********************5r**</dataValue>
<defaultVal>*********Z2eMb-gOLBoA11I*E61-*I4-klM75NZQbBdPqtN743mMqVdRaJmJ0FoPr-M74xWOaJXR5AG**44c3wE1otHGqJtNKF-QaBcOLNZQh660Ec9L2FVR437QolZNq3XSJwE1o7gOKtYF43oMIxWOaJXR6*0U*4X1EsDJGFiRKlgHl2-YK7kP4ZnR1*kp*20*kE3-UQ8K0FqNL7nOKxiKGFVQaBcOLNZQZEYR4xkK0FjMadZMrFn2U*-Ve-T2*xCIohZSKJYEL7XO4ZqNL9F0*ZPErJnR4xh62FVR44**OI91-QR6pIYPbJgPBIB1UwE2F6H3-IJJL-VR4VnJWFXP43nQplnQ4ZYNL7AOKtfNKFT2*xXPqljQYpVPa3bNKpZPbFOQr-dN4JmHKJnO6*0U*E7U*0**BAM4EsO4llLHZAiOqJtQpdCImtjMadZMrFnc80**x6S5m*VKWFXP43nQqtVPKJM74BgMLBnNLBQHZB2OKBoOKxiML7tcW*WK2tHHq7eNKBooVsT70JQF3Z-QrBZR3BoMLFZcWMWL2FNELBnNLFHR43oNE*6*-2*4U*Y*0Y*AU*r*2Y*H*-M*3c*M*-a*52*Rk-y*6g*bE0c*8c*f*0h*8w*gE0s*A**mk1A*Ao*nk1I*Bw*u*1p*DU-*E24*FA-3U********6-*********0Q*******************2X0**6*-2*4U*Y*0Y*AU*r*2Y*HU-P*4o*Pk-l*5I*Sk6E*********U2*********2********************V2*</defaultVal>
<dataValue>*********Z2eMb-gOLBoA11I*E61-*I4-klM75NZQbBdPqtN743mMqVdRaJmJ0FoPr-M74xWOaJXR5AG**44c3wE1otHGqJtNKF-QaBcOLNZQh660Ec9L2FVR437QolZNq3XSJwE1o7gOKtYF43oMIxWOaJXR6*0U*4X1EsDJGFiRKlgHl2-YK7kP4ZnR1*kp*20*kE3-UQ8K0FqNL7nOKxiKGFVQaBcOLNZQZEYR4xkK0FjMadZMrFn2U*-Ve-T2*xCIohZSKJYEL7XO4ZqNL9F0*ZPErJnR4xh62FVR44**OI91-QR6pIYPbJgPBIB1UwE2F6H3-IJJL-VR4VnJWFXP43nQplnQ4ZYNL7AOKtfNKFT2*xXPqljQYpVPa3bNKpZPbFOQr-dN4JmHKJnO6*0U*E7U*0**BAM4EsO4llLHZAiOqJtQpdCImtjMadZMrFnc80**x6S5m*VKWFXP43nQqtVPKJM74BgMLBnNLBQHZB2OKBoOKxiML7tcW*WK2tHHq7eNKBooVsT70JQF3Z-QrBZR3BoMLFZcWMWL2FNELBnNLFHR43oNE*6*-2*4U*Y*0Y*AU*r*2Y*H*-M*3c*M*-a*52*Rk-y*6g*bE0c*8c*f*0h*8w*gE0s*A**mk1A*Ao*nk1I*Bw*u*1p*DU-*E24*FA-3U********6-*********0Q*******************2X0**6*-2*4U*Y*0Y*AU*r*2Y*HU-P*4o*Pk-l*5I*Sk6E*********U2*********2********************V2*</dataValue>
</parameter>
<parameter name="工具与蒙版" id="9002" flags="12889161776">
<numberOfKeypoints>0</numberOfKeypoints>
+5
查看文件
@@ -4,6 +4,7 @@ from pathlib import Path
import argparse
import subprocess
from build_masked_kernel import masked_kernel
from float_air_boundary import float_boundary
def main():
@@ -23,6 +24,10 @@ def main():
generated = work / 'DYGradeMasked.ll'
generated.write_text(masked_kernel(source.read_text()))
source = generated
if name in ('CSTKernel', 'BasisKernel'):
generated = work / (name + 'Float.ll')
generated.write_text(float_boundary(source.read_text(), name))
source = generated
subprocess.run(['xcrun', 'metal-opt', str(source),
'-o', str(target)], check=True)
objects.append(str(target))
+7 -2
查看文件
@@ -22,14 +22,15 @@ CONTENT_TAGS={'scenenode','layer','group','filter','behavior','mask'}
def sha(data):return hashlib.sha256(data).hexdigest()
def model_identity():
files=['大鱼调色/Plugin/DYModel.h','大鱼调色/Plugin/DYModel.mm','大鱼调色/Plugin/DYUniforms.h','大鱼调色/Plugin/DYColorManagement.h','大鱼调色/Plugin/DYCSTTypes.h','大鱼调色/Plugin/DYSpiderState.h','大鱼调色/Plugin/SpiderCore/DYColorMath.h','大鱼调色/Plugin/SpiderCore/DYSpiderMesh.hpp','template/tools/dump_model.mm','大鱼调色/Plugin/DYFilmTypes.h','大鱼调色/Plugin/DYFilmMath.h','大鱼调色/Plugin/DYToolState.h','大鱼调色/Plugin/DYToolState.mm','大鱼调色/Plugin/MaskCore/DYMaskOperator.h','大鱼调色/Plugin/MaskCore/DYMask.h']
files=['大鱼调色/Plugin/DYModel.h','大鱼调色/Plugin/DYManagedColor.h','大鱼调色/Plugin/DYManagedColor.mm','大鱼调色/Plugin/DYModel.mm','大鱼调色/Plugin/DYUniforms.h','大鱼调色/Plugin/DYColorManagement.h','大鱼调色/Plugin/DYCSTTypes.h','大鱼调色/Plugin/DYSpiderState.h','大鱼调色/Plugin/SpiderCore/DYColorMath.h','大鱼调色/Plugin/SpiderCore/DYSpiderMesh.hpp','template/tools/dump_model.mm','大鱼调色/Plugin/DYFilmTypes.h','大鱼调色/Plugin/DYFilmMath.h','大鱼调色/Plugin/DYToolState.h','大鱼调色/Plugin/DYToolState.mm','大鱼调色/Plugin/MaskCore/DYMaskOperator.h','大鱼调色/Plugin/MaskCore/DYMask.h']
return {name:sha((ROOT/name).read_bytes()) for name in files}
def refresh_metadata():
cache=Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/template-model')
cache.mkdir(parents=True,exist_ok=True)
executable=cache/'dump_model'
command=['xcrun','clang++','-std=c++17','-fno-objc-arc','-fblocks','-F','/Library/Developer/SDKs/FxPlug.sdk/Library/Frameworks','-F','/Library/Developer/Frameworks','-framework','Foundation','-framework','AppKit','-framework','FxPlug','-framework','CoreMedia','-Wl,-rpath,/Library/Developer/Frameworks','-I',str(ROOT/'大鱼调色/Plugin'),str(TEMPLATE/'tools/dump_model.mm'),str(ROOT/'大鱼调色/Plugin/DYModel.mm'),str(ROOT/'大鱼调色/Plugin/DYToolState.mm'),'-o',str(executable)]
subprocess.run(['/usr/bin/python3',str(ROOT/'ColorManagement/build_runtime.py')],check=True)
command=['xcrun','clang++','-std=c++20','-fno-objc-arc','-fblocks','-F','/Library/Developer/SDKs/FxPlug.sdk/Library/Frameworks','-F','/Library/Developer/Frameworks','-framework','Foundation','-framework','AppKit','-framework','FxPlug','-framework','CoreMedia','-Wl,-rpath,/Library/Developer/Frameworks','-I',str(ROOT/'大鱼调色/Plugin'),str(TEMPLATE/'tools/dump_model.mm'),str(ROOT/'大鱼调色/Plugin/DYModel.mm'),str(ROOT/'大鱼调色/Plugin/DYManagedColor.mm'),str(ROOT/'大鱼调色/Plugin/DYToolState.mm'),'@/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/cms-runtime/bridge-link.rsp','-o',str(executable)]
subprocess.run(command,check=True)
result=json.loads(subprocess.check_output([str(executable)],text=True))
result['sourceSHA256']=model_identity()
@@ -129,6 +130,10 @@ def verify(data,model):
assert params["10005"].get("value")=="1" and params["10005"].get("flags")=="8589934592" and f.get("pluginVersion")=="0"
for row in model['parameters']:
p=params[str(row['pid'])];assert float(p.get('default'))==float(row.get('hostDefault',row['default'])) and float(p.get('value'))==float(row['default'])
# FCP also applies a changed dataValue to existing nil-state instances.
# Keep both carriers at the original registered value; V3 is explicit opt-in.
for pid in ['9000','9001','9002']:
assert params[pid].findtext('defaultVal')==params[pid].findtext('dataValue')==custom_archive(model['archivesBase64'][pid])[0]
assert all(not v in data for v in (b'CameraRawTables',b'1.png',b'relativeURL'))
assert len(root.findall('.//behavior'))==0 and len(root.findall('.//keypoint'))==0
assert scene.find('.//scenenode[@name="效果源"]/parameter[@id="2"]/parameter[@id="321"]').get('value')=='3'
+35
查看文件
@@ -0,0 +1,35 @@
#!/usr/bin/env python3
"""Create isolated synthetic timelines for CMS migration; no library edits."""
from pathlib import Path
import uuid
import xml.etree.ElementTree as E
qa = Path.home() / 'Library/Caches/CodexBuilds/com.dayu.color/fcp-qa'
chart = qa / '大鱼调色验收图.png'
assert chart.is_file(), 'Generate the existing synthetic chart fixture first.'
root = E.Element('fcpxml', version='1.12')
resources = E.SubElement(root, 'resources')
E.SubElement(resources, 'format', id='f1', width='1920', height='1080',
frameDuration='1/25s', colorSpace='1-1-1 (Rec. 709)')
E.SubElement(resources, 'format', id='f2', width='1920', height='1080',
name='FFVideoFormatRateUndefined')
asset = E.SubElement(resources, 'asset', id='a1', name='色彩管理验收图', start='0s',
duration='0s', format='f2', hasVideo='1', videoSources='1')
E.SubElement(asset, 'media-rep', kind='original-media', src=chart.as_uri())
template = Path.home() / 'Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef'
E.SubElement(resources, 'effect', id='fx', name='大鱼调色',
uid='~/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef', src=template.as_uri())
event = E.SubElement(E.SubElement(root, 'library'), 'event',
name='大鱼调色_1.8_新版CMS验收', uid=str(uuid.uuid4()).upper())
for title in ['大鱼调色_1.8_旧版兼容', '大鱼调色_1.8_跟随FCP', '大鱼调色_1.8_相机ACES']:
project = E.SubElement(event, 'project', name=title, uid=str(uuid.uuid4()).upper())
sequence = E.SubElement(project, 'sequence', format='f1', duration='4s',
tcStart='0s', tcFormat='NDF', audioLayout='stereo', audioRate='48k')
clip = E.SubElement(E.SubElement(sequence, 'spine'), 'video', ref='a1',
name=title, offset='0s', start='0s', duration='4s')
E.SubElement(clip, 'filter-video', ref='fx', name='大鱼调色', enabled='1')
E.indent(root)
output = qa / '大鱼调色_1.8_新版CMS验收.fcpxml'
output.write_text('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE fcpxml>\n'
+ E.tostring(root, encoding='unicode') + '\n')
print(output)
+59
查看文件
@@ -0,0 +1,59 @@
#!/usr/bin/env python3
"""Build a controlled Log-code carrier fixture; never edit an FCP library.
The 16-bit PNG explicitly carries sRGB metadata so RGB_LINEAR host pixels can be
unwrapped with the plugin's existing carrier. It is not raw-camera verification.
"""
import argparse, base64, json, plistlib, struct, uuid, zlib
from pathlib import Path
import xml.etree.ElementTree as E
root = Path(__file__).resolve().parent.parent
p = argparse.ArgumentParser(description=__doc__)
p.add_argument('--diagnostic', type=Path, required=True)
args = p.parse_args()
fixture = json.loads(args.diagnostic.read_text())
qa = Path.home() / 'Library/Caches/CodexBuilds/com.dayu.color/fcp-qa'
qa.mkdir(parents=True, exist_ok=True)
width, height = 1920, 1080
def chunk(name, data):
return struct.pack('>I', len(data)) + name + data + struct.pack('>I', zlib.crc32(name + data) & 0xffffffff)
row = bytearray(b'\0')
for x in range(width):
code = fixture['patches'][x * 8 // width]['code']
row += struct.pack('>HHH', *(round(max(0, min(1, v)) * 65535) for v in code))
chart = qa / 'primary-slog3-code-carrier.png'
chart.write_bytes(b'\x89PNG\r\n\x1a\n'
+ chunk(b'IHDR', struct.pack('>IIBBBBB', width, height, 16, 2, 0, 0, 0))
+ chunk(b'sRGB', b'\0') + chunk(b'gAMA', struct.pack('>I', 45455))
+ chunk(b'IDAT', zlib.compress(bytes(row) * height)) + chunk(b'IEND', b''))
model = json.loads((root / 'template/sources/RegisteredParameters.json').read_text())
values = {r['key']: r['default'] for r in model['parameters']}
values.update(cmConfigured=1, cmexposure=-4, skinEnabled=0)
spider = json.loads((root / 'research/cms-correction-20261104/neutral-spider.json').read_text())
preset = dict(format='com.dayu.color.preset', version=7,
colorManagement=dict(version=3, mode=4, engine='Dayu-CST-f32', config='primary-parameters-v1'),
values=values, paths={}, spider=spider,
tools=base64.b64encode(plistlib.dumps(dict(schema=2, layers=[], baseMasks={}), fmt=plistlib.FMT_BINARY)).decode())
(qa / 'primary-host-minus4.json').write_text(json.dumps(preset, ensure_ascii=False, indent=2) + '\n')
xml = E.Element('fcpxml', version='1.12')
r = E.SubElement(xml, 'resources')
E.SubElement(r, 'format', id='f1', width=str(width), height=str(height), frameDuration='1/25s', colorSpace='1-1-1 (Rec. 709)')
E.SubElement(r, 'format', id='f2', width=str(width), height=str(height), name='FFVideoFormatRateUndefined')
a = E.SubElement(r, 'asset', id='a1', name='SLog3 控制码值', start='0s', duration='0s', format='f2', hasVideo='1', videoSources='1')
E.SubElement(a, 'media-rep', kind='original-media', src=chart.as_uri())
template = Path.home() / 'Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef'
E.SubElement(r, 'effect', id='fx', name='大鱼调色', uid='~/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef', src=template.as_uri())
event = E.SubElement(E.SubElement(xml, 'library'), 'event', name='大鱼调色_1.8.1_CST修正验收', uid=str(uuid.uuid4()).upper())
for title in ['1.8.1_Log高光恢复', '1.8.1_工作空间与独立层']:
project = E.SubElement(event, 'project', name=title, uid=str(uuid.uuid4()).upper())
sequence = E.SubElement(project, 'sequence', format='f1', duration='4s', tcStart='0s', tcFormat='NDF', audioLayout='stereo', audioRate='48k')
clip = E.SubElement(E.SubElement(sequence, 'spine'), 'video', ref='a1', name=title, offset='0s', start='0s', duration='4s')
E.SubElement(clip, 'filter-video', ref='fx', name='大鱼调色', enabled='1')
E.indent(xml)
output = qa / '大鱼调色_1.8.1_CST修正验收.fcpxml'
output.write_text('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE fcpxml>\n' + E.tostring(xml, encoding='unicode') + '\n')
(qa / 'primary-host-reference.json').write_text(json.dumps(fixture, ensure_ascii=False, indent=2) + '\n')
print(output)
@@ -0,0 +1,35 @@
#!/usr/bin/env python3
"""Create isolated synthetic timelines for module deletion; no library edits."""
from pathlib import Path
import uuid
import xml.etree.ElementTree as E
qa = Path.home() / 'Library/Caches/CodexBuilds/com.dayu.color/fcp-qa'
chart = qa / '大鱼调色验收图.png'
assert chart.is_file(), 'Generate the existing synthetic chart fixture first.'
root = E.Element('fcpxml', version='1.12')
resources = E.SubElement(root, 'resources')
E.SubElement(resources, 'format', id='f1', width='1920', height='1080',
frameDuration='1/25s', colorSpace='1-1-1 (Rec. 709)')
E.SubElement(resources, 'format', id='f2', width='1920', height='1080',
name='FFVideoFormatRateUndefined')
asset = E.SubElement(resources, 'asset', id='a1', name='模块删除验收图', start='0s',
duration='0s', format='f2', hasVideo='1', videoSources='1')
E.SubElement(asset, 'media-rep', kind='original-media', src=chart.as_uri())
template = Path.home() / 'Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef'
E.SubElement(resources, 'effect', id='fx', name='大鱼调色',
uid='~/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef', src=template.as_uri())
event = E.SubElement(E.SubElement(root, 'library'), 'event',
name='大鱼调色_1.7.4_模块删除验收', uid=str(uuid.uuid4()).upper())
for title in ['大鱼调色_1.7.4_删除与撤销', '大鱼调色_1.7.4_删空与重新添加']:
project = E.SubElement(event, 'project', name=title, uid=str(uuid.uuid4()).upper())
sequence = E.SubElement(project, 'sequence', format='f1', duration='4s',
tcStart='0s', tcFormat='NDF', audioLayout='stereo', audioRate='48k')
clip = E.SubElement(E.SubElement(sequence, 'spine'), 'video', ref='a1',
name=title, offset='0s', start='0s', duration='4s')
E.SubElement(clip, 'filter-video', ref='fx', name='大鱼调色', enabled='1')
E.indent(root)
output = qa / '大鱼调色_1.7.4_模块删除验收.fcpxml'
output.write_text('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE fcpxml>\n'
+ E.tostring(root, encoding='unicode') + '\n')
print(output)
+32
查看文件
@@ -0,0 +1,32 @@
"""Add float boundary entry points; preserve all original AIR and arithmetic.
The recovered arithmetic already calculates in float. Only its sample entry and
return were half. The new CST pipeline must not quantize every domain crossing.
Legacy entry points remain byte-for-byte in the module and keep their behavior.
"""
import re
def float_boundary(source, kind):
name, size, first, rgb, tag = {
'CSTKernel': ('cst', '9CSTParams', (7, 8), 2040, 6),
'BasisKernel': ('basis', '11BasisParams', (8, 9), 247, 8),
}[kind]
old = f'_Z{len(name)+4}{name}_airDv4_DhRU11MTLconstantK{size}'
new_name = name + '_float_air'
new = f'_Z{len(new_name)}{new_name}Dv4_fRU11MTLconstantK{size}'
match = re.search(r'define <4 x float> @' + re.escape(old) + r'\(.*?\n}', source, re.S)
assert match, 'Versioned AIR entry changed; review the boundary adapter'
function = match.group().replace(old, new, 1).replace('<4 x half> noundef %sample', '<4 x float> noundef %sample', 1)
entry = (f' %v{first[0]} = shufflevector <4 x half> %sample, <4 x half> poison, <3 x i32> <i32 0, i32 1, i32 2>\n'
f' %v{first[1]} = tail call fast <3 x float> @air.convert.f.v3f32.f.v3f16(<3 x half> %v{first[0]}) #{tag}')
assert function.count(entry) == 1
function = function.replace(entry, f' %v{first[1]} = shufflevector <4 x float> %sample, <4 x float> poison, <3 x i32> <i32 0, i32 1, i32 2>')
exit = (f' %v{rgb+1} = tail call fast <3 x half> @air.convert.f.v3f16.f.v3f32(<3 x float> %v{rgb}) #{tag}\n'
f' %v{rgb+2} = shufflevector <3 x half> %v{rgb+1}, <3 x half> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 undef>\n'
f' %v{rgb+3} = shufflevector <4 x half> %v{rgb+2}, <4 x half> %sample, <4 x i32> <i32 0, i32 1, i32 2, i32 7>\n'
f' %v{rgb+4} = tail call fast <4 x float> @air.convert.f.v4f32.f.v4f16(<4 x half> %v{rgb+3}) #{tag}\n'
f' ret <4 x float> %v{rgb+4}')
assert function.count(exit) == 1
function = function.replace(exit, f' %dayuRGB = shufflevector <3 x float> %v{rgb}, <3 x float> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 undef>\n %dayuRGBA = shufflevector <4 x float> %dayuRGB, <4 x float> %sample, <4 x i32> <i32 0, i32 1, i32 2, i32 7>\n ret <4 x float> %dayuRGBA')
return source[:match.end()] + '\n\n; Dayu float boundary, arithmetic unchanged.\n' + function + source[match.end():]
+1 -1
查看文件
@@ -32,7 +32,7 @@ int main(int argc,const char **argv){@autoreleasepool{
NSSplitView *split=[browser valueForKey:@"splitView"];[split setPosition:240 ofDividerAtIndex:0];[browser layoutBrowser];NSScrollView *folders=[browser valueForKey:@"folderScroll"],*grid=[browser valueForKey:@"gridScroll"];require(fabs(folders.frame.size.width-240)<2&&NSMaxX(folders.frame)<=NSMinX(grid.frame),@"sidebar divider changes folder width without overlapping previews");
[browser close];[browser release];browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];pump(^{return [browser valueForKey:@"libraryTask"]==nil;});require([(NSPopUpButton*)[browser valueForKey:@"layoutMenu"]indexOfSelectedItem]==1&&fabs([[browser valueForKey:@"sidebarWidth"]doubleValue]-240)<2,@"layout and sidebar width survive reopening");
NSPanel *host=[[[NSPanel alloc]initWithContentRect:NSMakeRect(120,160,900,620) styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable backing:NSBackingStoreBuffered defer:NO]autorelease];__block int closes=0;[browser showInRemoteParent:host.contentView close:^{closes++;}];pump(^{return [browser valueForKey:@"presentationWindow"]==host;});require(!host.visible&&browser.visible,@"remote-parent checks never display a test window");
NSRect desired=NSMakeRect(190,210,1000,680);[host setFrame:desired display:NO];NSString *frameKey=[@"com.dayu.color.lookLUTPreview.windowFrame|" stringByAppendingString:library.rootURL.path];require(NSEqualRects(NSRectFromString([NSUserDefaults.standardUserDefaults stringForKey:frameKey]),host.frame),@"window position and size are remembered");[browser close];[browser close];require(closes==1,@"remote close callback runs once");[browser release];[ack release];ack=nil;
NSRect desired=NSMakeRect(190,210,1000,680);[host setFrame:desired display:NO];NSString *frameKey=[@"com.dayu.color.lookLUTPreview.windowFrame|" stringByAppendingString:library.rootURL.path];require([NSUserDefaults.standardUserDefaults stringForKey:frameKey]==nil,@"remote window geometry is owned and remembered by the host");[browser close];[browser close];require(closes==1,@"remote close callback runs once");[browser release];[ack release];ack=nil;
for(int i=0;i<50;i++)[library recordUsedPath:[root.path stringByAppendingPathComponent:[NSString stringWithFormat:@"History-%d.cube",i]]];require(library.recentPaths.count==40&&[library.recentPaths[0]hasSuffix:@"History-49.cube"],@"recent history stays bounded at 40 newest paths");
NSArray *keys=NSUserDefaults.standardUserDefaults.dictionaryRepresentation.allKeys;for(NSString *key in keys)if([key containsString:library.rootURL.path])[NSUserDefaults.standardUserDefaults removeObjectForKey:key];require([fm removeItemAtURL:root error:nil],@"isolated fixtures and preferences cleaned");
NSDictionary *report=@{@"pass":@YES,@"checks":checks,@"scope":@"Real AppKit browser objects, hidden host-owned window fixture, asynchronous acknowledgement and root-scoped history; no visible test app or user LUT changes."};[[NSJSONSerialization dataWithJSONObject:report options:NSJSONWritingPrettyPrinted error:nil]writeToFile:[NSString stringWithUTF8String:argv[1]] atomically:YES];printf("PASS %lu browser checks\n",(unsigned long)checks.count);[checks release];return 0;
+78
查看文件
@@ -0,0 +1,78 @@
#import <AppKit/AppKit.h>
#import "../大鱼调色/Plugin/DYLUTBrowser.h"
#import "../大鱼调色/Plugin/DYLUTLibrary.h"
#include <cmath>
@interface DYLUTBrowser (GeometryProbe)
- (void)configurePresentationWindow;
@end
static NSMutableArray *checks;
static void check(BOOL pass,NSString *name){[checks addObject:@{@"name":name,@"pass":@(pass)}];if(!pass)fprintf(stderr,"FAIL %s\n",name.UTF8String);}
static void pump(void){double until=NSProcessInfo.processInfo.systemUptime+.08;while(NSProcessInfo.processInfo.systemUptime<until)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.005]];}
int main(int argc,const char **argv){@autoreleasepool{
if(argc!=2)return 2;checks=[NSMutableArray new];[NSApplication sharedApplication];[NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited];
NSURL *directory=[NSURL fileURLWithPath:[NSTemporaryDirectory()stringByAppendingPathComponent:[@"dayu-remote-geometry-" stringByAppendingString:NSUUID.UUID.UUIDString]]];
[NSFileManager.defaultManager createDirectoryAtURL:directory withIntermediateDirectories:YES attributes:nil error:nil];
DYLUTLibrary *library=[[[DYLUTLibrary alloc]initWithRootURL:directory]autorelease];
NSString *key=[@"com.dayu.color.lookLUTPreview.windowFrame|" stringByAppendingString:library.rootURL.path];
NSString *stale=NSStringFromRect(NSMakeRect(-9000,8000,1800,1228));[NSUserDefaults.standardUserDefaults setObject:stale forKey:key];
NSPanel *host=[[[NSPanel alloc]initWithContentRect:NSMakeRect(80,100,900,620) styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable backing:NSBackingStoreBuffered defer:NO]autorelease];
// A remote bridge can publish its content bounds separately from its local
// service-side window. Never resize that window to restore plug-in history.
NSView *parent=[[[NSView alloc]initWithFrame:host.contentView.bounds]autorelease];parent.autoresizesSubviews=NO;[host.contentView addSubview:parent];
NSRect initial=host.frame;NSSize minimum=host.contentMinSize,maximum=host.contentMaxSize;NSString *title=[host.title copy];
__block NSUInteger closes=0;DYLUTBrowser *browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];
[browser showInRemoteParent:parent close:^{closes++;}];pump();
NSView *root=[browser valueForKey:@"root"];
check(NSEqualRects(host.frame,initial),@"remote attach never restores a stale frame onto the host window");
check(NSEqualSizes(host.contentMinSize,minimum)&&NSEqualSizes(host.contentMaxSize,maximum),@"remote attach preserves host minimum and maximum sizes");
check([host.title isEqual:title],@"remote attach preserves host-owned window metadata");
check(!parent.autoresizesSubviews,@"remote attach preserves the bridge's autoresizing policy");
check(NSEqualRects(root.frame,parent.bounds),@"root initially covers exactly the supplied remote bounds");
check(!host.visible&&browser.visible,@"native geometry fixtures remain invisible");
for(NSValue *value in @[[NSValue valueWithSize:NSMakeSize(576,336)],[NSValue valueWithSize:NSMakeSize(720,420)],[NSValue valueWithSize:NSMakeSize(1280,800)],[NSValue valueWithSize:NSMakeSize(900,620)]]){
parent.autoresizesSubviews=NO;[parent setFrameSize:value.sizeValue];pump();
check(NSEqualRects(root.frame,parent.bounds),@"root follows bridge resize even when autoresizing is disabled");
NSView *done=[browser valueForKey:@"done"],*search=[browser valueForKey:@"search"],*split=[browser valueForKey:@"splitView"];
check(NSContainsRect(root.bounds,done.frame)&&NSContainsRect(root.bounds,search.frame)&&NSContainsRect(root.bounds,split.frame),@"footer, search and browser panes remain within host-capped content");
}
[parent setBoundsOrigin:NSMakePoint(17,23)];pump();check(NSEqualRects(root.frame,parent.bounds),@"root tracks nonzero remote bounds origins");
[host setFrame:NSMakeRect(140,160,1000,700) display:NO];pump();check([[NSUserDefaults.standardUserDefaults stringForKey:key]isEqual:stale],@"remote window events never overwrite local window history");
[browser close];[browser close];check(closes==1,@"remote dismissal is delivered once");[browser release];[title release];
// Late SDK attachment: a zero-sized placeholder gets real bounds later.
NSView *late=[[[NSView alloc]initWithFrame:NSZeroRect]autorelease];late.autoresizesSubviews=NO;[host.contentView addSubview:late];
browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];[browser showInRemoteParent:late close:nil];
[late setFrame:NSMakeRect(0,0,720,420)];pump();root=[browser valueForKey:@"root"];
check(NSEqualRects(root.frame,late.bounds),@"zero-size SDK placeholder expands after late host attachment");[browser close];[browser release];
// Detached popovers are local windows and retain their geometry behavior.
NSPanel *local=[[[NSPanel alloc]initWithContentRect:NSMakeRect(120,140,900,620) styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable backing:NSBackingStoreBuffered defer:NO]autorelease];
browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];[browser showInRemoteParent:local.contentView close:nil];
[browser setValue:@NO forKey:@"remoteMode"];[browser setValue:@YES forKey:@"detached"];pump();
BOOL onScreen=NO;for(NSScreen *screen in NSScreen.screens)onScreen|=NSContainsRect(screen.visibleFrame,local.frame);
check(onScreen,@"local detached window constrains disconnected-display history to a visible screen");
NSRect chosen=[local frameRectForContentRect:NSMakeRect(180,200,900,620)];[local setFrame:chosen display:NO];pump();
check(NSEqualRects(NSRectFromString([NSUserDefaults.standardUserDefaults stringForKey:key]),local.frame),@"local detached window still remembers user position and size");
check(!local.visible,@"local fallback geometry checks also remain invisible");[browser close];[browser release];
// Real More Space reproduction: the service window's content view itself
// arrives displaced, while its bounds and the plug-in child's frame agree.
// A frame==bounds assertion alone cannot detect the resulting gray area.
NSPanel *service=[[[NSPanel alloc]initWithContentRect:NSMakeRect(60,100,1800,1200) styleMask:NSWindowStyleMaskBorderless backing:NSBackingStoreBuffered defer:NO]autorelease];
NSView *content=service.contentView;content.autoresizingMask=NSViewMinXMargin|NSViewMaxXMargin|NSViewMinYMargin|NSViewMaxYMargin;
[content setFrameOrigin:NSMakePoint(789,521)];NSRect serviceFrame=service.frame;NSSize contentSize=content.frame.size;NSUInteger bridgeMask=content.autoresizingMask;
browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];[browser showInRemoteParent:content close:nil];pump();root=[browser valueForKey:@"root"];
NSRect viewport=[service convertRectFromScreen:[service contentRectForFrameRect:service.frame]];
check(NSEqualRects([root convertRect:root.bounds toView:nil],viewport),@"displaced service content is aligned to the actual window viewport");
check(NSEqualRects(service.frame,serviceFrame)&&NSEqualSizes(content.frame.size,contentSize),@"content-origin repair never moves or resizes the host window or content");
check(content.autoresizingMask==bridgeMask,@"content-origin repair preserves the bridge's margin policy");
[content setFrameOrigin:NSMakePoint(123,77)];pump();
check(NSEqualRects([root convertRect:root.bounds toView:nil],viewport),@"a later bridge-origin displacement is realigned without a green-button resize");
[content setBoundsOrigin:NSMakePoint(17,23)];pump();
check(NSEqualRects([root convertRect:root.bounds toView:nil],viewport),@"content-origin repair also respects nonzero content bounds");
check(!service.visible,@"service-origin reproduction remains invisible");[browser close];[browser release];
for(NSString *item in NSUserDefaults.standardUserDefaults.dictionaryRepresentation.allKeys)if([item containsString:library.rootURL.path])[NSUserDefaults.standardUserDefaults removeObjectForKey:item];
[NSFileManager.defaultManager removeItemAtURL:directory error:nil];
BOOL pass=YES;for(NSDictionary *item in checks)pass&=[item[@"pass"]boolValue];
NSDictionary *report=@{@"pass":@(pass),@"checks":checks,@"scope":@"Hidden native AppKit remote-bridge fixtures: stale off-screen history, host-owned geometry, disabled autoresizing, capped content sizes, nonzero bounds and late attachment. No visible test app or user settings modified."};
[[NSJSONSerialization dataWithJSONObject:report options:NSJSONWritingPrettyPrinted error:nil]writeToFile:[NSString stringWithUTF8String:argv[1]] atomically:YES];
printf("%s %lu checks\n",pass?"PASS":"FAIL",(unsigned long)checks.count);return pass?0:1;
}}
+1 -1
查看文件
@@ -78,7 +78,7 @@
"pass" : true
},
{
"name" : "window position and size are remembered",
"name" : "remote window geometry is owned and remembered by the host",
"pass" : true
},
{
@@ -0,0 +1,22 @@
{
"passResult": true,
"date": "2026-11-02T13:59:23.934566+00:00",
"removed": [
"/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-browser-geometry-restore-5dolozhv",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/browser-geometry-qa/verify-remote-before",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/browser-geometry-qa/verify-browser_remote_geometry",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/browser-geometry-qa/verify-browser_customization",
"/Volumes/备份/大鱼调色-1.7.2.pkg"
],
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"version": "1.7.2",
"build": "47",
"retainedInstaller": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.7.2.pkg",
"knownGeneratedCandidatesAfterCleanup": [
"/Library/Plug-Ins/FxPlug/大鱼调色.app"
],
"deliveryLockReleased": true,
"userLibraryFilesAddedByTask": 0,
"historicalInstallersPreserved": true,
"scope": "Current product project/build root, known installation locations, and this task restore/download paths. Offline/unknown volumes not claimed to be scanned."
}
@@ -0,0 +1,24 @@
{
"passResult": true,
"compiledSourceCommit": "f9dea76a453319abceaff2d66ba401d30ae10468",
"filesCompared": 360,
"fsck": "strict/full passed",
"checks": {
"browser_remote_geometry": {
"result": "PASS 21 checks",
"passResult": true
},
"browser_customization": {
"result": "PASS 23 browser checks",
"passResult": true
}
},
"lfs": false,
"submodules": false,
"restoreRoot": "/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-browser-geometry-restore-5dolozhv",
"releaseTag": "v1.7.2-browser-geometry-20261102",
"releaseCommit": "7720d9a042271ad0147992a7d476b5c06151f616",
"releaseFilesCompared": 362,
"releaseSourceMatchesCompiledCommit": true,
"restoreCloneRemoved": true
}
@@ -0,0 +1,21 @@
{
"baselineCommit": "e62d5532f2360d157d5a4d96488e58f4113a55af",
"baselineFailures": [
"remote attach never restores a stale frame onto the host window",
"remote attach preserves host minimum and maximum sizes",
"remote attach preserves host-owned window metadata",
"remote attach preserves the bridge's autoresizing policy",
"root follows bridge resize even when autoresizing is disabled",
"root follows bridge resize even when autoresizing is disabled",
"root follows bridge resize even when autoresizing is disabled",
"root tracks nonzero remote bounds origins",
"remote window events never overwrite local window history"
],
"fixedChecks": 21,
"fixedPass": true,
"reportedHost": "Final Cut Pro 12.3",
"reportedOS": "macOS 27.0.1 (user entered 27.01)",
"reportedDisplay": "not supplied",
"localHost": "Final Cut Pro 12.4",
"scope": "A native bridge model reproduces unsafe geometry ownership; the affected user system has not been directly tested."
}
@@ -0,0 +1,20 @@
{
"status": "draft-browser-download-verified",
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.7.2-browser-geometry-20261102",
"releaseCommit": "7720d9a042271ad0147992a7d476b5c06151f616",
"releaseID": 378,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.2-browser-geometry-20261102",
"prerelease": true,
"assetID": 22,
"assetName": "大鱼调色-1.7.2.pkg",
"downloadURL": "https://dayu.media/git/attachments/114bcc6c-01a7-4adc-8382-b583527aa51f",
"bytes": 40904714,
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
"downloadedFile": "/Volumes/备份/大鱼调色-1.7.2.pkg",
"downloadedBytes": 40904714,
"downloadedSHA256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
"verification": "Normal logged-in browser full draft download; byte count and SHA-256 match verified installer."
}
@@ -0,0 +1,90 @@
{
"pass" : true,
"checks" : [
{
"name" : "remote attach never restores a stale frame onto the host window",
"pass" : true
},
{
"name" : "remote attach preserves host minimum and maximum sizes",
"pass" : true
},
{
"name" : "remote attach preserves host-owned window metadata",
"pass" : true
},
{
"name" : "remote attach preserves the bridge's autoresizing policy",
"pass" : true
},
{
"name" : "root initially covers exactly the supplied remote bounds",
"pass" : true
},
{
"name" : "native geometry fixtures remain invisible",
"pass" : true
},
{
"name" : "root follows bridge resize even when autoresizing is disabled",
"pass" : true
},
{
"name" : "footer, search and browser panes remain within host-capped content",
"pass" : true
},
{
"name" : "root follows bridge resize even when autoresizing is disabled",
"pass" : true
},
{
"name" : "footer, search and browser panes remain within host-capped content",
"pass" : true
},
{
"name" : "root follows bridge resize even when autoresizing is disabled",
"pass" : true
},
{
"name" : "footer, search and browser panes remain within host-capped content",
"pass" : true
},
{
"name" : "root follows bridge resize even when autoresizing is disabled",
"pass" : true
},
{
"name" : "footer, search and browser panes remain within host-capped content",
"pass" : true
},
{
"name" : "root tracks nonzero remote bounds origins",
"pass" : true
},
{
"name" : "remote window events never overwrite local window history",
"pass" : true
},
{
"name" : "remote dismissal is delivered once",
"pass" : true
},
{
"name" : "zero-size SDK placeholder expands after late host attachment",
"pass" : true
},
{
"name" : "local detached window constrains disconnected-display history to a visible screen",
"pass" : true
},
{
"name" : "local detached window still remembers user position and size",
"pass" : true
},
{
"name" : "local fallback geometry checks also remain invisible",
"pass" : true
}
],
"scope" : "Hidden native AppKit remote-bridge fixtures: stale off-screen history, host-owned geometry, disabled autoresizing, capped content sizes, nonzero bounds and late attachment. No visible test app or user settings modified."
}
+17
查看文件
@@ -0,0 +1,17 @@
{
"status": "installed-awaiting-host-verification",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.8.0",
"build": "53",
"team": "B3W25FX5H5",
"notaryID": "9cedbb19-531c-4379-aa3a-401a4302c76a",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "54e68b4810238e2d1476a2ff38e257b4243937eb",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"shaderSHA256": "836fcd4775f01d8fba7e46612ed0d8ba2992e30baf3c0f938304e8b2550f6900",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-16cc761c5f7f49d09e8c375975e8121b.app",
"phaseNote": "Candidate 53 signed/notarized/installed and initial FCP modes/undo/grade/layer tests passed; final LUT filename UI and mode3 regression added in build 54."
}
+17
查看文件
@@ -0,0 +1,17 @@
{
"status": "installed-awaiting-host-verification",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.8.0",
"build": "54",
"team": "B3W25FX5H5",
"notaryID": "311f25cf-dfbc-410f-8b18-33c544c1e7dc",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "8bd2ba91fae43cf831ab1efc776da34c54fa2f87",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"shaderSHA256": "52a9630ed3f887a0b5f3678da4330254891b15e88f637204473796736a8b7be1",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-8f63e2e207d6454a9eb31015e5f8732b.app",
"phaseNote": "Build 54 passed 530 tests, cold reopen and Cube/MOV export; missing-input-LUT error exposed an MRC NSError autorelease lifetime crash, fixed in build 55."
}
+18
查看文件
@@ -0,0 +1,18 @@
{
"status": "host-default-compatibility-failed",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.8.1",
"build": "56",
"team": "B3W25FX5H5",
"notaryID": "9f54c118-8827-494e-9736-84b8f39d7a06",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "072bf881b97930325108cc6126d9d26997ca8425",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "f9b3e2f009cfd4bc3a92d8af21b15f0e0e8715c3b3756b14750013bee2d4abfb",
"shaderSHA256": "38395fc34a3e3f222c34abc7b643df820f6a3c1a12eac52f2f9a6beaa0a7da76",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-ba2204ac9c814f378eaa57d3bb327276.app",
"reason": "Changing template dataValue to v3 also changed an existing nil-state FCP project; automatic template opt-in withdrawn.",
"hostObservation": "Existing 大鱼调色_1.8_旧版兼容 displayed 一级 CST · 延后输出 before any author edit."
}
文件差异过大,未显示。 加载差异
+21
查看文件
@@ -0,0 +1,21 @@
{
"removedEarlierCandidateBackups": [
{
"path": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-16cc761c5f7f49d09e8c375975e8121b.app",
"version": "1.7.4",
"build": "52"
},
{
"path": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-8f63e2e207d6454a9eb31015e5f8732b.app",
"version": "1.8.0",
"build": "53"
}
],
"formalInstall": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"scope": "Only generated backups created by this CMS task; source, media, historical installers and other apps retained",
"browserDownloadRemoved": "/Volumes/备份/大鱼调色-1.8.0.pkg",
"recoveryCloneAndBuildCopiesRemoved": true,
"formalPluginRegistry": "com.dayu.color.XPC(1.1)\t636387FF-19DA-454E-ABFD-33256B8F3BCE\t2026-11-03 05:20:18 +0000\t/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit\n (1 plug-in)",
"remainingGeneratedAPPs": [],
"remainingTaskBackups": []
}
+37
查看文件
@@ -0,0 +1,37 @@
{
"version": "1.8.0",
"build": "55",
"CMSStateVersion": 2,
"presetVersion": 7,
"workingSpace": "ACEScct/AP1",
"engine": "OpenColorIO 2.5.2",
"config": "studio-config-v2.2.0_aces-v1.3_ocio-v2.4",
"legacyState": "Absent CMS state renders v1 unchanged; old explicit toneMapping values remain stored",
"pipeline": [
"actual source profile or explicit code carrier/LUT",
"declared input to ACEScct",
"all primary layers",
"all print looks",
"one optional display/output transform",
"explicit SDR linear709/sRGB finishing branch",
"actual destination profile"
],
"HDRBoundary": "PQ/HLG and host-follow Rec2020 reject active unvalidated SDR finishing tools",
"inputLUTInterpolation": "float32 tetrahedral; hardware trilinear precision defect found by identity 2cube test and fixed",
"coreStorage": "RGBA32Float; BASIS entry and old active finishing keep existing half precision",
"cube": {
"v2Side": 65,
"legacySide": 33,
"input": "declared camera/LUT code values, sRGB for host-profile mode",
"output": "sRGB/Rec.709",
"cannotEncode": [
"PQ/HLG delivery",
"spatial masks/tracking",
"temporal/spatial film",
"texture/clarity/dehaze and frame-dependent operations"
]
},
"sourceVersion": "11a88518280f0665f3cd0f388d1d66e5446ece14",
"errorContract": "NSError is retained across nested render autorelease pools and returned in caller pool; invalid LUT/HDR combinations fail without dangling error objects",
"inputLUTSelection": "File is selected and parsed before mode 3 is committed; cancel retains prior state"
}
+9
查看文件
@@ -0,0 +1,9 @@
{
"affectedCandidateBuild": "54",
"observedIn": "Final Cut Pro 12.4 / formally installed notarized build",
"trigger": "Select input LUT mode before assigning a LUT",
"exception": "EXC_BAD_ACCESS in objc_msgSend(domain), DYPlugIn.mm renderDestinationImage error logging",
"rootCause": "NSError autoreleased inside nested renderer pool did not survive until the FxPlug caller used its out-parameter",
"fix": "Preserve error across each pool boundary, including segmented tool rendering; select and prepare LUT before enabling required-resource mode",
"validation": "Regression now reads domain and localizedDescription after renderer returns; final live-host verification recorded separately"
}
+27
查看文件
@@ -0,0 +1,27 @@
{
"passResult": true,
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"tag": "v1.8.0-cms-20261103",
"commit": "a5a2bddeb361aac66899c5939671122075a6cffa",
"compiledSource": "11a88518280f0665f3cd0f388d1d66e5446ece14",
"trackedFiles": 440,
"gitFsck": "full/strict passed",
"dependencySourceArchives": [
"OpenColorIO-2.5.2.tar.gz",
"expat-2.7.2.tar.gz",
"yaml-cpp-0.8.0.tar.gz",
"Imath-3.2.1.tar.gz",
"pystring-1.1.4.tar.gz",
"minizip-ng-4.0.10.tar.gz",
"zlib-1.3.1.tar.gz",
"sse2neon-227cc413fb2d50b2a10073087be96b59d5364aea.tar.gz"
],
"programSourcesMatchCompiledCommit": true,
"restoredBuildVersion": "1.8.0",
"restoredBuild": "55",
"nativeChecks": 530,
"execution": "headless integration tests only; generated APP never launched as a GUI or loaded in FCP",
"buildLog": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/cms-recovery-build.log",
"runtimeCache": "Pinned static library cache reused after content checks; all dependency source archives independently present and verified",
"cleanup": "Only this recovery clone and generated APP/loose service; formal installation and QA projects retained"
}
+11
查看文件
@@ -0,0 +1,11 @@
{
"status": "draft-download-required",
"releaseID": 381,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.8.0-cms-20261103",
"tag": "v1.8.0-cms-20261103",
"commit": "a5a2bddeb361aac66899c5939671122075a6cffa",
"assetID": 25,
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.8.0-cms-20261103/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.8.0.pkg",
"bytes": 42851034,
"sha256": "fd59203d387122e768090a97851daf3bd7c07193a8073b9497a10c05d5fd6c42"
}
+7 -8
查看文件
@@ -2,16 +2,15 @@
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.7.1",
"build": "46",
"version": "1.8.1",
"build": "57",
"team": "B3W25FX5H5",
"notaryID": "59cbf6ce-3782-4aa0-bc3b-b82c345ee498",
"notaryID": "cdc68483-c0ef-4b1e-a3a3-8a3eb621afdd",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "58a17de43810798570b4965166d33129d949de3d",
"sourceCommit": "059245858035e74f78bd669ef25913408d07d235",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
"shaderSHA256": "6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d",
"hostVerification": "verification/HostLUTNotes1.7.1.json",
"installedLUTVerification": "verification/LUTNoteInstalled.json"
"templateSHA256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"shaderSHA256": "38395fc34a3e3f222c34abc7b643df820f6a3c1a12eac52f2f9a6beaa0a7da76",
"hostVerification": "verification/HostPrimaryCST1.8.1.json"
}
@@ -0,0 +1,55 @@
{
"passResult": true,
"date": "2026-11-02T13:50:07.479031+00:00",
"version": "1.7.2",
"build": "47",
"compiledSourceCommit": "f9dea76a453319abceaff2d66ba401d30ae10468",
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"host": "Final Cut Pro 12.4 (454072)",
"os": "macOS 27.0.1 (26A434)",
"reportedTargetHost": "Final Cut Pro 12.3",
"reportedTargetOS": "27.01",
"reportedTargetVerified": false,
"checks": [
{
"name": "formal-version-and-unique-plugin-path",
"passResult": true
},
{
"name": "remote-browser-dark-content-covers-window",
"passResult": true,
"observed": "Grid, sidebar, search and footer fill the remote window; no gray gap or clipped footer in the observed opening."
},
{
"name": "host-system-zoom",
"passResult": true,
"observed": "System zoom changes window dimensions and content remains covered and visible."
},
{
"name": "list-and-grid-layout",
"passResult": true,
"observed": "List uses full-width rows; grid restored afterwards."
},
{
"name": "warm-close-reopen",
"passResult": true,
"observed": "Reopened window is visually complete and Return invokes Done."
},
{
"name": "normal-host-quit-and-cold-reopen",
"passResult": true,
"observed": "1.7.2, selected tlfs, 58 files, grid layout and thumbnail size 125.4610877403846 retained; all controls returned in accessibility tree."
},
{
"name": "existing-lut-and-rendered-chart-preserved",
"passResult": true
}
],
"userLibraryFilesAddedByThisTask": 0,
"shaderAndTemplateUnchangedFrom1_7_1": true,
"limitations": [
"Affected FCP12.3 machine and display scaling not directly tested; the local host is12.4 on the same macOS27.0.1.",
"Exact border-drag resizing was attempted but no size change was confirmed; host system zoom and hidden native size fixtures provide separate coverage.",
"A warm reopen omitted remote child elements from the automation accessibility snapshot once; the image and Return operation worked, and a cold reopen returned the full tree. This is not a complete VoiceOver audit."
]
}
@@ -0,0 +1,63 @@
{
"passResult": true,
"checkedAt": "2026-11-02T14:48:34.202932+00:00",
"version": "1.7.3",
"build": "49",
"compiledSource": "2688b22f99b5118153b94a43f6c184a204d4ce7e",
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"host": "Final Cut Pro 12.4 (454072)",
"os": "macOS 27.0.1 (26A434)",
"nativeChecks": 411,
"nativePass": true,
"checks": [
{
"name": "formal-version-1.7.3-build49-and-unique-loaded-plugin-path",
"passResult": true
},
{
"name": "more-space-first-open-complete-without-green-button",
"passResult": true
},
{
"name": "sidebar-search-grid-footer-and-done-visible",
"passResult": true
},
{
"name": "list-grid-switch-and-grid-restored",
"passResult": true
},
{
"name": "green-button-system-zoom-and-restore-remain-aligned",
"passResult": true
},
{
"name": "warm-close-and-reopen",
"passResult": true
},
{
"name": "normal-host-quit-and-cold-reopen",
"passResult": true
},
{
"name": "selected-tlfs-58-files-and-thumbnail-size-preserved",
"passResult": true
},
{
"name": "shader-and-template-identical-to-1.7.2",
"passResult": true
}
],
"targetUserFCP12_3Verified": false,
"displaySettingsChangedByAgent": false,
"existingLUTFilesAddedOrRemoved": 0,
"screenshotsLocalOnly": [
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/before.png",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/after-first-open.png",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/after-cold-open.png",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/after-final.png"
],
"limitations": [
"Affected user MacBook/FCP12.3 still requires their retest; this fixes the same observed defect reproduced on the local FCP12.4 host.",
"No actual PKG installer executed in this iteration; independently installed formal APP verified."
]
}
+135
查看文件
@@ -0,0 +1,135 @@
{
"passResult": true,
"date": "2026-11-03T05:16:05.530977+00:00",
"version": "1.8.0",
"build": "55",
"host": "Final Cut Pro 12.4",
"system": "27.0.1",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"compiledSource": "11a88518280f0665f3cd0f388d1d66e5446ece14",
"nativeChecks": 530,
"maximumCPUParityError": 0.001953125,
"hostChecks": [
"New mode controls and actual linear709 source/destination context",
"Legacy mode retained on new and existing state without opt-in",
"Mode change undo/redo",
"Working exposure and neutral independent primary layer",
"Global CMS remains accessible when base primary removed; undo from timeline restores grade",
"Camera/ACES with Display P3 output",
"LUT mode chooses file before activation; cancel preserves prior camera/P3 state",
"Loaded mode3 preset with no LUT: NSError consumed by real FxPlug host; inspector stayed usable",
"Same process PID 34001 before and after missing-resource error; no new crash report",
"Choosing valid LUT recovers same inspector and renderer",
"Mode1 and mode3 presets cold-reopen with identical bytes"
],
"presetComparisons": [
{
"before": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/cms-authored-v2-before.json",
"bytes": 8896,
"sha256": "8794af8534c6e3da25715b423c9ac2d44763951c00ad7e5fe0891e2b94abc565"
},
"after": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/cms-authored-v2-after.json",
"bytes": 8896,
"sha256": "8794af8534c6e3da25715b423c9ac2d44763951c00ad7e5fe0891e2b94abc565"
},
"byteIdentical": true
},
{
"before": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/cms-lut-recovered-before.json",
"bytes": 9003,
"sha256": "9a0eac72e3c41b26c1553c0a47b3d67acc85e1f63fd2ec4f1c0591805b77a214"
},
"after": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/cms-lut-recovered-after.json",
"bytes": 9003,
"sha256": "9a0eac72e3c41b26c1553c0a47b3d67acc85e1f63fd2ec4f1c0591805b77a214"
},
"byteIdentical": true
}
],
"cube": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/cms-host-export55.cube",
"bytes": 9067763,
"sha256": "d22fb74c107748d60c35afedbc8597958154b2b4fb1173a04e89efce2402057d",
"side": 65,
"rows": 274625,
"finite": true,
"identicalToBuild54": true,
"input": "sRGB in host-profile mode",
"output": "sRGB/Rec.709"
},
"render": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/cms-host-render55.mov",
"bytes": 16462804,
"sha256": "d156b30f69da68e39acca365450a55c7f0872368005bbfb16776b13f8e7992dc",
"probe": {
"programs": [],
"stream_groups": [
{
"streams": [
{
"codec_name": "prores",
"width": 1920,
"height": 1080,
"color_space": "bt709",
"color_transfer": "bt709",
"color_primaries": "bt709",
"r_frame_rate": "25/1",
"nb_read_frames": "100"
},
{
"r_frame_rate": "0/0"
}
]
}
],
"streams": [
{
"codec_name": "prores",
"width": 1920,
"height": 1080,
"color_space": "bt709",
"color_transfer": "bt709",
"color_primaries": "bt709",
"r_frame_rate": "25/1",
"nb_read_frames": "100"
},
{
"r_frame_rate": "0/0"
}
],
"format": {
"duration": "4.000000",
"size": "16462804"
}
},
"decodedFrames": 100,
"uniqueDecodedFrameHashes": 1,
"identicalDecodedFramesToBuild54": true
},
"FCPXML": {
"inputVersion": "1.12",
"roundtripVersion": "1.12",
"DTD": true,
"projects": 3,
"comparison": {
"expected_projects": 3,
"actual_projects": 3,
"status": "compared_fields_match",
"differences": [],
"scope": "project format/timecode, story timing/identity, static transforms (1e-4 absolute tolerance), title/caption text+role, linear time-map samples, effect references, opaque payload hashes, audio component/volume attributes",
"not_covered": "rendered picture/sound, plugin parameter semantics, smooth interpolation, all crop/keyframe/metadata attributes, media/resources not reachable directly inside projects"
}
},
"processObservation": [
"34109 /Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service"
],
"limitations": [
"SDR synthetic chart host acceptance; HDR numerical CPU/GPU tests do not certify an HDR monitor or delivery setup",
"FCP 12.4 on this Mac; other host versions not directly exercised",
"PKG installation script not rerun; source APP installed and verified independently"
]
}
+90
查看文件
@@ -0,0 +1,90 @@
{
"passResult": true,
"date": "2026-11-04",
"version": "1.8.1",
"build": "57",
"host": "Final Cut Pro 12.4",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"compiledSource": "059245858035e74f78bd669ef25913408d07d235",
"nativeChecks": 581,
"hostChecks": [
"Existing nil-state project remained 原有流程 after upgrade (candidate56 automatic template seed was rejected and rolled back)",
"Old mode3 LUT/ACES project retained original LUT, exposure and exact preset bytes",
"Explicit V3 opt-in via full preset; input/work/output selectors visible and effective",
"Root exposure -4 and neutral extra layer exposure0 with mapping off",
"New primary inherits DWG/DI input/work/output",
"Root working-curve change updates all inherited domains; one timeline undo and redo restore all related fields",
"Cold reopen preserves V3 state, primaryFollow metadata and all preset bytes",
"Real 65cube export completed with declared primary input/output metadata",
"1080p25 ProRes422 export: all100 frames decoded",
"Two-project FCPXML1.12 import/export without warning; compared fields match"
],
"preset": {
"before": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/primary-host-before57.json",
"bytes": 9048,
"sha256": "72b88dde2c30d0ed391184f666dbbceef1ad14e76749fee4aadcec98a6ad9e8b"
},
"after": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/primary-host-after57.json",
"bytes": 9048,
"sha256": "72b88dde2c30d0ed391184f666dbbceef1ad14e76749fee4aadcec98a6ad9e8b"
},
"byteIdentical": true
},
"legacyV2Preset": {
"before": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/cms-lut-recovered-before.json",
"bytes": 9003,
"sha256": "9a0eac72e3c41b26c1553c0a47b3d67acc85e1f63fd2ec4f1c0591805b77a214"
},
"after": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/primary-v2-preserved57.json",
"bytes": 9003,
"sha256": "9a0eac72e3c41b26c1553c0a47b3d67acc85e1f63fd2ec4f1c0591805b77a214"
},
"byteIdentical": true
},
"cube": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/primary-host-export57.cube",
"bytes": 9063074,
"sha256": "c3da6ef3bb8ce2118e94ea51b29e7a3e87a228f967f6128ede1ab3e55dd8a939",
"side": 65,
"rows": 274625,
"finite": true,
"input": "Sony SLog3/S-Gamut3.Cine",
"output": "Gamma2.4/Rec709 declared code values"
},
"render": {
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/primary-host-render57.mov",
"bytes": 3833304,
"sha256": "a6afd62ffd44852175e3db3d33c4203e8520c1413c4bed7ce1920e3fda0f1f28",
"codec": "ProRes422",
"width": 1920,
"height": 1080,
"fps": "25/1",
"framesDecoded": 100,
"duration": "4s",
"colorTags": "bt709"
},
"FCPXML": {
"version": "1.12",
"projects": 2,
"DTD": true,
"comparison": {
"expected_projects": 2,
"actual_projects": 2,
"status": "compared_fields_match",
"differences": [],
"scope": "project format/timecode, story timing/identity, static transforms (1e-4 absolute tolerance), title/caption text+role, linear time-map samples, effect references, opaque payload hashes, audio component/volume attributes",
"not_covered": "rendered picture/sound, plugin parameter semantics, smooth interpolation, all crop/keyframe/metadata attributes, media/resources not reachable directly inside projects"
}
},
"limitations": [
"Controlled 16bit sRGB-tagged Log-code PNG, not generic camera/raw routing certification",
"PNG fixture clips code values above1; high64scene reference remains a float32 numerical test",
"Host export decoded and structurally verified; monitor/display colorimetry not certified",
"Old tools remain post-output SDR finishing; no claim of complete HDR tool conversion",
"PKG installation scripts not rerun; APP installed separately and verified in formal path"
]
}
+52
查看文件
@@ -0,0 +1,52 @@
{
"version": "1.7.4",
"build": "52",
"compiledSource": "06a00371dfba6d9857dc75f48121232fb0ea01b8",
"host": "Final Cut Pro 12.4",
"macOS": "27.0.1",
"project": "大鱼调色_1.7.4_删空与重新添加",
"appPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"checks": {
"nativeModuleDisappears": true,
"parametersReset": true,
"singleUndoRestoresFullPreset": true,
"redoRemovesAgain": true,
"freshNodeStartsAtZero": true,
"independentLayerDeleted": true,
"coldReopenFullPresetIdentical": true,
"manualAcceptance": "用户回复已验证;手动验收工程保持原状",
"serviceStableDuringDeleteUndoRedoAddRemove": 18314,
"serviceAfterNormalColdRestart": 18405
},
"presets": {
"before-delete": {
"sha256": "85094ec7e4db9dd1bb87c821970a740b8dc4fed152651e34a004db1e2aec8724",
"bytes": 8459
},
"after-delete": {
"sha256": "a896608d0deadf004c306acabff5f855e8e9110029f9a16ff135c1baad804837",
"bytes": 8488
},
"undo": {
"sha256": "85094ec7e4db9dd1bb87c821970a740b8dc4fed152651e34a004db1e2aec8724",
"bytes": 8459
},
"readd": {
"sha256": "8f39b71cb4145b96e64af7ae332384b048cbc4c5a984b415c45786c1bb4ba66f",
"bytes": 8661
},
"extra-deleted": {
"sha256": "9dee9912adbb1dfe83f471ade9c3f60059f76431c866cf270b5ae8e921a16eca",
"bytes": 8488
},
"cold-reopen": {
"sha256": "9dee9912adbb1dfe83f471ade9c3f60059f76431c866cf270b5ae8e921a16eca",
"bytes": 8488
}
},
"limits": [
"真实宿主本轮验证基础调整的删除、一次撤销、重做、重新添加、独立层删除和冷重开;全部14模块参数/关键帧及资源清理由436项原生检查覆盖。",
"中间构建51曾被ViewBridge看门狗结束;最终52删除回调去掉同步无障碍通知后复验通过,未取得51死锁时的确切调用栈。"
],
"pass": true
}
文件差异过大,未显示。 加载差异
+23
查看文件
@@ -0,0 +1,23 @@
{
"passResult": true,
"date": "2026-11-02T12:25:54.358668+00:00",
"removed": [
"/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-lut-restore-kfvcdmzs",
"/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-custom-lut-analysis-8fusx4rh",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/lut-note-qa/numeric-oracle.cube",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/lut-note-qa/verify-annotations",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/lut-note-qa/verify-library",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/lut-note-qa/verify-encoding",
"/Volumes/备份/大鱼调色-1.7.1.pkg"
],
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"formalVersion": "1.7.1 (46)",
"currentInstaller": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.7.1.pkg",
"deliveryLockReleased": true,
"sourceLUTUnchanged": true,
"importedOriginalKept": true,
"generatedAppCandidatesAfterCleanup": [
"/Library/Plug-Ins/FxPlug/大鱼调色.app"
],
"scope": "Current product build root/project, known installation locations and this task temp/download roots. No claim about every offline volume; historical installers, original LUT and user library retained."
}
+7 -1
查看文件
@@ -7,5 +7,11 @@
"restoredTestResult": "PASS 101 checks",
"lfs": false,
"submodules": false,
"restoreRoot": "/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-lut-restore-kfvcdmzs"
"restoreRoot": "/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-lut-restore-kfvcdmzs",
"releaseTag": "v1.7.1-lut-notes-20261102",
"releaseCommit": "14cca24de6901b1d1d57d6a3ff6eccaf12f6a77c",
"releaseFilesCompared": 351,
"releaseSourceMatchesCompiledCommit": true,
"restoreCloneRemoved": true,
"releaseTagVerified": true
}
已加载 100/146 个文件。由于本次变更涉及的文件过多,其余文件未显示。 显示更多