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

old-commit-hash: fdd125853f
taco
ZwX1616 3 years ago committed by GitHub
parent 6b4c205836
commit dec5a0f014
  1. 2
      system/camerad/cameras/real_debayer.cl

@ -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]}; 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 // 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 #else // AR
// normalize and scale // normalize and scale
float4 pv = (convert_float4(parsed) - 168.0) / (4096.0 - 168.0); float4 pv = (convert_float4(parsed) - 168.0) / (4096.0 - 168.0);

Loading…
Cancel
Save