- 论坛徽章:
- 0
|
DirectFB介绍
n 简介
DirectFB是一个轻量级的提供硬件图形加速,输入设备处理和抽象的开源图形库,它集成了支持半透明的视窗系统以及在Linux Framebuffer驱动之上的多层显示。当底层硬件无法完成某些图形算法时,都可以使用该库提供的相应软件封装进行替代。DirectFB是为嵌入式系统而设计,它以最小的资源开销来实现最高的硬件加速性能。
n 特性
许可
遵循LGPL许可,允许商业化销售,但不允许封闭源代码。
官方网址
www.directfb.org
基本图形操作
l 矩形填充/绘制
l 三角形填充/绘制
l 画线
l alpha颜色混合
l 色彩调制
l 源色彩键
图形加速
对于硬件加速DirectFB使用了可载入的驱动模块。目前已支持以下芯片组:
l MatroxMystique/Millenium,G100,G200,G400/G450, G550
l Via CLE266
l ATI mach64/Rage Pro series
l ATI Rage 128
l ATI Radeon
l 3dfx Voodoo3/4/5/Banshee
l igs CyberPro 5xxx
l S3 Savage 3/4 series
l NeoMagic 220/2230/2360/2380
l nVidia TNT/GeForce series
l SiS 315
l Intel i810
l NSC Geode
其他芯片组也能工作,但需要自行开发硬件加速调用接口。
输入设备
DirectFB支持以下输入设备:
l standard keyboards
l serial and PS/2 mice
l joysticks
l devices using the linux input layer
l infrared remote controls (using lirc)
l iPAQ touchscreen
l ucb 1x00 touchscreen
l Microtouch touchscreen
l Sony PI Jogdial
图像加载
DirectFB支持以下图像格式,这些格式可以直接加载到DirectFB surfaces :
l JPEG (using libjpeg)
l PNG (using libpng2)
l GIF (integrated, no library required)
l various other image formats (using Imlib2)
视频支持
DirectFB支持以下视频格式,这些视频格式可以直接绘制到DirectFB Surfaces:
l video4linux (/dev/video)
l mpeg1/2 (using libmpeg3)
l AVI (using avifile)
l MOV (using OpenQuicktime)
l macromedia flash (using libflash)
字体显示
DirectFB 支持抗锯齿矢量字体显示,它支持以下字体格式:
l DirectFB bitmap font
l TrueType (using FreeType2)
n 基于DirectFB的应用框架
![]()
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/61758/showart_1998127.html |
|