static inline void cm_process_pixel (CmParamsType *mix, const gfloat *s, gfloat *d, const gdouble red_norm, const gdouble green_norm, const gdouble blue_norm) { d[0] = cm_mix_pixel (&mix->red, s[0], s[1], s[2], red_norm); d[1] = cm_mix_pixel (&mix->green, s[0], s[1], s[2], green_norm); d[2] = cm_mix_pixel (&mix->blue, s[0], s[1], s[2], blue_norm); }
static inline void cm_process_pixel (CmParamsType *mix, const guchar *s, guchar *d, const gdouble red_norm, const gdouble green_norm, const gdouble blue_norm, const gdouble black_norm) { if (mix->monochrome) { d[0] = d[1] = d[2] = cm_mix_pixel (&mix->black, s[0], s[1], s[2], black_norm); } else { d[0] = cm_mix_pixel (&mix->red, s[0], s[1], s[2], red_norm); d[1] = cm_mix_pixel (&mix->green, s[0], s[1], s[2], green_norm); d[2] = cm_mix_pixel (&mix->blue, s[0], s[1], s[2], blue_norm); } }