feat: hncs (4)
This commit is contained in:
1 parent
15684d2364
commit
63a9e7157d
33 files changed
+230
-655
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,37 +3,40 @@
|
||||
"profileCount": 21,
|
||||
"profiles": [
|
||||
{
|
||||
"asset": "LUTTable100MP.hncs",
|
||||
"asset": "LUTTable100MP3.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H6D-100c",
|
||||
"Hasselblad H6D-400c MS",
|
||||
"Hasselblad A6D-100c"
|
||||
"Hasselblad CFV 100C",
|
||||
"Hasselblad X2D II 100C"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x11"
|
||||
"0x15",
|
||||
"0x16"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0511"
|
||||
"0x0615",
|
||||
"0x0616"
|
||||
],
|
||||
"displayName": "H6D/A6D 100c",
|
||||
"id": "LUTTable100MP",
|
||||
"displayName": "CFV 100C / X2D II 100C",
|
||||
"id": "LUTTable100MP3",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2100.0,
|
||||
2850.0,
|
||||
5550.0
|
||||
2400.0,
|
||||
3050.0,
|
||||
5550.0,
|
||||
9100.0
|
||||
],
|
||||
"phocusVersion": "1.0",
|
||||
"phocusVersion": "3.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable100MP.xml",
|
||||
"sourceLength": 2035700,
|
||||
"sourceSha256": "d5c8d9e680c5504dd9905da21727bdcac2e798dafb6b0cdf21fa040ced9cabf6",
|
||||
"sourceFile": "LUTTable100MP3.xml",
|
||||
"sourceLength": 3115579,
|
||||
"sourceSha256": "ecfb3cdb3b77ad05c8ac322bfda1b0b79658e292cc2546e4298018c702875b7f",
|
||||
"tableTemperatures": [
|
||||
2850.0,
|
||||
5550.0
|
||||
3050.0,
|
||||
5550.0,
|
||||
9100.0
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -73,72 +76,38 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable100MP3.hncs",
|
||||
"asset": "LUTTable51MPmk2.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad CFV 100C",
|
||||
"Hasselblad X2D II 100C"
|
||||
"Hasselblad CFV II 50C",
|
||||
"Hasselblad X1D II 50C"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x15",
|
||||
"0x16"
|
||||
"0x0f"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0615",
|
||||
"0x0616"
|
||||
"0x690f"
|
||||
],
|
||||
"displayName": "CFV 100C / X2D II 100C",
|
||||
"id": "LUTTable100MP3",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2400.0,
|
||||
3050.0,
|
||||
5550.0,
|
||||
9100.0
|
||||
],
|
||||
"phocusVersion": "3.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable100MP3.xml",
|
||||
"sourceLength": 3115579,
|
||||
"sourceSha256": "ecfb3cdb3b77ad05c8ac322bfda1b0b79658e292cc2546e4298018c702875b7f",
|
||||
"tableTemperatures": [
|
||||
3050.0,
|
||||
5550.0,
|
||||
9100.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable20MP1Inch.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad L1D-20c"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x13"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0013"
|
||||
],
|
||||
"displayName": "L1D-20c",
|
||||
"id": "LUTTable20MP1Inch",
|
||||
"displayName": "CFV II / X1D II 50C",
|
||||
"id": "LUTTable51MPmk2",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2100.0,
|
||||
2550.0,
|
||||
6000.0
|
||||
2950.0,
|
||||
5650.0,
|
||||
9200.0
|
||||
],
|
||||
"phocusVersion": "1.0",
|
||||
"phocusVersion": "3.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable20MP1Inch.xml",
|
||||
"sourceLength": 2035231,
|
||||
"sourceSha256": "24ccd1d1c4030b36efd34335ffd6978d56f282dc6d5f41a0a2e5416fbf432026",
|
||||
"sourceFile": "LUTTable51MPmk2.xml",
|
||||
"sourceLength": 3051786,
|
||||
"sourceSha256": "61c29220036aed411bee70f20ab7b48ec324eb9fb3b9dce06adb4339a493d5ec",
|
||||
"tableTemperatures": [
|
||||
2550.0,
|
||||
6000.0
|
||||
2950.0,
|
||||
5650.0,
|
||||
9200.0
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -176,278 +145,39 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable31MP.hncs",
|
||||
"asset": "LUTTable100MP.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3D-31",
|
||||
"Hasselblad H3DII-31",
|
||||
"Hasselblad H4D-31"
|
||||
"Hasselblad H6D-100c",
|
||||
"Hasselblad H6D-400c MS",
|
||||
"Hasselblad A6D-100c"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x08"
|
||||
"0x11"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0008"
|
||||
"0x0511"
|
||||
],
|
||||
"displayName": "H3D/H3DII/H4D-31",
|
||||
"id": "LUTTable31MP",
|
||||
"displayName": "H6D/A6D 100c",
|
||||
"id": "LUTTable100MP",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
3200.0,
|
||||
5400.0
|
||||
],
|
||||
"phocusVersion": "2.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable31MP.xml",
|
||||
"sourceLength": 1651880,
|
||||
"sourceSha256": "fc96744e695153003fc6c74735da438da5d4381e9ab6ea4edcc7ae0fc338d46f",
|
||||
"tableTemperatures": [
|
||||
3200.0,
|
||||
5400.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable31MPC.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3D-31",
|
||||
"Hasselblad H3DII-31",
|
||||
"Hasselblad H4D-31"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x08"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0408"
|
||||
],
|
||||
"displayName": "H3D/H3DII/H4D-31",
|
||||
"id": "LUTTable31MPC",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
3238.0,
|
||||
5130.0
|
||||
],
|
||||
"phocusVersion": "2.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable31MPC.xml",
|
||||
"sourceLength": 1653110,
|
||||
"sourceSha256": "f04f6228f696be3cde578c7b6a753657531b8af5098d1399acbd77819c6e3917",
|
||||
"tableTemperatures": [
|
||||
3238.0,
|
||||
5130.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable39MP.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H2D-39",
|
||||
"Hasselblad H3D-39",
|
||||
"Hasselblad H3DII-39"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x09"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0009"
|
||||
],
|
||||
"displayName": "H2D/H3D/H3DII-39",
|
||||
"id": "LUTTable39MP",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2900.0,
|
||||
5000.0
|
||||
],
|
||||
"phocusVersion": "2.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable39MP.xml",
|
||||
"sourceLength": 1652276,
|
||||
"sourceSha256": "0b2664a21bacbeedfd977215433f4d0aca33bdfbd808f4ec6527319673404f79",
|
||||
"tableTemperatures": [
|
||||
2900.0,
|
||||
5000.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable39MPC.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H2D-39",
|
||||
"Hasselblad H3D-39",
|
||||
"Hasselblad H3DII-39"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x09"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0409"
|
||||
],
|
||||
"displayName": "H2D/H3D/H3DII-39",
|
||||
"id": "LUTTable39MPC",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
3238.0,
|
||||
5130.0
|
||||
],
|
||||
"phocusVersion": "2.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable39MPC.xml",
|
||||
"sourceLength": 1653367,
|
||||
"sourceSha256": "b3fd4157a47f611e556e6d3802303d30765a3c34c45f3768d614206b20f97469",
|
||||
"tableTemperatures": [
|
||||
3238.0,
|
||||
5130.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable40MP5.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3DII-40",
|
||||
"Hasselblad H4D-40",
|
||||
"Hasselblad H5D-40"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x0d"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x050d"
|
||||
],
|
||||
"displayName": "H3DII/H4D/H5D-40",
|
||||
"id": "LUTTable40MP5",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2050.0,
|
||||
3000.0,
|
||||
5600.0
|
||||
],
|
||||
"phocusVersion": "1.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable40MP5.xml",
|
||||
"sourceLength": 2035588,
|
||||
"sourceSha256": "2db6f4ce95b0fb0395df763daef50cf66604f87c595a84726d19e7abe969293f",
|
||||
"tableTemperatures": [
|
||||
3000.0,
|
||||
5600.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable40MPC.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3DII-40",
|
||||
"Hasselblad H4D-40",
|
||||
"Hasselblad H5D-40"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x0d"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x040d"
|
||||
],
|
||||
"displayName": "H3DII/H4D/H5D-40",
|
||||
"id": "LUTTable40MPC",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2200.0,
|
||||
2100.0,
|
||||
2850.0,
|
||||
5550.0
|
||||
],
|
||||
"phocusVersion": "2.0",
|
||||
"phocusVersion": "1.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable40MPC.xml",
|
||||
"sourceLength": 1653533,
|
||||
"sourceSha256": "1dcc2046c716c1403cefd58d444ae98d0205507dd0b8b6b6599494e272df89a0",
|
||||
"sourceFile": "LUTTable100MP.xml",
|
||||
"sourceLength": 2035700,
|
||||
"sourceSha256": "d5c8d9e680c5504dd9905da21727bdcac2e798dafb6b0cdf21fa040ced9cabf6",
|
||||
"tableTemperatures": [
|
||||
2850.0,
|
||||
5550.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable50MP5.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3DII-50",
|
||||
"Hasselblad H4D-50",
|
||||
"Hasselblad H4D-200MS",
|
||||
"Hasselblad H5D-50",
|
||||
"Hasselblad H5D-50MS",
|
||||
"Hasselblad H5D-200MS"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x0b"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x050b"
|
||||
],
|
||||
"displayName": "H3DII/H4D/H5D-50",
|
||||
"id": "LUTTable50MP5",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2050.0,
|
||||
2950.0,
|
||||
5600.0
|
||||
],
|
||||
"phocusVersion": "1.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable50MP5.xml",
|
||||
"sourceLength": 2035823,
|
||||
"sourceSha256": "3e3842501cf2920f21a244ff669fe1b03452f44e6afe5e0fc08d38ea53af63a1",
|
||||
"tableTemperatures": [
|
||||
2950.0,
|
||||
5600.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable50MPC.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3DII-50",
|
||||
"Hasselblad H4D-50",
|
||||
"Hasselblad H4D-200MS",
|
||||
"Hasselblad H5D-50",
|
||||
"Hasselblad H5D-50MS",
|
||||
"Hasselblad H5D-200MS"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x0b"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x040b"
|
||||
],
|
||||
"displayName": "H3DII/H4D/H5D-50",
|
||||
"id": "LUTTable50MPC",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
3000.0,
|
||||
5750.0
|
||||
],
|
||||
"phocusVersion": "2.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable50MPC.xml",
|
||||
"sourceLength": 1653658,
|
||||
"sourceSha256": "8ee78d0bd4c2ca7ac4eab9246a421da59685b8b0323e539fb9c7b59e73d02034",
|
||||
"tableTemperatures": [
|
||||
3000.0,
|
||||
5750.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable51MP5.hncs",
|
||||
"cameraModels": [
|
||||
@@ -484,271 +214,10 @@
|
||||
2950.0,
|
||||
5650.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable51MPmk2.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad CFV II 50C",
|
||||
"Hasselblad X1D II 50C"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x0f"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x690f"
|
||||
],
|
||||
"displayName": "CFV II / X1D II 50C",
|
||||
"id": "LUTTable51MPmk2",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2100.0,
|
||||
2950.0,
|
||||
5650.0,
|
||||
9200.0
|
||||
],
|
||||
"phocusVersion": "3.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable51MPmk2.xml",
|
||||
"sourceLength": 3051786,
|
||||
"sourceSha256": "61c29220036aed411bee70f20ab7b48ec324eb9fb3b9dce06adb4339a493d5ec",
|
||||
"tableTemperatures": [
|
||||
2950.0,
|
||||
5650.0,
|
||||
9200.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable60MP5.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3DII-60",
|
||||
"Hasselblad H4D-60",
|
||||
"Hasselblad H5D-60"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x0c"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x050c"
|
||||
],
|
||||
"displayName": "H3DII/H4D/H5D-60",
|
||||
"id": "LUTTable60MP5",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2200.0,
|
||||
3000.0,
|
||||
5600.0
|
||||
],
|
||||
"phocusVersion": "1.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable60MP5.xml",
|
||||
"sourceLength": 2036502,
|
||||
"sourceSha256": "eeef2ec0b4270102fd18695dd98e9cd2462d8a5ab51e52e3f56a797919bf878e",
|
||||
"tableTemperatures": [
|
||||
3000.0,
|
||||
5600.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LutTable60MP52.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3DII-60",
|
||||
"Hasselblad H4D-60",
|
||||
"Hasselblad H5D-60"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x0e"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x040e",
|
||||
"0x050e"
|
||||
],
|
||||
"displayName": "H3DII/H4D/H5D-60",
|
||||
"id": "LutTable60MP52",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2200.0,
|
||||
2900.0,
|
||||
5600.0
|
||||
],
|
||||
"phocusVersion": "1.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LutTable60MP52.xml",
|
||||
"sourceLength": 2036497,
|
||||
"sourceSha256": "4ab9be03698715f0ae98d54b7e849cddd6db6a3c5c35d8bd5b8a900be49d9961",
|
||||
"tableTemperatures": [
|
||||
2900.0,
|
||||
5600.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTable60MPC.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad H3DII-60",
|
||||
"Hasselblad H4D-60",
|
||||
"Hasselblad H5D-60"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x0c"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x040c"
|
||||
],
|
||||
"displayName": "H3DII/H4D/H5D-60",
|
||||
"id": "LUTTable60MPC",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2050.0,
|
||||
2850.0,
|
||||
5400.0
|
||||
],
|
||||
"phocusVersion": "2.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTable60MPC.xml",
|
||||
"sourceLength": 1653947,
|
||||
"sourceSha256": "892635826f79f62ccd63539045a939150a8dab1ed2aa3fb9bcc4590c366cb82d",
|
||||
"tableTemperatures": [
|
||||
2850.0,
|
||||
5400.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LutTable80MP52.hncs",
|
||||
"cameraModels": [],
|
||||
"ccdTypes": [
|
||||
"0x10"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0510"
|
||||
],
|
||||
"displayName": "80MP52",
|
||||
"id": "LutTable80MP52",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2200.0,
|
||||
2900.0,
|
||||
5600.0
|
||||
],
|
||||
"phocusVersion": "1.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LutTable80MP52.xml",
|
||||
"sourceLength": 2036503,
|
||||
"sourceSha256": "96b2141aabfea69bffc04a3bf22b98d09575fdaea9d6bd2891d9e4762a30465d",
|
||||
"tableTemperatures": [
|
||||
2900.0,
|
||||
5600.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTableIxpress.hncs",
|
||||
"cameraModels": [
|
||||
"Ixpress 96",
|
||||
"Ixpress 384",
|
||||
"Ixpress 72",
|
||||
"Ixpress 132C",
|
||||
"Ixpress 528C"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x04"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0004"
|
||||
],
|
||||
"displayName": "Ixpress 96/384/72/132C/528C",
|
||||
"id": "LUTTableIxpress",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2900.0,
|
||||
5000.0
|
||||
],
|
||||
"phocusVersion": "2.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTableIxpress.xml",
|
||||
"sourceLength": 1651092,
|
||||
"sourceSha256": "913e3d83288c9740f8a96f995363bed01c22ed9dd5b6c2b985e9e0b3eabbc203",
|
||||
"tableTemperatures": [
|
||||
2900.0,
|
||||
5000.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "LUTTableTZ.hncs",
|
||||
"cameraModels": [
|
||||
"Hasselblad True Zoom"
|
||||
],
|
||||
"ccdTypes": [
|
||||
"0x12"
|
||||
],
|
||||
"colorProfileIds": [
|
||||
"0x0012"
|
||||
],
|
||||
"displayName": "True Zoom",
|
||||
"id": "LUTTableTZ",
|
||||
"intents": [
|
||||
"reproduction",
|
||||
"standard"
|
||||
],
|
||||
"matrixTemperatures": [
|
||||
2400.0,
|
||||
3000.0,
|
||||
5700.0
|
||||
],
|
||||
"phocusVersion": "1.0",
|
||||
"renderable": true,
|
||||
"sourceFile": "LUTTableTZ.xml",
|
||||
"sourceLength": 2035246,
|
||||
"sourceSha256": "26fcefbe03cf7ff2250d1e72b1d10b0dadfc2574e88af7ffdbaf92eb09b20e98",
|
||||
"tableTemperatures": [
|
||||
3000.0,
|
||||
5700.0
|
||||
]
|
||||
}
|
||||
],
|
||||
"renderableProfileCount": 21,
|
||||
"schemaVersion": 2,
|
||||
"skippedSources": [
|
||||
{
|
||||
"reason": "profile does not use the supported bounded-grid format",
|
||||
"sourceFile": "LUTTable31MPRepro.xml",
|
||||
"sourceSha256": "702b1cd047057fea53bf27e29ab002a8395983eff2aebda14856a803e62226ef"
|
||||
},
|
||||
{
|
||||
"reason": "profile does not use the supported bounded-grid format",
|
||||
"sourceFile": "LUTTable39MPRepr.xml",
|
||||
"sourceSha256": "49d8e81dbb859ab005f05a2ea2cfb27573e539571b99702ebe8ec861ac3ea3c8"
|
||||
},
|
||||
{
|
||||
"reason": "profile does not use the supported bounded-grid format",
|
||||
"sourceFile": "LUTTableIxpressNew.xml",
|
||||
"sourceSha256": "f2de9d07c6f45003f18a91b71f7ef2b57c9fc35ccd0512047392486fd54bdc99"
|
||||
},
|
||||
{
|
||||
"reason": "profile does not use the supported bounded-grid format",
|
||||
"sourceFile": "LUTTableIxpressRepr.xml",
|
||||
"sourceSha256": "3bdc0219ee685c9b3ce0742c1ea692c35c75fd057a7f2c2b0531348bd6f1acb1"
|
||||
},
|
||||
{
|
||||
"reason": "LUTTableTSStd has 18689 values, expected 18690",
|
||||
"sourceFile": "LUTTableleica.xml",
|
||||
"sourceSha256": "3357696f2604076b694e72614466312fbbc05c59006a8f8366b13408298fc37c"
|
||||
}
|
||||
],
|
||||
"skippedSources": [],
|
||||
"sourceDirectoryName": "Colormaps"
|
||||
}
|
||||
@@ -4549,6 +4549,7 @@ object GalleryManager {
|
||||
fileName.endsWith(".dng", ignoreCase = true) ||
|
||||
fileName.endsWith(".rw2", ignoreCase = true) ||
|
||||
fileName.endsWith(".arw", ignoreCase = true) ||
|
||||
fileName.endsWith(".3fr", ignoreCase = true) ||
|
||||
fileName.endsWith(".cr3", ignoreCase = true)
|
||||
|
||||
if (isRaw) {
|
||||
|
||||
@@ -152,7 +152,8 @@ class PhantomService(val context: Context) : LifecycleOwner, SavedStateRegistryO
|
||||
".orf",
|
||||
".raf",
|
||||
".pef",
|
||||
".srw"
|
||||
".srw",
|
||||
".3fr"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,29 @@ internal object HncsCameraDomain {
|
||||
private const val MIN_CAMERA_GAIN = 1e-3f
|
||||
private const val MAX_CAMERA_GAIN = 64f
|
||||
|
||||
/**
|
||||
* Builds the composite matrix consumed by [resolve]. The supplied matrix
|
||||
* operates on white-balanced camera RGB, so the active per-image camera
|
||||
* gains must be part of the composite calibration invariant.
|
||||
*/
|
||||
fun composeWhiteBalancedCameraMatrix(
|
||||
whiteBalancedCameraToWorkingMatrix: FloatArray,
|
||||
cameraGains: FloatArray,
|
||||
): FloatArray {
|
||||
require(
|
||||
whiteBalancedCameraToWorkingMatrix.size == 9 &&
|
||||
whiteBalancedCameraToWorkingMatrix.all(Float::isFinite)
|
||||
)
|
||||
val gains = canonicalizeCameraGains(cameraGains)
|
||||
return whiteBalancedCameraToWorkingMatrix.copyOf().also { composite ->
|
||||
for (row in 0 until 3) {
|
||||
for (column in 0 until 3) {
|
||||
composite[row * 3 + column] *= gains[column]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Factors the camera gains out of a composite camera-to-working matrix so
|
||||
* they can be applied and clipped in camera space before that matrix.
|
||||
@@ -61,7 +84,7 @@ internal object HncsCameraDomain {
|
||||
compositeCameraToWorkingMatrix.size == 9 &&
|
||||
compositeCameraToWorkingMatrix.all(Float::isFinite)
|
||||
)
|
||||
val gains = sanitizeCameraGains(cameraGains)
|
||||
val gains = canonicalizeCameraGains(cameraGains)
|
||||
val maximumGain = max(gains[0], max(gains[1], gains[2]))
|
||||
val normalizedGain = FloatArray(3) { channel ->
|
||||
gains[channel] / maximumGain
|
||||
@@ -98,7 +121,7 @@ internal object HncsCameraDomain {
|
||||
val greenEven = component(1, 1f)
|
||||
val greenOdd = component(2, greenEven)
|
||||
val green = (greenEven + greenOdd) * 0.5f
|
||||
return sanitizeCameraGains(
|
||||
return canonicalizeCameraGains(
|
||||
floatArrayOf(
|
||||
component(0, green),
|
||||
green,
|
||||
@@ -107,6 +130,9 @@ internal object HncsCameraDomain {
|
||||
)
|
||||
}
|
||||
|
||||
fun canonicalizeCameraGains(cameraGains: FloatArray): FloatArray =
|
||||
sanitizeCameraGains(cameraGains)
|
||||
|
||||
private fun sanitizeCameraGains(cameraGains: FloatArray): FloatArray {
|
||||
return FloatArray(3) { channel ->
|
||||
cameraGains.getOrElse(channel) { 1f }
|
||||
|
||||
@@ -43,7 +43,6 @@ enum class HncsRenderIntent(val assetValue: String) {
|
||||
}
|
||||
|
||||
enum class HncsFilmCurveMode(val persistedValue: String) {
|
||||
Basic("basic"),
|
||||
Standard("standard"),
|
||||
Reproduction("reproduction");
|
||||
|
||||
@@ -130,10 +129,16 @@ internal data class HncsRenderPlan(
|
||||
val sourceKey: String,
|
||||
val colorTemperature: Float?,
|
||||
val cameraToHncsMatrix: FloatArray?,
|
||||
/**
|
||||
* Active per-image camera gains baked into [cameraToHncsMatrix]. These
|
||||
* exact gains must be passed to HncsCameraDomain so factoring preserves
|
||||
* the composite transform around the camera-domain headroom clamp.
|
||||
*/
|
||||
val cameraDomainGains: FloatArray?,
|
||||
/**
|
||||
* CXMLLut v* calibration values after its value * 0.5 + 1.0 decryption.
|
||||
* These are camera-channel gains that neutralize the RAW camera domain
|
||||
* before the profile's white-balanced camera-RGB-to-XYZ matrix.
|
||||
* They describe the profile's reference neutral at the selected CCT. They
|
||||
* are not a replacement for the active RAW AsShotNeutral/Tint.
|
||||
*/
|
||||
val profileNeutralGains: FloatArray?,
|
||||
val colorMap: HncsColorMap?,
|
||||
@@ -196,9 +201,6 @@ private data class ParsedHncsProfile(
|
||||
* No profile is selected implicitly: the caller must provide an exact profile id.
|
||||
*/
|
||||
class HncsProfileManager(private val context: Context) {
|
||||
private val basicFilmCurve: HncsFilmCurve by lazy {
|
||||
loadHncsFilmCurve(BASIC_FILM_CURVE_ASSET)
|
||||
}
|
||||
private val standardFilmCurve: HncsFilmCurve by lazy {
|
||||
loadHncsFilmCurve(STANDARD_FILM_CURVE_ASSET)
|
||||
}
|
||||
@@ -218,6 +220,7 @@ class HncsProfileManager(private val context: Context) {
|
||||
|
||||
internal fun resolveLutRenderPlan(
|
||||
colorTemperature: Float?,
|
||||
activeCameraGains: FloatArray,
|
||||
requestedProfileId: String?,
|
||||
renderIntent: HncsRenderIntent = HncsRenderIntent.Standard,
|
||||
filmCurveMode: HncsFilmCurveMode = HncsFilmCurveMode.Standard
|
||||
@@ -232,6 +235,12 @@ class HncsProfileManager(private val context: Context) {
|
||||
}
|
||||
// CXMLLut::CalculateLUT and CalculateMatrix both receive an integer Kelvin value.
|
||||
val temperature = measuredTemperature.toInt().toFloat()
|
||||
val cameraGains = activeCameraGains.takeIf { gains ->
|
||||
gains.size == 3 && gains.all { it.isFinite() && it > 0f }
|
||||
}?.let(HncsCameraDomain::canonicalizeCameraGains) ?: run {
|
||||
PLog.e(TAG, "HNCS LUT requires three valid active RAW camera gains")
|
||||
return null
|
||||
}
|
||||
val info = manifestProfiles().firstOrNull { it.id == profileId } ?: run {
|
||||
PLog.e(TAG, "Unknown HNCS camera profile id=$profileId")
|
||||
return null
|
||||
@@ -241,9 +250,12 @@ class HncsProfileManager(private val context: Context) {
|
||||
return null
|
||||
}
|
||||
val profile = parseProfile(info) ?: return null
|
||||
val cameraGainKey = cameraGains.joinToString(separator = ",") { gain ->
|
||||
gain.toBits().toString()
|
||||
}
|
||||
val cacheKey =
|
||||
"$profileId|${renderIntent.assetValue}|${temperature.toInt()}|" +
|
||||
filmCurveMode.persistedValue
|
||||
"${filmCurveMode.persistedValue}|$cameraGainKey"
|
||||
synchronized(renderPlanCache) {
|
||||
renderPlanCache[cacheKey]?.let { return it }
|
||||
}
|
||||
@@ -276,7 +288,7 @@ class HncsProfileManager(private val context: Context) {
|
||||
}
|
||||
val cameraMatrix = profileMatrixToHncs(
|
||||
whiteBalancedCameraToXyzD50 = cameraToXyzD50,
|
||||
profileNeutralGains = profileNeutralGains
|
||||
activeCameraGains = cameraGains
|
||||
) ?: run {
|
||||
PLog.e(TAG, "HNCS profile id=$profileId produced an invalid camera-to-HNCS matrix")
|
||||
return null
|
||||
@@ -308,6 +320,7 @@ class HncsProfileManager(private val context: Context) {
|
||||
profile = profile,
|
||||
colorTemperature = temperature,
|
||||
cameraMatrix = cameraMatrix,
|
||||
cameraDomainGains = cameraGains,
|
||||
profileNeutralGains = profileNeutralGains,
|
||||
colorMap = colorMap,
|
||||
renderIntent = renderIntent,
|
||||
@@ -324,6 +337,7 @@ class HncsProfileManager(private val context: Context) {
|
||||
profile: ParsedHncsProfile?,
|
||||
colorTemperature: Float?,
|
||||
cameraMatrix: FloatArray?,
|
||||
cameraDomainGains: FloatArray?,
|
||||
profileNeutralGains: FloatArray?,
|
||||
colorMap: HncsColorMap?,
|
||||
renderIntent: HncsRenderIntent,
|
||||
@@ -339,6 +353,7 @@ class HncsProfileManager(private val context: Context) {
|
||||
sourceKey = sourceKey,
|
||||
colorTemperature = colorTemperature,
|
||||
cameraToHncsMatrix = cameraMatrix,
|
||||
cameraDomainGains = cameraDomainGains,
|
||||
profileNeutralGains = profileNeutralGains,
|
||||
colorMap = colorMap,
|
||||
rgbToYccMatrix = HNCS_RGB_TO_YCC.copyOf(),
|
||||
@@ -360,7 +375,6 @@ class HncsProfileManager(private val context: Context) {
|
||||
|
||||
private fun resolveFilmCurve(mode: HncsFilmCurveMode): HncsFilmCurve =
|
||||
when (mode) {
|
||||
HncsFilmCurveMode.Basic -> basicFilmCurve
|
||||
HncsFilmCurveMode.Standard -> standardFilmCurve
|
||||
HncsFilmCurveMode.Reproduction -> reproductionFilmCurve
|
||||
}
|
||||
@@ -424,29 +438,27 @@ class HncsProfileManager(private val context: Context) {
|
||||
|
||||
private fun profileMatrixToHncs(
|
||||
whiteBalancedCameraToXyzD50: FloatArray,
|
||||
profileNeutralGains: FloatArray
|
||||
activeCameraGains: FloatArray
|
||||
): FloatArray? {
|
||||
if (whiteBalancedCameraToXyzD50.size != 9 ||
|
||||
whiteBalancedCameraToXyzD50.any { !it.isFinite() } ||
|
||||
profileNeutralGains.size != 3 ||
|
||||
profileNeutralGains.any { !it.isFinite() || it <= 0f }
|
||||
activeCameraGains.size != 3 ||
|
||||
activeCameraGains.any { !it.isFinite() || it <= 0f }
|
||||
) {
|
||||
return null
|
||||
}
|
||||
// Phocus CXMLLut stores m* in the white-balanced camera domain and v*
|
||||
// as encrypted per-channel neutral gains. Keep the complete M*diag(v)
|
||||
// transform in the render plan. HncsCameraDomain factors v back out at
|
||||
// execution time so it can apply Phocus' pre-matrix headroom clamp,
|
||||
// while preserving this composite matrix as the calibration invariant.
|
||||
val rawCameraToXyzD50 = whiteBalancedCameraToXyzD50.copyOf()
|
||||
for (row in 0 until 3) {
|
||||
for (column in 0 until 3) {
|
||||
rawCameraToXyzD50[row * 3 + column] *= profileNeutralGains[column]
|
||||
}
|
||||
}
|
||||
val result = DngSdkColorSpec.multiplyMatrix3x3(
|
||||
// CXMLLut m* operates on white-balanced camera RGB. Its v* vector is
|
||||
// the profile reference neutral used for the CCT calibration, while
|
||||
// the active RAW can carry an independent green/magenta Tint. Compose
|
||||
// the per-image AsShotNeutral gains here so that neutral camera input
|
||||
// remains neutral before the 2D color map.
|
||||
val whiteBalancedCameraToHncs = DngSdkColorSpec.multiplyMatrix3x3(
|
||||
HNCS_XYZ_D50_TO_RGB,
|
||||
rawCameraToXyzD50
|
||||
whiteBalancedCameraToXyzD50
|
||||
)
|
||||
val result = HncsCameraDomain.composeWhiteBalancedCameraMatrix(
|
||||
whiteBalancedCameraToWorkingMatrix = whiteBalancedCameraToHncs,
|
||||
cameraGains = activeCameraGains,
|
||||
)
|
||||
return result.takeIf { matrix ->
|
||||
matrix.size == 9 && matrix.all(Float::isFinite)
|
||||
@@ -694,17 +706,9 @@ class HncsProfileManager(private val context: Context) {
|
||||
* D = filmCurveType 7, companding 1
|
||||
* E = filmCurveType 7, companding 2
|
||||
*
|
||||
* PhotonCamera exposes the three requested Phocus responses as
|
||||
* Basic=B, Standard=C, and Reproduction=E. Type 7 alone is ambiguous:
|
||||
* companding 1 would select D, not E.
|
||||
* PhotonCamera exposes Standard=C and Reproduction=E. Type 7 alone is
|
||||
* ambiguous: companding 1 would select D, not E.
|
||||
*/
|
||||
private val BASIC_FILM_CURVE_ASSET = HncsFilmCurveAsset(
|
||||
path = "$ASSET_DIRECTORY/filmcurve_type6_companding1.hcurve",
|
||||
sha256 = "495bc29bd9bccb6b1ad7a184be960f1bf6d9c1d403c8891286034fe6ff819fb7",
|
||||
filmCurveType = 6,
|
||||
companding = 1,
|
||||
sourceFloatFnv1a64 = "2c7059f97ee8b5ad"
|
||||
)
|
||||
private val STANDARD_FILM_CURVE_ASSET = HncsFilmCurveAsset(
|
||||
path = "$ASSET_DIRECTORY/filmcurve_type6_companding2.hcurve",
|
||||
sha256 = "0b26cfdeb578ca21eee5e55e95c4f49ca43ab333e2cea5a011049c07bee4b531",
|
||||
@@ -787,6 +791,7 @@ class HncsProfileManager(private val context: Context) {
|
||||
"hncs-ccm|$PHOCUS_SOURCE_LIBRARY|$HNCS_FILM_CURVE_SOURCE_LIBRARY_SHA256",
|
||||
colorTemperature = null,
|
||||
cameraToHncsMatrix = null,
|
||||
cameraDomainGains = null,
|
||||
profileNeutralGains = null,
|
||||
colorMap = null,
|
||||
rgbToYccMatrix = HNCS_RGB_TO_YCC.copyOf(),
|
||||
|
||||
@@ -1584,8 +1584,13 @@ class RawDemosaicProcessor {
|
||||
)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
val hncsRenderIntent = rawHncsRenderIntent
|
||||
val activeHncsCameraGains = if (requestedColorEngine.isHncs) {
|
||||
HncsCameraDomain.fromWhiteBalanceGains(actualMetadata.whiteBalanceGains)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
val hncsRenderPlan = when (requestedColorEngine) {
|
||||
RawRenderingEngine.HncsCcm ->
|
||||
HncsProfileManager(context.applicationContext).createCcmRenderPlan(
|
||||
@@ -1595,6 +1600,7 @@ class RawDemosaicProcessor {
|
||||
RawRenderingEngine.HncsLut ->
|
||||
HncsProfileManager(context.applicationContext).resolveLutRenderPlan(
|
||||
colorTemperature = actualMetadata.colorTemperature,
|
||||
activeCameraGains = requireNotNull(activeHncsCameraGains),
|
||||
requestedProfileId = rawHncsProfileId,
|
||||
renderIntent = hncsRenderIntent,
|
||||
filmCurveMode = rawHncsFilmCurveMode
|
||||
@@ -1900,14 +1906,13 @@ class RawDemosaicProcessor {
|
||||
metadata = actualMetadata,
|
||||
dcpRenderPlan = activeDcpRenderPlan
|
||||
)
|
||||
}
|
||||
}
|
||||
val hncsCameraDomainGains = when {
|
||||
colorEngine.usesHncsColorMap -> requireNotNull(hncsRenderPlan?.profileNeutralGains) {
|
||||
"HNCS LUT branch requires its profile camera gains"
|
||||
colorEngine.usesHncsColorMap -> requireNotNull(hncsRenderPlan?.cameraDomainGains) {
|
||||
"HNCS LUT branch requires the active RAW camera gains baked into its matrix"
|
||||
}
|
||||
|
||||
colorEngine.isHncs ->
|
||||
HncsCameraDomain.fromWhiteBalanceGains(actualMetadata.whiteBalanceGains)
|
||||
colorEngine.isHncs -> requireNotNull(activeHncsCameraGains)
|
||||
|
||||
else -> null
|
||||
}
|
||||
@@ -1929,8 +1934,9 @@ class RawDemosaicProcessor {
|
||||
"profile=${hncsRenderPlan?.profileId} cct=${hncsRenderPlan?.colorTemperature} " +
|
||||
"source=${hncsRenderPlan?.sourceFile} " +
|
||||
"sha256=${hncsRenderPlan?.sourceSha256} profileSpace=$profileWorkingColorSpace " +
|
||||
"cameraMatrix=${if (colorEngine.usesHncsColorMap) "profile-M*diag(v)-to-HNCS" else "raw-metadata"} " +
|
||||
"cameraMatrix=${if (colorEngine.usesHncsColorMap) "profile-M*diag(as-shot)-to-HNCS" else "raw-metadata"} " +
|
||||
"cameraDomainGains=${hncsCameraDomainGains?.contentToString()} " +
|
||||
"activeRawCameraGains=${activeHncsCameraGains?.contentToString()} " +
|
||||
"profileNeutralGains=${hncsRenderPlan?.profileNeutralGains?.contentToString()} " +
|
||||
"normalizedCameraGain=${hncsCameraDomainAudit?.normalizedGain?.contentToString()} " +
|
||||
"inputEV=${hncsCameraDomainAudit?.inputEv} " +
|
||||
@@ -11070,6 +11076,18 @@ class RawDemosaicProcessor {
|
||||
}
|
||||
}
|
||||
}
|
||||
val activeNeutralRaw = renderPlan.cameraDomainGains
|
||||
?.takeIf { it.size == 3 }
|
||||
?.let { gains -> FloatArray(3) { index -> 1f / gains[index] } }
|
||||
val activeNeutralToHncs = activeNeutralRaw?.let { neutral ->
|
||||
renderPlan.cameraToHncsMatrix?.takeIf { it.size == 9 }?.let { matrix ->
|
||||
FloatArray(3) { row ->
|
||||
matrix[row * 3] * neutral[0] +
|
||||
matrix[row * 3 + 1] * neutral[1] +
|
||||
matrix[row * 3 + 2] * neutral[2]
|
||||
}
|
||||
}
|
||||
}
|
||||
val boundTextures = IntArray(4)
|
||||
val textureBinding = IntArray(1)
|
||||
for (unit in boundTextures.indices) {
|
||||
@@ -11134,8 +11152,11 @@ class RawDemosaicProcessor {
|
||||
)
|
||||
PLog.i(
|
||||
TAG,
|
||||
"HNCS_DIAG matrices profileToEngine=${profileToEngineTransform.contentToString()} " +
|
||||
"HNCS_DIAG matrices profileToEngine=${profileToEngineTransform.contentToString()} " +
|
||||
"cameraToHncs=${renderPlan.cameraToHncsMatrix?.contentToString()} " +
|
||||
"cameraDomainGains=${renderPlan.cameraDomainGains?.contentToString()} " +
|
||||
"activeNeutralRaw=${activeNeutralRaw?.contentToString()} " +
|
||||
"activeNeutralToHncs=${activeNeutralToHncs?.contentToString()} " +
|
||||
"profileNeutralGains=${renderPlan.profileNeutralGains?.contentToString()} " +
|
||||
"profileNeutralRaw=${profileNeutralRaw?.contentToString()} " +
|
||||
"profileNeutralToHncs=${profileNeutralToHncs?.contentToString()} " +
|
||||
|
||||
@@ -216,8 +216,6 @@ fun RawEditPanel(
|
||||
title = stringResource(R.string.settings_raw_hncs_film_curve),
|
||||
description = stringResource(R.string.settings_raw_hncs_film_curve_description),
|
||||
levels = listOf(
|
||||
HncsFilmCurveMode.Basic.persistedValue to
|
||||
stringResource(R.string.settings_raw_hncs_film_curve_basic),
|
||||
HncsFilmCurveMode.Standard.persistedValue to
|
||||
stringResource(R.string.settings_raw_hncs_film_curve_standard),
|
||||
HncsFilmCurveMode.Reproduction.persistedValue to
|
||||
|
||||
@@ -1252,6 +1252,7 @@ class GalleryViewModel(application: Application) : AndroidViewModel(application)
|
||||
lowerName.endsWith(".dng") ||
|
||||
lowerName.endsWith(".rw2") ||
|
||||
lowerName.endsWith(".arw") ||
|
||||
lowerName.endsWith(".3fr") ||
|
||||
lowerName.endsWith(".cr3")
|
||||
}
|
||||
|
||||
|
||||
@@ -764,10 +764,9 @@
|
||||
<string name="settings_raw_hncs_color_branch_lut">2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile">HNCS 相機描述檔</string>
|
||||
<string name="settings_raw_hncs_2d_lut">哈蘇相機專屬 2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile_description">非哈蘇相機使用哈蘇專屬配置會導致偏色。</string>
|
||||
<string name="settings_raw_hncs_profile_description">使用哈蘇相機專屬 Cb/Y-Cr/Y 色度表</string>
|
||||
<string name="settings_raw_hncs_film_curve">響應曲線</string>
|
||||
<string name="settings_raw_hncs_film_curve_description">選擇響應曲線</string>
|
||||
<string name="settings_raw_hncs_film_curve_basic">基礎</string>
|
||||
<string name="settings_raw_hncs_film_curve_standard">標準</string>
|
||||
<string name="settings_raw_hncs_film_curve_reproduction">色彩復刻</string>
|
||||
<string name="settings_raw_google_pixel_tone_map">Google Pixel 風格色調映射</string>
|
||||
|
||||
@@ -764,10 +764,9 @@
|
||||
<string name="settings_raw_hncs_color_branch_lut">2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile">HNCS 相机配置</string>
|
||||
<string name="settings_raw_hncs_2d_lut">哈苏相机专属 2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile_description">非哈苏相机使用哈苏专属配置会导致偏色。</string>
|
||||
<string name="settings_raw_hncs_profile_description">使用哈苏相机专属 Cb/Y-Cr/Y 色度表</string>
|
||||
<string name="settings_raw_hncs_film_curve">响应曲线</string>
|
||||
<string name="settings_raw_hncs_film_curve_description">选择响应曲线</string>
|
||||
<string name="settings_raw_hncs_film_curve_basic">基础</string>
|
||||
<string name="settings_raw_hncs_film_curve_standard">标准</string>
|
||||
<string name="settings_raw_hncs_film_curve_reproduction">色彩复刻</string>
|
||||
<string name="settings_raw_google_pixel_tone_map">Google Pixel 风格色调映射</string>
|
||||
|
||||
@@ -764,10 +764,9 @@
|
||||
<string name="settings_raw_hncs_color_branch_lut">2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile">HNCS 相機設定檔</string>
|
||||
<string name="settings_raw_hncs_2d_lut">哈蘇相機專屬 2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile_description">非哈蘇相機使用哈蘇專屬配置會導致偏色。</string>
|
||||
<string name="settings_raw_hncs_profile_description">使用哈蘇相機專屬 Cb/Y-Cr/Y 色度表</string>
|
||||
<string name="settings_raw_hncs_film_curve">響應曲線</string>
|
||||
<string name="settings_raw_hncs_film_curve_description">選擇響應曲線</string>
|
||||
<string name="settings_raw_hncs_film_curve_basic">基礎</string>
|
||||
<string name="settings_raw_hncs_film_curve_standard">標準</string>
|
||||
<string name="settings_raw_hncs_film_curve_reproduction">色彩復刻</string>
|
||||
<string name="settings_raw_google_pixel_tone_map">Google Pixel 風格色調映射</string>
|
||||
|
||||
@@ -764,10 +764,9 @@
|
||||
<string name="settings_raw_hncs_color_branch_lut">2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile">HNCS 相機描述檔</string>
|
||||
<string name="settings_raw_hncs_2d_lut">哈蘇相機專屬 2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile_description">非哈蘇相機使用哈蘇專屬配置會導致偏色。</string>
|
||||
<string name="settings_raw_hncs_profile_description">使用哈蘇相機專屬 Cb/Y-Cr/Y 色度表</string>
|
||||
<string name="settings_raw_hncs_film_curve">響應曲線</string>
|
||||
<string name="settings_raw_hncs_film_curve_description">選擇響應曲線</string>
|
||||
<string name="settings_raw_hncs_film_curve_basic">基礎</string>
|
||||
<string name="settings_raw_hncs_film_curve_standard">標準</string>
|
||||
<string name="settings_raw_hncs_film_curve_reproduction">色彩復刻</string>
|
||||
<string name="settings_raw_google_pixel_tone_map">Google Pixel 風格色調映射</string>
|
||||
|
||||
@@ -748,10 +748,9 @@
|
||||
<string name="settings_raw_hncs_color_branch_lut">2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile">HNCS camera profile</string>
|
||||
<string name="settings_raw_hncs_2d_lut">Hasselblad camera-exclusive 2D LUT</string>
|
||||
<string name="settings_raw_hncs_profile_description">Using a Hasselblad-exclusive profile on a non-Hasselblad camera will cause a color cast.</string>
|
||||
<string name="settings_raw_hncs_profile_description">Uses Hasselblad camera-specific Cb/Y-Cr/Y chroma tables.</string>
|
||||
<string name="settings_raw_hncs_film_curve">Response Curve</string>
|
||||
<string name="settings_raw_hncs_film_curve_description">Choose a response curve.</string>
|
||||
<string name="settings_raw_hncs_film_curve_basic">Basic</string>
|
||||
<string name="settings_raw_hncs_film_curve_standard">Standard</string>
|
||||
<string name="settings_raw_hncs_film_curve_reproduction">Reproduction</string>
|
||||
<string name="settings_raw_google_pixel_tone_map">Google Pixel-style tone mapping</string>
|
||||
|
||||
@@ -70,6 +70,50 @@ class HncsCameraDomainTest {
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun compositeMatrixUsesActiveAsShotTintInsteadOfProfileReferenceNeutral() {
|
||||
val activeCameraGains = floatArrayOf(2.6319275f, 1f, 1.6217346f)
|
||||
val profileReferenceGains = floatArrayOf(2.4920428f, 1f, 1.7483141f)
|
||||
val rawAsShotNeutral = FloatArray(3) { channel ->
|
||||
1f / activeCameraGains[channel]
|
||||
}
|
||||
|
||||
val activeComposite = HncsCameraDomain.composeWhiteBalancedCameraMatrix(
|
||||
whiteBalancedCameraToWorkingMatrix = identityMatrix(),
|
||||
cameraGains = activeCameraGains,
|
||||
)
|
||||
val activeContract = HncsCameraDomain.resolve(
|
||||
compositeCameraToWorkingMatrix = activeComposite,
|
||||
cameraGains = activeCameraGains,
|
||||
baselineExposureEv = 0f,
|
||||
)
|
||||
val activeWhite = multiply(
|
||||
activeContract.cameraToWorkingMatrix,
|
||||
activeContract.applyCameraDomain(rawAsShotNeutral),
|
||||
)
|
||||
|
||||
val referenceComposite = HncsCameraDomain.composeWhiteBalancedCameraMatrix(
|
||||
whiteBalancedCameraToWorkingMatrix = identityMatrix(),
|
||||
cameraGains = profileReferenceGains,
|
||||
)
|
||||
val referenceContract = HncsCameraDomain.resolve(
|
||||
compositeCameraToWorkingMatrix = referenceComposite,
|
||||
cameraGains = profileReferenceGains,
|
||||
baselineExposureEv = 0f,
|
||||
)
|
||||
val referenceWhite = multiply(
|
||||
referenceContract.cameraToWorkingMatrix,
|
||||
referenceContract.applyCameraDomain(rawAsShotNeutral),
|
||||
)
|
||||
|
||||
assertArrayEquals(floatArrayOf(1f, 1f, 1f), activeWhite, 1e-5f)
|
||||
assertArrayEquals(
|
||||
floatArrayOf(0.9468509f, 1f, 1.0780519f),
|
||||
referenceWhite,
|
||||
1e-5f,
|
||||
)
|
||||
}
|
||||
|
||||
private fun identityMatrix(): FloatArray = floatArrayOf(
|
||||
1f, 0f, 0f,
|
||||
0f, 1f, 0f,
|
||||
|
||||
@@ -18,6 +18,14 @@ class RawHncsShadersTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun removedBasicFilmCurveSelectionFallsBackToStandard() {
|
||||
assertEquals(
|
||||
HncsFilmCurveMode.Standard,
|
||||
HncsFilmCurveMode.fromPersistedValue("basic"),
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun hncsShaderKeepsFilmCurveBeforeGammaAndOmitsHighlightStrength() {
|
||||
val shader = RawShaders.combinedFragmentShaderFor(
|
||||
|
||||
Reference in new issue
Block a user