LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-14-2010, 09:33 AM   #1
lbuccola
LQ Newbie
 
Registered: Jul 2010
Posts: 10

Rep: Reputation: 0
Copying a binary image file to the framebuffer


I'm running Linux version 2.6.33.4 on an ARM9 and can successfully copy directly into the framebuffer using the command:

Code:
cat /usr/myfile.bin >/dev/fb0
I converted myfile.bin from a 640 x 480 x 24 bmp.

What I'd like to do is to have the ability to dump .bin image files directly into the framebuffer from a C program without shelling out to a cat command.

What would you suggest is the best way to do this?

Thanks
 
Old 07-14-2010, 10:02 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by lbuccola View Post
I'm running Linux version 2.6.33.4 on an ARM9 and can successfully copy directly into the framebuffer using the command:

Code:
cat /usr/myfile.bin >/dev/fb0
I converted myfile.bin from a 640 x 480 x 24 bmp.

What I'd like to do is to have the ability to dump .bin image files directly into the framebuffer from a C program without shelling out to a cat command.

What would you suggest is the best way to do this?

Thanks
Enter

fopen /dev/fb0

into Google and read what in my case is the very first match.
 
Old 01-26-2011, 02:17 AM   #3
johnnyned
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
Hi,

Can you teach me how to convert the bmp file to bin file? Thanks.
 
Old 01-26-2011, 06:19 AM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by johnnyned View Post
Hi,

Can you teach me how to convert the bmp file to bin file? Thanks.

What is the 'bin' file ? I.e. which particular format do you expect it to have ?

If you need to convert files from one image format to another, start from http://www.imagemagick.org/script/index.php .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp truncate text file busy - copying file is not a running binary jetberrocal Linux - Server 3 06-24-2010 03:56 PM
Copying image using acroread from pdf file xptools Linux - General 9 04-15-2009 04:27 AM
generating the map file for binary image steve_e Linux - Software 0 05-15-2006 05:45 AM
The fbi framebuffer image viewer Baryonic Being Linux - Software 2 03-26-2005 11:01 AM
changing framebuffer image? 0pal_t0ad Linux - General 4 12-09-2004 10:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration