FrameMode
Description:
public enum FrameMode
Available frame modes (video memory layouts)
Content:
Enum values:
- UNDEFINED - Undefined
- TEXT - Text mode
- LFB_MONO01 - Linear frame buffer, 1bpp, 0
= white, 1 = black
- LFB_MONO10 - Linear frame buffer, 1bpp, 0
= black, 1 = white
- LFB_2BPP - Linear frame buffer, 2bpp, 4
color
- LFB_8BPP - Linear frame buffer, 8bpp, 256
color
- LFB_16BPP - Linear frame buffer, 16bpp,
32768/65536 color
- LFB_24BPP - Linear frame buffer, 24bpp, 16M
color
- LFB_32BPP_LOW - Linear frame buffer,
32bpp, 16M color using lower 24 bits
- LFB_32BPP_HIGH - Linear frame buffer,
32bpp, 16M color using upper 24 bits
- RAM_1BPP - RAM frame buffer, 1bpp, monochome
- RAM_2BPP - RAM frame buffer, 2bpp, 4 color
- RAM_4XBPP -
- RAM_8BPP - RAM frame buffer, 8bpp, 256 color
- RAM_16BPP - RAM frame buffer, 16bpp,
32768/65536 color
- RAM_24BPP - RAM frame buffer, 24bpp, 16M
color
- RAM_32BPP_LOW - RAM frame buffer,
32bpp, 16M color using lower 24 bits
- RAM_32BPP_HIGH - RAM frame buffer,
32bpp, 16M color using upper 24 bits
Static methods:
- public static FrameMode get_current ()
Get the frame mode of the current context.
- public static FrameMode get_screen ()
Get the frame mode of the screen.
- public static FrameMode get_screen_core ()
Get the compatible RAM frame mode of the screen.
Methods:
- public int get_bpp ()
Gets the color depth of the frame mode in bits per pixel.
- public int get_n_planes ()
Gets the number of planes for a frame mode.
- public int get_line_offset (int width)
Gets the offset in bytes for a row of width
pixels.
- public int get_plane_size (int width, int height)
Gets the plane size in bytes required to store an image of width
x height
for this frame mode.
- public int get_context_size (int width, int height)
Gets the total size in bytes required to store an image of width
x height
for this frame mode.