section 2 Flashcards
sampling
reads amplitude of Sounds at specific intervals
stores each reading as binary data
creates a digital approximation of sound
bitmap images
image is represented by pixels
each pixel represents a single color
each color is represented by a binary digit
character sets
collections of characters that a computer recognises from their binary representation
color depth
the number of bits (binary digits) used to represent each pixel
file size in bits for bitmap images
width x height x color depth
sample rate
- sample rate (or sampling frequency) is the number of samples you take in a second
- it’s usually measured in Hertz or kilohertz
- e.g. a common sample rate is 44,100 samples per second 44,100 hertz or 44.1 kilohertz
bit depth
number of binary digits available for each sample
file size in bits for sound files
sample rate (in Hz) x bit depth x duration (in seconds)
total number of colors
2^ color depth
lossy e.g.
MP3 (audio)
AAC (audio)
JPEG (image)
lossless e.g.
FLAC (audio
TIFF (image)
PNG (image
cons of lossy compression
Lossy compression loses data - the file can’t be turned back into the original.
Lossy compression can’t be used on text or software files as these files need to retain all the information of the original.
Lossy files are worse quality than the original. But, this loss in quality is normally unnoticeable.
cons of Lossless compression
Only a slight reduction in file size, so lossless files still take up quite a bit of space on your device. E.g. a lossless song may have a file size of around 30 MB, while the same song with lossy compression may be 5 MB.
pros of lossy compression
Greatly reduced file size, meaning more files can be stored.
Lossy files take up less bandwidth so can be downloaded and streamed more quickly.
Commonly used - lots of software can read lossy files.
pros of Lossless compression
Data is only removed temporarily so there is no reduction in quality the compressed file should look or sound like the original.
Lossless files can be decompressed turned back into the original.
Lossless compression can be used on text and software files.