@@ -64,7 +64,7 @@ array <float, 3> Y_2_linCV_f3(const array <float, 3> &Y, float Ymax, float Ymin)
6464 return linCV;
6565}
6666
67- array <float , 3 > linCV_2_Y_f3 (array <float , 3 > linCV, float Ymax, float Ymin)
67+ array <float , 3 > linCV_2_Y_f3 (const array <float , 3 > & linCV, float Ymax, float Ymin)
6868{
6969 array <float , 3 > Y;
7070 Y[0 ] = linCV_2_Y ( linCV[0 ], Ymax, Ymin);
@@ -73,7 +73,7 @@ array <float, 3> linCV_2_Y_f3(array <float, 3> linCV, float Ymax, float Ymin)
7373 return Y;
7474}
7575
76- array <float , 3 > darkSurround_to_dimSurround (array <float , 3 > linearCV)
76+ array <float , 3 > darkSurround_to_dimSurround (const array <float , 3 > & linearCV)
7777{
7878 array <float , 3 > XYZ = mult_f3_f44 ( linearCV, AP1_2_XYZ_MAT);
7979 array <float , 3 > xyY = XYZ_2_xyY (XYZ);
@@ -84,7 +84,7 @@ array <float, 3> darkSurround_to_dimSurround(array <float, 3> linearCV)
8484 return mult_f3_f44 ( XYZ, XYZ_2_AP1_MAT);
8585}
8686
87- array <float , 3 > dimSurround_to_darkSurround (array <float , 3 > linearCV)
87+ array <float , 3 > dimSurround_to_darkSurround (const array <float , 3 > & linearCV)
8888{
8989 array <float , 3 > XYZ = mult_f3_f44 ( linearCV, AP1_2_XYZ_MAT);
9090
@@ -153,4 +153,4 @@ float roll_white_rev(
153153 out = -(( t * ( x1 - x0)) + x0);
154154 }
155155 return out;
156- }
156+ }
0 commit comments