比较提交

..
作者 SHA1 备注 提交日期
mac a06a3a3914 release: record signed 1.8.3 package and updated neon histogram handoff 2026-11-04 12:28:23 +08:00
mac c55f3343ea verify: accept notarized multicolor 1.8.3 (62) in FCP with unchanged preset 2026-11-04 12:27:10 +08:00
mac 3fd0152240 fix: use saturated multicolor module gradients without gray surfaces 2026-11-04 12:20:20 +08:00
mac 94151cad7d docs: record rejection of neutral gray surfaces for neon theme 2026-11-04 12:19:19 +08:00
mac 335ef7a5ee fix: balance neon colors on neutral blue gray surfaces 2026-11-04 12:13:54 +08:00
mac 386e6d228b verify: retain candidate60 notarization and incorporate multicolor feedback 2026-11-04 12:13:52 +08:00
mac bea51d2297 feat: add neon palette and sampled RGB luma histogram behind curves 2026-11-04 12:06:47 +08:00
mac 3373a5365e docs: save neon UI and histogram implementation baseline 2026-11-04 12:04:01 +08:00
mac fa82014266 docs: hand off 1.8.2 color pipeline, black-gold UI and release workflow 2026-11-04 11:52:03 +08:00
mac 504e6d98e3 verify: publish Release383, download hashes and final product cleanup 2026-11-04 11:01:49 +08:00
mac f4bacfbd75 docs: publish black-gold release notes and recovery instructions 2026-11-04 10:58:37 +08:00
mac 6031b3bafb release: record 1.8.2 signed package, FCP cold reopen and remote rebuild 2026-11-04 10:57:55 +08:00
mac b2922811f9 verify: notarized 1.8.2 (59) installed; FCP themes and non-mutating settings passed 2026-11-04 10:55:01 +08:00
mac da03d16c7e test: check rendered gold pull-down caption pixels 2026-11-04 10:49:29 +08:00
mac 64ebd20d54 fix: show pull-down caption in gold theme; rebuild as 1.8.2 (59) 2026-11-04 10:49:03 +08:00
mac 870f0064c2 fix: compile gold popup arrow under Objective-C++ 2026-11-04 10:45:17 +08:00
mac 1eacf595fc feat: collapse advanced color settings and add default black-gold theme (1.8.2) 2026-11-04 10:44:57 +08:00
mac 4d88c93b93 Record compact color-settings and black-gold UI contract 2026-11-04 10:37:57 +08:00
mac 12fdde332f Verify published 1.8.1 downloads, tagged-source recovery and final cleanup 2026-11-04 08:27:04 +08:00
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
共修改 143 个文件,包含 17063 行新增和 285 行删除

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

