Home | History | Annotate | Download | only in libpng

Lines Matching refs:display

457                   png_combine_row(png_ptr, dsp_row, 1/*display*/);
467 png_combine_row(png_ptr, dsp_row, 1/*display*/);
478 png_combine_row(png_ptr, dsp_row, 1/*display*/);
489 png_combine_row(png_ptr, dsp_row, 1/*display*/);
500 png_combine_row(png_ptr, dsp_row, 1/*display*/);
511 png_combine_row(png_ptr, dsp_row, 1/*display*/);
587 png_combine_row(png_ptr, dsp_row, 1/*display*/);
620 * appear to "sparkle" in. "display_row" can be used to display a
622 * available. If you do not want this "chunky" display, you may pass
623 * NULL for display_row. If you do not want the sparkle display, and
1638 set_file_encoding(png_image_read_control *display)
1640 png_fixed_point g = display->image->opaque->png_ptr->colorspace.gamma;
1645 display->file_encoding = P_FILE;
1646 display->gamma_to_linear = png_reciprocal(g);
1650 display->file_encoding = P_sRGB;
1654 display->file_encoding = P_LINEAR8;
1658 decode_gamma(png_image_read_control *display, png_uint_32 value, int encoding)
1661 encoding = display->file_encoding;
1665 set_file_encoding(display);
1666 encoding = display->file_encoding;
1672 value = png_gamma_16bit_correct(value*257, display->gamma_to_linear);
1688 png_error(display->image->opaque->png_ptr,
1697 png_colormap_compose(png_image_read_control *display,
1706 png_uint_32 f = decode_gamma(display, foreground, foreground_encoding);
1707 png_uint_32 b = decode_gamma(display, background, encoding);
1734 png_create_colormap_entry(png_image_read_control *display,
1738 png_imagep image = display->image;
1752 if (display->file_encoding == P_NOTSET)
1753 set_file_encoding(display);
1758 encoding = display->file_encoding;
1763 png_fixed_point g = display->gamma_to_linear;
1863 png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap);
1918 png_bytep entry = png_voidcast(png_bytep, display->colormap);
1953 make_gray_file_colormap(png_image_read_control *display)
1958 png_create_colormap_entry(display, i, i, i, i, 255, P_FILE);
1964 make_gray_colormap(png_image_read_control *display)
1969 png_create_colormap_entry(display, i, i, i, i, 255, P_sRGB);
1976 make_ga_colormap(png_image_read_control *display)
2008 png_create_colormap_entry(display, i++, gray, gray, gray, 255, P_sRGB);
2014 png_create_colormap_entry(display, i++, 255, 255, 255, 0, P_sRGB);
2021 png_create_colormap_entry(display, i++, g*51, g*51, g*51, a*51,
2031 make_rgb_colormap(png_image_read_control *display)
2045 png_create_colormap_entry(display, i++, r*51, g*51, b*51, 255,
2062 png_image_read_control *display =
2064 const png_imagep image = display->image;
2096 else if (display->background == NULL /* no way to remove it */)
2106 back_g = display->background->green;
2109 back_r = display->background->red;
2110 back_b = display->background->blue;
2192 png_create_colormap_entry(display, i, val, val, val, 255,
2204 png_create_colormap_entry(display, i, back_r, back_g, back_b,
2243 cmap_entries = make_gray_colormap(display);
2269 png_create_colormap_entry(display, gray, back_g, back_g,
2314 png_create_colormap_entry(display, 254, back_r, back_g, back_b,
2341 cmap_entries = make_ga_colormap(display);
2375 cmap_entries = make_gray_colormap(display);
2382 png_create_colormap_entry(display, gray, back_g, back_g,
2413 png_create_colormap_entry(display, i++, gray, gray, gray,
2421 png_create_colormap_entry(display, i++, back_r, back_g, back_b,
2466 png_create_colormap_entry(display, i++,
2514 cmap_entries = make_ga_colormap(display);
2540 cmap_entries = make_gray_file_colormap(display);
2545 cmap_entries = make_gray_colormap(display);
2576 png_create_colormap_entry(display, gray, back_g, back_g,
2586 png_create_colormap_entry(display, gray, back_g, back_g,
2633 cmap_entries = make_rgb_colormap(display);
2636 png_create_colormap_entry(display, cmap_entries, 255, 255,
2657 png_create_colormap_entry(display, cmap_entries++,
2682 cmap_entries = make_rgb_colormap(display);
2684 png_create_colormap_entry(display, cmap_entries, back_r,
2706 if (memcmp((png_const_bytep)display->colormap +
2708 (png_const_bytep)display->colormap +
2726 png_create_colormap_entry(display, cmap_entries++,
2727 png_colormap_compose(display, r, P_sRGB, 128,
2729 png_colormap_compose(display, g, P_sRGB, 128,
2731 png_colormap_compose(display, b, P_sRGB, 128,
2767 cmap_entries = make_rgb_colormap(display);
2803 png_create_colormap_entry(display, i, back_r, back_g,
2811 png_create_colormap_entry(display, i,
2812 png_colormap_compose(display, colormap[i].red, P_FILE,
2814 png_colormap_compose(display, colormap[i].green, P_FILE,
2816 png_colormap_compose(display, colormap[i].blue, P_FILE,
2825 png_create_colormap_entry(display, i, colormap[i].red,
2907 display->colormap_processing = output_processing;
2916 png_image_read_control *display = png_voidcast(png_image_read_control*,
2918 png_imagep image = display->image;
2923 * form. There is a local row buffer in display->local and this routine must
2943 int proc = display->colormap_processing;
2944 png_bytep first_row = png_voidcast(png_bytep, display->first_row);
2945 ptrdiff_t step_row = display->row_bytes;
2974 png_bytep inrow = png_voidcast(png_bytep, display->local_row);
3105 png_image_read_control *display = png_voidcast(png_image_read_control*,
3107 png_imagep image = display->image;
3120 if (display->colormap_processing == PNG_CMAP_NONE)
3126 switch (display->colormap_processing)
3184 png_voidp first_row = display->buffer;
3185 ptrdiff_t row_bytes = display->row_stride;
3197 display->first_row = first_row;
3198 display->row_bytes = row_bytes;
3206 display->local_row = row;
3207 result = png_safe_execute(image, png_image_read_and_map, display);
3208 display->local_row = NULL;
3216 png_alloc_size_t row_bytes = display->row_bytes;
3221 png_bytep row = png_voidcast(png_bytep, display->first_row);
3238 png_image_read_control *display = png_voidcast(png_image_read_control*,
3240 png_imagep image = display->image;
3261 ptrdiff_t step_row = display->row_bytes;
3293 png_bytep inrow = png_voidcast(png_bytep, display->local_row);
3300 outrow = png_voidcast(png_bytep, display->first_row);
3365 png_image_read_control *display = png_voidcast(png_image_read_control*,
3367 png_imagep image = display->image;
3417 * display->background is NULL or display->background->green if not.
3421 png_bytep first_row = png_voidcast(png_bytep, display->first_row);
3422 ptrdiff_t step_row = display->row_bytes;
3427 display->first_row);
3450 if (display->background == NULL)
3455 display->local_row);
3494 png_byte background8 = display->background->green;
3500 display->local_row);
3533 row += display->row_bytes;
3547 display->first_row);
3551 ptrdiff_t step_row = display->row_bytes / 2;
3597 display->local_row), NULL);
3598 inrow = png_voidcast(png_const_uint_16p, display->local_row);
3645 png_image_read_control *display = png_voidcast(png_image_read_control*,
3647 png_imagep image = display->image;
3802 else if (display->background != NULL)
3807 c.red = display->background->red;
3808 c.green = display->background->green;
3809 c.blue = display->background->blue;
3810 c.gray = display->background->green;
3999 * display acts as a flag.
4002 png_voidp first_row = display->buffer;
4003 ptrdiff_t row_bytes = display->row_stride;
4018 display->first_row = first_row;
4019 display->row_bytes = row_bytes;
4027 display->local_row = row;
4028 result = png_safe_execute(image, png_image_read_composite, display);
4029 display->local_row = NULL;
4040 display->local_row = row;
4041 result = png_safe_execute(image, png_image_read_background, display);
4042 display->local_row = NULL;
4050 png_alloc_size_t row_bytes = display->row_bytes;
4055 png_bytep row = png_voidcast(png_bytep, display->first_row);
4106 png_image_read_control display;
4108 memset(&display, 0, (sizeof display));
4109 display.image = image;
4110 display.buffer = buffer;
4111 display.row_stride = row_stride;
4112 display.colormap = colormap;
4113 display.background = background;
4114 display.local_row = NULL;
4121 png_image_read_colormap, &display) &&
4123 png_image_read_colormapped, &display);
4128 png_image_read_direct, &display);