camerad: fix OX not having vignetting comp (#26329)

old-commit-hash: fdd125853fad2909fa2eff37822a0715d3a219c1
This commit is contained in:
ZwX1616
2022-11-02 14:42:29 -07:00
committed by GitHub
parent 6b4c205836
commit dec5a0f014
+1 -1
View File
@@ -72,7 +72,7 @@ float4 val4_from_12(uchar8 pvs, float gain) {
float4 pv = {ox03c10_lut[parsed.s0], ox03c10_lut[parsed.s1], ox03c10_lut[parsed.s2], ox03c10_lut[parsed.s3]};
// it's a 24 bit signal, center in the middle 8 bits
return pv*256.0;
return clamp(pv*gain*256.0, 0.0, 1.0);
#else // AR
// normalize and scale
float4 pv = (convert_float4(parsed) - 168.0) / (4096.0 - 168.0);