drm_mode_legacy_fb_format(9) compute drm fourcc code from legacy description

SYNOPSIS

uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth);

ARGUMENTS

bpp

bits per pixels

depth

bit depth per pixel

DESCRIPTION

Computes a drm fourcc pixel format code for the given bpp/depth values. Useful in fbdev emulation code, since that deals in those values.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT