WIPIVERSE All articles

DirectFB

DirectFB (Direct Frame Buffer), now continued as DirectFB2, is a free and open-source software library subject to the terms of the GNU Lesser General Public License (LGPL). It provides graphics acceleration, input device handling and abstraction, and an integrated windowing system with support for translucent windows and multiple display layers, operating on top of the Linux framebuffer device without requiring any kernel modifications.

Overview

Developed originally by Denis Oliver Kropp and written in C, DirectFB is designed to have a small memory footprint, making it well suited for embedded systems. It offers developers an alternative to running a full X Window System (X11) server on Unix-like operating systems. By allowing applications to communicate directly with video hardware through a direct API, DirectFB reduces overhead and simplifies graphics operations.

Key Features

  • Direct Hardware Access: Bypasses the X11 server overhead, enabling faster graphics rendering.
  • Windowing System: Provides an integrated windowing system with support for translucent windows and multiple display layers.
  • Input Device Handling: Offers an abstraction layer for handling various input devices.
  • XDirectFB: A rootless X server implementation that runs on top of DirectFB, allowing X11 applications to operate within the DirectFB environment without modification.
  • DirectFBGL: An OpenGL extension that uses the Direct Rendering Infrastructure (DRI) in the Mesa 3D library to enable OpenGL hardware acceleration.

Usage and Applications

DirectFB has been widely used in embedded systems, set-top boxes, digital televisions, and other devices requiring graphical interfaces without the overhead of a full desktop windowing system. Notable products that have used DirectFB include:

  • Roku streaming devices
  • LinuxTV
  • Ben Nanonote
  • The unreleased Palm Foleo mobile companion
  • webOS operating system
  • Panasonic Viera Connect TVs
  • Philips TVs based on the jointSPACE framework
  • Sharp AQUOS and Sony BRAVIA digital televisions

In 2006, a version of DirectFB was included in the CE Linux Forum's Audio/Video Graphics Specification V2.

DirectFB2

Following a period of reduced activity, the project was revived as DirectFB2, a community fork intended to preserve and maintain the DirectFB graphics backend, particularly for embedded systems use. DirectFB2 adds modern features while retaining backward compatibility with the original library.

Technical Details

Attribute Details
Original author Denis Oliver Kropp
Stable release (original) 1.7.7 / February 1, 2015
Written in C
Operating system Linux, macOS
Type Graphics library
License LGPLv2+

See Also

  • Direct Rendering Manager
  • KMS driver
  • General Graphics Interface
  • Linux framebuffer
  • SVGAlib
Browse

More topics to explore

    Browse all articles