• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 友善之臂Tiny210显示屏文件内容求教~~~~~~~~~~~~~ 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 93921
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2013-07-04
最后登录: 2013-08-05
楼主  发表于: 2013-07-04 11:22

 友善之臂Tiny210显示屏文件内容求教~~~~~~~~~~~~~

本人想截取屏幕当前内容保存成图片,类似 win中printscreen,目前了解到屏位于/dev/fb0  求教Framebuffer中的数据格式 还有分辨率? 或者如果有在Linux下的截屏软件 求发 小弟在此先谢过了~~~~!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-07-04 12:16
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
2楼  发表于: 2013-07-04 12:32
FBI
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 93921
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2013-07-04
最后登录: 2013-08-05
3楼  发表于: 2013-07-04 13:59

 回 1楼(kasim) 的帖子

我下载了 fbgrab之后在Ubuntu里面先make 发现splint:command not found  后来我应该成功安装了splint   再make的时候 发现这个错误    请问怎么解决??
root@raoyang-desktop:/opt/fbgrab-1.0# make
splint +posixlib fbgrab.c
Splint 3.1.2 --- 04 Jul 2013

/usr/include/asm-generic/int-ll64.h:19:24: Parse Error:
    Suspect missing struct or union keyword: __signed__ :
    int. (For help on parse errors, see splint -help parseerrors.)
*** Cannot continue.
make: *** [fbgrab] Error 1
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2013-07-04 20:40

 回 3楼(hejiajie) 的帖子

你可以把Makefile里"splint +posixlib fbgrab.c"注释掉。另外,注意把gcc替换成你用的交叉编译器。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 93921
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2013-07-04
最后登录: 2013-08-05
5楼  发表于: 2013-07-05 16:55

 回 4楼(kasim) 的帖子

你好  现在可以用fbgrab命令读取屏幕了 fbgrab -d /dev/fb0  pic.png  但是读取图片都是不完整的 请问是什么问题?附件是其中一些图片 可参考~
级别: 新手上路
UID: 93921
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2013-07-04
最后登录: 2013-08-05
6楼  发表于: 2013-07-05 17:16
Ps:   楼上的图片 左半部分是因为开了一个小程序 LCD测试,如果是开了一个纸牌的游戏程序的话 结果是这样子
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2013-07-06 16:18

 回 5楼(hejiajie) 的帖子

看起来fbgrab不能正确处理Tiny210上所用的RGBA8888的图像格式,我后来改用fbcat(http://code.google.com/p/fbcat/)生成ppm格式的图像就可以了。附件里是我编译生成的fbcat和抓下来的图像,其中png格式的图片是从ppm格式转换而来的。
附件: fbcat.zip (154 K) 下载次数:14
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 93921
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2013-07-04
最后登录: 2013-08-05
8楼  发表于: 2013-07-08 10:29

 回 7楼(kasim) 的帖子

你好  能否告知fbcat的用法  我在网上找不到相关资料。
目前这样子
# fbcat  /dev/fb0
I won't write binary data to a terminal.
Usage: fbcat [fbdev]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2013-07-08 11:09

 回 8楼(hejiajie) 的帖子

fbcat /dev/fb0 > fb0.ppm
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go