Lines Matching refs:output_gamma
211 translate_gamma_flags(png_structrp png_ptr, png_fixed_point output_gamma, in translate_gamma_flags() argument
219 if (output_gamma == PNG_DEFAULT_sRGB || in translate_gamma_flags()
220 output_gamma == PNG_FP_1 / PNG_DEFAULT_sRGB) in translate_gamma_flags()
231 output_gamma = PNG_GAMMA_sRGB; in translate_gamma_flags()
233 output_gamma = PNG_GAMMA_sRGB_INVERSE; in translate_gamma_flags()
236 else if (output_gamma == PNG_GAMMA_MAC_18 || in translate_gamma_flags()
237 output_gamma == PNG_FP_1 / PNG_GAMMA_MAC_18) in translate_gamma_flags()
240 output_gamma = PNG_GAMMA_MAC_OLD; in translate_gamma_flags()
242 output_gamma = PNG_GAMMA_MAC_INVERSE; in translate_gamma_flags()
245 return output_gamma; in translate_gamma_flags()
250 convert_gamma_value(png_structrp png_ptr, double output_gamma) in convert_gamma_value() argument
259 if (output_gamma > 0 && output_gamma < 128) in convert_gamma_value()
260 output_gamma *= PNG_FP_1; in convert_gamma_value()
263 output_gamma = floor(output_gamma + .5); in convert_gamma_value()
265 if (output_gamma > PNG_FP_MAX || output_gamma < PNG_FP_MIN) in convert_gamma_value()
268 return (png_fixed_point)output_gamma; in convert_gamma_value()
276 png_fixed_point output_gamma) in png_set_alpha_mode_fixed() argument
286 output_gamma = translate_gamma_flags(png_ptr, output_gamma, 1/*screen*/); in png_set_alpha_mode_fixed()
297 if (output_gamma < 1000 || output_gamma > 10000000) in png_set_alpha_mode_fixed()
303 file_gamma = png_reciprocal(output_gamma); in png_set_alpha_mode_fixed()
334 output_gamma = PNG_FP_1; in png_set_alpha_mode_fixed()
365 png_ptr->screen_gamma = output_gamma; in png_set_alpha_mode_fixed()
388 png_set_alpha_mode(png_structrp png_ptr, int mode, double output_gamma) in png_set_alpha_mode() argument
391 output_gamma)); in png_set_alpha_mode()