Bit Depth

Ruben Safir <ruben-v1XHP5QhJixWk0Htik3J/[email protected]>
Newsgroups gmane.comp.graphics.png.devel
Message-ID <[email protected]>
Hello

I am completely confused and befuddled by the IHDR entry for bit depth.
I was considering that I would lay out the images memory and fill it
in with a number of threads.  That required that I know the number of
bits per pixel.  I see that there are methods to convert 2d image
information into 3d information using matrix math, but I'm not really
concerned about that. 

I have an image which in the gimp and every other program I have
described the image as sRBG format with an alpha channel.  Sample
precision can be defined as 1,2,4,8, or 16 Bit Depth (sample precision).

The rule is that for PNG the sample depth can be only 8 or 16 with an
alpah channel for RBG color.

Indeed, I have 8 bit precision and color type of 6, and I've confirmed
this visually with od.

How can that be?  I don't even know what that prepresents.  The image
has almost 29,000 unique colors.  That is not 2^8.

:(

I've research then for nearly 2 days and can't find an explanation for
this and how it implimented.  And I'm very stuck.  Does this mean the
color is 2^8 x 2^8 x 2^8?  That would be the 24 bit color I've come to
know and love.


-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com 

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive 
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com 

Being so tracked is for FARM ANIMALS and and extermination camps, 
but incompatible with living as a free human being. -RI Safir 2013


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.