1.3 storage and compression Flashcards
how is storage measured (units?)
bit (b)
nibble
byte (B)
kibibyte (KiB)
gibibyte (GiB)
tebibyte (TiB)
pebibyte (PiB)
exbibyte (EiB)
how is file size of an image file calculated
resolution (pixels) * colour depth (bits)
how is file size of sound file calculated
sample rate (Hz) * resolution (bits) * length of track (s)
benefits of compression
- less storage space required
- less bandwidth required (faster loading)
- shorter transmission time
what are the types of compression
lossy and lossless
how does lossy compression work
reduces file size by permanently removing data from original source file
eg reduce resolution/colour depth, reduce sample rate/resolution
how does lossless compression work
reduce file size without permanent loss of data
compression algorithm used, eg RLE (finding groups of repeating data and only storing them once)
disadvantage of lossy compression
lower quality files as some data lost
disadvantage of lossless compression
if file has little or no repeated data, compression larger than original
what are raw files
files with no compression