基于ARM 9板显示图像 [英] Displaying an image on ARM 9 board

查看:146
本文介绍了基于ARM 9板显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个嵌入式系统上显示图像。该板配置如下:

I need to display images on an embedded system. The board configuration is as follows:

这是AT91SAM9263-EK,与它运行Linux 2.6.20内核。是否有此board.The处理器的图像处理库是ARM926EJ-S。

It is AT91sam9263-EK, with Linux 2.6.20 kernel running on it. Are there any image processing libraries for this board.The processor is ARM926EJ-S.

谢谢大家。

推荐答案

如果帧缓冲区不是在Linux操作系统启动你有我知道这是通过的 Linux4Sam 。你总是可以尝试,如果它是通过发出命令猫/ bin / sh的&GT激活;为/ dev / fb0设备;随机模式应出现在屏幕(请注意,它可能需要激活背光 - 如果它被关闭,你可能无法看到所有东西)上。您可能需要杀死的目标第一次运行图形环境。

If the framebuffer isn't activated in the Linux OS you got I know that it is in the Linux OS provided by Linux4Sam. You can always try if it is activated by issuing the command cat /bin/sh > /dev/fb0; a random pattern should appear on the screen (note that it might be necessary to activate the backlight - if it is turned off you might not see anything at all). You might have to kill the graphical environment that is running on target first.

如果你想要做的是,通过打开帧缓冲(的/ dev / fb0设备)来显示图像,可以做到和写入(或只是猫吧);但你必须有正确的格式的图像。如果我没有记错的评估板帧缓冲是一个RGB555(即5对绿,红,5位,蓝色5位位)。

If all you want to do is to display an image it is possible to do that by opening the framebuffer (/dev/fb0) and write to it (or just cat it); but you have to have an image in the correct format. If I remember correctly the framebuffer in the evaluation board is a RGB555 (i.e. 5 bits for red, 5 bits for green and 5 bits for blue).

如果你想使用你必须使用一个具有帧缓冲后端一个GUI库。在一个标准的Linux系统的GUI库假定您已经安装了X,但他们中的一些也有framebuffer的后端。 Qt的,例如可以以这样的方式被编译(但我认为你必须修改它以提供正确的色彩信息;它仅支持RGB565开箱即用)。 DirectFB的是一个简单的解决方案,提供了基本的图形支持(但它对于FreeType的给你很好的字体支持支持)。见上面其他的例子提供的链接。

If you want to use a GUI library you have to use one that has a framebuffer backend. On a standard Linux system a GUI library assumes that you have X installed but some of them also have framebuffer backends. Qt for instance can be compiled in such a way (but I think you have to modify it to provide the correct color information; it only supports RGB565 out of the box). DirectFB is a simpler solution that provides basic graphic support (but it has support for FreeType giving you good font support). See the links provided above for other examples.

这篇关于基于ARM 9板显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