I have been creating a custom framebuffer driver and had to implement XXXfb_imageblit. The function takes an fb_image struct as a parameter and I do not understand how the image is stored in fb_image. (see
code in line 544)
here is the definition of the struct in fb.h:
Code:
struct fb_image {
__u32 dx; /* Where to place image */
__u32 dy;
__u32 width; /* Size of image */
__u32 height;
__u32 fg_color; /* Only used when a mono bitmap */
__u32 bg_color;
__u8 depth; /* Depth of the image */
const char *data; /* Pointer to image data */
struct fb_cmap cmap; /* color map info */
};
It is said in the comment that *data should have the pointer to the image data. How is the image data represented in this case?