Lines Matching refs:src_image
56 XImage *src_image, int exp_x, int exp_y,
748 putScaledImage(Display *display, Drawable d, GC gc, XImage *src_image,
761 if (dest_width == src_image->width && dest_height == src_image->height) {
763 XPutImage(display, d, gc, src_image, exp_x, exp_y,
768 ratio_x = (double)dest_width / (double)src_image->width;
769 ratio_y = (double)dest_height / (double)src_image->height;
772 if (src_x >= src_image->width)
773 src_x = src_image->width - 1;
775 if (src_y >= src_image->height)
776 src_y = src_image->height - 1;
779 if (src_max_x > src_image->width)
780 src_max_x = src_image->width;
782 strip_height = 65536 / roundint(ratio_x * src_image->bytes_per_line);
792 src_image->depth, src_image->format,
795 src_image->bitmap_pad, 0);
799 fast8 = (src_image->depth == 8 && src_image->bits_per_pixel == 8 &&
800 dest_image->bits_per_pixel == 8 && src_image->format == ZPixmap);
802 table.x = (Position *) malloc(sizeof(Position) * (src_image->width + 1));
805 table.y = (Position *) malloc(sizeof(Position) * (src_image->height + 1));
808 table.width = (Dimension *) malloc(sizeof(Dimension) * src_image->width);
811 table.height = (Dimension *) malloc(sizeof(Dimension)*src_image->height);
816 for (x = 1; x <= src_image->width; x++) {
822 for (y = 1; y <= src_image->height; y++) {
838 pixel = ((unsigned char *)src_image->data)
839 [y * src_image->bytes_per_line + x];
849 pixel = XGetPixel(src_image, x, y);
862 if (y >= src_image->height)