[][src]Module uefi::proto::console::gop

Graphics output protocol.

The UEFI GOP is meant to replace existing VGA hardware. It can be used in the boot environment as well as at runtime, until a high-performance driver is loaded by the OS.

The GOP provides access to a hardware frame buffer and allows UEFI apps to draw directly to the graphics output device.

The advantage of the GOP over legacy VGA is that it allows multiple GPUs to exist and be used on the system. There is a GOP implementation for every unique GPU in the system which supports UEFI.

Definitions

All graphics operations use a coordinate system where the top-left of the screen is mapped to the point (0, 0), and y increases going down.

Rectangles are defined by their top-left corner, and their width and height.

The stride is understood as the length in bytes of a scan line / row of a buffer. In theory, a buffer with a width of 640 should have (640 * 4) bytes per row, but in practice there might be some extra padding used for efficiency.

Structs

BltPixel

Format of pixel data used for blitting.

FrameBuffer

Direct access to a memory-mapped frame buffer

GraphicsOutput

Provides access to the video hardware's frame buffer.

Mode

Represents a graphics mode compatible with a given graphics device.

ModeInfo

Information about a graphics output mode.

PixelBitmask

Bitmask used to indicate which bits of a pixel represent a given color.

Enums

BltOp

Blit operation to perform.

BltRegion

Region of the BltBuffer which we are operating on

PixelFormat

Represents the format of the pixels in a frame buffer.