| Author |
Message |
Jack// ani
Joined: 02 Dec 2004 Posts: 459 Helped: 23
|
03 Jan 2005 9:08 How is this calculated? |
|
|
|
Q. If there are 1024*1280 pixels on a screen and each pixel can have around 16 million colors. Find the memory required for this?
Ans. 4MB
How is this calculated?
|
|
| Back to top |
|
 |
papyaki
Joined: 13 Apr 2002 Posts: 564 Helped: 19 Location: A small village somewhere in Gaul
|
03 Jan 2005 9:31 Re: How is this calculated? |
|
|
|
Hi,
16 million colors per pixel means 24bits (2^24 = 16777216) or 3 bytes per pixel. A 1024 x 1280 pixels screen means 1310720 pixels.
The needed memory to store such a screen is 1310720 pixels x 3 bytes = 3932160 bytes, not far from 4Mbytes.
|
|
| Back to top |
|
 |
bunalmis
Joined: 03 Jan 2003 Posts: 251 Helped: 4 Location: Turkey
|
03 Jan 2005 9:45 Re: How is this calculated? |
|
|
|
log(16e6)/log(2)=23.9 24 Bit need for 16 million color (3 Byte)
1024 * 1280 * 3 = 3932160 Byte = 3.75 Mbyte
|
|
| Back to top |
|
 |
e_eja
Joined: 15 Nov 2003 Posts: 145 Helped: 4
|
05 Jan 2005 12:20 Re: How is this calculated? |
|
|
|
| if i have such deep colour scale now how we implement such that it can see on screen, crt , lcd and soon is there needed dac t implement
|
|
| Back to top |
|
 |
pahol
Joined: 20 Jun 2003 Posts: 21 Helped: 1
|
06 Jan 2005 9:22 Re: How is this calculated? |
|
|
|
| The above is correct calculation. But please take care about real system implementation. If you implement on 32-bit system, and do you want high performance ? Because 32-bit system can work with 32-bit data for read/write. 3-byte (24-bit) operation may difficult and reduce performance. So you may use 4-byte (32-bit) for 1 pixel, That means 1024*1280*4 = 5 MB.
|
|
| Back to top |
|
 |
bunalmis
Joined: 03 Jan 2003 Posts: 251 Helped: 4 Location: Turkey
|
06 Jan 2005 9:33 Re: How is this calculated? |
|
|
|
| Use 5Mbyt address space and 4Mbyte RAM.
|
|
| Back to top |
|
 |