docs: add reproducible large-LUT host fixture and asynchronous loading notes
这个提交包含在:
1 父节点
838037a7e0
当前提交
ddcaa821be
2 个文件已更改
+29
-1
没有与搜索条件相匹配的文件
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Create synthetic large LUTs for formal FCP responsiveness acceptance only."""
|
||||
from pathlib import Path
|
||||
import hashlib,json
|
||||
|
||||
root=Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/LUT后台加载验收')
|
||||
root.mkdir(parents=True,exist_ok=True)
|
||||
manifest=root/'manifest.json'
|
||||
if any(root.iterdir()) and not manifest.exists():
|
||||
raise RuntimeError('Refusing to replace an unrecognized fixture directory')
|
||||
entries=[]
|
||||
for i in range(24):
|
||||
r,b=(1.12,.85) if i==22 else (.88,1.10) if i==23 else (1,1)
|
||||
name=('暖调' if i==22 else '冷调' if i==23 else '中性')+f'-{i:02d}.cube'
|
||||
path=root/name
|
||||
if not path.exists():
|
||||
header='TITLE "Dayu authored asynchronous LUT fixture"\nLUT_3D_SIZE 65\n'
|
||||
with path.open('w') as file:
|
||||
file.write(header)
|
||||
for z in range(65):
|
||||
for y in range(65):
|
||||
for x in range(65):
|
||||
file.write(f'{x/64*r:.7f} {y/64:.7f} {z/64*b:.7f}\n')
|
||||
entries.append({'path':str(path),'sha256':hashlib.sha256(path.read_bytes()).hexdigest()})
|
||||
manifest.write_text(json.dumps({'authoredSyntheticFixture':True,'cubeDimension':65,'files':entries},ensure_ascii=False,indent=2)+'\n')
|
||||
print(json.dumps({'folder':str(root),'files':len(entries)},ensure_ascii=False))
|
||||
在新工单中引用
屏蔽一个用户