So this was version compatibility issue. Headers were included from later version of DirectFB than the library that was linked. Linking against correct version of. DirectFB is a thin library that provides hardware graphics acceleration, input device handling and abstraction, integrated windowing system. The directfbrc file is a configuration file read by all DirectFB applications on startup. There are two of these: a system-wide one stored in /etc/directfbrc and a.
|Published (Last):||2 November 2014|
|PDF File Size:||11.45 Mb|
|ePub File Size:||4.65 Mb|
|Price:||Free* [*Free Regsitration Required]|
To confirm everything created and installed properly use DirectFB demo program. We used version 0. You can download from following Web site. DirectFB-examples used in this tutorial.
As we faced some problem compiling these demo program sirectfb SH-4 Linux, we installed to x86 Linux first, then retarget to SH-4 Linux using following step. If you run this without any options, it automatically runs set of benchmark program using graphics acceleration capability, and display result as graph.
However we think this is a kind of handwork way. When you try to run demo program on non-x86 Linux, x86 reference directfh mandatory. I suggest you start DirectFB implementation from x86 Linux.
If driver does not works then move to next driver check, if all drivers does not much, DirectFB runs software mode without dedicated graphics driver. We have tentatively modified this process force to use SM driver. Drawing routine set command parameters to use 2D acceleration capability. You can write your own driver as you like except command parameters and return value. We use i graphics driver as a reference, because it is small and looks easy to implement.
Finally we need to refer other drivers because i has limited numbers of draw routine. If you want to support full drawing capabilities, Matrox driver may be better reference.
| Linux & Development
DirectFB requires display resolution capability ditectfb in frame buffer driver. So initially we modify SM generic frame buffer driver to support resolution and color depth setting. It looks no problem using without these parameters. Actually we maintain filename, display character and source code comment to fit SM And commented out driver code that operate 2D graphics engine. After you compile SM driver, copy it to the proper location so that DirectFB can load this new driver.
Then merge 2D engine sample program that works. If your reference driver does not support required API, you need to refer other graphics driver and you need to add this function directgb yourself. Finally we removed un-used function built in reference driver. For example i driver include UMA setting. So we remove these portion. So we do it using step-by-step way using printk. For 2D acceleration portion, sample program and device document were helpful.
But sometime it is difficult to understand actual drawing limitations. Enabling hardware graphics acceleration capability Drawing routine set command parameters to use 2D acceleration capability.
SM driver development reference driver We use i graphics driver as a reference, because it is small and looks easy to implement. You need to assign VRAM physical address to source direcyfb. Color compare regiser is used in SM to enable this operation.
So it looks transparent. Colorkeyed stretch BLIT can not be support in this driver. As SM does not have hardware triangle drawing capability,we draw triangle by software.
How to get started with DirectFB.
However we can use horizontal line draw capability in SM, so seems to achieved a little better performance than all software drawing. The versions listed below are very old. Newer versions are recommended. No results matching ” djrectfb. Set source address for BLIT operation. Save clipping coordinates value to the structure, and set SM clipping register as well. This bit returns hardware acceleration capability.
You need to refer each graphics spec, and you also care for color format that graphics supports. Tutoriap does not have rectangle drawing capability, so draw four lines to draw rectangle in this driver.
How to get started with DirectFB. – Gumstix User Wiki
Draw line, using SM 2D drawing engine. Draw triangle with filling inside. This should return check result of expected graphics chip is exist or not.