02 Section 7 - Sound, Image and Compression Flashcards
How are images stored?
Images are stored as a series of pixels
-bitmap images are made up of pixels
How do you have colour on an image?
The colour of each pixel is represented by a binary code
- black and white images only need 1 bit
- you can make a greater number of shades by increasing the number of bits per pixel
Define colour depth:`
Colour depth is the number of bits used for each pixel
How do you work out the number of colours you can get from the colour depth?
Total number of colours = 2^n
n = the number of bits per pixel
What is the common colour bit depth?
24bit, so each colour(red, green, blue) have 1 byte each
What is resolution measured in?
Resolution is the density of pixels in an image
-measured in dots per inch
What does a higher resolution mean?
The higher the resolution, the more pixels in a certain area so the better quality of image.
-also increases the file size
Define metadata:
Metadata is information stored in an image file which helps the computer recreate the image on screen from binary data in each pixel,
What does metadata usually include?
file format, height, width, colour depth, resolution
How is sound recorded by a microphone?
Sound is recorded by a microphone as an analogue signal
-analogue signals are pieces of continually changing data
Can computers understand analogue signals?
No, analogue signals need to be converted into digital data
How are analogue signals converted to digital data?
It’s converted by analogue to digital converters
-by a process called sampling
What are some factors which affect size and quality of sound files?
Sampling intervals
Sampling frequency
Sample size
Bit rate
What are sampling intervals?
gaps between each point when the analogue recording is sampled
-measured in ms
What is sampling frequency?
how many samples you take per second
-measured in kHz
What is sample size?
is the number of bits available for each sample
What is bit rate?
the number of bits used per second of audio
-measured in kbits/s
How do you calculate bit rate?
bit rate = sampling frequency x sample size
How will increasing the sample size improve the quality of a sound file?
it will pick up quieter sounds, this will make the recording closer to the sound of the original
What are the uses of compressing data files?
- smaller files take up less storage space
- streaming and downloading files from the internet is quicker(less bandwidth)
- web pages load quicker
- email services have restrictions on the size of attachment you can send
What are the two types of file compression?
Lossy
Lossless
Define Lossy compression:
it works by removing data permanently from the file
Define Lossless compression:
it temporarily removes data by encoding it and then it restores it to its original state when it is opened
What are the pros and cons of Lossy compression?
Pros
-greatly reduces file size
-takes up less bandwidth(download/streamed quicker)
Cons
-can’t return to original file(loses data permanently)
-can’t be used on text or software files
What are the pros and cons of Lossless compression?
Pros -no reduction in quality -can be used for software and text files Cons -only a slight reduction on file size
What are some examples of Lossy file types?
MP3
AAC (audio)
JPEG
What are some examples of Lossless file types?
FLAC (audio)
TIFF (image)
PNG (image)