Encoding images, video and sound Flashcards
File types which reduce in quality when compressed
Lossy Files:
jpg(JPEG)
MPEG(video)
H.264(video)
MP3 (music)
File types which dont reduce in quality when compressed
Gifs
Tiff
PNG
JPEG
lossy/raster
most common image format
you can select a compression level (0-12), this means you can keep the quality but this also keeps a large file size
good for online photos with lots of different colours
-works by averaging the chromincance values over 2x2 pixel squares, then divides into 8x8 pixel blocks and compresses the info in each block as a unit
gif
lossless/raster
up to 256 colours ( not many colours, is a limitation)
good for animations, but this is used less so as the internet is a lot faster and can deal with video formats
allows transparancy (jpg does not)
each pixel represented by a byte.
png
lossless/ raster
standard for web images (good for large areas of solid limited colours)
can allow a small file size with limited colours
allows transparency
RAW files
original file
large file, with highest quality
not standardised, so some software cant read the file from certain cameras
raster files but not techincally images so need to be converted
EPS
vector image
mostly used for logos
can contain a raster image but this does not turn it into a vector image
SVG s
scalable vector graphics
defined by XML files
can be used with css for styling
popular for icons
specific uses
portable document format
vector format but can contain raster images
common for sending to print and useful as is near universal
can contain many different file formats
ADC
Analogue to digital converter - sound is a wave and is analogue so must be converted to a digital format
sample rate
digital sound depends on the sample rate, quality is increased with a higher sample rate
sampling sound examples
voice sampling (on a phone) is often 8000 samples per sec but cd is is 44100 samples per sec
lossless data compression example
zipping or archiving a file
how big are pixels
3 bytes, one for red, blue and green (RGB)
RGBA
an extension of RGB to include the transparency