display 142 contrib/gregbook/rpng-x.c static Display *display; display 324 contrib/gregbook/rpng-x.c display = XOpenDisplay(displayname); display 325 contrib/gregbook/rpng-x.c if (!display) { display 416 contrib/gregbook/rpng-x.c XNextEvent(display, &e); display 454 contrib/gregbook/rpng-x.c screen = DefaultScreen(display); display 455 contrib/gregbook/rpng-x.c depth = DisplayPlanes(display, screen); display 456 contrib/gregbook/rpng-x.c root = RootWindow(display, screen); display 459 contrib/gregbook/rpng-x.c XSynchronize(display, True); display 471 contrib/gregbook/rpng-x.c XMatchVisualInfo(display, screen, depth, display 484 contrib/gregbook/rpng-x.c visual_list = XGetVisualInfo(display, display 504 contrib/gregbook/rpng-x.c XMatchVisualInfo(display, screen, depth, TrueColor, &visual_info); display 515 contrib/gregbook/rpng-x.c colormap = XCreateColormap(display, root, visual, AllocNone); display 557 contrib/gregbook/rpng-x.c window = XCreateWindow(display, root, 0, 0, image_width, image_height, 0, display 567 contrib/gregbook/rpng-x.c XSetWindowColormap(display, window, colormap); display 595 contrib/gregbook/rpng-x.c XSetWMProperties(display, window, pWindowName, pIconName, NULL, 0, display 610 contrib/gregbook/rpng-x.c XMapWindow(display, window); display 612 contrib/gregbook/rpng-x.c gc = XCreateGC(display, window, 0, &gcvalues); display 633 contrib/gregbook/rpng-x.c XSetForeground(display, gc, bg_pixel); display 634 contrib/gregbook/rpng-x.c XFillRectangle(display, window, gc, 0, 0, image_width, image_height); display 641 contrib/gregbook/rpng-x.c XNextEvent(display, &e); display 644 contrib/gregbook/rpng-x.c XFlush(display); display 666 contrib/gregbook/rpng-x.c ximage = XCreateImage(display, visual, depth, ZPixmap, 0, display 778 contrib/gregbook/rpng-x.c XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0, display 780 contrib/gregbook/rpng-x.c XFlush(display); display 841 contrib/gregbook/rpng-x.c XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0, display 843 contrib/gregbook/rpng-x.c XFlush(display); display 856 contrib/gregbook/rpng-x.c XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0, display 858 contrib/gregbook/rpng-x.c XFlush(display); display 884 contrib/gregbook/rpng-x.c XFreeGC(display, gc); display 887 contrib/gregbook/rpng-x.c XDestroyWindow(display, window); display 890 contrib/gregbook/rpng-x.c XFreeColormap(display, colormap); display 291 contrib/gregbook/rpng2-x.c static Display *display; display 543 contrib/gregbook/rpng2-x.c display = XOpenDisplay(displayname); display 544 contrib/gregbook/rpng2-x.c if (!display) { display 658 contrib/gregbook/rpng2-x.c if (XCheckMaskEvent(display, KeyPressMask | ButtonPressMask, &e)) display 672 contrib/gregbook/rpng2-x.c if (XCheckMaskEvent(display, KeyPressMask | ButtonPressMask, display 696 contrib/gregbook/rpng2-x.c if (XCheckMaskEvent(display, KeyPressMask | display 743 contrib/gregbook/rpng2-x.c XNextEvent(display, &e); display 850 contrib/gregbook/rpng2-x.c screen = DefaultScreen(display); display 851 contrib/gregbook/rpng2-x.c depth = DisplayPlanes(display, screen); display 852 contrib/gregbook/rpng2-x.c root = RootWindow(display, screen); display 855 contrib/gregbook/rpng2-x.c XSynchronize(display, True); display 867 contrib/gregbook/rpng2-x.c visual_list = XGetVisualInfo(display, display 887 contrib/gregbook/rpng2-x.c XMatchVisualInfo(display, screen, depth, TrueColor, &visual_info); display 897 contrib/gregbook/rpng2-x.c colormap = XCreateColormap(display, root, visual, AllocNone); display 934 contrib/gregbook/rpng2-x.c window = XCreateWindow(display, root, 0, 0, rpng2_info.width, display 944 contrib/gregbook/rpng2-x.c XSetWindowColormap(display, window, colormap); display 973 contrib/gregbook/rpng2-x.c XSetWMProperties(display, window, pWindowName, pIconName, NULL, 0, display 988 contrib/gregbook/rpng2-x.c XMapWindow(display, window); display 990 contrib/gregbook/rpng2-x.c gc = XCreateGC(display, window, 0, &gcvalues); display 1013 contrib/gregbook/rpng2-x.c ximage = XCreateImage(display, visual, depth, ZPixmap, 0, display 1054 contrib/gregbook/rpng2-x.c XSetForeground(display, gc, bg_pixel); display 1055 contrib/gregbook/rpng2-x.c XFillRectangle(display, window, gc, 0, 0, rpng2_info.width, display 1064 contrib/gregbook/rpng2-x.c XNextEvent(display, &e); display 1067 contrib/gregbook/rpng2-x.c XFlush(display); display 1362 contrib/gregbook/rpng2-x.c XPutImage(display, window, gc, ximage, 0, 0, 0, 0, rpng2_info.width, display 1403 contrib/gregbook/rpng2-x.c XNextEvent(display, &e); display 1576 contrib/gregbook/rpng2-x.c XPutImage(display, window, gc, ximage, 0, (int)firstrow, 0, display 1578 contrib/gregbook/rpng2-x.c XFlush(display); display 1583 contrib/gregbook/rpng2-x.c XPutImage(display, window, gc, ximage, 0, (int)firstrow, 0, display 1585 contrib/gregbook/rpng2-x.c XFlush(display); display 1764 contrib/gregbook/rpng2-x.c XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0, display 1766 contrib/gregbook/rpng2-x.c XFlush(display); display 1834 contrib/gregbook/rpng2-x.c XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0, display 1836 contrib/gregbook/rpng2-x.c XFlush(display); display 1849 contrib/gregbook/rpng2-x.c XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0, display 1851 contrib/gregbook/rpng2-x.c XFlush(display); display 2109 contrib/gregbook/rpng2-x.c XFreeGC(display, gc); display 2112 contrib/gregbook/rpng2-x.c XDestroyWindow(display, window); display 2115 contrib/gregbook/rpng2-x.c XFreeColormap(display, colormap); display 601 contrib/libtests/pngimage.c static struct display * display 605 contrib/libtests/pngimage.c struct display *dp = (struct display*)png_get_error_ptr(pp); display 693 contrib/libtests/pngimage.c struct display *dp = get_dp(pp); display 1494 contrib/libtests/pngimage.c struct display d; display 445 contrib/libtests/pngunknown.c display *d = (display*)png_get_error_ptr(png_ptr); display 454 contrib/libtests/pngunknown.c display *d = (display*)png_get_error_ptr(png_ptr); display 499 contrib/libtests/pngunknown.c display *d = voidcast(display*, png_get_user_chunk_ptr(pp)); display 1073 contrib/libtests/pngunknown.c display d; display 4790 contrib/libtests/pngvalid.c png_byte row[STANDARD_ROWMAX], display[STANDARD_ROWMAX]; display 4799 contrib/libtests/pngvalid.c memset(display, 0x5c, sizeof display); display 4801 contrib/libtests/pngvalid.c png_read_row(pp, row, display); display 4808 contrib/libtests/pngvalid.c deinterlace_row(store_image_row(ps, pp, iDisplay, y), display, display 5448 contrib/libtests/pngvalid.c if (this->red == display->transparent.red) display 5468 contrib/libtests/pngvalid.c if (this->red == display->transparent.red && display 5469 contrib/libtests/pngvalid.c this->green == display->transparent.green && display 5470 contrib/libtests/pngvalid.c this->blue == display->transparent.blue) display 5483 contrib/libtests/pngvalid.c this->alpha_sBIT = display->alpha_sBIT; display 5533 contrib/libtests/pngvalid.c png_const_structp pp, PNG_CONST struct transform_display *display); display 5634 contrib/libtests/pngvalid.c UNUSED(display) display 6213 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 6256 contrib/libtests/pngvalid.c image_pixel_add_alpha(that, &display->this); display 6267 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 6312 contrib/libtests/pngvalid.c image_pixel_add_alpha(that, &display->this); display 6330 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 6372 contrib/libtests/pngvalid.c image_pixel_add_alpha(that, &display->this); display 6374 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 6415 contrib/libtests/pngvalid.c image_transform_png_set_expand_mod(this, that, pp, display); display 6453 contrib/libtests/pngvalid.c image_pixel_add_alpha(that, &display->this); display 6458 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 6503 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 6570 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 6613 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 6975 contrib/libtests/pngvalid.c PNG_CONST png_modifier *pm = display->pm; display 7148 contrib/libtests/pngvalid.c PNG_CONST png_modifier *pm = display->pm; display 7233 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 7335 contrib/libtests/pngvalid.c image_pixel_add_alpha(that, &display->this); display 7382 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 7584 contrib/libtests/pngvalid.c this->next->mod(this->next, that, pp, display); display 39 contrib/libtests/readpng.c png_bytep row = NULL, display = NULL; display 48 contrib/libtests/readpng.c if (display != NULL) free(display); display 66 contrib/libtests/readpng.c display = malloc(rowbytes); display 68 contrib/libtests/readpng.c if (row == NULL || display == NULL) display 86 contrib/libtests/readpng.c png_read_row(png_ptr, row, display); display 95 contrib/libtests/readpng.c free(display); display 42 contrib/libtests/timepng.c png_bytep row = NULL, display = NULL; display 51 contrib/libtests/timepng.c if (display != NULL) free(display); display 67 contrib/libtests/timepng.c display = malloc(rowbytes); display 69 contrib/libtests/timepng.c if (row == NULL || display == NULL) display 87 contrib/libtests/timepng.c png_read_row(png_ptr, row, display); display 96 contrib/libtests/timepng.c free(display); display 3580 contrib/tools/pngfix.c volatile png_bytep row = NULL, display = NULL; display 3612 contrib/tools/pngfix.c display = png_voidcast(png_byte*, malloc(rowbytes)); display 3614 contrib/tools/pngfix.c if (row == NULL || display == NULL) display 3632 contrib/tools/pngfix.c png_read_row(png_ptr, row, display); display 3646 contrib/tools/pngfix.c if (display != NULL) free(display); display 1169 pngpriv.h png_bytep row, int display),PNG_EMPTY); display 1623 pngread.c png_fixed_point g = display->image->opaque->png_ptr->colorspace.gamma; display 1628 pngread.c display->file_encoding = P_FILE; display 1629 pngread.c display->gamma_to_linear = png_reciprocal(g); display 1633 pngread.c display->file_encoding = P_sRGB; display 1637 pngread.c display->file_encoding = P_LINEAR8; display 1644 pngread.c encoding = display->file_encoding; display 1648 pngread.c set_file_encoding(display); display 1649 pngread.c encoding = display->file_encoding; display 1655 pngread.c value = png_gamma_16bit_correct(value*257, display->gamma_to_linear); display 1670 pngread.c png_error(display->image->opaque->png_ptr, display 1688 pngread.c png_uint_32 f = decode_gamma(display, foreground, foreground_encoding); display 1689 pngread.c png_uint_32 b = decode_gamma(display, background, encoding); display 1720 pngread.c png_imagep image = display->image; display 1734 pngread.c if (display->file_encoding == P_NOTSET) display 1735 pngread.c set_file_encoding(display); display 1740 pngread.c encoding = display->file_encoding; display 1745 pngread.c png_fixed_point g = display->gamma_to_linear; display 1843 pngread.c png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap); display 1898 pngread.c png_bytep entry = png_voidcast(png_bytep, display->colormap); display 1938 pngread.c png_create_colormap_entry(display, i, i, i, i, 255, P_FILE); display 1949 pngread.c png_create_colormap_entry(display, i, i, i, i, 255, P_sRGB); display 1988 pngread.c png_create_colormap_entry(display, i++, gray, gray, gray, 255, P_sRGB); display 1994 pngread.c png_create_colormap_entry(display, i++, 255, 255, 255, 0, P_sRGB); display 2001 pngread.c png_create_colormap_entry(display, i++, g*51, g*51, g*51, a*51, display 2025 pngread.c png_create_colormap_entry(display, i++, r*51, g*51, b*51, 255, display 2042 pngread.c png_image_read_control *display = display 2044 pngread.c const png_imagep image = display->image; display 2076 pngread.c else if (display->background == NULL /* no way to remove it */) display 2086 pngread.c back_g = display->background->green; display 2089 pngread.c back_r = display->background->red; display 2090 pngread.c back_b = display->background->blue; display 2172 pngread.c png_create_colormap_entry(display, i, val, val, val, 255, display 2184 pngread.c png_create_colormap_entry(display, i, back_r, back_g, back_b, display 2223 pngread.c cmap_entries = make_gray_colormap(display); display 2249 pngread.c png_create_colormap_entry(display, gray, back_g, back_g, display 2288 pngread.c png_create_colormap_entry(display, 254, back_r, back_g, back_b, display 2315 pngread.c cmap_entries = make_ga_colormap(display); display 2349 pngread.c cmap_entries = make_gray_colormap(display); display 2356 pngread.c png_create_colormap_entry(display, gray, back_g, back_g, display 2387 pngread.c png_create_colormap_entry(display, i++, gray, gray, gray, display 2395 pngread.c png_create_colormap_entry(display, i++, back_r, back_g, back_b, display 2433 pngread.c png_create_colormap_entry(display, i++, display 2481 pngread.c cmap_entries = make_ga_colormap(display); display 2507 pngread.c cmap_entries = make_gray_file_colormap(display); display 2512 pngread.c cmap_entries = make_gray_colormap(display); display 2543 pngread.c png_create_colormap_entry(display, gray, back_g, back_g, display 2553 pngread.c png_create_colormap_entry(display, gray, back_g, back_g, display 2600 pngread.c cmap_entries = make_rgb_colormap(display); display 2603 pngread.c png_create_colormap_entry(display, cmap_entries, 255, 255, display 2624 pngread.c png_create_colormap_entry(display, cmap_entries++, display 2649 pngread.c cmap_entries = make_rgb_colormap(display); display 2651 pngread.c png_create_colormap_entry(display, cmap_entries, back_r, display 2673 pngread.c if (memcmp((png_const_bytep)display->colormap + display 2675 pngread.c (png_const_bytep)display->colormap + display 2693 pngread.c png_create_colormap_entry(display, cmap_entries++, display 2694 pngread.c png_colormap_compose(display, r, P_sRGB, 128, display 2696 pngread.c png_colormap_compose(display, g, P_sRGB, 128, display 2698 pngread.c png_colormap_compose(display, b, P_sRGB, 128, display 2734 pngread.c cmap_entries = make_rgb_colormap(display); display 2770 pngread.c png_create_colormap_entry(display, i, back_r, back_g, display 2778 pngread.c png_create_colormap_entry(display, i, display 2779 pngread.c png_colormap_compose(display, colormap[i].red, P_FILE, display 2781 pngread.c png_colormap_compose(display, colormap[i].green, P_FILE, display 2783 pngread.c png_colormap_compose(display, colormap[i].blue, P_FILE, display 2792 pngread.c png_create_colormap_entry(display, i, colormap[i].red, display 2874 pngread.c display->colormap_processing = output_processing; display 2883 pngread.c png_image_read_control *display = png_voidcast(png_image_read_control*, display 2885 pngread.c png_imagep image = display->image; display 2910 pngread.c int proc = display->colormap_processing; display 2911 pngread.c png_bytep first_row = png_voidcast(png_bytep, display->first_row); display 2912 pngread.c ptrdiff_t step_row = display->row_bytes; display 2941 pngread.c png_bytep inrow = png_voidcast(png_bytep, display->local_row); display 3072 pngread.c png_image_read_control *display = png_voidcast(png_image_read_control*, display 3074 pngread.c png_imagep image = display->image; display 3087 pngread.c if (display->colormap_processing == PNG_CMAP_NONE) display 3093 pngread.c switch (display->colormap_processing) display 3151 pngread.c png_voidp first_row = display->buffer; display 3152 pngread.c ptrdiff_t row_bytes = display->row_stride; display 3164 pngread.c display->first_row = first_row; display 3165 pngread.c display->row_bytes = row_bytes; display 3173 pngread.c display->local_row = row; display 3174 pngread.c result = png_safe_execute(image, png_image_read_and_map, display); display 3175 pngread.c display->local_row = NULL; display 3183 pngread.c png_alloc_size_t row_bytes = display->row_bytes; display 3188 pngread.c png_bytep row = png_voidcast(png_bytep, display->first_row); display 3205 pngread.c png_image_read_control *display = png_voidcast(png_image_read_control*, display 3207 pngread.c png_imagep image = display->image; display 3228 pngread.c ptrdiff_t step_row = display->row_bytes; display 3259 pngread.c png_bytep inrow = png_voidcast(png_bytep, display->local_row); display 3266 pngread.c outrow = png_voidcast(png_bytep, display->first_row); display 3331 pngread.c png_image_read_control *display = png_voidcast(png_image_read_control*, display 3333 pngread.c png_imagep image = display->image; display 3391 pngread.c png_bytep first_row = png_voidcast(png_bytep, display->first_row); display 3392 pngread.c ptrdiff_t step_row = display->row_bytes; display 3397 pngread.c display->first_row); display 3420 pngread.c if (display->background == NULL) display 3425 pngread.c display->local_row); display 3464 pngread.c png_byte background8 = display->background->green; display 3470 pngread.c display->local_row); display 3503 pngread.c row += display->row_bytes; display 3517 pngread.c display->first_row); display 3521 pngread.c ptrdiff_t step_row = display->row_bytes / 2; display 3566 pngread.c display->local_row), NULL); display 3567 pngread.c inrow = png_voidcast(png_const_uint_16p, display->local_row); display 3609 pngread.c png_image_read_control *display = png_voidcast(png_image_read_control*, display 3611 pngread.c png_imagep image = display->image; display 3766 pngread.c else if (display->background != NULL) display 3771 pngread.c c.red = display->background->red; display 3772 pngread.c c.green = display->background->green; display 3773 pngread.c c.blue = display->background->blue; display 3774 pngread.c c.gray = display->background->green; display 3966 pngread.c png_voidp first_row = display->buffer; display 3967 pngread.c ptrdiff_t row_bytes = display->row_stride; display 3982 pngread.c display->first_row = first_row; display 3983 pngread.c display->row_bytes = row_bytes; display 3991 pngread.c display->local_row = row; display 3992 pngread.c result = png_safe_execute(image, png_image_read_composite, display); display 3993 pngread.c display->local_row = NULL; display 4004 pngread.c display->local_row = row; display 4005 pngread.c result = png_safe_execute(image, png_image_read_background, display); display 4006 pngread.c display->local_row = NULL; display 4014 pngread.c png_alloc_size_t row_bytes = display->row_bytes; display 4019 pngread.c png_bytep row = png_voidcast(png_bytep, display->first_row); display 4056 pngread.c png_image_read_control display; display 4058 pngread.c memset(&display, 0, (sizeof display)); display 4059 pngread.c display.image = image; display 4060 pngread.c display.buffer = buffer; display 4061 pngread.c display.row_stride = row_stride; display 4062 pngread.c display.colormap = colormap; display 4063 pngread.c display.background = background; display 4064 pngread.c display.local_row = NULL; display 4071 pngread.c png_safe_execute(image, png_image_read_colormap, &display) && display 4072 pngread.c png_safe_execute(image, png_image_read_colormapped, &display); display 4076 pngread.c png_safe_execute(image, png_image_read_direct, &display); display 3057 pngrutil.c pass < 6 && (display == 0 || display 3059 pngrutil.c (display == 1 && (pass & 1) != 0))) display 3182 pngrutil.c ((display)?display_mask[png][DEPTH_INDEX(depth)][pass>>1]:\ display 3190 pngrutil.c ((display)?B_MASK(pass,depth,png):S_MASK(pass,depth,png)) display 3203 pngrutil.c mask = MASK(pass, pixel_depth, display, 0); display 3207 pngrutil.c mask = MASK(pass, pixel_depth, display, 1); display 3266 pngrutil.c if (display != 0) display 1731 pngwrite.c png_image_write_control *display = png_voidcast(png_image_write_control*, display 1733 pngwrite.c png_imagep image = display->image; display 1737 pngwrite.c display->first_row); display 1738 pngwrite.c png_uint_16p output_row = png_voidcast(png_uint_16p, display->local_row); display 1823 pngwrite.c png_write_row(png_ptr, png_voidcast(png_const_bytep, display->local_row)); display 1824 pngwrite.c input_row += display->row_bytes/(sizeof (png_uint_16)); display 1888 pngwrite.c png_image_write_control *display = png_voidcast(png_image_write_control*, display 1890 pngwrite.c png_imagep image = display->image; display 1894 pngwrite.c display->first_row); display 1895 pngwrite.c png_bytep output_row = png_voidcast(png_bytep, display->local_row); display 1948 pngwrite.c display->local_row)); display 1949 pngwrite.c input_row += display->row_bytes/(sizeof (png_uint_16)); display 1974 pngwrite.c input_row += display->row_bytes/(sizeof (png_uint_16)); display 1984 pngwrite.c const png_imagep image = display->image; display 1985 pngwrite.c const void *cmap = display->colormap; display 2130 pngwrite.c png_image_write_control *display = png_voidcast(png_image_write_control*, display 2132 pngwrite.c png_imagep image = display->image; display 2140 pngwrite.c int write_16bit = linear && !colormap && !display->convert_to_8bit; display 2148 pngwrite.c if (display->row_stride == 0) display 2149 pngwrite.c display->row_stride = PNG_IMAGE_ROW_STRIDE(*image); display 2154 pngwrite.c if (display->colormap != NULL && image->colormap_entries > 0) display 2163 pngwrite.c png_image_set_PLTE(display); display 2254 pngwrite.c png_const_bytep row = png_voidcast(png_const_bytep, display->buffer); display 2255 pngwrite.c ptrdiff_t row_bytes = display->row_stride; display 2263 pngwrite.c display->first_row = row; display 2264 pngwrite.c display->row_bytes = row_bytes; display 2283 pngwrite.c if ((linear && alpha) || (!colormap && display->convert_to_8bit)) display 2289 pngwrite.c display->local_row = row; display 2291 pngwrite.c result = png_safe_execute(image, png_write_image_16bit, display); display 2293 pngwrite.c result = png_safe_execute(image, png_write_image_8bit, display); display 2294 pngwrite.c display->local_row = NULL; display 2308 pngwrite.c png_const_bytep row = png_voidcast(png_const_bytep, display->first_row); display 2309 pngwrite.c ptrdiff_t row_bytes = display->row_bytes; display 2334 pngwrite.c png_image_write_control display; display 2343 pngwrite.c memset(&display, 0, (sizeof display)); display 2344 pngwrite.c display.image = image; display 2345 pngwrite.c display.buffer = buffer; display 2346 pngwrite.c display.row_stride = row_stride; display 2347 pngwrite.c display.colormap = colormap; display 2348 pngwrite.c display.convert_to_8bit = convert_to_8bit; display 2350 pngwrite.c result = png_safe_execute(image, png_image_write_main, &display);