Encoding images, video and sound Flashcards

1
Q

File types which reduce in quality when compressed

A

Lossy Files:
jpg(JPEG)
MPEG(video)
H.264(video)
MP3 (music)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

File types which dont reduce in quality when compressed

A

Gifs
Tiff
PNG

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

JPEG

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

gif

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

png

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

RAW files

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

EPS

A

vector image
mostly used for logos
can contain a raster image but this does not turn it into a vector image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SVG s

A

scalable vector graphics
defined by XML files
can be used with css for styling
popular for icons
specific uses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

PDF

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ADC

A

Analogue to digital converter - sound is a wave and is analogue so must be converted to a digital format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

sample rate

A

digital sound depends on the sample rate, quality is increased with a higher sample rate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

sampling sound examples

A

voice sampling (on a phone) is often 8000 samples per sec but cd is is 44100 samples per sec

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

lossless data compression example

A

zipping or archiving a file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

how big are pixels

A

3 bytes, one for red, blue and green (RGB)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

RGBA

A

an extension of RGB to include the transparency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how are red, green, blue, white and black represented in denary

A

Red - rgb(255,0,0)
Green - rgb(0,255,0)
Blue - rgb(0,0,255)
White - rgb(255,255,255)
black - rgb(0,0,0)

17
Q

How are red, green blue, white and black represented in hex

A

red - 0xFF0000
green - 0x00FF00
blue - 0x0000FF
Black - 0x000000
white - 0xFFFFFF

18
Q

What are videos compressed using

A

an MPEG, original film is digitised into a series of frames

19
Q

frames in an MPEG

A

I-frames - they are encoded in their entirety
P-frames and B-frames occur between the I-frames and encode changes using relative coding
- reduce redundancy, same white background in the video results in less i frames

20
Q

how frames in an mpeg work

A

I-frame - most data and act like a jpeg by averaging 8x8 pixel blocks
P-frames are compared with previous frames while b-frames are compared with previous and next frames (all areas that do not change are thrown away

21
Q

how many bytes in an rgb pixel

A

3

22
Q

how many bits in a pixel

A

24

23
Q

what is the maximum value of each colour in denary, hex and binary

A

denary - 255
binary - (11111111)
hex - 0xFF

24
Q

raster images

A

consists of a bitmap and its size is set by the resolution (number of pixels)
- allow for incredible detail if high res, but big file size
- includes jpeg, bmp, tiff and gif

25
Q

vector images

A
  • described as an image with a collection of lines and curves
  • represent images with geometric structurs using vectors that store shape and location (bolded)
  • rendering is calculating the vectors
  • rasterizing is converting the vectors to bits on display??
  • slick design but not lifelike
  • include SVG, EPS and PDF
26
Q

why do vector images need to be rastered

A

so they can be displayed on visual display units

27
Q

bitmap

A

a collection of encoded pixels

28
Q

text file

A

a file consisting of sequence of symbols encoded in ascii

29
Q

sampling

A

technique used to encode sound waves

30
Q

standard compression technique for raster images

A

GIF

31
Q

standard compression technique for audio

A

mp3

32
Q

standard compression technique for vector images

A

SVG

33
Q

standard compression technique for video

A

mp4

34
Q

how many bytes in RGBA encoding

A

4

35
Q

total combination of RGB colour codes

A

16,777,216 (256256256)

36
Q

what is pixellation

A

this happens when scaling raster images, making the picture bigger makes it appear grainy

37
Q

are vector image files smaller

A

yes

38
Q

frequency vs temporal masking

A

Temporal - for a short period of time, the human ear cannot detect softer sounds that would otherwie be audible
Frequency - a sound at one frequency tends to mask softer sounds at nearby frequencies`