Thread: Raw images
View Single Post
Old 12 November 2011, 11:46   #4
pmc
gone
 
pmc's Avatar
 
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
jman: that's true to some extent - you can certainly make guesses at the height, width and depth of an image from its size but you can't work it out for certain.

For example: is a raw file that is 20480 bytes two bitplanes worth of 256 40 bytes wide lines or is it one bitplane's worth of 256 80 bytes wide lines?

The answer is: you don't know without guessing. You could try at least making educated guesses by looking at the code that works with the data as well as looking at the data size and seeing if you can work out the dimensions from that though I suppose...
pmc is offline  
 
Page generated in 0.04687 seconds with 11 queries