Skip to content

Commit 5a8d398

Browse files
committed
More formatting + inline
1 parent f97d952 commit 5a8d398

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/iop/agx.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ static void _agx_look(dt_aligned_pixel_t pixel_in_out,
666666
}
667667
}
668668

669-
static float _apply_log_encoding(float x, const float range_in_ev, const float min_ev)
669+
static inline float _apply_log_encoding(float x, const float range_in_ev, const float min_ev)
670670
{
671671
// Assume input is linear RGB relative to 0.18 mid-gray
672672
// Ensure value > 0 before log
@@ -686,9 +686,10 @@ static inline float _calculate_slope_matching_power(const float slope,
686686
}
687687

688688
static inline float _calculate_fallback_curve_coefficient(const float dx_transition_to_limit,
689-
const float dy_transition_to_limit, const float B)
689+
const float dy_transition_to_limit,
690+
const float exponent)
690691
{
691-
return dy_transition_to_limit / powf(dx_transition_to_limit, B);
692+
return dy_transition_to_limit / powf(dx_transition_to_limit, exponent);
692693
}
693694

694695
static inline void _compress_into_gamut(dt_aligned_pixel_t pixel_in_out)
@@ -1819,8 +1820,10 @@ static void _populate_primaries_presets_combobox(dt_iop_module_t *self)
18191820
sqlite3_stmt *stmt;
18201821
// Fetch name and parameters, filtering by current module version to ensure struct compatibility.
18211822
DT_DEBUG_SQLITE3_PREPARE_V2(dt_database_get(darktable.db),
1822-
"SELECT name, op_params FROM data.presets WHERE operation = ?1 AND op_version = ?2 "
1823-
"ORDER BY writeprotect DESC, LOWER(name), rowid",
1823+
"SELECT name, op_params"
1824+
" FROM data.presets"
1825+
" WHERE operation = ?1 AND op_version = ?2 "
1826+
" ORDER BY writeprotect DESC, LOWER(name), rowid",
18241827
-1, &stmt, NULL);
18251828
DT_DEBUG_SQLITE3_BIND_TEXT(stmt, 1, self->op, -1, SQLITE_TRANSIENT);
18261829
DT_DEBUG_SQLITE3_BIND_INT(stmt, 2, self->version());

0 commit comments

Comments
 (0)