Lines Matching refs:output_gamma
181 translate_gamma_flags(png_structp png_ptr, png_fixed_point output_gamma, in translate_gamma_flags() argument
189 if (output_gamma == PNG_DEFAULT_sRGB || in translate_gamma_flags()
190 output_gamma == PNG_FP_1 / PNG_DEFAULT_sRGB) in translate_gamma_flags()
199 output_gamma = PNG_GAMMA_sRGB; in translate_gamma_flags()
201 output_gamma = PNG_GAMMA_sRGB_INVERSE; in translate_gamma_flags()
204 else if (output_gamma == PNG_GAMMA_MAC_18 || in translate_gamma_flags()
205 output_gamma == PNG_FP_1 / PNG_GAMMA_MAC_18) in translate_gamma_flags()
208 output_gamma = PNG_GAMMA_MAC_OLD; in translate_gamma_flags()
210 output_gamma = PNG_GAMMA_MAC_INVERSE; in translate_gamma_flags()
213 return output_gamma; in translate_gamma_flags()
218 convert_gamma_value(png_structp png_ptr, double output_gamma) in convert_gamma_value() argument
227 if (output_gamma > 0 && output_gamma < 128) in convert_gamma_value()
228 output_gamma *= PNG_FP_1; in convert_gamma_value()
231 output_gamma = floor(output_gamma + .5); in convert_gamma_value()
233 if (output_gamma > PNG_FP_MAX || output_gamma < PNG_FP_MIN) in convert_gamma_value()
236 return (png_fixed_point)output_gamma; in convert_gamma_value()
244 png_fixed_point output_gamma) in png_set_alpha_mode_fixed() argument
254 output_gamma = translate_gamma_flags(png_ptr, output_gamma, 1/*screen*/); in png_set_alpha_mode_fixed()
262 if (output_gamma < 70000 || output_gamma > 300000) in png_set_alpha_mode_fixed()
268 file_gamma = png_reciprocal(output_gamma); in png_set_alpha_mode_fixed()
299 output_gamma = PNG_FP_1; in png_set_alpha_mode_fixed()
327 png_ptr->screen_gamma = output_gamma; in png_set_alpha_mode_fixed()
353 png_set_alpha_mode(png_structp png_ptr, int mode, double output_gamma) in png_set_alpha_mode() argument
356 output_gamma)); in png_set_alpha_mode()