Lines Matching defs:image
340 /* image data is MSB-first, fb structure is MSB-first too */
347 static void s3fb_iplan_imageblit(struct fb_info *info, const struct fb_image *image)
349 u32 fg = expand_color(image->fg_color);
350 u32 bg = expand_color(image->bg_color);
357 src1 = image->data;
358 dst1 = info->screen_base + (image->dy * info->fix.line_length)
359 + ((image->dx / 8) * 4);
361 for (y = 0; y < image->height; y++) {
364 for (x = 0; x < image->width; x += 8) {
369 src1 += image->width / 8;
396 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */
404 static void s3fb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image)
406 u32 fg = image->fg_color * 0x11111111;
407 u32 bg = image->bg_color * 0x11111111;
414 src1 = image->data;
415 dst1 = info->screen_base + (image->dy * info->fix.line_length)
416 + ((image->dx / 8) * 4);
418 for (y = 0; y < image->height; y++) {
421 for (x = 0; x < image->width; x += 8) {
426 src1 += image->width / 8;
431 static void s3fb_imageblit(struct fb_info *info, const struct fb_image *image)
433 if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
434 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) {
436 s3fb_iplan_imageblit(info, image);
438 s3fb_cfb4_imageblit(info, image);
440 cfb_imageblit(info, image);