Rules | Recent posts | topic RSS | Search | Register  | Log in

How is this calculated?

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Elementary Electronic Questions
Author Message
Jack// ani



Joined: 02 Dec 2004
Posts: 459
Helped: 23


Post03 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


Post03 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


Post03 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


Post05 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


Post06 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


Post06 Jan 2005 9:33   Re: How is this calculated?

Use 5Mbyt address space and 4Mbyte RAM.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Elementary Electronic Questions
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap