fb_var_screeninfo
Function
Defines the variable screen information of the HiFB. This is a structure of Linux FrameBuffer.
Definition
struct fb_var_screeninfo {
__u32 xres;
__u32 yres;
__u32 xres_virtual;
__u32 yres_virtual;
__u32 xoffset;
__u32 yoffset;
__u32 bits_per_pixel;
__u32 grayscale;
struct fb_bitfield red;
struct fb_bitfield green;
struct fb_bitfield blue;
struct fb_bitfield transp;
__u32 nonstd;
__u32 activate;
__u32 height;
__u32 width;
__u32 accel_flags;
__u32 pixclock;
__u32 left_margin;
__u32 right_margin;
__u32 upper_margin;
__u32 lower_margin;
__u32 hsync_len;
__u32 vsync_len;
__u32 sync;
__u32 vmode;
__u32 rotate;
__u32 colorspace;
__u32 reserved[4];
};
Members
For layers G0 and G1, Gx_min and Gy_min in the following table are set to 32. For layers G2, G3, and G4, Gx_min and Gy_min in the following table are set to 8. Gx_min and Gy_min indicate the minimum width and minimum height supported by the current layer, respectively.
Member |
Description |
|---|---|
xres |
Visible screen width (in pixels), which is an even number. Value range: [Gx_min, xres_virtual] |
yres |
Visible screen height (in pixels), which is an even number. Value range: [Gy_min, yres_virtual] |
xres_virtual |
Virtual screen width (image width in the display buffer). Value range: ≥ Gx_min |
yres_virtual |
Virtual screen height (image height in the display buffer). Value range: ≥ Gy_min |
xoffset |
Offset pixels in the x direction. Value range: [0, xres_virtual – xres] |
yoffset |
Offset pixels in the y direction. Value range: [0, yres_virtual – yres] |
bits_per_pixel |
Number of bits occupied by each pixel. Value range: 32, 16, 4, or 2 Note: 4 and 2 refers to the CLUT4 and CLUT2 modes, respectively. The CMAP function needs to be enabled. |
red |
Bit field information of the red color in the color component. For details, see fb_bitfield. |
green |
Bit field information of the green color in the color component. For details, see fb_bitfield. |
blue |
Bit field information of the bluer color in the color component. For details, see fb_bitfield. |
transp |
Bit field information of alpha in the color component. For details, see fb_bitfield. |
grayscale |
Color mode (not supported in the current version). |
nonstd |
Standard pixel format or not (not supported in the current version).
|
activate |
Sets the activation time (not supported in the current version). |
height |
Screen height, in mm (not supported in the current version). |
width |
Screen width, in mm (not supported in the current version). |
accel_flags |
Acceleration flag (not supported in the current version). |
pixclock |
Time required for displaying a point, in ns (not supported in the current version). |
left_margin |
Left blanking signal (not supported in the current version). |
right_margin |
Right blanking signal (not supported in the current version). |
upper_margin |
Upper blanking signal (not supported in the current version). |
lower_margin |
Lower blanking signal (not supported in the current version). |
hsync_len |
Horizontal synchronization duration (not supported in the current version). |
vsync_len |
Vertical synchronization duration (not supported in the current version). |
sync |
Synchronization signal mode (not supported in the current version). |
vmode |
Scanning mode (not supported in the current version). |
rotate |
Clockwise rotation angle (not supported in the current version). |
colorspace |
Color space in FOURCC mode (not supported in the current version). |
reserved[4] |
Reserved (not supported in the current version). |