Real-World implications

Cards (10)

  • Real-world implications

    Considerations about the practical applications of binary representations of images
  • Bitmap format
    Uses 16 bits for each pixel
  • A medium-priced smartphone has a screen resolution of 640 × 960 pixels
  • Calculating data required to display an image
    1. 640 × 960 = 614 400 pixels in total
    2. 16 × 614 400 = 9 830 400 bits
    3. 9 830 400 ÷ 2^3 = 1 228 800 bytes
    4. 1 228 800 ÷ 2^20 = 1.171875 megabytes (MB)
  • Megabyte (MB)
    2^20 bytes
  • Megabit per second (Mbps)

    1 000 000 bits per second
  • Calculating download time for a 3 MB file at 14.1 Mbps
    1. 3 × 2^10 × 2^10 × 8 = 25 165 824 bits
    2. 14 100 000 bits per second
    3. time = 25 165 824 ÷ 14 100 000 = 1.78 seconds
  • Bitmap format
    Uses 24 bits for each pixel
  • Calculating pixels and data for 1024 × 768 screen resolution

    1. 1024 × 768 = 786 432 pixels
    2. 786 432 × 24 = 18 874 368 bits
  • Calculating upload time for a 24-bit 1024 × 768 image at 2.3 Mbps

    1. 18 874 368 bits
    2. 2 300 000 bits per second
    3. time = 18 874 368 ÷ 2 300 000 = 8.21 seconds