| 1 |
@echo off |
| 2 |
|
| 3 |
if "%~1"=="" goto :usage |
| 4 |
|
| 5 |
:loop |
| 6 |
REM Convert TI1 through DCI-P3 D65 with SMPTE 2084 (PQ) TRC |
| 7 |
REM Obtain TI3 with DCI-P3 XYZ |
| 8 |
fakeread "%~dp0..\DisplayCAL\ref\SMPTE431_P3_D65_2084.icm" "%~dpn1" |
| 9 |
|
| 10 |
REM Reverse convert TI3 through Rec. 2020 with SMPTE 2084 (PQ) TRC |
| 11 |
REM Obtain TI3 with DCI-P3 RGB encoded in Rec. 2020 SMPTE 2084 (PQ) |
| 12 |
fakeread -U "%~dp0..\DisplayCAL\ref\Rec2020_2084.icm" "%~dpn1" |
| 13 |
|
| 14 |
shift /1 |
| 15 |
if "%~1"=="" goto :end |
| 16 |
goto :loop |
| 17 |
|
| 18 |
:usage |
| 19 |
echo Usage: %~nx0 testchart.ti1 [testchart.ti1...] |
| 20 |
echo testchart Base name for input[ti1]/output[ti3] file |
| 21 |
|
| 22 |
:end |
| 23 |
pause |