Searched defs:file_gamma (Results 1 - 15 of 15) sorted by relevance

/external/chromium_org/third_party/libpng/
H A Dpngget.c475 png_get_gAMA(png_structp png_ptr, png_infop info_ptr, double *file_gamma) argument
480 && file_gamma != NULL)
482 *file_gamma = (double)info_ptr->gamma;
H A Dpngset.c116 png_set_gAMA(png_structp png_ptr, png_infop info_ptr, double file_gamma) argument
126 if (file_gamma > 21474.83)
132 png_gamma = file_gamma;
526 float file_gamma; local
548 file_gamma = (float).45455;
549 png_set_gAMA(png_ptr, info_ptr, file_gamma);
H A Dpngrtran.c542 /* Transform the image from the file_gamma to the screen_gamma. We
543 * only do transformations on images where the file_gamma and screen_gamma
552 png_set_gamma(png_structp png_ptr, double scrn_gamma, double file_gamma) argument
559 if ((fabs(scrn_gamma * file_gamma - 1.0) > PNG_GAMMA_THRESHOLD) ||
563 png_ptr->gamma = (float)file_gamma;
4159 * the file_gamma is known (i.e., the gAMA or sRGB chunk is present,
4160 * or the application has provided a file_gamma)
4173 * file_gamma by more than the specified threshold
4177 * a background color has been specified and the file_gamma
H A Dpngrutil.c683 float file_gamma; local
746 file_gamma = (float)igamma / (float)100000.0;
748 png_ptr->gamma = file_gamma;
750 png_set_gAMA(png_ptr, info_ptr, file_gamma);
H A Dpngwutil.c712 png_write_gAMA(png_structp png_ptr, double file_gamma) argument
722 /* file_gamma is saved in 1/100,000ths */
723 igamma = (png_uint_32)(file_gamma * 100000.0 + 0.5);
730 png_write_gAMA_fixed(png_structp png_ptr, png_fixed_point file_gamma) argument
739 /* file_gamma is saved in 1/100,000ths */
740 png_save_uint_32(buf, (png_uint_32)file_gamma);
/external/qemu/distrib/libpng-1.2.46/
H A Dpngget.c475 png_get_gAMA(png_structp png_ptr, png_infop info_ptr, double *file_gamma) argument
480 && file_gamma != NULL)
482 *file_gamma = (double)info_ptr->gamma;
H A Dpngset.c116 png_set_gAMA(png_structp png_ptr, png_infop info_ptr, double file_gamma) argument
126 if (file_gamma > 21474.83)
132 png_gamma = file_gamma;
526 float file_gamma; local
548 file_gamma = (float).45455;
549 png_set_gAMA(png_ptr, info_ptr, file_gamma);
H A Dpngrtran.c542 /* Transform the image from the file_gamma to the screen_gamma. We
543 * only do transformations on images where the file_gamma and screen_gamma
552 png_set_gamma(png_structp png_ptr, double scrn_gamma, double file_gamma) argument
559 if ((fabs(scrn_gamma * file_gamma - 1.0) > PNG_GAMMA_THRESHOLD) ||
563 png_ptr->gamma = (float)file_gamma;
4159 * the file_gamma is known (i.e., the gAMA or sRGB chunk is present,
4160 * or the application has provided a file_gamma)
4173 * file_gamma by more than the specified threshold
4177 * a background color has been specified and the file_gamma
H A Dpngrutil.c699 float file_gamma; local
762 file_gamma = (float)igamma / (float)100000.0;
764 png_ptr->gamma = file_gamma;
766 png_set_gAMA(png_ptr, info_ptr, file_gamma);
H A Dpngwutil.c712 png_write_gAMA(png_structp png_ptr, double file_gamma) argument
722 /* file_gamma is saved in 1/100,000ths */
723 igamma = (png_uint_32)(file_gamma * 100000.0 + 0.5);
730 png_write_gAMA_fixed(png_structp png_ptr, png_fixed_point file_gamma) argument
739 /* file_gamma is saved in 1/100,000ths */
740 png_save_uint_32(buf, (png_uint_32)file_gamma);
/external/libpng/
H A Dpngget.c647 png_fixed_point *file_gamma)
653 file_gamma != NULL)
655 *file_gamma = info_ptr->colorspace.gamma;
666 double *file_gamma)
672 file_gamma != NULL)
674 *file_gamma = png_float(png_ptr, info_ptr->colorspace.gamma,
646 png_get_gAMA_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *file_gamma) argument
665 png_get_gAMA(png_const_structrp png_ptr, png_const_inforp info_ptr, double *file_gamma) argument
H A Dpngset.c139 png_fixed_point file_gamma)
146 png_colorspace_set_gamma(png_ptr, &info_ptr->colorspace, file_gamma);
152 png_set_gAMA(png_const_structrp png_ptr, png_inforp info_ptr, double file_gamma) argument
154 png_set_gAMA_fixed(png_ptr, info_ptr, png_fixed(png_ptr, file_gamma,
138 png_set_gAMA_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point file_gamma) argument
H A Dpngrtran.c278 png_fixed_point file_gamma; local
299 file_gamma = png_reciprocal(output_gamma);
356 png_ptr->colorspace.gamma = file_gamma;
801 png_fixed_point file_gamma)
810 file_gamma = translate_gamma_flags(png_ptr, file_gamma, 0/*file*/);
823 if (file_gamma <= 0)
833 png_ptr->colorspace.gamma = file_gamma;
840 png_set_gamma(png_structrp png_ptr, double scrn_gamma, double file_gamma) argument
843 convert_gamma_value(png_ptr, file_gamma));
800 png_set_gamma_fixed(png_structrp png_ptr, png_fixed_point scrn_gamma, png_fixed_point file_gamma) argument
1075 png_gamma_threshold(png_fixed_point screen_gamma, png_fixed_point file_gamma) argument
[all...]
H A Dpngwutil.c1156 png_write_gAMA_fixed(png_structrp png_ptr, png_fixed_point file_gamma) argument
1162 /* file_gamma is saved in 1/100,000ths */
1163 png_save_uint_32(buf, (png_uint_32)file_gamma);
/external/libpng/contrib/libtests/
H A Dpngvalid.c7694 double file_gamma; member in struct:gamma_display
7715 double file_gamma, double screen_gamma, png_byte sbit, int threshold_test,
7726 dp->file_gamma = file_gamma;
7803 png_set_gamma(pp, sg, dp->file_gamma);
7805 png_fixed_point f = fix(dp->file_gamma);
7819 png_set_gamma(pp, dp->screen_gamma, dp->file_gamma);
7823 png_fixed_point f = fix(dp->file_gamma);
7984 vi->gamma_correction = 1/(dp->file_gamma*dp->screen_gamma);
7988 vi->file_inverse = 1/dp->file_gamma;
7714 gamma_display_init(gamma_display *dp, png_modifier *pm, png_uint_32 id, double file_gamma, double screen_gamma, png_byte sbit, int threshold_test, int use_input_precision, int scale16, int expand16, int do_background, PNG_CONST png_color_16 *pointer_to_the_background_color, double background_gamma) argument
9000 gamma_threshold_test(png_modifier *pm, png_byte colour_type, png_byte bit_depth, int interlace_type, double file_gamma, double screen_gamma) argument
9052 gamma_transform_test(png_modifier *pm, PNG_CONST png_byte colour_type, PNG_CONST png_byte bit_depth, PNG_CONST int palette_number, PNG_CONST int interlace_type, PNG_CONST double file_gamma, PNG_CONST double screen_gamma, PNG_CONST png_byte sbit, PNG_CONST int use_input_precision, PNG_CONST int scale16) argument
9207 gamma_composition_test(png_modifier *pm, PNG_CONST png_byte colour_type, PNG_CONST png_byte bit_depth, PNG_CONST int palette_number, PNG_CONST int interlace_type, PNG_CONST double file_gamma, PNG_CONST double screen_gamma, PNG_CONST int use_input_precision, PNG_CONST int do_background, PNG_CONST int expand_16) argument
[all...]

Completed in 563 milliseconds