Lines Matching defs:image
207 /* image data is MSB-first, fb structure is MSB-first too */
214 static void s3fb_iplan_imageblit(struct fb_info *info, const struct fb_image *image)
216 u32 fg = expand_color(image->fg_color);
217 u32 bg = expand_color(image->bg_color);
224 src1 = image->data;
225 dst1 = info->screen_base + (image->dy * info->fix.line_length)
226 + ((image->dx / 8) * 4);
228 for (y = 0; y < image->height; y++) {
231 for (x = 0; x < image->width; x += 8) {
236 src1 += image->width / 8;
263 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */
271 static void s3fb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image)
273 u32 fg = image->fg_color * 0x11111111;
274 u32 bg = image->bg_color * 0x11111111;
281 src1 = image->data;
282 dst1 = info->screen_base + (image->dy * info->fix.line_length)
283 + ((image->dx / 8) * 4);
285 for (y = 0; y < image->height; y++) {
288 for (x = 0; x < image->width; x += 8) {
293 src1 += image->width / 8;
298 static void s3fb_imageblit(struct fb_info *info, const struct fb_image *image)
300 if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
301 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) {
303 s3fb_iplan_imageblit(info, image);
305 s3fb_cfb4_imageblit(info, image);
307 cfb_imageblit(info, image);