Lines Matching defs:in_image

60 static void Extract_Plane(XImage *in_image, XImage *out_image, int plane);
65 XColor *colors, XImage *in_image, XImage *out_image);
67 XColor *colors, XImage *in_image, XImage *out_image);
70 XColor *colors, XImage *in_image, XImage *out_image);
73 XImage *in_image, XImage *out_image, XVisualInfo *vinfo);
117 XImage *in_image, *out_image;
310 in_image = &in_image_struct;
311 in_image->depth = header.pixmap_depth;
312 in_image->format = header.pixmap_format;
313 in_image->xoffset = header.xoffset;
314 in_image->data = NULL;
315 in_image->width = header.pixmap_width;
316 in_image->height = header.pixmap_height;
317 in_image->bitmap_pad = header.bitmap_pad;
318 in_image->bytes_per_line = header.bytes_per_line;
319 in_image->byte_order = header.byte_order;
320 in_image->bitmap_unit = header.bitmap_unit;
321 in_image->bitmap_bit_order = header.bitmap_bit_order;
322 in_image->bits_per_pixel = header.bits_per_pixel;
323 in_image->red_mask = header.red_mask;
324 in_image->green_mask = header.green_mask;
325 in_image->blue_mask = header.blue_mask;
326 if (!XInitImage(in_image))
355 buffer_size = Image_Size(in_image);
366 if (plane >= in_image->depth)
368 if ((in_image->format == XYPixmap) && (plane >= 0)) {
369 buffer += in_image->bytes_per_line * in_image->height *
370 (in_image->depth - (plane + 1));
371 in_image->depth = 1;
374 if (in_image->bits_per_pixel == 1 && in_image->depth == 1) {
375 in_image->format = XYBitmap;
379 in_image->data = buffer;
434 if (rawbits && (in_image->depth > 1) && (plane < 0)) {
435 vinfo.depth = in_image->depth;
461 } else if ((in_image->depth == 1) ||
462 ((in_image->format == ZPixmap) && (plane >= 0)) ||
482 (vinfos[i].depth == in_image->depth) &&
498 (vinfo.depth == in_image->depth) &&
511 (vinfo.depth == in_image->depth) &&
536 if ((in_image->format == ZPixmap) && (plane >= 0)) {
539 in_image->width, in_image->height,
544 Extract_Plane(in_image, out_image, plane);
547 out_image = in_image;
551 in_image->format,
552 in_image->xoffset, NULL,
553 in_image->width, in_image->height,
560 Do_StdGray(dpy, stdmap, ncolors, colors, in_image, out_image);
562 Do_StdCol(dpy, stdmap, ncolors, colors, in_image, out_image);
566 in_image, out_image, &vinfo);
568 Do_Pseudo(dpy, &colormap, ncolors, colors, in_image, out_image);
892 Extract_Plane(XImage *in_image, XImage *out_image, int plane)
896 for (y = 0; y < in_image->height; y++)
897 for (x = 0; x < in_image->width; x++)
899 (XGetPixel(in_image, x, y) >> plane) & 1);
944 int ncolors, XColor *colors, XImage *in_image, XImage *out_image)
957 for (y = 0; y < in_image->height; y++) {
958 for (x = 0; x < in_image->width; x++) {
960 colors[XGetPixel(in_image, x, y)].pixel);
969 int ncolors, XColor *colors, XImage *in_image, XImage *out_image)
983 for (y = 0; y < in_image->height; y++) {
984 for (x = 0; x < in_image->width; x++) {
986 colors[XGetPixel(in_image, x, y)].pixel);
1003 int ncolors, XColor *colors, XImage *in_image, XImage *out_image)
1010 for (y = 0; y < in_image->height; y++) {
1011 for (x = 0; x < in_image->width; x++) {
1012 color = &colors[XGetPixel(in_image, x, y)];
1027 int ncolors, XColor *colors, XImage *in_image, XImage *out_image,
1055 if (in_image->depth <= 12) {
1056 pix = 1 << in_image->depth;
1063 for (y = 0; y < in_image->height; y++) {
1064 for (x = 0; x < in_image->width; x++) {
1065 pix = XGetPixel(in_image, x, y);
1109 for (y = 0; y < in_image->height; y++) {
1110 for (x = 0; x < in_image->width; x++) {
1111 pix = XGetPixel(in_image, x, y);
1134 for (y = 0; y < in_image->height; y++) {
1135 for (x = 0; x < in_image->width; x++) {
1136 pix = XGetPixel(in_image, x, y);