#include "platform_support.h"
-/* Bilinear interpolation on shading tables:
+/*
+ * Bilinear interpolation on shading tables:
* For each target point T, we calculate the 4 surrounding source points:
* ul (upper left), ur (upper right), ll (lower left) and lr (lower right).
* We then calculate the distances from the T to the source points: x0, x1,
*/
ty = out_start_row + i * out_cell_size;
- /* calculate closest source points in shading table and
- make sure they fall within the table */
+ /*
+ * calculate closest source points in shading table and
+ * make sure they fall within the table
+ */
src_y0 = ty / (int)in_cell_size;
if (in_cell_size < out_cell_size)
src_y1 = (ty + out_cell_size) / in_cell_size;
dx0 = tx - sx0;
dx1 = sx1 - tx;
divx = sx1 - sx0;
- /* if we're at the edge, we just use the closest
+ /*
+ * if we're at the edge, we just use the closest
* point still in the grid. We make up for the divider
* in this case by setting the distance to
* out_cell_size, since it's actually 0.
input_width = min(input_width, in_table->sensor_width);
input_height = min(input_height, in_table->sensor_height);
- /* This prepare_shading_table() function is called only in legacy API (not in new API).
- Then, the legacy shading table width and height should be used. */
+ /*
+ * This prepare_shading_table() function is called only in legacy API (not in new API).
+ * Then, the legacy shading table width and height should be used.
+ */
table_width = binary->sctbl_width_per_color;
table_height = binary->sctbl_height;