Images, Sound & Compression - 1.2.3 Flashcards
What is a bitmap image?
Made of tiny dots called pixels
Colour of each pixel is represented by a binary code
Number of colours available is related to the number of bits the binary code uses
E.g. a black-white image need 1 bit, 0 for white, 1 for black
2 bit images can be made up of 4 colours
What is the colour depth?
Number of bits used for each pixel
You can work out number of colours given the colour depth by formula:
2^n
What is the usual colour depth of an image?
24 bit colour depth (16 million different colours) more than a human can see (10 million)
What is the image resolution? Formula?
Number of pixels in the image
width x height
Higher resolution (more pixels) = better quality of picture
What is the formula for file size?
width x height x colour depth = size in bits
What two factors affect file size?
Large width, height (resolution)
Larger colour depth
Better quality but a larger file size
What is metadata? Examples?
The data stored in an image file which helps the computer recreate the image from the binary data in each pixel
Includes file format, height, width, colour depth, resolution, time, date
Around 10% of the file size
What is a pixel (2)?
Short for picture element
A single point in an image
What is a sample?
A very short recording made of a sound wave at a certain point in time
What is the sample rate?
Number of samples recorded per second
High sample rate = closer to the original the final recording sounds
Measured in hertz
What is the bit-depth?
Number of bits available for each sample
Higher bit-depth = quieter sounds can be picked up too, closer to the quality of original
What is the bit-rate?
How many bits of data are processed every second
Higher bit rate = better sound quality
Formula for bit-rate?
Sample rate x bit depth
Formula for file size (in bits):
Sample rate (Hz) x bit depth x duration (secs)
Why do we use compression?
To make file sizes smaller while keeping it as true to the original as possible
To take up less storage
Streaming and downloading files is quicker as they take less bandwidth (amount of data that can be transferred in a given time)
Web pages load quicker
Send the same content of a file for a smaller size