Questions tagged [directfb]

stands for Direct Frame Buffer. It is a software library for GNU/Linux/Unix-based operating systems, designed with embedded systems in mind.

It is a software library for GNU/Linux/Unix-based operating systems with a small memory footprint that provides graphics acceleration, input device handling and abstraction layer, and integrated windowing system with support for translucent windows and multiple display layers on top of the Linux framebuffer without requiring any kernel modifications. DirectFB is free software licensed under the terms of the GNU Lesser General Public License (LGPL).

The library allows developers an alternative to a full X Window System (X11) server used in Unix-like operating systems. DirectFB allows applications to talk directly to video hardware through a direct API, speeding up and simplifying graphic operations.

Goals of DirectFB

  • Small memory Footprint
  • Maximize utilities of hardware acceleration
  • Support of advanced graphics operations such as multiple alpha blending modes
  • No kernel modifications
  • No library dependencies, except for libc
  • Meet the requirements of MHP specifications

Graphics operations supported through DirectFB

  • Rectangle Filling/Drawing
  • Triangle Filling/Drawing
  • Line Drawing
  • Blit
  • Alpha Blending (texture alpha, alpha modulation)
  • Porter/Duff
  • Colorizing
  • Source Color Keying
  • Destination Color Keying
  • Integrated Window System
  • A subset of OpenGL API (Mesa)

Sources:

Wikipedia (DirectFB)

DirectFB - eLinux.org

60 questions
32
votes
4 answers

Android GUI architecture - relation between Surface/view/window/canvas

========================= UPDATE: After several days googling and experiments, I have found the answers for most of those dumb questions. See the answers I submitted. ========= What is the responsibility of Android Window? Here are some questions:…
pierrotlefou
  • 39,805
  • 37
  • 135
  • 175
25
votes
6 answers

Why is DirectFB not more widely used in GNU/Linux? Are there crippling limitations to it that don't exist in X11?

As far as I understand, DirectFB offers hardware acceleration for many kinds of graphics cards. Additionally, it's smaller, faster, and uses up less memory than X11. Why then, is it not more mainstream than it is now? Here's what I'm really unsure…
user377628
13
votes
6 answers

How to develop a DirectFB app without leaving X.11 environment

I'm trying to develop a GUI application for an embedded platform, without any windowing whatsoever and I'm doing that with DirectFB, and it suits my needs very fine. Since the embedded I develop for is not that powerful, I would really like to try…
Edu Felipe
  • 10,197
  • 13
  • 44
  • 41
8
votes
2 answers

How to take screen shot in Linux without X11 or /dev/fb0?

I am working on a Linux based embedded system. It uses Qt for windowing and there is no Xserver. My aim is to take screen shot of the screen. I have tried using FBgrab. It failed since I don't have a /dev/fb0 since the frame buffer is not enabled in…
jsaji
  • 900
  • 1
  • 15
  • 31
6
votes
2 answers

DirectFB data from memory buffer

I need a very fast way of displaying a data buffer to screen. I first tried accessing the linux framebuffer and that proved to be quite good. Then I learned about directFB and I liked the extra features it provides (like fast memcpy, resizing the…
John S
  • 159
  • 1
  • 3
  • 11
6
votes
0 answers

OpenGL directly to Linux framebuffer without X-Server

I have a small OpenGL application that has been developed using GLUT. What are my best options to render directly to a Linux framebuffer (fbdev) with OpenGL, without an X-Server? I understand that GLUT needs X, so I'm not looking for ways to use…
dingari
  • 309
  • 1
  • 4
  • 13
6
votes
3 answers

Cairo "Could not find libpng in the pkg-config search path"

I'm trying to install GTK-DFB and cairo is a requirement. When I try to build it from source, it throws: checking for cairo's PNG functions feature... configure: WARNING: Could not find libpng in the pkg-config search path checking whether cairo's…
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
4
votes
2 answers

Openwrt : How to add a specific library dependency in new package

I am trying to add a package for directfb tutorials. I followed the instructions in http://wiki.openwrt.org/doc/devel/packages. Currently the package is downloaded successfully to the dl folder and even compiled in the build directory, but when I…
tomereli
  • 332
  • 1
  • 2
  • 8
4
votes
3 answers

How to execute this DirectFB sample?

I got the following directFB example code form the tutorials: #include #include #include static IDirectFB *dfb = NULL; static IDirectFBSurface *primary = NULL; static int screen_width = 0; static int…
The Student
  • 27,520
  • 68
  • 161
  • 264
3
votes
1 answer

Converting two bit color to eight bit color

I've color values coming in six bits, with two bits each for red, green and blue. So black would be represented as binary 000000, red 110000, blue 000011, yellow 111100 and so on. I have to convert this color into to 24 bit rgb value to pass it to…
Amarghosh
  • 58,710
  • 11
  • 92
  • 121
3
votes
0 answers

sdl2 (pysdl2) without x11 using directFB or OpenGL ES

I am working on Debian based embedded systems that avoids the overhead of windowing systems by running graphics directly to the screen using FBCON (similar to DirectFB). This is common with Raspberry Pi screens and there are plenty of resources to…
TravisT
  • 141
  • 1
  • 7
3
votes
2 answers

QT & DirectFB --- using together

I am working on Qt application in the linux Desktop enviromet. Most desktop Linux uses xwindows to display onto the screen. But now I want to try my hands on DirectFB on my desktop. Related to which i have some questions :--- 1> Can i make my…
Katoch
  • 2,709
  • 9
  • 51
  • 84
2
votes
2 answers

Strange Symbol on center of screen using PyGame with DirectFB

I am using pygame to draw a GUI on tiny SPI LCD mount as /dev/fb1 via directfb. Whatever I draw, there is a strange symbol display in center of screen. If I run df_matrix, the strange symbol does not appear. If I draw in pygame, then manually…
Mouse
  • 111
  • 1
  • 7
2
votes
1 answer

Can I build FireBreath NPAPI Plugin for DirectFB?

Is it possible to build NPAPI plugin using FireBreath for webkit browser running on directFB, embedded linux? I am asking because I found that while building a my test plugin on ubuntu, It is using below x11 related files, [ 6%] Building CXX…
SunnyShah
  • 28,934
  • 30
  • 90
  • 137
2
votes
2 answers

LinuxFB + DirectFB at same time?

I have an embedded plarform which has 2 graphic layers (/dev/fb0 and /dev/fb1). I want to use 2 separate processes: One using /dev/fb0 directly (raw mode, no video libs). The other using /dev/fb1 through directfb. I can start the first one and it is…
Marcus
  • 1,675
  • 3
  • 18
  • 29
1
2 3 4