7^3 - 1 = 342 in-gamut samples. Skips (0,0,0) since both paths short-circuit to (0,0,0,0) without touching the solver.
| 1029 | // 7^3 - 1 = 342 in-gamut samples. Skips (0,0,0) since both paths short-circuit |
| 1030 | // to (0,0,0,0) without touching the solver. |
| 1031 | struct Sample { |
| 1032 | u8 r, g, b; |
| 1033 | u8 closed_form[4]; |
| 1034 | u8 lut_path[4]; |
| 1035 | }; |
| 1036 | |
| 1037 | inline int sample_sweep(Sample* out) { |
| 1038 | // Map step v in [0,6] to a u8 in [15, 255] without overflow. |
no outgoing calls