Lines Matching refs:ximage
131 LFUNC(PutPixel1, int, (XImage *ximage, int x, int y, unsigned long pixel));
132 LFUNC(PutPixel, int, (XImage *ximage, int x, int y, unsigned long pixel));
134 LFUNC(PutPixel32, int, (XImage *ximage, int x, int y, unsigned long pixel));
136 LFUNC(PutPixel32MSB, int, (XImage *ximage, int x, int y, unsigned long pixel));
137 LFUNC(PutPixel32LSB, int, (XImage *ximage, int x, int y, unsigned long pixel));
138 LFUNC(PutPixel16MSB, int, (XImage *ximage, int x, int y, unsigned long pixel));
139 LFUNC(PutPixel16LSB, int, (XImage *ximage, int x, int y, unsigned long pixel));
140 LFUNC(PutPixel8, int, (XImage *ximage, int x, int y, unsigned long pixel));
141 LFUNC(PutPixel1MSB, int, (XImage *ximage, int x, int y, unsigned long pixel));
142 LFUNC(PutPixel1LSB, int, (XImage *ximage, int x, int y, unsigned long pixel));
145 LFUNC(APutImagePixels, void, (XImage *ximage, unsigned int width,
773 XImage *ximage = NULL;
854 /* create the ximage */
858 image->width, image->height, &ximage);
866 * set the ximage data using optimized functions for ZPixmap
869 if (ximage->bits_per_pixel == 8)
870 PutImagePixels8(ximage, image->width, image->height,
872 else if (((ximage->bits_per_pixel | ximage->depth) == 1) &&
873 (ximage->byte_order == ximage->bitmap_bit_order))
874 PutImagePixels1(ximage, image->width, image->height,
876 else if (ximage->bits_per_pixel == 16)
877 PutImagePixels16(ximage, image->width, image->height,
879 else if (ximage->bits_per_pixel == 32)
880 PutImagePixels32(ximage, image->width, image->height,
883 PutImagePixels(ximage, image->width, image->height,
886 APutImagePixels(ximage, image->width, image->height,
890 MSWPutImagePixels(display, ximage, image->width, image->height,
938 *image_return = ximage;
946 if (ximage)
947 XDestroyImage(ximage);
1660 XImage *ximage = NULL, *shapeimage = NULL;
1671 (pixmap_return ? &ximage : NULL),
1679 if (pixmap_return && ximage) {
1681 xpmCreatePixmapFromImage(display, d, ximage, pixmap_return);
1691 if (ximage != NULL)
1692 XDestroyImage(ximage);
1783 register XImage *ximage,
1799 src = &ximage->data[XYINDEX(x, y, ximage)];
1802 nbytes = ximage->bitmap_unit >> 3;
1804 XYNORMALIZE(&px, ximage);
1805 i = ((x + ximage->xoffset) % ximage->bitmap_unit);
1807 XYNORMALIZE(&px, ximage);
1809 dst = &ximage->data[XYINDEX(x, y, ximage)];
1818 register XImage *ximage,
1832 ibpp = ximage->bits_per_pixel;
1833 if (ximage->depth == 4)
1837 src = &ximage->data[ZINDEX(x, y, ximage)];
1843 ZNORMALIZE(&px, ximage);
1845 ZNORMALIZE(&px, ximage);
1847 dst = &ximage->data[ZINDEX(x, y, ximage)];
1857 register XImage *ximage,
1867 addr = &((unsigned char *)ximage->data) [ZINDEX32(x, y, ximage)];
1875 register XImage *ximage,
1885 addr = &((unsigned char *)ximage->data) [ZINDEX32(x, y, ximage)];
1895 register XImage *ximage,
1905 addr = &((unsigned char *)ximage->data) [ZINDEX32(x, y, ximage)];
1915 register XImage *ximage,
1925 addr = &((unsigned char *)ximage->data) [ZINDEX16(x, y, ximage)];
1933 register XImage *ximage,
1943 addr = &((unsigned char *)ximage->data) [ZINDEX16(x, y, ximage)];
1951 register XImage *ximage,
1959 ximage->data[ZINDEX8(x, y, ximage)] = pixel;
1965 register XImage *ximage,
1974 ximage->data[ZINDEX1(x, y, ximage)] |= 0x80 >> (x & 7);
1976 ximage->data[ZINDEX1(x, y, ximage)] &= ~(0x80 >> (x & 7));
1982 register XImage *ximage,
1991 ximage->data[ZINDEX1(x, y, ximage)] |= 1 << (x & 7);
1993 ximage->data[ZINDEX1(x, y, ximage)] &= ~(1 << (x & 7));
2020 XImage *ximage = NULL;
2156 /* now create the ximage */
2160 width, height, &ximage);
2171 if (ximage->bits_per_pixel == 8)
2172 ximage->f.put_pixel = PutPixel8;
2173 else if (((ximage->bits_per_pixel | ximage->depth) == 1) &&
2174 (ximage->byte_order == ximage->bitmap_bit_order))
2175 if (ximage->bitmap_bit_order == MSBFirst)
2176 ximage->f.put_pixel = PutPixel1MSB;
2178 ximage->f.put_pixel = PutPixel1LSB;
2179 else if (ximage->bits_per_pixel == 16)
2180 if (ximage->bitmap_bit_order == MSBFirst)
2181 ximage->f.put_pixel = PutPixel16MSB;
2183 ximage->f.put_pixel = PutPixel16LSB;
2184 else if (ximage->bits_per_pixel == 32)
2186 if (*((char *)&byteorderpixel) == ximage->byte_order)
2187 ximage->f.put_pixel = PutPixel32;
2190 if (ximage->bitmap_bit_order == MSBFirst)
2191 ximage->f.put_pixel = PutPixel32MSB;
2193 ximage->f.put_pixel = PutPixel32LSB;
2194 else if ((ximage->bits_per_pixel | ximage->depth) == 1)
2195 ximage->f.put_pixel = PutPixel1;
2197 ximage->f.put_pixel = PutPixel;
2225 ximage, image_pixels,
2302 *image_return = ximage;
2320 if (ximage)
2321 XDestroyImage(ximage);