Lines Matching defs:image
167 /* image data is MSB-first, fb structure is MSB-first too */
174 static void arkfb_iplan_imageblit(struct fb_info *info, const struct fb_image *image)
176 u32 fg = expand_color(image->fg_color);
177 u32 bg = expand_color(image->bg_color);
184 src1 = image->data;
185 dst1 = info->screen_base + (image->dy * info->fix.line_length)
186 + ((image->dx / 8) * 4);
188 for (y = 0; y < image->height; y++) {
191 for (x = 0; x < image->width; x += 8) {
196 src1 += image->width / 8;
224 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */
232 static void arkfb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image)
234 u32 fg = image->fg_color * 0x11111111;
235 u32 bg = image->bg_color * 0x11111111;
242 src1 = image->data;
243 dst1 = info->screen_base + (image->dy * info->fix.line_length)
244 + ((image->dx / 8) * 4);
246 for (y = 0; y < image->height; y++) {
249 for (x = 0; x < image->width; x += 8) {
254 src1 += image->width / 8;
260 static void arkfb_imageblit(struct fb_info *info, const struct fb_image *image)
262 if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
263 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) {
265 arkfb_iplan_imageblit(info, image);
267 arkfb_cfb4_imageblit(info, image);
269 cfb_imageblit(info, image);