Skip to content

Commit be0ad7a

Browse files
committed
wb: formatting
1 parent ac37176 commit be0ad7a

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/common/illuminants.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ static inline void matrice_pseudoinverse(float (*in)[3], float (*out)[3], int si
398398
// returns TRUE is OK, FALSE if failed
399399
static gboolean get_CAM_to_XYZ(const dt_image_t * img, float(* CAM_to_XYZ)[3])
400400
{
401-
if (img == NULL || CAM_to_XYZ == NULL) return FALSE;
401+
if(img == NULL || CAM_to_XYZ == NULL) return FALSE;
402402
// Get the camera input profile (matrice of primaries) - embedded or raw library DB
403403
float XYZ_to_CAM[4][3];
404404
dt_mark_colormatrix_invalid(&XYZ_to_CAM[0][0]);
@@ -441,7 +441,7 @@ static gboolean find_temperature_from_wb_coeffs(const dt_image_t *img, const dt_
441441
if(!dt_image_is_matrix_correction_supported(img)) return FALSE;
442442

443443
float CAM_to_XYZ[4][3];
444-
if (!get_CAM_to_XYZ(img, CAM_to_XYZ)) {
444+
if(!get_CAM_to_XYZ(img, CAM_to_XYZ)) {
445445
return FALSE;
446446
}
447447

src/develop/develop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ typedef struct dt_dev_viewport_t
141141
- D65coeffs and as_shot are read from exif data
142142
f) - late_correction set by temperature if we want to process data as following
143143
If we use the new DT_IOP_TEMP_D65_LATE mode or enable this in user modes of temperature.c
144-
and don't have any temp parameters changes later we can calc correction coeffs (FIXME kofa: check against renaming in channelmixerrgb)
144+
and don't have any temp parameters changes later we can calc correction ratios
145145
to take white-balanced (neutralized) data to D65
146146
*/
147147
typedef struct dt_dev_chroma_t

src/iop/temperature.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,9 @@ void commit_params(dt_iop_module_t *self,
744744

745745
gboolean effective_late_correction = FALSE;
746746

747-
if (p->preset == DT_IOP_TEMP_D65_LATE)
747+
if(p->preset == DT_IOP_TEMP_D65_LATE)
748748
effective_late_correction = TRUE;
749-
else if (p->preset == DT_IOP_TEMP_D65)
749+
else if(p->preset == DT_IOP_TEMP_D65)
750750
effective_late_correction = FALSE;
751751
else
752752
effective_late_correction = p->late_correction;
@@ -1206,19 +1206,19 @@ static void _update_preset(dt_iop_module_t *self, int mode)
12061206
const gboolean is_new_mode_manual = (mode != DT_IOP_TEMP_D65_LATE) &&
12071207
(mode != DT_IOP_TEMP_D65);
12081208

1209-
if (is_current_reference && is_new_mode_manual)
1209+
if(is_current_reference && is_new_mode_manual)
12101210
{
12111211
// set iff color calibration active in adaptation mode
12121212
p->late_correction = (chr->adaptation != NULL);
12131213
}
12141214

12151215
p->preset = mode;
12161216

1217-
if (mode == DT_IOP_TEMP_D65_LATE)
1217+
if(mode == DT_IOP_TEMP_D65_LATE)
12181218
{
12191219
chr->late_correction = TRUE;
12201220
}
1221-
else if (mode == DT_IOP_TEMP_D65)
1221+
else if(mode == DT_IOP_TEMP_D65)
12221222
{
12231223
chr->late_correction = FALSE;
12241224
}
@@ -1228,7 +1228,7 @@ static void _update_preset(dt_iop_module_t *self, int mode)
12281228
chr->late_correction = p->late_correction;
12291229
}
12301230

1231-
if (g && g->check_late_correction)
1231+
if(g && g->check_late_correction)
12321232
{
12331233
// show the checkbox only in modes where user can adjust multipliers
12341234
gtk_widget_set_visible(g->check_late_correction, is_new_mode_manual);

0 commit comments

Comments
 (0)