Archived

This topic is now archived and is closed to further replies.

TeeCee

Does anyone know the RAW file format?

Recommended Posts

Hi all, can anyone explain the RAW file format to me, in terms of header, bytes per pixel etc. I am trying to extract the data for use in a height map. Thanks, TC

Share this post


Link to post
Share on other sites
Depends on what program made it. A 24 bit raw from psp for example has 24 bits (3 bytes) for each pixel. Red, green and blue. And as JHL said.. no header at all.

Share this post


Link to post
Share on other sites
yupp, you even have to know the exact size (height and width) and pixel-format of your raw image to be able to display it.
Actually, that''s why it''s called ''raw''...just a memory-dump, more or less.


Yesterday we still stood at the verge of the abyss,
today we''re a step onward!

Share this post


Link to post
Share on other sites
I''ve noticed that when I have saved a RAW file using PSP, when I go to re-open the file, PSP doesn''t know the file''s dimensions etc. Is this because it doesn''t have a header?
How can you open the file in its original state, if you can''t remember the size etc?
Or is that the whole point of RAW files - just simple byte streams (its just that they seem to be popular for creating height-map images for terrain)?

Share this post


Link to post
Share on other sites
thanks for the replies guys,
(sorry Vaporisator, I posted my reply at the same time that you were answering my question!)

Share this post


Link to post
Share on other sites
Depends on what kind of a header. Say I want a header that tells me the widht and height of the image, I just make a program that writes the height and widht in the begining of the file.

Share this post


Link to post
Share on other sites