The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
fb_info_t Struct Reference

framebuffer geometry and pixel format, filled by fbinfo(). More...

#include <fb.h>

Data Fields

uint32_t width
uint32_t height
uint32_t pitch
uint32_t bpp
uint8_t red_size
uint8_t red_shift
uint8_t green_size
uint8_t green_shift
uint8_t blue_size
uint8_t blue_shift
uint8_t _pad [2]
uint8_t * addr
phys_addr_t phys
uint8_t bpp
uint8_t bytes_pp

Detailed Description

framebuffer geometry and pixel format, filled by fbinfo().

framebuffer geometry and pixel format, filled by fb_init().

mirrors the kernel's view; the channel size/shift pairs describe how r/g/b sit inside a pixel so a program can pack colours for any layout.

Field Documentation

◆ width

uint32_t fb_info_t::width

◆ height

uint32_t fb_info_t::height

◆ pitch

uint32_t fb_info_t::pitch

◆ bpp [1/2]

uint32_t fb_info_t::bpp

◆ red_size

uint8_t fb_info_t::red_size

◆ red_shift

uint8_t fb_info_t::red_shift

◆ green_size

uint8_t fb_info_t::green_size

◆ green_shift

uint8_t fb_info_t::green_shift

◆ blue_size

uint8_t fb_info_t::blue_size

◆ blue_shift

uint8_t fb_info_t::blue_shift

◆ _pad

uint8_t fb_info_t::_pad[2]

◆ addr

uint8_t* fb_info_t::addr

◆ phys

phys_addr_t fb_info_t::phys

◆ bpp [2/2]

uint8_t fb_info_t::bpp

◆ bytes_pp

uint8_t fb_info_t::bytes_pp

The documentation for this struct was generated from the following files:
  • src/libc/include/fb.h
  • src/drivers/video/fb/fb.h