Image format.

Discuss Programming / Linux questions.

Moderators: scallenger, Sky, TresCom Support Team

Post Reply
Lou-saydus
Pteranodon
Pteranodon
Posts: 983
Joined: Wed Sep 10, 2003 11:18 pm

Image format.

Post by Lou-saydus »

I was thinking about writing a image format..sorta like this..

Code: Select all

 <16,16,24>
W^H^   ^bpp
           "245,046,075"
             R      G     B
           "and another 255 of these for each pixel."
this would give the user the ability to "hand" edit the image and the image would be easly recoverable if corrupted. i know more
stuff would be needed but im just hnking about it right now.
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6121
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Post by Rebel »

Uh, if you created your own image format, then you'd need to write a software app. which can read that format. Not to mention, if you don't use something like RLE for compression your image files are going to be too large.
Lou-saydus
Pteranodon
Pteranodon
Posts: 983
Joined: Wed Sep 10, 2003 11:18 pm

Post by Lou-saydus »

the format is the exaact same size as a bmp i just tested it.
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6121
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Post by Rebel »

Well, RLE would probably work well for compression since you'd probably have many repeating colors, but I've seen the code of others who were savvy enough to write their own compression schemes. Of course, if sizes are similar as you said, a zip file would probably compress them quite well if your intent was to share the image files.

Better get on writing that software ---
Lou-saydus
Pteranodon
Pteranodon
Posts: 983
Joined: Wed Sep 10, 2003 11:18 pm

Post by Lou-saydus »

well as i said it was just a thought dont know if ill go after it.
Post Reply