Cleanup: Remove unused color conversion function
Unused for 14 years.
This commit is contained in:
@@ -199,19 +199,6 @@ MINLINE void cpack_cpy_3ub(unsigned char r_col[3], unsigned int pack);
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name lift/gamma/gain / ASC-CDL conversion
|
||||
* \{ */
|
||||
|
||||
void lift_gamma_gain_to_asc_cdl(const float *lift,
|
||||
const float *gamma,
|
||||
const float *gain,
|
||||
float *offset,
|
||||
float *slope,
|
||||
float *power);
|
||||
|
||||
/** \} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -723,27 +723,7 @@ int constrain_rgb(float *r, float *g, float *b)
|
||||
return 0; /* Color within RGB gamut */
|
||||
}
|
||||
|
||||
/* ********************** lift/gamma/gain / ASC-CDL conversion ********************************* */
|
||||
|
||||
void lift_gamma_gain_to_asc_cdl(const float *lift,
|
||||
const float *gamma,
|
||||
const float *gain,
|
||||
float *offset,
|
||||
float *slope,
|
||||
float *power)
|
||||
{
|
||||
int c;
|
||||
for (c = 0; c < 3; c++) {
|
||||
offset[c] = lift[c] * gain[c];
|
||||
slope[c] = gain[c] * (1.0f - lift[c]);
|
||||
if (gamma[c] == 0) {
|
||||
power[c] = FLT_MAX;
|
||||
}
|
||||
else {
|
||||
power[c] = 1.0f / gamma[c];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ************************************* other ************************************************* */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user