Lines Matching refs:display
387 png_combine_row(png_ptr, dsp_row, 1/*display*/);
397 png_combine_row(png_ptr, dsp_row, 1/*display*/);
408 png_combine_row(png_ptr, dsp_row, 1/*display*/);
419 png_combine_row(png_ptr, dsp_row, 1/*display*/);
430 png_combine_row(png_ptr, dsp_row, 1/*display*/);
441 png_combine_row(png_ptr, dsp_row, 1/*display*/);
518 png_combine_row(png_ptr, dsp_row, 1/*display*/);
551 * appear to "sparkle" in. "display_row" can be used to display a
553 * available. If you do not want this "chunky" display, you may pass
554 * NULL for display_row. If you do not want the sparkle display, and
1524 set_file_encoding(png_image_read_control *display)
1526 png_fixed_point g = display->image->opaque->png_ptr->colorspace.gamma;
1531 display->file_encoding = E_FILE;
1532 display->gamma_to_linear = png_reciprocal(g);
1536 display->file_encoding = E_sRGB;
1540 display->file_encoding = E_LINEAR8;
1544 decode_gamma(png_image_read_control *display, png_uint_32 value, int encoding)
1547 encoding = display->file_encoding;
1551 set_file_encoding(display);
1552 encoding = display->file_encoding;
1558 value = png_gamma_16bit_correct(value*257, display->gamma_to_linear);
1573 png_error(display->image->opaque->png_ptr,
1582 png_colormap_compose(png_image_read_control *display,
1591 png_uint_32 f = decode_gamma(display, foreground, foreground_encoding);
1592 png_uint_32 b = decode_gamma(display, background, encoding);
1619 png_create_colormap_entry(png_image_read_control *display,
1623 png_imagep image = display->image;
1637 if (display->file_encoding == E_NOTSET)
1638 set_file_encoding(display);
1643 encoding = display->file_encoding;
1648 png_fixed_point g = display->gamma_to_linear;
1746 png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap);
1801 png_bytep entry = png_voidcast(png_bytep, display->colormap);
1836 make_gray_file_colormap(png_image_read_control *display)
1841 png_create_colormap_entry(display, i, i, i, i, 255, E_FILE);
1847 make_gray_colormap(png_image_read_control *display)
1852 png_create_colormap_entry(display, i, i, i, i, 255, E_sRGB);
1859 make_ga_colormap(png_image_read_control *display)
1891 png_create_colormap_entry(display, i++, gray, gray, gray, 255, E_sRGB);
1897 png_create_colormap_entry(display, i++, 255, 255, 255, 0, E_sRGB);
1904 png_create_colormap_entry(display, i++, g*51, g*51, g*51, a*51,
1914 make_rgb_colormap(png_image_read_control *display)
1928 png_create_colormap_entry(display, i++, r*51, g*51, b*51, 255,
1945 png_image_read_control *display =
1947 const png_imagep image = display->image;
1979 else if (display->background == NULL /* no way to remove it */)
1989 back_g = display->background->green;
1992 back_r = display->background->red;
1993 back_b = display->background->blue;
2075 png_create_colormap_entry(display, i, val, val, val, 255,
2087 png_create_colormap_entry(display, i, back_r, back_g, back_b,
2126 cmap_entries = make_gray_colormap(display);
2152 png_create_colormap_entry(display, gray, back_g, back_g,
2191 png_create_colormap_entry(display, 254, back_r, back_g, back_b,
2218 cmap_entries = make_ga_colormap(display);
2252 cmap_entries = make_gray_colormap(display);
2259 png_create_colormap_entry(display, gray, back_g, back_g,
2290 png_create_colormap_entry(display, i++, gray, gray, gray,
2298 png_create_colormap_entry(display, i++, back_r, back_g, back_b,
2336 png_create_colormap_entry(display, i++,
2384 cmap_entries = make_ga_colormap(display);
2410 cmap_entries = make_gray_file_colormap(display);
2415 cmap_entries = make_gray_colormap(display);
2446 png_create_colormap_entry(display, gray, back_g, back_g,
2456 png_create_colormap_entry(display, gray, back_g, back_g,
2503 cmap_entries = make_rgb_colormap(display);
2506 png_create_colormap_entry(display, cmap_entries, 255, 255,
2527 png_create_colormap_entry(display, cmap_entries++,
2552 cmap_entries = make_rgb_colormap(display);
2554 png_create_colormap_entry(display, cmap_entries, back_r,
2576 if (memcmp((png_const_bytep)display->colormap +
2578 (png_const_bytep)display->colormap +
2596 png_create_colormap_entry(display, cmap_entries++,
2597 png_colormap_compose(display, r, E_sRGB, 128,
2599 png_colormap_compose(display, g, E_sRGB, 128,
2601 png_colormap_compose(display, b, E_sRGB, 128,
2637 cmap_entries = make_rgb_colormap(display);
2673 png_create_colormap_entry(display, i, back_r, back_g,
2681 png_create_colormap_entry(display, i,
2682 png_colormap_compose(display, colormap[i].red, E_FILE,
2684 png_colormap_compose(display, colormap[i].green, E_FILE,
2686 png_colormap_compose(display, colormap[i].blue, E_FILE,
2695 png_create_colormap_entry(display, i, colormap[i].red,
2777 display->colormap_processing = output_processing;
2786 png_image_read_control *display = png_voidcast(png_image_read_control*,
2788 png_imagep image = display->image;
2793 * form. There is a local row buffer in display->local and this routine must
2814 int proc = display->colormap_processing;
2815 png_bytep first_row = png_voidcast(png_bytep, display->first_row);
2816 ptrdiff_t step_row = display->row_bytes;
2845 png_bytep inrow = png_voidcast(png_bytep, display->local_row);
2976 png_image_read_control *display = png_voidcast(png_image_read_control*,
2978 png_imagep image = display->image;
2991 if (display->colormap_processing == PNG_CMAP_NONE)
2997 switch (display->colormap_processing)
3055 png_voidp first_row = display->buffer;
3056 ptrdiff_t row_bytes = display->row_stride;
3068 display->first_row = first_row;
3069 display->row_bytes = row_bytes;
3077 display->local_row = row;
3078 result = png_safe_execute(image, png_image_read_and_map, display);
3079 display->local_row = NULL;
3087 png_alloc_size_t row_bytes = display->row_bytes;
3092 png_bytep row = png_voidcast(png_bytep, display->first_row);
3109 png_image_read_control *display = png_voidcast(png_image_read_control*,
3111 png_imagep image = display->image;
3133 ptrdiff_t step_row = display->row_bytes;
3164 png_bytep inrow = png_voidcast(png_bytep, display->local_row);
3171 outrow = png_voidcast(png_bytep, display->first_row);
3236 png_image_read_control *display = png_voidcast(png_image_read_control*,
3238 png_imagep image = display->image;
3288 * display->background is NULL or display->background->green if not.
3292 png_bytep first_row = png_voidcast(png_bytep, display->first_row);
3293 ptrdiff_t step_row = display->row_bytes;
3298 display->first_row);
3321 if (display->background == NULL)
3326 display->local_row);
3365 png_byte background8 = display->background->green;
3371 display->local_row);
3404 row += display->row_bytes;
3418 display->first_row);
3422 ptrdiff_t step_row = display->row_bytes / 2;
3465 display->local_row), NULL);
3466 inrow = png_voidcast(png_const_uint_16p, display->local_row);
3508 png_image_read_control *display = png_voidcast(png_image_read_control*,
3510 png_imagep image = display->image;
3665 else if (display->background != NULL)
3670 c.red = display->background->red;
3671 c.green = display->background->green;
3672 c.blue = display->background->blue;
3673 c.gray = display->background->green;
3862 * display acts as a flag.
3865 png_voidp first_row = display->buffer;
3866 ptrdiff_t row_bytes = display->row_stride;
3881 display->first_row = first_row;
3882 display->row_bytes = row_bytes;
3890 display->local_row = row;
3891 result = png_safe_execute(image, png_image_read_composite, display);
3892 display->local_row = NULL;
3903 display->local_row = row;
3904 result = png_safe_execute(image, png_image_read_background, display);
3905 display->local_row = NULL;
3913 png_alloc_size_t row_bytes = display->row_bytes;
3918 png_bytep row = png_voidcast(png_bytep, display->first_row);
3955 png_image_read_control display;
3957 memset(&display, 0, (sizeof display));
3958 display.image = image;
3959 display.buffer = buffer;
3960 display.row_stride = row_stride;
3961 display.colormap = colormap;
3962 display.background = background;
3963 display.local_row = NULL;
3970 png_safe_execute(image, png_image_read_colormap, &display) &&
3971 png_safe_execute(image, png_image_read_colormapped, &display);
3975 png_safe_execute(image, png_image_read_direct, &display);