Lines Matching defs:image
341 /* image data is MSB-first, fb structure is MSB-first too */
348 static void s3fb_iplan_imageblit(struct fb_info *info, const struct fb_image *image)
350 u32 fg = expand_color(image->fg_color);
351 u32 bg = expand_color(image->bg_color);
358 src1 = image->data;
359 dst1 = info->screen_base + (image->dy * info->fix.line_length)
360 + ((image->dx / 8) * 4);
362 for (y = 0; y < image->height; y++) {
365 for (x = 0; x < image->width; x += 8) {
370 src1 += image->width / 8;
397 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */
405 static void s3fb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image)
407 u32 fg = image->fg_color * 0x11111111;
408 u32 bg = image->bg_color * 0x11111111;
415 src1 = image->data;
416 dst1 = info->screen_base + (image->dy * info->fix.line_length)
417 + ((image->dx / 8) * 4);
419 for (y = 0; y < image->height; y++) {
422 for (x = 0; x < image->width; x += 8) {
427 src1 += image->width / 8;
432 static void s3fb_imageblit(struct fb_info *info, const struct fb_image *image)
434 if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
435 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) {
437 s3fb_iplan_imageblit(info, image);
439 s3fb_cfb4_imageblit(info, image);
441 cfb_imageblit(info, image);