Mercurial > geeqie.yaz
comparison src/color-man.c @ 495:c7a2471e5c4e
Introduce macros to display debug messages.
if (debug) printf(...) is now replaced by variadic macros:
DEBUG_1()
And for higher debugging levels:
DEBUG_2()
DEBUG_3()
DEBUG_4()
author | zas_ |
---|---|
date | Wed, 23 Apr 2008 20:47:19 +0000 |
parents | 48c8e49b571c |
children | fc9c8a3e1a8b |
comparison
equal
deleted
inserted
replaced
494:3bb9a8df6ee9 | 495:c7a2471e5c4e |
---|---|
162 cc->profile_out = color_man_cache_load_profile(cc->profile_out_type, cc->profile_out_file, | 162 cc->profile_out = color_man_cache_load_profile(cc->profile_out_type, cc->profile_out_file, |
163 NULL, 0); | 163 NULL, 0); |
164 | 164 |
165 if (!cc->profile_in || !cc->profile_out) | 165 if (!cc->profile_in || !cc->profile_out) |
166 { | 166 { |
167 if (debug) printf("failed to load color profile for %s: %d %s\n", | 167 DEBUG_1("failed to load color profile for %s: %d %s\n", |
168 (!cc->profile_in) ? "input" : "screen", | 168 (!cc->profile_in) ? "input" : "screen", |
169 (!cc->profile_in) ? cc->profile_in_type : cc->profile_out_type, | 169 (!cc->profile_in) ? cc->profile_in_type : cc->profile_out_type, |
170 (!cc->profile_in) ? cc->profile_in_file : cc->profile_out_file); | 170 (!cc->profile_in) ? cc->profile_in_file : cc->profile_out_file); |
171 | 171 |
172 color_man_cache_unref(cc); | 172 color_man_cache_unref(cc); |
179 (has_alpha) ? TYPE_RGBA_8 : TYPE_RGB_8, | 179 (has_alpha) ? TYPE_RGBA_8 : TYPE_RGB_8, |
180 INTENT_PERCEPTUAL, 0); | 180 INTENT_PERCEPTUAL, 0); |
181 | 181 |
182 if (!cc->transform) | 182 if (!cc->transform) |
183 { | 183 { |
184 if (debug) printf("failed to create color profile transform\n"); | 184 DEBUG_1("failed to create color profile transform\n"); |
185 | 185 |
186 color_man_cache_unref(cc); | 186 color_man_cache_unref(cc); |
187 return NULL; | 187 return NULL; |
188 } | 188 } |
189 | 189 |