diff --git a/system/camerad/cameras/real_debayer.cl b/system/camerad/cameras/real_debayer.cl index 3ee5d2712b..5380bd48d1 100644 --- a/system/camerad/cameras/real_debayer.cl +++ b/system/camerad/cameras/real_debayer.cl @@ -8,10 +8,14 @@ float3 color_correct(float3 rgb) { // color correction - #if IS_OX | IS_OS - float3 x = rgb.x * (float3)(1.5664815 , -0.29808738, -0.03973474); - x += rgb.y * (float3)(-0.48672447, 1.41914433, -0.40295248); - x += rgb.z * (float3)(-0.07975703, -0.12105695, 1.44268722); + #if IS_OX + float3 x = rgb.x * (float3)(1.5664815, -0.29808738, -0.03973474); + x += rgb.y * (float3)(-0.48672447, 1.41914433, -0.40295248); + x += rgb.z * (float3)(-0.07975703, -0.12105695, 1.44268722); + #elif IS_OS + float3 x = rgb.x * (float3)(1.55361989, -0.268894615, -0.000593219); + x += rgb.y * (float3)(-0.421217301, 1.51883144, -0.69760146); + x += rgb.z * (float3)(-0.132402589, -0.249936825, 1.69819468); #else float3 x = rgb.x * (float3)(1.82717181, -0.31231438, 0.07307673); x += rgb.y * (float3)(-0.5743977, 1.36858544, -0.53183455);