+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.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
+16
查看文件
@@ -0,0 +1,16 @@
大鱼调色 1.8.2(59)公测
高级色彩管理移入顶部“颜色设置”按钮,默认收起。关闭后不留空白,调色模块直接上移;展开/收起不改参数、不增加撤销项。详细说明移入工具提示。
新增默认黑金渐变主题:黑色与深炭色渐变背景、亮金文字、柔和静态光晕及金色细边。保留五种原有配色及其编号;明确保存的主题偏好保留,可随时切换到黑金。系统增加对比度或减少透明度时去掉文字光晕。
默认继续原有色彩流程;已保存的 nil/v2/v3 工程及完整预设保持原处理。相机 Log、工作空间和输出转换逻辑沿用 1.8.1 修正,没有更改渲染算法或模板默认。
本版验证与正式签名、公证、宿主和安装包结果见 verification/Delivery.json、HostCompactUI1.8.2.json、InstalledSelfTest.json、Package.json 和 Release.json。本轮独立替换正式 APP 并验收,PKG 展开验包,不重复执行系统安装脚本。
595 项原生检查、FCP 中六主题切换/设置反复开关、nil 原流程保持和 v3 完整预设重开逐字节一致通过。独立远程源码重建通过同样595项检查;8个依赖源包按锁定摘要验证,复用已验证的静态运行时缓存。
安装包:大鱼调色-1.8.2.pkg
字节数:43006067
SHA-256:cbabffc620ad851bd8ecddfaf797c46689722d0f772be409aaa29d0841a2eded
实际编译源码:da03d16c7efa87a5d230467334ec73f9a3a12e54
+16
查看文件
@@ -0,0 +1,16 @@
大鱼调色 1.8.3(62)公测
新增“霓虹炫彩”主题:分模块的多色渐变:一级紫红、蜘蛛盘青蓝、基础珊瑚玫红、HSL绿青、曲线青蓝等;大面积卡片、标题及图标均跟随各模块配色。洋红到青色渐变重点按钮与滑杆,白色文字。未设置主题时默认使用炫彩;原六种主题和编号保留,可随时切换。
曲线编辑器新增真实分析画面的直方图叠层,显示亮度与 RGB 分布;RGB 页叠加四通道,红、绿、蓝页只显示对应通道。支持“直方图”开关,曲线控制点仍可直接添加、拖动、删除。主题、通道和叠层显示不改变调色参数或预设。
直方图复用 320×180 分析缓存、256 档,最多每秒2次更新,播放或移动播放头时刷新。透明与非有限像素不计,范围外值归到端点,共同峰值平方根缩放。原流程取一级 CST/输入 LUT 后,新 CMS 取显示输出转换后、SDR修饰前;它不是最终输出示波器,也不是每个独立曲线层的即时输入。工具提示可查看来源与范围。
色彩管理、调色数学和模板默认保持不变。系统要求 Apple Silicon、macOS14.6 或更新。唯一正式位置 /Library/Plug-Ins/FxPlug/大鱼调色.app。
605项正式原生检查与FCP12.4实机通过;真实视频与色块分布、四通道/显隐、冷重开与8,590字节原预设一致验证完成。APP与PKG均已正式签名、公证Accepted、粘附票据;PKG通过20项展开验包。本轮APP独立正式安装验收,未重复执行PKG安装脚本。
安装包:大鱼调色-1.8.3.pkg
字节数:43010609
SHA-256:518f54c12a6680c32be5cb4bd7d01b8a4c49e3d492a0d9d75ac5e46e3345da53
实际编译源码:3fd015224037df944b428684c43ec8ec7accea85
+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())
+50 -2
查看文件
@@ -1,9 +1,57 @@
# 大鱼调色
原生 FxPlug 4 调色器,当前正式安装的公测版本 **1.7.3(49)**。唯一安装位置为 `/Library/Plug-Ins/FxPlug/大鱼调色.app`;Final Cut Pro 中从“效果 → 大鱼调色”添加。
原生 FxPlug 4 调色器,当前公测版本 **1.8.3(62)**。唯一安装位置为 `/Library/Plug-Ins/FxPlug/大鱼调色.app`;Final Cut Pro 中从“效果 → 大鱼调色”添加。
1.8.3 新增默认“霓虹炫彩”:按模块分布紫红、青蓝、玫红、绿青等双色渐变,卡片、标题与图标都使用模块配色,取消统一紫底与深蓝灰底;重点按钮与滑杆用洋红到青色渐变,正文白色。原六种主题与编号保留。本机已从黑金切换到炫彩。曲线新增亮度/RGB直方图叠层、单通道查看与显隐开关,使用真实320×180分析缓存、256档,最多每秒更新2次。
直方图沿用已有分析画面:原流程为一级CST/输入LUT后,新CMS为显示输出转换后、SDR修饰前;不是最终输出示波器或每层曲线的即时输入。透明/非有限像素不计,范围外归端点,共同峰值平方根缩放。主题与叠层不写入调色预设,曲线数学、CMS及模板保持。
[1.8.3安装包 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.8.3-neon-histogram-20261104)。605项原生检查及正式FCP验收见 verification/HostNeon1.8.3.json。
历史1.8.2 将高级色彩管理收进顶部“颜色设置”按钮,默认收起且不占调色区域;展开和收起只改变显示,不写调色参数、不产生撤销项。新增“黑金渐变”主题:黑色与深炭色背景、亮金文字和小范围静态光晕;未设置主题时默认黑金,已明确保存的五种旧主题继续保留,可随时切换。增加对比度或减少透明度时不绘制文字光晕。窄栏使用两排操作按钮。
默认色彩流程仍为“原有流程”,已保存的 v2/v3 工程继续使用原设置。下文的高级色彩流程均从“颜色设置”展开选择。色轮与通道曲线保留实际色相,界面主题不改变图像颜色。
[1.8.2 安装包 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.8.2-blackgold-20261104);595 项原生检查与正式 FCP 验收见[界面验收记录](verification/HostCompactUI1.8.2.json)。
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/)。
@@ -28,7 +76,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.3(62)多色渐变与曲线直方图
仓库 https://dayu.media/git/dayu/dayu-color.git,main。编译源码3fd015224037df944b428684c43ec8ec7accea85;发行标签v1.8.3-neon-histogram-20261104。正式位置、身份、依赖及恢复步骤沿用下文;当前详细交接见大鱼调色FxPlug4交接.md。标签/附件最终完整SHA见verification/Release.json,包校验见Package.json。
最终主题ID6为分模块饱和双色渐变,无统一紫底或深蓝灰底;候选60/61未发布包。605项正式原生检查、FCP真实视频直方图与冷重开、原8,590字节预设逐字节一致通过。APP公证706a58bb-2fa4-4b1e-b392-de60d93aef49为Accepted。独立远程源码与版本标签恢复范围见NeonRecovery1.8.3.json;本轮未宣称独立重编全部依赖。
直方图为320×180分析缓存、256档、最多2Hz,非最终输出/HDR示波器或每层即时输入;来源和显示范围见检查框工具提示。源码/模板数学和CMS默认保持。APP独立正式替换并验收,PKG按展开验包记录,本轮未重复执行安装脚本。网站与自动更新清单未修改。
---
# 1.8.2(59)黑金界面与高级颜色设置
仓库 https://dayu.media/git/dayu/dayu-color.git,main。实际编译源码 da03d16c7efa87a5d230467334ec73f9a3a12e54;发行标签 v1.8.2-blackgold-20261104。标签包括最终 Package.json;发布后的 Release.json 和最后恢复/清理核验保存在后续 main,标签中的旧 Release.json 属于上版历史。本版安装包以本版 Release 页面和后续 main 的发布记录为准。
高级颜色设置默认收起,展开/收起不写参数。未保存主题偏好时使用黑金 ID5;原主题 ID0–4 及明确保存的选择保留。渲染实现、模板与色彩流程缺省不变,nil/v2/v3 状态保持。候选58的黑金“添加模块”文字漏绘已在实机发现并回滚,未发布安装包;正式版59修复并增加像素绘制检查。
595 项正式安装版检查、FCP 12.4 六主题/10次开关、原 nil 工程保持、8590字节完整 v3 预设在更新与冷重开前后逐字节一致通过。独立远程克隆 Release 重建也通过595项检查,8个依赖归档的大小和 SHA-256 校验通过;复用已验证静态依赖缓存,不代表全依赖冷构建。详见 verification/HostCompactUI1.8.2.json、CompactUIRecovery1.8.2.json。
唯一正式 APP:/Library/Plug-Ins/FxPlug/大鱼调色.app,Bundle ID:com.dayu.color。恢复依赖、Xcode 27.1/FxPlug SDK4.3.5、构建/签名/公证步骤沿用下文;私钥与凭据须独立恢复。正式 APP 已独立替换并在宿主验收;PKG 通过20项展开验包,本轮没有重新运行系统安装脚本。
安装包:../发行包/大鱼调色-1.8.2.pkg,43006067 字节,SHA-256:cbabffc620ad851bd8ecddfaf797c46689722d0f772be409aaa29d0841a2eded。网站文章与自动更新后端未改。
正式 Release383/附件27已发布,标签完整 SHA:f4bacfbd75404a69f51127356fc861a44c0c27e9。草稿浏览器下载及发布后完整下载均为43,006,067字节,SHA-256:cbabffc620ad851bd8ecddfaf797c46689722d0f772be409aaa29d0841a2eded。下载副本和独立恢复副本在验证后清理;完整记录见 verification/Release.json、CompactUICleanup1.8.2.json。
---
# 1.8.1(57)CST 修正交付
实际编译源码:`059245858035e74f78bd669ef25913408d07d235`。仓库:`https://dayu.media/git/dayu/dayu-color.git`;版本标签为 `v1.8.1-cst-correction-20261104`,标签提交 `d0eadccc29782aa30301fff6dbf71c84b5758f59`。Release 382/附件26已发布,正式附件完整下载核验通过:42,999,475字节,SHA-256 `f94aa3a21ffbe52bc68b482289b71112d9895161e18f983af918d11547d254cd`。标签包含最终 `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.3(49):更多空间的内容原点
正式[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、子模块或新增必要外部资源;签名私钥与公证凭据需独立恢复。
@@ -12,6 +79,10 @@
正式包 `../发行包/大鱼调色-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、子模块和新增外部资源,证书/私钥/公证凭据仍需独立恢复。
+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,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"
}
+11 -57
查看文件
@@ -2,63 +2,14 @@
"passed": true,
"postID": 15792,
"url": "https://dayu.media/15792/",
"status": "publish",
"actualTitle": "大鱼调色 1.7.2 公测版:Final Cut Pro 原生调色插件",
"price": 50,
"vipRate": 0,
"ordinaryPurchaseAllowed": true,
"featuredMedia": 15795,
"media": [
{
"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
},
{
"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
}
],
"seo": {
"title": {
"enabled": true,
"value": "大鱼调色1.7.2公测版:Final Cut Pro原生调色插件,会员免费",
"frontendExact": true
},
"description": {
"enabled": true,
"value": "大鱼调色1.7.2公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,修正LUT缩略图浏览库的窗口尺寸与布局处理,保留Cube文字行兼容。完整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-02T13:57:12.692095+00:00",
"version": "1.7.2",
"build": "47",
"version": "1.7.4",
"build": "52",
"checkedAt": "2026-11-02T16:03:57.423149+00:00",
"mainDownload": {
"mediaID": 15801,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793627751-1071d4780582a45.pkg",
"bytes": 40904714,
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
"mediaID": 15805,
"url": "https://dayu.media/wp-content/uploads/2026/11/1793635244-411a5cac31e43fc.pkg",
"bytes": 40918925,
"sha256": "bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5",
"fullDownloadVerified": true
},
"frontend": [
@@ -79,5 +30,8 @@
"paidDownloadNotInPublicBody": true
}
],
"updatedBy": "dayu-publish-article write --post-id 15792"
"businessSettingsPreserved": true,
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
"readBackContentMatchesAfterHTMLWhitespaceNormalization": true,
"frontendScreenshotLocalOnly": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/tool-deletion-qa/article-1.7.4.png"
}
+12 -12
查看文件
@@ -1,5 +1,5 @@
{
"title": "大鱼调色 1.7.2 公测版:Final Cut Pro 原生调色插件",
"title": "大鱼调色 1.7.4 公测版:Final Cut Pro 原生调色插件",
"slug": "dayu-color-1-7-0-beta",
"excerpt": "",
"categories": [
@@ -10,11 +10,11 @@
"seo": {
"title": {
"enabled": true,
"value": "大鱼调色1.7.2公测版:Final Cut Pro原生调色插件,会员免费"
"value": "大鱼调色1.7.4公测版:Final Cut Pro原生调色插件,会员免费"
},
"description": {
"enabled": true,
"value": "大鱼调色1.7.2公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,修正LUT缩略图浏览库的窗口尺寸与布局处理,保留Cube文字行兼容。完整PKG已签名公证,售价50元,站内会员免费。"
"value": "大鱼调色1.7.4公测版,适用于Apple Silicon与macOS14.6及以上。支持CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪;新增模块和图层删除,删除时还原参数,重新添加从初始值开始。保留“更多空间”窗口修正,完整PKG已签名公证,售价50元,站内会员免费。"
},
"keywords": {
"enabled": true,
@@ -31,17 +31,17 @@
"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": "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": "1793627751-1071d4780582a45.pkg",
"cao_original_filename": "1793635244-411a5cac31e43fc.pkg",
"post_style": "sidebar",
"cao_info": ""
},
"packageSHA256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
"packageSHA256": "bab2cb14229de151f73782e4a9bd54ca34ef47b9dd15ef3590dd1cd95d04fce5",
"skill": {
"installed": "/Users/mac/.codex/skills/dayu-publish-article",
"remote": "https://dayu.media/git/dayu/dayu-publish-article-skill.git",
@@ -57,13 +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.2 公测版:Final Cut Pro 原生调色插件",
"actualTitle": "大鱼调色 1.7.4 公测版:Final Cut Pro 原生调色插件",
"userPublished": true,
"actualTags": [],
"actualExcerpt": "",
"packageBytes": 40904714,
"packageMediaID": 15801,
"updatedBy": "dayu-publish-article command",
"version": "1.7.2",
"build": "47"
"packageBytes": 40918925,
"packageMediaID": 15805,
"updatedBy": "dayu-publish-article",
"version": "1.7.4",
"build": "52"
}
+22 -2
查看文件
@@ -1,9 +1,9 @@
<!-- wp:paragraph -->
<p>大鱼调色 1.7.2 公测版是一款适用于 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.2,构建47。</p>
<p>本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.4,构建52。</p>
<!-- /wp:paragraph -->
<!-- wp:image {"sizeSlug":"full","linkDestination":"none"} -->
@@ -30,6 +30,26 @@
<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 -->
+13 -3
查看文件
@@ -1,8 +1,8 @@
# 大鱼调色 1.7.2 公测版:Final Cut Pro 原生调色插件
# 大鱼调色 1.7.4 公测版:Final Cut Pro 原生调色插件
大鱼调色 1.7.2 公测版是一款适用于 Final Cut Pro 与 Motion 的原生 FxPlug 4 调色插件。从素材色彩还原、基础调整,到 LUT 风格、胶片质感和局部蒙版,可直接在剪辑时间线里完成。
大鱼调色 1.7.4 公测版是一款适用于 Final Cut Pro 与 Motion 的原生 FxPlug 4 调色插件。从素材色彩还原、基础调整,到 LUT 风格、胶片质感和局部蒙版,可直接在剪辑时间线里完成。
本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.2,构建47。
本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.4,构建52。
## 在时间线里完成调色
@@ -14,6 +14,16 @@
**局部蒙版与工具叠层**:可针对单独工具添加蒙版、建立相邻叠层,并使用关键帧与跟踪处理局部区域,方便细调画面的不同部分。
## 1.7.4 更新:删除模块与图层
每个模块和新增图层的标题增加减号按钮,可删除不需要的层并让它从界面消失。删除时一并还原该模块的参数、清除关键帧及所属 LUT、蒙版等设置,避免隐藏后仍影响画面;其他模块保持原设置。误删可通过 Final Cut Pro 的一次撤销恢复。
顶部“添加模块”菜单可重新添加任意模块,新层从初始参数开始,不继承已删除层的设置。原有“再加一层”继续保留,删除状态随工程和完整预设保存。本机已验证删除、撤销、重做、重新添加与退出重开;本版继续保留此前的 Cube 兼容与“更多空间”窗口修正。
## 1.7.3 更新:显示缩放下的 LUT 窗口
修正部分显示器选择“更多空间”后,LUT 缩略图浏览库出现大片灰色、内容偏移和裁切的问题。首次打开即可完整显示搜索、文件夹、预览和底部控件,无需点击窗口绿色按钮恢复;原有窗口缩放、网格/列表与缩略图设置继续保留。本机已在相同显示设置下验证首次打开和重新启动 Final Cut Pro 后打开正常。
## 1.7.2 更新:LUT 浏览窗口
LUT 缩略图浏览库改为跟随 Final Cut Pro 提供的实际窗口内容区域,避免旧窗口位置和尺寸记录干扰布局;窗口变化时同步调整深色内容区、列表及底部控件。缩略图大小、网格/列表、侧栏、分类和最近使用设置继续保留。
+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
}
@@ -0,0 +1,51 @@
# 大鱼调色 FxPlug4 交接
2026-11-02 当前正式安装为 **1.7.3(49)**。本机已复现“更多空间”灰色区域并定位到SDK提供的外层contentView原点偏移;新增坐标对齐修正,首次打开无需绿色按钮。411项原生、27项几何、23项浏览库检查及本机FCP12.4热/冷重开和缩放通过,目标MacBook/FCP12.3仍待使用者复测。详见[修复与边界](research/BrowserMoreSpace1.7.3.md)、[RECOVERY.md](RECOVERY.md)及 `verification/Delivery.json` / `Package.json` / `Release.json`。保留1.7.1 Cube文字行兼容及1.7.0更新/公测诊断。以下保留1.6.0交接历史。
## 1.6.0交接历史
后续主 APP 优化入口:[大鱼调色主APP开发交接.md](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色主APP开发交接.md),包含自动更新、登录验证、生产接口只读盘点与待定产品规则;其中自动更新与公测诊断已在1.7.0完成,登录与授权仍未实施。
2026-11-02,最终正式版 **1.6.0(39)**。本次完成Color Finale本机胶片五组、通道混合器及用户补充的全部八种印片;去掉MOEF作者/网站两行、降低模板格式,并追加一级自动映射默认开启和主标题链接。
## 正式身份与恢复
- 唯一APP:`/Library/Plug-Ins/FxPlug/大鱼调色.app`;ID `com.dayu.color` / `com.dayu.color.XPC`,团队B3W25FX5H5。
- 实际编译源码:`e5affd3f097fc96f87f41be8e1a3f131ed01daeb`,APP公证 `5d74c04c-8a30-47e9-822d-4f616dfdee56` Accepted;签名、票据、Gatekeeper及正式进程路径通过。
- 远程:`https://dayu.media/git/dayu/dayu-color.git`,main,最终标签 `v1.6.0-print-looks-20261102`。完整标签SHA及PKG/Release元数据以 `verification/Release.json` 为准;实际编译SHA与文档交付SHA分别记录。
- 模板:`~/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef`,ozml5.11 / Motion5.4.5,SHA `fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250`。
- Apple Silicon/macOS14.6或更新;FCP12.4已验收,旧FCP未实机覆盖。不依赖ColorFinale安装、REA缓存或父插件;无LFS/子模块。
## 行为与参数
胶片为减色、晕光、辉光、颗粒、暗角、印片六页。印片默认无:Kodak2383、Kodak2393、Kodak2302 BW、Fuji3510、Fuji3513、Fuji3519、Fuji3521、AgfaCP30,独立强度。通道混合器为RGB三输出×三输入,保持亮度/饱和度和混合强度。两工具沿用启停、折叠、复位、蒙版、数量标记、区域跟踪、相邻独立层;旧索引、Uniform前缀、LUT、蜘蛛盘和轨迹保留。
印片追加在五处理后、全胶片混合/原蒙版前;Rec.709线性→AP1/D60→ACEScct→65³原LMT四面体→线性Rec.709。不包含原版任意完整CMS/ODT迁移。旧1296字节前缀保留,追加filmPrint共1312字节;预设v6读v1–v5。纯印片、矩阵和减色可导出Cube;空间/时间效果和蒙版限制保留。原版CI半透明链与产品预乘合同的已测差异详见研究和完整对照报告。
MOEF仅发布自定义检查器与混合,无作者/网站Rig。全局技能检查器对5.11返回未知版本guard,如实保存;项目级真实原生样本字段验证与当前FCP加载/渲染分别通过。
FCP新效果、新加一级层及全部还原的自动映射为开启;主标题链接为“更多插件访问 https://dayu.media”,点击已实际打开网站。原生注册默认维持历史0,新MOEF显式value1/default0;旧独立一级层省略值保持0。FCP沿用模板默认的旧主效果实测会变为开启,三组旧预设仅此0→1,其余277项及全部paths/spider/tools载荷保持。不能宣称更改模板默认后旧主效果完全逐字节不变;新手动关闭后已验证冷重开保持。
## 验收证据
正式395项原生检查、四尺寸136项原版印片对照通过,固定容差0.0001,最大线性RGB绝对差0.000004828。最终Metal与完整八外观验收的36候选相同。36候选逐个选择八种印片、两层不同印片/强度、椭圆蒙版100键跟踪、折叠标记、删除撤销重做及三段300帧ProRes通过;最终39保留全部自定义载荷,并完成新默认、实际链接、手动开关冷重开8668字节一致及新增1080p100帧正式导出。完整用户文件只在本机fcp-qa缓存,不进Git或PKG。
- 最终安装:`verification/Delivery.json` / `InstalledSelfTest.json`。
- 最终汇总:`verification/HostPrintLooks1.6.0.json`。
- 默认/链接/保存:`verification/HostPrimaryDefaults1.6.0.json`。
- 八外观完整宿主操作:`verification/HostPrintLooksBuild36.json`。
- 算法/原版边界:`research/PrintLooks1.6.0.md` / `verification/PrintLooksReference.json`。
- 独立恢复:`verification/PrintLooksRecovery.json`,最终编译节点294文件全字节、full/strict fsck、Release构建395项和模板重建通过。
- 最终安装包/上传/标签恢复/清理:`verification/Package.json`、`Release.json`、`PrintLooksReleaseRecovery.json`、`PrintLooksCleanup.json`。
最终PKG由PKG工坊签名、公证、票据与20项展开验包;不再运行系统安装器,APP已有独立正式安装和宿主验收。包与Release下载校验值以Package/Release报告为准。
## 接续方法
固定缓存 `/Users/mac/Library/Caches/CodexBuilds/com.dayu.color`。更改模型后运行 `python3 tools/build_template.py --refresh-model --overwrite`,再 `python3 tools/verify_template.py`;更新SkillAudit及摘要。Release用Wrapper Application方案,按全局产品锁/仓库锁约定交付;仅正式已公证位置做用户可见测试。证书/私钥需独立恢复。
历史35/37/38候选未发布;36的已验PKG在新需求到达后移除,未上传。37公证等待中停止了本地等待,保留ID查询,未重新上传相同产物。38正式验收发现FCP默认行为,39已记录实际边界。既有历史发行包与标签保留。1.5完整交接归档见 `research/handoffs/DayuColorThrough1.5.0-20261102.md`。
正式PKG `大鱼调色-1.6.0.pkg`,40833847字节,SHA-256 `13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca`;PKG公证 `4716e3c7-8199-4dc1-940c-2376dd647e9b` Accepted,签名、票据、Gatekeeper和20项展开验包通过。发行包未再次运行系统安装器。
最终[Release373](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.0-print-looks-20261102) / 附件18已发布并回读确认。标签 `v1.6.0-print-looks-20261102` 对应完整SHA `0cc51149a6f21ebe09465b4fd7130451bedd57bb`;草稿正常浏览器下载与发布后完整下载均校验40,833,847字节及SHA-256一致。发行标签296文件逐字节恢复和full/strict fsck通过,与实际编译SHA的程序源码完全一致。恢复clone、独立构建和下载副本清理完成;已知相关位置仅正式39版APP,历史发行包和私人验收数据保留。记录见 `verification/Release.json`、`ReleaseDraftDownload1.6.0.json`、`PrintLooksReleaseRecovery.json`、`PrintLooksCleanup.json`。
@@ -0,0 +1,160 @@
# 大鱼调色开发交接
交接日期:2026年11月4日,Asia/Shanghai;本机用户 mac,Mac mini M4。新对话从已交付的 **1.8.2(59)** 继续开发。色彩管理修正、黑金界面、签名公证、正式安装、PKG和Release均已完成,没有挂起的发布步骤;下一轮具体优化以用户的新需求为准。
先读本文件、[README](/Volumes/备份/大鱼调色/大鱼调色/README.md)和[恢复说明](/Volumes/备份/大鱼调色/大鱼调色/RECOVERY.md)。开发与交付遵循 `/Users/mac/.codex/AGENTS.md` 及用户最新说明。旧交接已逐字节归档到[1.7.3及之前历史](/Volumes/备份/大鱼调色/大鱼调色/research/handoffs/DayuColorThrough1.7.3-20261104.md),其中旧版本号、检查数量和原始规划不是当前状态。
## 工程和正式版本
| 项目 | 已核验内容 |
| --- | --- |
| 实际工程根目录 | `/Volumes/备份/大鱼调色/大鱼调色`,有两层“大鱼调色” |
| 工程和方案 | 根目录下 `大鱼调色.xcodeproj`;Wrapper Application,Release |
| 平台 | Apple Silicon,最低macOS14.6;本机Xcode27.1、FxPlug SDK4.3.5、Metal Toolchain |
| 唯一正式APP | `/Library/Plug-Ins/FxPlug/大鱼调色.app`,1.8.2(59) |
| Bundle ID | 外层 `com.dayu.color`;服务 `com.dayu.color.XPC` |
| 内部服务 | `/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit` |
| 固定构建缓存 | `/Users/mac/Library/Caches/CodexBuilds/com.dayu.color` |
| 正式模板 | `/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef` |
| 远程和分支 | `https://dayu.media/git/dayu/dayu-color.git`,main,保持现有可见性 |
| 实际编译源码 | `da03d16c7efa87a5d230467334ec73f9a3a12e54` |
| 发行标签 | `v1.8.2-blackgold-20261104` |
| 标签提交 | `f4bacfbd75404a69f51127356fc861a44c0c27e9` |
| 交接整理前main | `504e6d98e3a820cc7a896db0a32cd6dcc5741081`,已推送核验;本交接另作后续提交,接手时读取实际HEAD |
无LFS或子模块。OCIO2.5.2 / ACES1.3 studio-config v2.2.0及8个锁定依赖源码归档保存在仓库;私钥和认证不进Git。外置卷会产生 `._*` 元数据文件,不要混入提交。
## 用户确定的产品要求
- 高级色彩管理收进独立“颜色设置”按钮,普通用户默认看不到说明区;收起后不留空白。
- 默认继续“原有流程”。已保存的nil、v2、v3工程保持各自处理,展开界面不能改写状态或产生调色撤销项。
- 一级CST的输入、工作曲线/色域、输出必须生效。用户明确反对先将Log素材显示还原为Rec.709,再让后续一级转换失去意义。
- 黑金为新增默认配色:黑色和深色渐变背景、亮金文字、柔和光晕,保留原来五种主题。
- 产品名称、Bundle ID和正式路径保持稳定。用户可见验收使用正式安装位置的已公证版本。
## 1.8.2界面实现
检查器为 **AppKit / Objective-C++**,不是SwiftUI。采用FxPlug原位展开区域,没有新增浮动设置窗口。
顶部四个按钮为保存预设、载入预设、导出LUT、颜色设置。宽度小于320时排成两行;六枚主题色块占原标题区,窄栏隐藏版本小字以免重叠。
`_colorSettingsExpanded` 是检查器实例内的临时布尔状态。打开和关闭不写模型、不产生宿主撤销项;新建检查器默认收起。隐藏的 `DYManagedColorPanel` 不参与布局高度。说明已缩短,完整条件在工具提示中。
主题ID0–4依次为深空灰、冰川蓝、薰衣草紫、翡翠绿、琥珀橙;追加ID5黑金渐变。偏好域 `com.dayu.color.preferences`、键 `themeIndex`。没有明确保存偏好或索引非法时使用5;明确保存过的旧选择保留。本机已经通过界面选中黑金。
黑金背景为不透明静态渐变,金色细边与亮金文字。NSShadow模糊半径1.8、alpha0.30;系统增加对比度或减少透明度时去掉光晕。色轮、通道曲线和媒体预览保留真实色相。
候选58在FCP实机发现“添加模块”标题漏绘:pullsDown菜单的selectedItem可能为nil。正式59从第一项取标题,并增加实际像素绘制检查。候选58已回滚清理,未制作或发布安装包。后续改共用控件时保留普通按钮、弹出选择器和下拉菜单的差别。
| 入口 | 职责 |
| --- | --- |
| [DYInspector.mm](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYInspector.mm) | 顶部按钮、展开状态、卡片、参数控件和窄栏布局 |
| [DYManagedColorPanel.mm](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYManagedColorPanel.mm) | 色彩方式、帮助、输入输出字段及有撤销的状态写入 |
| [DYTheme.h](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYTheme.h)、[DYTheme.mm](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYTheme.mm) | 六主题、动态颜色、渐变、光晕、共用AppKit控件 |
| [DYCompactUIDiagnostics.inc.h](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYCompactUIDiagnostics.inc.h) | 隐藏高度、模型不变、三栏宽、主题、对比度、文字绘制 |
| [界面约定](/Volumes/备份/大鱼调色/大鱼调色/research/ui-blackgold-20261104/brief.md) | 本轮需求及实现选择 |
## 色彩管理的当前合同
完整预设格式仍为v7,色彩管理有独立版本。全局方式和一级可见参数各自的责任不要混淆。
| 状态 | 界面方式 | 行为 |
| --- | --- | --- |
| nil | 原有流程(默认) | 保留历史链,不自动迁移 |
| v2 mode1–3 | 1.8兼容,跟随FCP、相机或LUT输入 | 固定ACEScct/AP1,保护1.8.0已存画面 |
| v3 mode4 | 一级CST · 延后输出 | 采用原一级输入、工作域和输出,主输出放在一级层与印片之后 |
v3严格状态为:
```json
{"version":3,"mode":4,"engine":"Dayu-CST-f32","config":"primary-parameters-v1"}
```
v3主链:**声明的素材编码 → 一级输入CST → 所选工作域一级调色 → 独立一级层 → 印片 → 主输出CST及可选映射 → SDR修饰 → 实际宿主空间**。主输入做曲线与色域转换,不先做Rec.709显示映射。工作空间由原一级工作曲线和工作色域选择,可用DWG/DaVinci Intermediate、ACEScct/AP1等现有组合。
新增独立一级默认继承主工作空间,输入和输出相同、额外映射关闭。`primaryFollow` 为输入/工作/输出三段跟随位,初始7;手动更改某段曲线或色域后该段退出跟随。主工作域变化时,将跟随值写入作者状态,并形成一个宿主撤销组。渲染使用可见参数,不能暗中覆盖。局部CST后按声明的输出域回到主工作域,混合和蒙版在AP1线性中执行。
印片按需要往返ACEScct/AP1再返回用户工作域。新流程CST/BASIS边界和图像传输为float32;线性工作曲线有明确DI适配。新流程Cube为65³,保留一级声明的输入/输出Gamma或Log编码。旧兼容方式有不同导出合同,不要混用。
旧基础、HSL等工具仍作为输出后的SDR修饰,没有全部改成场景域或HDR算法。Log/线性码值输出拒绝活跃的SDR修饰;停用项和强度为零的LUT不能误触发拒绝。FxPlug接收到的是上游FCP像素,无法恢复相机LUT、颜色符合或上游裁切已丢失的信息。显式sRGB编解码桥可以是可逆码值载体,不能单凭出现该公式判定链路错误。
**模板兼容教训:**1.8.1候选56只改模板dataValue,即便defaultVal和原生注册缺省仍为nil,实际FCP也将旧nil实例改成v3。自动启用已回滚,候选56未发布安装包。当前模板与注册缺省均保留原nil,新流程由用户明确选择。不要为了默认启用v3再次直接改模板归档。
| 入口 | 用途 |
| --- | --- |
| [DYManagedColor.mm](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYManagedColor.mm) | 状态校验、v3默认值和独立层跟随 |
| [DYPrimaryRender.inc.h](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYPrimaryRender.inc.h) | v3工作域、顺序、主输出及SDR接续 |
| [DYPrimaryKernels.inc.h](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYPrimaryKernels.inc.h) | v3内核与边界 |
| [DYManagedRender.inc.h](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYManagedRender.inc.h) | v2兼容链 |
| [DYRenderer.mm](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYRenderer.mm) | 管线分派、Cube与宿主接入 |
| [DYPrimaryDiagnostics.inc.h](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYPrimaryDiagnostics.inc.h) | 高光、局部CST、线性域、负值、导出与旧链回归 |
| [float_air_boundary.py](/Volumes/备份/大鱼调色/大鱼调色/tools/float_air_boundary.py) | float32入口出口生成,原入口保留 |
| [1.8.1修正设计](/Volumes/备份/大鱼调色/大鱼调色/research/cms-correction-20261104/design.md) | 当前设计依据与模板问题 |
| [三款插件调查](/Volumes/备份/大鱼调色/大鱼调色/research/cms-audit-20261103/report.md) | 历史只读分析,当时待办不能直接当作当前未完成项 |
此前调查对象为 `/Library/Plug-Ins/FxPlug/BASIS.app`、`/Library/Plug-Ins/FxPlug/Colour Space Transform.app`、`/Applications/ColorFinale.app`。已交付运行时不依赖这三款APP或研究缓存。继续研究发行二进制时使用reverse-engineer-anything技能;普通大鱼源码开发直接读仓库。
## 验证结果和边界
1.8.2正式安装版595项原生检查通过,含1.8.1的581项及14项界面检查。FCP12.4实机检查六种主题、10次开关、关闭不留空白、原nil项目仍为原流程、v3保持、添加模块菜单可打开及Escape关闭;冷重开后黑金保留、设置收起。
更新前、操作后和冷重开后三份完整v3预设均为8,590字节、逐字节一致,SHA-256为 `1f05b3e350dd5fbc054de155062aff87fdd4d46c6a762ee06650ad5bd3363982`。1.8.2没有改渲染算法、模板或预设格式。
1.8.1另有独立高光参考、负值/超白、局部CST、独立层跟随与撤销重做、两代预设、65³ Cube、1080p25四秒100帧ProRes、两个项目XML1.12回读。受控宿主Log样本为带sRGB标签的16-bit PNG码值载体,不代表任意真实相机的上游路由或完整HDR监看链。1.8.2实际FCP为正常栏宽,280/320/400布局由原生假宿主验证;没有切换系统辅助显示选项。
独立远程克隆Release重建通过595项,8个依赖归档的大小和摘要通过;复用已验证静态依赖缓存,没有全依赖冷构建。最终标签独立检出,编译输入与实际编译提交一致。临时恢复目录、生成APP、旧安装备份、提交ZIP和浏览器下载副本均已清理。
| 证据 | 文件 |
| --- | --- |
| 正式安装、签名、公证及实际源码 | [Delivery.json](/Volumes/备份/大鱼调色/大鱼调色/verification/Delivery.json) |
| 595项原生结果 | [InstalledSelfTest.json](/Volumes/备份/大鱼调色/大鱼调色/verification/InstalledSelfTest.json) |
| 当前FCP验收 | [HostCompactUI1.8.2.json](/Volumes/备份/大鱼调色/大鱼调色/verification/HostCompactUI1.8.2.json) |
| CST数值与宿主 | [PrimaryCSTNumerical1.8.1.json](/Volumes/备份/大鱼调色/大鱼调色/verification/PrimaryCSTNumerical1.8.1.json)、[HostPrimaryCST1.8.1.json](/Volumes/备份/大鱼调色/大鱼调色/verification/HostPrimaryCST1.8.1.json) |
| 独立恢复与清理 | [CompactUIRecovery1.8.2.json](/Volumes/备份/大鱼调色/大鱼调色/verification/CompactUIRecovery1.8.2.json)、[CompactUICleanup1.8.2.json](/Volumes/备份/大鱼调色/大鱼调色/verification/CompactUICleanup1.8.2.json) |
| 安装包及下载 | [Package.json](/Volumes/备份/大鱼调色/大鱼调色/verification/Package.json)、[Release.json](/Volumes/备份/大鱼调色/大鱼调色/verification/Release.json) |
## 发布与恢复
发行包 `/Volumes/备份/大鱼调色/发行包/大鱼调色-1.8.2.pkg`,43,006,067字节,SHA-256为 `cbabffc620ad851bd8ecddfaf797c46689722d0f772be409aaa29d0841a2eded`。[在线Release383](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.8.2-blackgold-20261104),附件27,保留公测标记。草稿和发布后完整下载均已校验。
APP公证 `11fcf84b-680e-415e-87d2-bcf4ee8cdb78`;PKG公证 `26361685-6bdd-4c59-bc2c-4824ea190e05`,均Accepted并完成票据验证。PKG通过20项展开验包;APP已独立替换和宿主验收,本轮没有再次运行PKG系统安装脚本。
标签包含本版最终Package.json,发布后的Release.json在后续main。标签内旧Release.json属于上一版历史。实际编译、标签、最终文档提交不同,不移动标签或改写历史来强求SHA一致。
签名团队B3W25FX5H5,Application/Installer身份为zhong luo;当前证书有效至2027年2月2日06:12:15(上海),发布时重新核实身份、私钥与有效期。公证profile为 `codex-dayu-notary-B3W25FX5H5`,钥匙串 `/Users/mac/Library/Keychains/login.keychain-db`。不打印或提交凭据,密钥恢复按全局规则。
## 下一轮开发步骤
接手先核对工作区、分支、远程、正式版本和用户新需求。交接整理前工作区干净、main已推送。本轮只更新文档,不重编APP。若收到新截图或问题,在当前实现上定位,避免照旧交接重做已完成的CMS或自动更新。
1. 读取全局及新增项目规则,保护其他对话的修改,先保存本任务基线。
2. 使用[checkpoint.py](/Volumes/备份/大鱼调色/大鱼调色/tools/checkpoint.py)提交明确审查过的路径,参数为提交说明和路径;脚本持有仓库锁、推送并核验main,不在外层重复持有同一锁。
3. UI修改验证正常/窄栏、主题、展示不改参数和撤销。渲染修改按问题补数值与宿主验证,保护nil/v2/v3。更改模型才按需要刷新模板,不能借刷新自动启用v3。
4. 新发布更新外层与内部Info.plist版本和构建,当前为1.8.2(59)。正常保存退出FCP/Motion,不能强杀有未保存工作的宿主。
5. 在工程根目录以保持输入会话的终端运行 `python3 tools/deliver.py`。它完成Release、签名、自检、公证、票据、正式替换和发现路径核验。保持HEAD固定直到Delivery.json记录实际sourceCommit。
6. 显示FORMAL_INSTALLED后,在正式位置验收。全部通过才向原会话输入 `complete`;`leave`仅保留待验收状态。complete会重写Delivery.json,之后补本版hostVerification路径;失败保留诊断并按可恢复流程处理旧版。
7. `python3 Packaging/build_pkg.py`使用PKG工坊制作签名公证包和展开验包。要求Delivery.json为verified,拒绝覆盖已有同版发行包;验包不等于执行系统安装脚本。
8. 提交推送记录并创建新的不可变版本标签;`python3 Packaging/publish_beta.py --tag <新标签> --notes <本版说明文件>`创建草稿、上传及下载校验。脚本自带仓库锁。
9. 遇到draft-download-required,先确认附件已存在,别重复POST。用已登录Edge打开API返回的真实附件URL;本机下载目录为 `/Volumes/备份`。用独立副本传 `--verified-download`,通过后发布并再次完整下载校验,记录真实URL、附件ID和摘要。
10. 独立验证远程源码/标签恢复,清理本任务生成的APP、提交ZIP、旧安装备份和验证副本;保留正式包、源码、历史发行包与私人QA资料。提交推送最终记录并核验远端引用。
完整路径入口:[deliver.py](/Volumes/备份/大鱼调色/大鱼调色/tools/deliver.py)、[build_pkg.py](/Volumes/备份/大鱼调色/大鱼调色/Packaging/build_pkg.py)、[publish_beta.py](/Volumes/备份/大鱼调色/大鱼调色/Packaging/publish_beta.py)。这些命令均在上述工程根目录执行,不能将构建缓存当源码。
产品锁为 `/Users/mac/.codex/app-delivery-locks/com.dayu.color.lock`;Git锁在 `/Users/mac/.codex/git-backup-locks`,以不含凭据的小写完整HTTPS仓库地址SHA-256命名。先核对owner.json进程,不能删除仍在工作的锁。
正式服务可执行文件加 `--self-test` 可做无界面检查:
`/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service`。构建目录只做编译与原生无界面检查,用户可见功能验收使用正式已公证位置。Xcode会登记生成内部服务,独立恢复构建在宿主关闭时执行,随后解除生成副本登记,避免宿主误载。
## 本机验收资料与后续范围
私人资料位于 `/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa`,不进Git或PKG。资源库为该目录下 `大鱼调色_验收.fcpbundle`;本轮项目为1.8.1_Log高光恢复和1.8.1_工作空间与独立层。项目名称不保证当前参数值,比较应以实际完整预设为准。
三份一致预设为该目录的ui58-before.json、ui59-after.json、ui59-cold-reopened.json。较早Cube、ProRes和XML的范围见1.8.1记录。缓存不是远程恢复资源,合成素材可由原生诊断和[create_primary_host_fixture.py](/Volumes/备份/大鱼调色/大鱼调色/tools/create_primary_host_fixture.py)重建。
交付结束时FCP为黑金、颜色设置收起,QA项目为1.8.1_Log高光恢复。此前Motion文稿已恢复打开,未编辑。新对话重新获取当前窗口和进程,不沿用历史UI元素编号、PID或工具会话。
真实相机Log上游路由、HDR/SDR工具域、更广宿主版本及界面细节均可作为后续方向,用户尚未指定优先级。不要把“所有工具已场景化”或“任意HDR链已验证”当作现状。
主APP自动更新与云端公测诊断已在1.7.0实现;登录、授权、业务加密尚未实施,详见[主APP交接](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色主APP开发交接.md)和[后端说明](/Volumes/备份/大鱼调色/大鱼调色/Backend/README.md)。1.8.0至1.8.2没有同步网站文章或自动更新清单,源码Release发布不等于网站已上新版。
以后涉及后台,按全局规则先核对NAS生产共享 `/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media` 与本地专项副本的映射、基线和旁路备份;不要把工程内Backend或下载目录当生产源。若优化LUT浏览器,保留1.7.3的FxPlug宿主contentView原点适配,历史记录见[BrowserMoreSpace1.7.3.md](/Volumes/备份/大鱼调色/大鱼调色/research/BrowserMoreSpace1.7.3.md)。
+9
查看文件
@@ -0,0 +1,9 @@
# 1.8.2:收起高级颜色设置,新增黑金主题
基线:12fdde332f3174b2e948ad67df1d1f30aee2d69c。默认色彩流程继续为 nil/原有流程;保留已保存的 v2/v3 设置。此任务只改变检查器的展示和主题。
采用顶部四个操作按钮(保存、载入、导出、颜色设置),避免在已有六枚主题色块旁挤入图标。颜色设置以单一界面布尔状态控制原位展开/收起,首次和重开默认收起,不占参数区高度;打开/关闭不写调色状态,不制造撤销项。说明缩短,完整条件放入工具提示。
保留原主题 ID0–4,追加黑金 ID5,未设置偏好的默认值改为5。现有明确主题选择保持;本机验收选择新主题。黑色/炭黑不透明渐变背景、金色边线和亮金文字;文字只附加小范围静态光晕,增加对比度或减少透明度时去掉光晕。真实色轮、曲线通道和媒体图像保留语义颜色。
沿用 AppKit 与 FxPlug 原位视图,无新浮动窗口、计时器、动画或渲染算法。280窄栏和正常栏分别布局,按钮保持可读。验证默认收起、反复开关、键盘/辅助功能名称、窄栏、六种主题、减少装饰分支及旧工程参数保持;正式签名、公证、安装和 FCP 视觉验收后交付 PKG/Release。
+17
查看文件
@@ -0,0 +1,17 @@
# 炫彩界面与曲线直方图
基线 fa8201426647e2728c9bd344da7823f09a500871,1.8.2(59)。AppKit/FxPlug,macOS14.6+。
用户要求:参照紫蓝、洋红与青色界面替换黑金观感,曲线叠加真实 RGB/亮度直方图。
保持现有宿主检查器结构、模块状态、预设、撤销和色彩算法。主题追加编号6,旧0–5保持;新默认为6,本机原黑金选择在正式验收切换为6。背景与卡片不透明静态渐变,正文白色,重点按钮和滑杆用紫青渐变;原生焦点与动作保留,无持续动画。
直方图复用每0.5秒更新的320×180浮点分析缓存,在渲染工作线程统计256档RGB与亮度,检查器只绘制不可变快照。使用共同最大值与平方根高度,透明区域、非有限像素不计;超范围归到端点。RGB页叠加四通道,单色页显示对应通道。叠层默认开启,支持显隐,不写参数或预设。
分析画面沿用既有流程:原流程为一级CST/输入LUT后,新CMS为显示输出转换后、SDR修饰前。它不是最终输出示波器,也不保证每个独立曲线层的即时输入。UI工具提示说明来源及采样精度,不误标为最终输出。
验证:数值分布、透明/NaN/超范围、缓存隔离与失效、四通道绘制与曲线交互、280/320/400栏宽、旧预设不变;正式Release签名公证安装、FCP实测与冷重开、PKG/Release下载校验及远程恢复。
用户中途视觉反馈:候选60的卡片与图标仍以紫色为主。最终改为中性深蓝灰大面积表面、青色默认强调,按模块使用青/蓝/洋红/绿等细边与标题标记,保留紫青重点按钮及滑杆;不用紫色铺满背景。候选60公证并正式安装用于验收,未制作PKG或发布。
用户再次反馈:深蓝灰与现有青色主题近似,不要深蓝灰。最终取消中性深蓝灰方案,改为饱和的多色环境渐变和分模块双色渐变表面;紫色仅是其中一种,不再统一铺满所有卡片。候选61未制作PKG或发布。
+13
查看文件
@@ -0,0 +1,13 @@
# 炫彩界面验证边界
选用 expressive 配色,沿用原生 AppKit 控件与现有布局,不增加持续动画、模糊或透明玻璃层。系统增加对比度/减少透明度时,炫彩面板仍为不透明静态表面,炫彩文字不使用光晕。
SwiftUI 风险扫描器返回 no Swift files,因本产品为 Objective-C++/AppKit,记录为不适用而非通过。Release 构建与原生集成自检覆盖模型、Metal渲染和假宿主;本版新增统计透明/NaN/无穷/范围外像素、亮度系数、采样守恒、缓存初始化/失效、四通道绘制及无参数写入检查。
布局280/320/400及CMS nil/v2/v3不变沿用并执行已有原生检查。FCP实机使用正常检查器栏宽。AX能发现7个主题按钮、RGB/红/绿/蓝切换、直方图复选框和数据来源/采样量说明;本轮没有启用VoiceOver或改变系统显示辅助选项,也未做Instruments采样,不宣称覆盖全部辅助技术或测得60fps。
视觉评分暂定84/100:平台14/15、布局13/15、视觉13/15、交互17/20、材质13/15、辅助6/10、实现8/10。此为受证据限制的暂定评价,不作为“Apple品质”或全覆盖承诺;用户的配色反馈优先。
候选60大量紫色与候选61深蓝灰均在用户实看后被否决,保留各自源码和公证证据,不发布安装包。最终62改为有饱和色相的分模块双色渐变。
验收中用图表中心单击添加的masterX0=0.5曲线点在61冷重开仍保留,证明曲线编辑与持久化;最终62已通过载入neon60-before.json还原验收工程,neon62-restored.json与neon62-cold.json均与原8,590字节预设逐字节一致。该操作造成的差异与纯主题/直方图显隐不改参数分别记录。
+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():]
+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": 383,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.8.2-blackgold-20261104",
"tag": "v1.8.2-blackgold-20261104",
"commit": "f4bacfbd75404a69f51127356fc861a44c0c27e9",
"assetID": 27,
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.8.2-blackgold-20261104/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.8.2.pkg",
"bytes": 43006067,
"sha256": "cbabffc620ad851bd8ecddfaf797c46689722d0f772be409aaa29d0841a2eded"
}
+17
查看文件
@@ -0,0 +1,17 @@
{
"status": "installed-awaiting-host-verification",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.8.2",
"build": "58",
"team": "B3W25FX5H5",
"notaryID": "1d8097bd-1e68-4070-a7e4-c0381382b1f6",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "870f0064c2cdf76d1025832512120af8d76f6840",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"shaderSHA256": "38395fc34a3e3f222c34abc7b643df820f6a3c1a12eac52f2f9a6beaa0a7da76",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-86f5ddc4ffcc4e5b97507888122c29b3.app",
"hostIssue": "Black-gold pull-down menu selectedItem is nil; missing Add Module caption. Not accepted or published; rolled back to verified 1.8.1 before rebuilding."
}
+28
查看文件
@@ -0,0 +1,28 @@
{
"version": "1.8.2",
"build": "59",
"removed": [
"restore-1.8.2",
"restore-build-1.8.2",
"unaccepted candidate58 APP",
"notarization submission ZIPs",
"previous install backup after acceptance"
],
"retained": [
"unique formal APP",
"current signed PKG",
"previous user release packages",
"source and verification records"
],
"recoveryCloneRemovedAfterValidation": true,
"motionPreviousDocumentRestored": true,
"scope": "Only task-created product outputs; no whole-disk uniqueness claim.",
"passResult": true,
"browserDownloadedCopyRemovedAfterBothChecks": true,
"generatedAppInventory": {
"projectRootAndProductCache": [],
"hiddenInstallBackups": [],
"ApplicationsOrUserFxPlugAlternate": []
},
"submissionZIPAbsent": true
}
+42
查看文件
@@ -0,0 +1,42 @@
{
"compiledSource": "da03d16c7efa87a5d230467334ec73f9a3a12e54",
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"clone": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/restore-1.8.2",
"fsck": "full strict passed",
"changedSourceFilesIdentical": [
"Packaging/Release-1.8.2.md",
"README.md",
"research/ui-blackgold-20261104/brief.md",
"verification/CompactUICandidate58.json",
"大鱼调色/Plugin/DYCompactUIDiagnostics.inc.h",
"大鱼调色/Plugin/DYDiagnostics.mm",
"大鱼调色/Plugin/DYInspector.mm",
"大鱼调色/Plugin/DYManagedColorPanel.mm",
"大鱼调色/Plugin/DYTheme.h",
"大鱼调色/Plugin/DYTheme.mm",
"大鱼调色/Plugin/Info.plist",
"大鱼调色/Wrapper Application/Info.plist"
],
"dependencyArchivesVerified": [
"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"
],
"scope": "Independent remote checkout; build and formal host checks recorded separately.",
"passResult": true,
"independentBuild": "Release Wrapper Application",
"nativeChecks": 595,
"nativeChecksPassed": true,
"dependenciesBuild": "Eight archived dependencies verified; reuse verified static runtime cache, not a full dependency cold build.",
"generatedCopiesNeverShown": true,
"generatedRegistrationRemoved": true,
"releaseTag": "v1.8.2-blackgold-20261104",
"releaseTagCommit": "f4bacfbd75404a69f51127356fc861a44c0c27e9",
"releaseTagCheckedOut": true,
"compiledInputsMatchTag": true
}
+7 -6
查看文件
@@ -2,14 +2,15 @@
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.7.3",
"build": "49",
"version": "1.8.3",
"build": "62",
"team": "B3W25FX5H5",
"notaryID": "06e09906-676f-414b-adcc-acf2bec6864a",
"notaryID": "706a58bb-2fa4-4b1e-b392-de60d93aef49",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "2688b22f99b5118153b94a43f6c184a204d4ce7e",
"sourceCommit": "3fd015224037df944b428684c43ec8ec7accea85",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
"shaderSHA256": "6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d"
"templateSHA256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"shaderSHA256": "38395fc34a3e3f222c34abc7b643df820f6a3c1a12eac52f2f9a6beaa0a7da76",
"hostVerification": "verification/HostNeon1.8.3.json"
}
+2 -1
查看文件
@@ -53,7 +53,8 @@
"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-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.",
+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"
]
}
+39
查看文件
@@ -0,0 +1,39 @@
{
"version": "1.8.2",
"build": "59",
"host": "Final Cut Pro 12.4",
"appPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"compiledSource": "da03d16c7efa87a5d230467334ec73f9a3a12e54",
"checks": {
"defaultPanelHidden": true,
"closedPanelNoBlankSpace": true,
"goldGradientAndLuminousTextObserved": true,
"addModuleCaptionVisible": true,
"realColorWheelPreserved": true,
"allSixThemeSelectors": true,
"settingsToggles": 10,
"savedV3ModePreserved": true,
"presetBeforeAfterByteIdentical": true,
"coldReopenPresetByteIdentical": true,
"coldReopenSettingsCollapsed": true,
"coldReopenGoldThemePersisted": true,
"originalNilProjectStillOriginalFlow": true,
"addModuleNativeMenuOpensAndEscapeCloses": true
},
"preset": {
"before": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/ui58-before.json",
"after": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/ui59-after.json",
"bytes": 8590,
"sha256": "1f05b3e350dd5fbc054de155062aff87fdd4d46c6a762ee06650ad5bd3363982",
"coldReopened": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/ui59-cold-reopened.json"
},
"limitations": [
"Width 280/320/400 and CMS nil/v2/v3 invariance checked by native fake-host diagnostics; actual FCP observed at normal inspector width.",
"System display accessibility switches were not changed; glow policy code reads current system settings.",
"Image rendering code and template unchanged; prior CST numerical/host export acceptance retained."
],
"pass": true,
"formalHostProcess": [
"50123 /Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service"
]
}
+37
查看文件
@@ -0,0 +1,37 @@
{
"version": "1.8.3",
"build": "62",
"host": "Final Cut Pro 12.4",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"compiledSource": "3fd015224037df944b428684c43ec8ec7accea85",
"nativeChecks": 605,
"checks": {
"multicolorModuleSurfacesObserved": true,
"noUniformPurpleOrBlueGrayTheme": true,
"nativeThemeChoicePersisted": true,
"realVideoAndColorBarsHistogramsObserved": true,
"liveVideoPlaybackObservedFrom": "00:00:04:00",
"liveVideoPlaybackObservedTo": "00:00:11:12",
"distributionChangedWithVideoFrame": true,
"RGBAndIndividualChannelsAndOverlayToggle": true,
"coldReopenHistogramReceives57600Samples": true,
"coldReopenSettingsCollapsed": true,
"originalV3CMSPreserved": true,
"originalPresetRestoredAndColdReopenedByteIdentically": true
},
"preset": {
"before": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/neon60-before.json",
"restored": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/neon62-restored.json",
"cold": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/neon62-cold.json",
"bytes": 8590,
"sha256": "1f05b3e350dd5fbc054de155062aff87fdd4d46c6a762ee06650ad5bd3363982"
},
"curveInteraction": "A center point added during candidate60 QA persisted in candidate61 cold reopen; final62 restored baseline through the native preset loader. Original curve math/gesture handlers unchanged. Drag/delete not independently accepted in this pass.",
"limitations": [
"Histogram uses sampled analysis preview, not final output or every local curve input; details in checkbox help.",
"280/320/400 layout and nil/v2/v3 invariance use native fake-host diagnostics; FCP observed at normal inspector width.",
"No VoiceOver, system display switch matrix or Instruments profiling; AppKit source has no Swift files.",
"Final APP installed and tested directly; package scripts are verified by expansion, not reinstalled."
],
"passResult": true
}
+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
}
文件差异过大,未显示。 加载差异
+35
查看文件
@@ -0,0 +1,35 @@
{
"passResult": true,
"checkedAt": "2026-11-02T14:56:54.209423+00:00",
"checkedRoots": [
"/Library/Plug-Ins/FxPlug",
"/Applications",
"/Users/mac/Library/Plug-Ins/FxPlug",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color",
"/Volumes/备份/大鱼调色"
],
"knownProductApps": [
{
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"version": "1.7.3",
"build": "49"
}
],
"removedTaskArtifacts": [
"/Volumes/备份/大鱼调色-1.7.3.pkg",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/recovery-1.7.3",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/verify-geometry",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/verify-geometry-before",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/verify-browser",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/verify-restored-geometry",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/browser-before.mm"
],
"knownOriginal47BackupRemoved": true,
"intermediate48BackupRemovedByDelivery": true,
"notarySubmissionZipRemoved": true,
"diagnosticPreferenceRestoredToAbsent": true,
"activeProcess": "14927 /Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service",
"formalInstallerRetained": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.7.3.pkg",
"historicalInstallersPreserved": true,
"scope": "Current task creation paths and established product installation/build roots; not a whole-disk claim. Screenshots, diagnostic records and original user files retained."
}
+9 -2
查看文件
@@ -5,7 +5,14 @@
"allCommittedFileBytesMatch": true,
"fullStrictFsck": true,
"restoreDirectory": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/recovery-1.7.3",
"status": "source restored and native geometry rebuilt",
"status": "compiled source and release tag independently restored and checked",
"geometryChecks": 27,
"geometryPass": true
"geometryPass": true,
"tag": "v1.7.3-browser-origin-20261102",
"tagCommit": "f2038f12ebf24ec5c298ba67212e7f7f29afa60c",
"tagFilesCompared": 373,
"tagFullStrictFsck": true,
"taggedProgramSourcesMatchCompiledCommit": true,
"temporaryRecoveryCloneRemoved": true,
"temporaryNativeExecutablesRemoved": true
}
@@ -0,0 +1,20 @@
{
"tag": "v1.7.3-browser-origin-20261102",
"commit": "f2038f12ebf24ec5c298ba67212e7f7f29afa60c",
"releaseID": 379,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.3-browser-origin-20261102",
"draft": true,
"assetID": 23,
"assetName": "大鱼调色-1.7.3.pkg",
"downloadURL": "https://dayu.media/git/attachments/fd8a8f46-c7f4-4890-b33f-702bff1fed26",
"bytes": 40908193,
"expectedSHA256": "f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324",
"credentialSource": "macOS Keychain: dayu-git-api",
"draftFullDownloadVerified": true,
"requiresNormalBrowserDownload": true,
"downloadedCopy": "/Volumes/备份/大鱼调色-1.7.3.pkg",
"downloadedSHA256": "f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324",
"downloadedBytes": 40908193,
"verifiedAt": "2026-11-02T14:52:20.851032+00:00",
"verificationMethod": "Normal signed-in Edge browser draft asset download; full byte count and SHA-256 compared to final notarized PKG"
}
+16
查看文件
@@ -0,0 +1,16 @@
{
"status": "installed-awaiting-host-verification",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.8.3",
"build": "60",
"team": "B3W25FX5H5",
"notaryID": "6ee7bd89-98b5-46f4-8db4-39491f67385c",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "bea51d2297d813683448c6b15f9049d3f9d42d8b",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"shaderSHA256": "38395fc34a3e3f222c34abc7b643df820f6a3c1a12eac52f2f9a6beaa0a7da76",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-451eaad980494571b90ac2679f1fa80f.app"
}
文件差异过大,未显示。 加载差异
+16
查看文件
@@ -0,0 +1,16 @@
{
"status": "installed-awaiting-host-verification",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.8.3",
"build": "61",
"team": "B3W25FX5H5",
"notaryID": "7989722c-6688-493b-aabf-772158527bed",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "335ef7a5ee310ed8bb1f31dd67098e38e7f31ed7",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "3f4f642146ae60710b865bd131c0d0be458e6430de54b50bd49dc9637643c891",
"shaderSHA256": "38395fc34a3e3f222c34abc7b643df820f6a3c1a12eac52f2f9a6beaa0a7da76",
"previousInstallBackup": "/Library/Plug-Ins/FxPlug/.dayu-color-previous-e7645188ecbb400ab7d3efe13cf5b8bb.app"
}
文件差异过大,未显示。 加载差异
+8
查看文件
@@ -0,0 +1,8 @@
{
"removedPriorCandidateBackups": [
"/Library/Plug-Ins/FxPlug/.dayu-color-previous-451eaad980494571b90ac2679f1fa80f.app",
"/Library/Plug-Ins/FxPlug/.dayu-color-previous-e7645188ecbb400ab7d3efe13cf5b8bb.app"
],
"scope": "Only generated backups identified by candidate delivery records; final build app and loose plugin cleaned by deliver.py. Formal PKG retained; user QA media and historical packages preserved.",
"passResult": true
}
已加载 100/143 个文件。由于本次变更涉及的文件过多,其余文件未显示。 显示更多