Not sure where to ask this question, it's supposedly basic computer science.
I'm taking a course in computer graphics and there's a question on the advantages of "decomposing the index into three components in codifying RGB color". This has something to do with direct vs indexed color mode. I checked my notes and here is all I can find:
"The number of possible colors is function of the number of bits used to specify each intensity.
The number of simultaneously available colors is function of the number of memory frames.
In direct mode, these two quantities are the same: example 24 frames => 2^24 simultaneously available colors; 3x8bits (2^(8*3)) possible colors.
In indexed mode, they can be different: example 8 frames => 256 addressable colors => 256 simultaneous colors; but with a color table with 8-bit intensities => 2^(8*3) possible colors.
Why separate an index into three components?
With 24 frames, we'd a need a 16-million cells color table! If each cell is 3-bit each, this is 48 MB.
Separating the index into three 8-bit segments, the table will only contain 256 cells but just as much colors available simultaneously."
Question
Andre S. Veteran
Not sure where to ask this question, it's supposedly basic computer science.
I'm taking a course in computer graphics and there's a question on the advantages of "decomposing the index into three components in codifying RGB color". This has something to do with direct vs indexed color mode. I checked my notes and here is all I can find:
I just don't get it. Can someone explain? Thanks.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts