Welcome to the Video and Vector Graphics Calculation Quiz!
This quiz is designed to test your ability to perform calculations related to digital media representation, a crucial skill for your Cambridge IGCSE Computer Science Paper 1 (0478/0984) examination. You'll focus on **Syllabus Point 1.1.3: Data Representation - Images and Video**, specifically on understanding how image and video file sizes are determined by various parameters.
In roles like a multimedia developer or data analyst, accurately calculating file sizes is essential for optimizing storage, network transmission, and overall performance. This quiz will give you the practical experience needed to master these calculations.
Worked Example 1: Calculating Uncompressed Video File Size
Let's calculate the uncompressed file size for a short video clip:
- **Resolution:** 1280x720 pixels
- **Colour Depth:** 24 bits per pixel
- **Frame Rate:** 30 frames per second (FPS)
- **Duration:** 5 seconds
- **Step 1: Calculate the size of a single frame in bits.**
`Width × Height × Colour Depth = 1280 × 720 × 24 bits = 22,118,400 bits`
- **Step 2: Convert frame size from bits to bytes.**
`22,118,400 bits / 8 bits/byte = 2,764,800 bytes per frame`
- **Step 3: Calculate the total video size in bytes.**
`Bytes per frame × Frame Rate × Duration = 2,764,800 bytes/frame × 30 FPS × 5 seconds = 414,720,000 bytes`
- **Step 4: Convert total bytes to Megabytes (MB).**
`414,720,000 bytes / (1024 × 1024) bytes/MB = 395.50 MB (to 2 decimal places)`
So, the uncompressed file size for this video would be approximately **395.50 MB**.
Worked Example 2: Calculating Uncompressed Bitmap Image File Size
Let's calculate the uncompressed file size for a static image:
- **Resolution:** 1024x768 pixels
- **Colour Depth:** 16 bits per pixel
- **Step 1: Calculate the total number of pixels.**
`Width × Height = 1024 × 768 = 786,432 pixels`
- **Step 2: Calculate the total image size in bits.**
`Total Pixels × Colour Depth = 786,432 pixels × 16 bits/pixel = 12,582,912 bits`
- **Step 3: Convert total bits to Kilobytes (KB).**
`12,582,912 bits / 8 bits/byte / 1024 bytes/KB = 1,536 KB`
So, the uncompressed file size for this image would be **1,536 KB**.