Compute drm fourcc code from legacy description
uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth);
bpp
bits per pixels
depth
bit depth per pixel
Computes a drm fourcc pixel format code for the given bpp/depth values. Useful in fbdev emulation code, since that deals in those values.
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