Does anyone know the RAW file format?
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
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.
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!
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!
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)?
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)?
thanks for the replies guys,
(sorry Vaporisator, I posted my reply at the same time that you were answering my question!)
(sorry Vaporisator, I posted my reply at the same time that you were answering my question!)
You got it. I often use raw and create my own headers with it. Make sure you remember the bpp, height and width, or else its worthless.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement