---
name: "drm_mode_legacy_fb_format"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_mode_legacy_fb_format"
---

# drm\_mode\_legacy\_fb\_format(9)

compute drm fourcc code from legacy description

## NAME

drm\_mode\_legacy\_fb\_format - 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** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
