Max OS 0.3
Loading...
Searching...
No Matches
logo.h File Reference

GIMP generated header file for the kernel logo. More...

Go to the source code of this file.

Macros

#define LOGO_HEADER_PIXEL(data, pixel)
 Call this macro repeatedly. After each use, the pixel data can be extracted.
 

Variables

constexpr int LOGO_WIDTH = 335
 Width of the logo in pixels.
 
constexpr int LOGO_HEIGHT = 212
 Height of the logo in pixels.
 

Detailed Description

GIMP generated header file for the kernel logo.

Date
unknown
Author
Max Tyson
Todo:
remove common directory, make this generated

Definition in file logo.h.

Macro Definition Documentation

◆ LOGO_HEADER_PIXEL

#define LOGO_HEADER_PIXEL (   data,
  pixel 
)
Value:
{\
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
data += 4; \
}

Call this macro repeatedly. After each use, the pixel data can be extracted.

Definition at line 23 of file logo.h.

23 {\
24pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
25pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
26pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
27data += 4; \
28}

Variable Documentation

◆ LOGO_HEIGHT

constexpr int LOGO_HEIGHT = 212
constexpr

Height of the logo in pixels.

Definition at line 20 of file logo.h.

Referenced by MaxOS::console::FramebufferConsole::print_logo(), and MaxOS::console::FramebufferConsole::update_progress_bar().

◆ LOGO_WIDTH

constexpr int LOGO_WIDTH = 335
constexpr

Width of the logo in pixels.

Definition at line 19 of file logo.h.

Referenced by MaxOS::console::FramebufferConsole::print_logo(), and MaxOS::console::FramebufferConsole::update_progress_bar().