Home | History | Annotate | Download | only in src

Lines Matching refs:pixel

99  *	_XGetPixel	Reads a pixel from an image data structure
100 * _XGetPixel32 Reads a pixel from a 32-bit Z image data structure
101 * _XGetPixel16 Reads a pixel from a 16-bit Z image data structure
102 * _XGetPixel8 Reads a pixel from an 8-bit Z image data structure
103 * _XGetPixel1 Reads a pixel from an 1-bit image data structure
104 * _XPutPixel Writes a pixel into an image data structure
105 * _XPutPixel32 Writes a pixel into a 32-bit Z image data structure
106 * _XPutPixel16 Writes a pixel into a 16-bit Z image data structure
107 * _XPutPixel8 Writes a pixel into an 8-bit Z image data structure
108 * _XPutPixel1 Writes a pixel into an 1-bit image data structure
111 * _XAddPixel Adds a constant value to every pixel in an image
234 * for a bitmap_unit containing a pixel with coordinates x and y for image
238 * for a pixel with coordinates x and y for image data in ZPixmap format.
318 /*How many bytes between a pixel on one line and the pixel with
453 * Returns the specified pixel. The X and Y coordinates are relative to
454 * the origin (upper left [0,0]) of the image. The pixel value is returned
455 * in normalized format, i.e. the LSB of the long is the LSB of the pixel.
460 * extract the pixel bits into return value
482 unsigned long pixel, px;
491 dst = (char *)&pixel;
492 pixel = 0;
494 XYNORMALIZE(&pixel, ximage);
496 pixel = ((((char *)&pixel)[bits>>3])>>(bits&7)) & 1;
498 pixel = 0;
508 pixel = (pixel << 1) |
519 pixel = 0;
521 pixel = (pixel << 8) | ((unsigned char *)&px)[i];
524 pixel >>= 4;
526 pixel &= 0xf;
532 return pixel;
534 return (pixel & low_bits_table[ximage->depth]);
545 unsigned long pixel;
551 pixel = *((CARD32 *)addr);
553 pixel = ((unsigned long)addr[0] << 24 |
558 pixel = ((unsigned long)addr[3] << 24 |
563 pixel &= low_bits_table[ximage->depth];
564 return pixel;
577 unsigned long pixel;
583 pixel = addr[0] << 8 | addr[1];
585 pixel = addr[1] << 8 | addr[0];
587 pixel &= low_bits_table[ximage->depth];
588 return pixel;
600 unsigned char pixel;
603 pixel = ((unsigned char *)ximage->data)
606 pixel &= low_bits_table[ximage->depth];
607 return pixel;
641 * Overwrites the specified pixel. The X and Y coordinates are relative to
642 * the origin (upper left [0,0]) of the image. The input pixel value must be
643 * in normalized format, i.e. the LSB of the long is the LSB of the pixel.
648 * copy the pixel bits into the temp
658 unsigned long pixel)
669 pixel &= 0xf;
670 npixel = pixel;
671 for (i=0, px=pixel; i<sizeof(unsigned long); i++, px>>=8)
672 ((unsigned char *)&pixel)[i] = px;
681 _putbits ((char *)&pixel, i, 1, (char *)&px);
697 _putbits ((char *)&pixel, i, 1, (char *)&px);
704 ((unsigned char *)&pixel)[i] = px;
714 _putbits ((char *)&pixel,
731 unsigned long pixel)
739 *((CARD32 *)addr) = pixel;
741 addr[0] = pixel >> 24;
742 addr[1] = pixel >> 16;
743 addr[2] = pixel >> 8;
744 addr[3] = pixel;
746 addr[3] = pixel >> 24;
747 addr[2] = pixel >> 16;
748 addr[1] = pixel >> 8;
749 addr[0] = pixel;
754 return XPutPixel(ximage, x, y, pixel);
762 unsigned long pixel)
770 addr[0] = pixel >> 8;
771 addr[1] = pixel;
773 addr[1] = pixel >> 8;
774 addr[0] = pixel;
779 return XPutPixel(ximage, x, y, pixel);
787 unsigned long pixel)
790 ximage->data[y * ximage->bytes_per_line + x] = pixel;
794 return XPutPixel(ximage, x, y, pixel);
802 unsigned long pixel)
816 if (pixel & 1)
823 return XPutPixel(ximage, x, y, pixel);
833 * calls to get and put pixel.
848 register unsigned long pixel;
894 pixel = XGetPixel(ximage, col, row);
895 XPutPixel(subimage, (col - x), (row - y), pixel);
931 register unsigned long pixel;
954 pixel = XGetPixel(srcimg, col, row);
955 XPutPixel(dstimg, x + col, y + row, pixel);
964 * Adds a constant value to every pixel in a pixmap.
1015 register unsigned long pixel = XGetPixel(ximage, x, y);
1016 pixel = pixel + value;
1017 XPutPixel(ximage, x, y, pixel);