mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
camerad: fix OX not having vignetting comp (#26329)
old-commit-hash: fdd125853fad2909fa2eff37822a0715d3a219c1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user