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
2
votes
0 answers

"Inappropriate ioctl for device" while running directfb

I am trying to cross compile directfb and run directfb examples I have downloaded the directfb sources and cross compiled the same. I got problems while running directfb examples. I have registered the character device(/dev/fb0) using the following…
2
votes
1 answer

How to use a mouse with DirectFB

I am using DirectFB(without X, using fbcon driver(with vesafb) to write to screen buffer). I can do keyboard input, but I want to use my mouse.(Get cursor coordinates/Show cursor/Click events) Can someone give example code or tell me how it's done?…
M. Ivanov
  • 283
  • 1
  • 2
  • 13
2
votes
0 answers

DirectFB GetStringWidth function

I m using DirectFB For GUI of Device. I have problem to get string width using "GetStringWidth" function of DirecFB. When I have pass the "a" then it returns "9" width of string and if i will pass "ä" special charector then it will return "16",…
sam_13
  • 532
  • 2
  • 9
1
vote
0 answers

Keyboard returns wrong keycode for Latin characters

I am writing an application that handles key presses using DirectFB v1.4.2 / Linux keyboard driver. I am receiving key codes with wrong values for Latin characters. On pressing character 'a' in USB keyboard, I receive a Unicode value of '0xF601'.…
Alexander
  • 450
  • 5
  • 16
1
vote
0 answers

Directfbgl with Qt-4.6.2

I am using Qt-4.6.2 cross-compiled for Linux/MIPS device with directfb-1.4.14. I am trying to create overlays on top of my QT application which plays some videos. Recently on directfb website in news, it was updated that Qt applications on DirectFB…
Lata Agrawal
  • 81
  • 1
  • 8
1
vote
3 answers

Accessing multiple framebuffers in Qt embedded + directFB?

I am developing Qt application for a embedded linux/MIPS device. So far managed to execute my Qt application on the device. Now I need to create overlays on top of video. Hardware provides four overlays windows and does not support OpenGL. Tried so…
Lata Agrawal
  • 81
  • 1
  • 8
1
vote
0 answers

LIBSDL2 + DirectFB + i.MX 6 - Only software blitting?

At the moment we are developing an SDL2 app on an embeddedboard (i.MX 6) with DirectFB. Our LinuxOS is generated via YOCTO. The application itself works fine, bit on SDL_RenderPresent( renderer_ ) there seems only software blitting is working, which…
buslm
  • 11
  • 2
1
vote
2 answers

is it possible to make Qtcreator target as directfb instead of X11

my target to display output is directfb window. i need to develop an qt application. i found developing application in qtcreator is much easier but problem is output will be seen on X11 window. can any one tell me is there way to get it executed on…
rashmi
  • 599
  • 4
  • 10
  • 19
1
vote
1 answer

QDesktopWidget::screenGeometry returning incorrect value

I have Qt 5.3 running on top of DirectFB 1.7.4 (along with a tiny patch to qdirectfbintegration because platformNativeInterface was not implemented). I come up in 3840x2160 resolution, then change to 1920x1080 resolution using the code below. The…
tbotz
  • 167
  • 2
  • 7
1
vote
1 answer

Cross-Compile SDL2 with DirectFB and add to a Buildroot root filesystem

I am trying to create a root filesystem which includes SDL2 on DirectFB for an embedded linux 2.6.37 system (igepv2 board with TI DM3730 chip using OMAP). I am using Crosstool NG Buildroot Buildroot with DirectFB works fine - I can run the…
1
vote
0 answers

How we can give coordinates to direcfb->createsurface function

My requirement is to create a small surface(region) and I want to display a small icon using that surface. So , I want to create a surface having height and width as 100 px * 100 px and for coordinates I don't know which params I have to…
1
vote
0 answers

Error while Cross compiling libpng for ARM: file not recognized: File format not recognized collect2: ld returned 1 exit status

While cross compiling DirectFB for ARM we need libpng as a dependency I cross compiled libpng and it is done successfully but while compiling DirectFB I get this error after make command /home/vishal/new_dfb/DirectFB_LiTE/lib/libpng12.so: file not…
nitin kumar
  • 642
  • 12
  • 21
1
vote
1 answer

Which class to use integrate for DirectFB with Qt?

I want to integrate DirectFB with Qt. Which Qt class will be useful for it in Qt 4.8?
user3172864
  • 61
  • 1
  • 4
1
vote
2 answers

How to pass arguments to Qt's DirectFB back-end?

When launching an embedded Qt application by specifying the directfb back-end, there is a way to pass arguments to it by using a specific syntax ./my-qt-app -qws -display directfb:960x720 This will change the resolution. Let's say I'd like to…
milton
  • 988
  • 6
  • 19
1
vote
1 answer

DirectFB & Animated Gifs

How do I display animated gifs using DirectFB?
l.thee.a
  • 3,231
  • 6
  • 25
  • 28