Compressing Media Types Flashcards

1
Q

Lossy Compression

A

Once the file is compressed the original data file can never be recreated (uncompressed)
Data removed lost forever

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

Lossless Compression

A

Data encoded in a way which allows file to be uncompressed

This recreates original file

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

Run length encoding

A

Analyses a bit-mapped image for repeating pixel colours
Single value for colour is stored where colour appears more than once in a row
Note of the number of times which the colour is repeated

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

LZW encoding (Give an example of what it is used on as well as explanation)

A

Looks for repeating patterns of pixels
Dictionary of patterns is created
Dictionary replaces repeating patterns with a code
New data and the dictionary are saved in compressed file
Eg Used on GIF files

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

DCT encoding (Give an example of what it is used on as well as explanation)

A

Mathematical algorithm applied to groups of 64 pixels
Each group is saved in compressed form
Groups uncompressed when graphic is viewed
This recreates an approximation of the original groups which are joined to complete the image
Eg Used on JPEG files

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

Vector Graphic Encoding (Give an example of what it is used on as well as explanation)

A

Properties of objects stored using text
Similar objects stored
Repeating patterns of characters in text file
Patterns stored in a shorter form within a dictionary
Eg SVG graphics

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

Perceptual Noise Shaping

A

MP3 files compressed to a tenth of the original file size

Retains high sound quality because focuses on removing data that the human ear cannot easily hear

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

Techniques used by perceptual noise shaping

A

Quiet sound next to a loud sound is removed when they are of a similar frequency
Human ear has difficulty with extreme high and low frequencies and so these are removed
Low base sound changed from stereo to a single mono sound as human ear cannot detect direction from which base sounds are coming

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

Inter frame compression

A

Only stores information changes between each frame of a video
Reference I-frame stored at regular intervals
Algorithm searches for blocks of pixels which stay the same between frames following this
Position of these blocks is stored in the I-frame
Compression achieved determined by number of differences between frames

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

Intra frame compression

A

Same as inter frame compression
But treats each frame of the video as a separate bit-mapped graphic and
Compresses the frames using similar techniques

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

Codecs

A

Accompanying sound for a video also compressed
Technique variety used stored in a codec
Video playing software must have the same codec installed to view the compressed video

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

Large file sizes cause the problems of…

A

Longer download/opening times
Increased storage requirements
More demanding hardware requirements

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