1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! # Framebuffer Management
//!
//! This module provides structures and functions for initializing and describing a framebuffer.
//!
//! ## What is a Framebuffer?
//! A framebuffer is a region of memory that represents the pixels on a display. Each pixel is stored as a value (e.g., 32 bits for RGBA), and the display hardware reads this memory to show the image on the screen. By writing to the framebuffer, software can directly control what appears on the display.
//!
//! ## How Framebuffers Work
//! - The framebuffer is a contiguous block of memory mapped to the video hardware.
//! - Each pixel's color is represented by a value at a specific offset in this memory.
//! - The layout (stride, format) depends on the hardware and mode.
//! - To draw, software writes color values to the appropriate memory locations.
//!
//! This module provides a `FramebufferInfo` struct describing the framebuffer's location, size, and format, and a UEFI-specific function to initialize it.
/// Information about the framebuffer's memory and display properties.
/// Supported framebuffer pixel formats.