补充偏粉肤色跨红色色相边界并保持橙色优先

这个提交包含在:
mac 于 2026-11-16 15:20:04 +08:00 提交
1 父节点 ca7221f073
当前提交 f5ae4ca5ea
3 个文件已更改
+4 -4

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

+1 -1
查看文件
@@ -14,7 +14,7 @@ static inline int DYHSLPickedLane(float r,float g,float b) {
float saturation=chroma/high;
// Warm, less saturated pink/peach/brown points take precedence over red/yellow.
// This is a colour heuristic, not face/person detection; saturated red stays red.
if(hue<=52&&r>g&&g>=b-.025f&&saturation>=.08f&&saturation<=.72f)return 1;
if((hue<=52||hue>=345)&&r>g&&r>b&&g>=b-.08f&&saturation>=.08f&&saturation<=.72f)return 1;
const float centers[]={0,30,60,120,180,240,270,315};
int best=0;float closest=360;
for(int lane=0;lane<8;lane++){float distance=std::fabs(hue-centers[lane]);distance=std::min(distance,360-distance);if(distance<closest){closest=distance;best=lane;}}
@@ -1,7 +1,7 @@
// Classifier boundaries and real native inspector selection, without opening a sampler.
{
const float points[][4]={{1,.04,.02,0},{1,.5,.02,1},{.95,.9,.02,2},{.03,.8,.05,3},{.02,.8,.8,4},{.02,.12,.9,5},{.55,.08,.95,6},{.95,.04,.6,7},
{.95,.8,.79,1},{.74,.46,.44,1},{.65,.42,.28,1},{.27,.16,.12,1},{.5,.5,.5,-1},{1,1,1,-1},{0,0,0,-1},{.5,.49,.48,-1},{NAN,.3,.2,-1}};
{.95,.8,.79,1},{.91,.7,.73,1},{.74,.46,.44,1},{.65,.42,.28,1},{.27,.16,.12,1},{.5,.5,.5,-1},{1,1,1,-1},{0,0,0,-1},{.5,.49,.48,-1},{NAN,.3,.2,-1}};
for(unsigned i=0;i<sizeof(points)/sizeof(points[0]);i++)run.record([NSString stringWithFormat:@"hsl-picker-colour-%02u",i],DYHSLPickedLane(points[i][0],points[i][1],points[i][2])==(int)points[i][3]);
DYDiagnosticManager *pickHost=[[[DYDiagnosticManager alloc]init]autorelease];DYCreateParameters(pickHost,nil);
NSMutableDictionary *pickDoc=DYMutablePlist([[[DYToolDocument alloc]init]autorelease].document);NSDictionary *pickLayer=DYInsertTool(pickDoc,@"hsl",@"base:hsl");DYWriteTools(pickHost,pickDoc,kCMTimeZero);
@@ -18,7 +18,7 @@
[(id)editor performSelector:@selector(selectHSLColor:) withObject:nil];
BOOL retained=[[(NSDictionary*)[editor valueForKey:@"tabs"]objectForKey:@"hsl"]integerValue]==1,button=NO,swatch=NO;
for(NSDictionary *card in [editor valueForKey:@"cards"])if([card[@"section"][@"key"]isEqual:@"hsl"]){
for(NSView *row in card[@"body"]){if([row.identifier isEqual:@"hslPickerControls"])button=[row.subviews.firstObject action]==@selector(sampleHSLLane:);
for(NSView *row in card[@"body"]){if([row.identifier isEqual:@"hslPickerControls"])button=[(NSButton*)row.subviews.firstObject action]==@selector(sampleHSLLane:);
if([row.identifier isEqual:@"hslTabs"]){swatch=YES;for(NSButton *b in row.subviews)swatch&=(b.state==(b.tag==1?NSControlStateValueOn:NSControlStateValueOff));}}
}
run.record([NSString stringWithFormat:@"hsl-picker-native-editor-%lu",(unsigned long)editorIndex],blue&&skin&&retained&&button&&swatch);
+1 -1
查看文件
@@ -4,7 +4,7 @@
## 本轮进行中:DJI 相机曲线预设与 HSL 吸管
用户新增目标:HSL增加点取色吸管,按颜色切换八色调整项,暖肤色优先进入橙色;复用系统取色,主模块/独立层/工作区共用,灰色或取消保留选择,不写调色值。
用户新增目标:HSL增加点取色吸管,按颜色切换八色调整项,暖肤色优先进入橙色;复用系统取色,覆盖偏粉/桃色/棕色的肤色点,主模块/独立层/工作区共用,灰色或取消保留选择,不写调色值。
相机预设目标仅为大鱼调色的一级调色与独立 CST。基线 `883f680ade8706b8b89580ddc77c062a9a14dd39` 已回读远端一致;既有 Xcode 引用排序差异保留,不纳入本轮。新增稳定曲线 ID 31–34:御 4 Pro D-Log、Pocket 4 D-Log、Pocket 4P D-Log/D-Log 2,分别复用既有 11/12 的 GPU 解码与编码。色域仍独立选择:D-Log 配 DJI D-Gamut,D-Log 2 配 DJI D-Gamut 2。未将 D-Log M 冒充为 D-Log;本轮不新增无公开数学依据的御 4 Pro 专用 D-Log M 标定。版本准备为 1.22.3(138)。已加入输入/工作/输出 GPU 对比检查;模板重建与静态检查通过。首次构建发现诊断引用了未导出的私有函数,已改为经正式参数描述表检查菜单;继承的失效 SDKROOT 已用当前 Xcode SDK 环境修正。首轮像素自检发现 ID31–33 在工作曲线位置需映射到原生 D-Log BASIS,已修复,输入与输出阶段此前通过;失败诊断保留在固定缓存 `dji-alias-working-first-failure.json`。待修复后自检、正式签名公证、安装宿主验收、PKG 与 Release 附件校验。此前 1.22.2 仍为当前正式安装。