1.2 Multimedia (Graphics and sound) and 1.3 Compression Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a pixel?

A

Stands for picture element - a minute area of illumination on a display screen, one of many from which an image is composed. Can be in the shape of a square or a circle. At least 8 bits (1 byte) per pixel are needed to code a coloured image (256 possible colours of rgb)

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

What is the difference between bit depth and colour depth?

A

The number of bits used to represent a pixel is called the bit depth. The bit depth will determine the colour depth (number of possible colours which can be represented) of that pixel.

For example, a bit depth of 8 bits per pixel allows 256 (2^8) different
colours (the colour depth) to be represented.

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

What is the difference between image resolution and screen resolution?

A

• Image Resolution refers to the number of pixels that make up an image; for
example, an image could contain 4096 x 3192 pixels (12,738,656 pixels in total).
• Screen Resolution refers to the number of horizontal and vertical pixels that make up a screen display (for example, if the screen resolution is smaller than the image resolution then the whole image cannot be shown on the screen or the image will be cropped, rotated or made to be lower quality).

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

What is pixel density?

A

The resolution can be varied on many cameras before taking, for example, a digital photograph. When magnifying an image, the number of pixels that makes up the image remains the same but the area they cover is now increased. This means some of the sharpness could be lost. This is known as the pixel density and is key when scaling up photographs. It is either measured in ppi or ppcm.

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

Calculate the bit density for an Apple iPhone 8 (5.5 inch screen size) which has a screen resolution of 1920 x 1080 pixels

A
  1. Add together the squares of the resolution size (1920^2 + 1080^2) = (3,686,400 + 16,640) = 4,852,800
  2. Find the square root √4852800 = 2202.907
  3. Divide by screen size (2,202.907 / 5.5 = 401)
    This gives us the pixel density of 401 pixels per square inch (ppi) (which is the same as the published figure from the manufacturer).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What advantages and disadvantages are there to using a high-resolution image over a low resolution image?

A
  • Image will be more realistic and true to how it looks in real life
  • The file size is increased; as the number of pixels used to represent the image are increased, the size of the file will also increase. This impacts how many images can be stored on, for example, a hard drive. It also impacts the time to download an image from the internet or the time to transfer an image between devices.
  • Bit-map images rely on certain properties of the human eye and, up to a point, the amount of file compression used. The eye can tolerate a certain amount of resolution reduction before the loss of quality becomes significantly noticeable.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Calculate the full size image (1920x1080 pixels, with a bit depth of 24 bits) to estimate the file size needed to store a bit map image

A

1920 x 1080 x 24 bits = 49,766,400 bits for the full screen image

Dividing by 8 gives us 6,220,800 bytes (equivalent to 6.222 MB using SI units or 5.933 MiB using IEE units). An image which does not occupy the full screen will obviously result in a smaller file size.

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

What does the file header contain?

A
  • The command used for each object that makes up the vector graphic image
  • The attributes that define the properties that make up each object (for example consider the ellipse of the robots mouth – this will need the position of the two centres, the radius from centres, the thickness and style of each line, the line colour and any fill colour)
  • The relative position of each object will also need to be included
  • The dimensions of each object are not defined, but the relative positions of objects to each other in the final graphic need to be defined; this means that scaling up the vector graphic image will result in no loss of quality
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Explain what vector graphics are

A

Vector graphics are images that use 2D points to describe lines and curves and their properties that are grouped to form geometric shapes. Vector graphics can be designed using Computer Aided Design (CAD) software or using an application which sues a drawing canvas on the screen.

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

Explain the differences between vector and bitmap

A
  • Made up of geometric shapes which require definition/attributes; made up of tiny pixels of different colours
  • to alter/edit the design, it is necessary to change each of the geometric shapes; possible to alter/edit each individual pixel to change the design of an image
  • they do not require large file sizes since they are made up of simple geometric shapes; because of the use of pixels (which give accurate designs), the file size is large
  • because the number of geometric shapes is limited, vector graphics are not usually very realistic; since images are built pixel by pixel, the final image is usually very realistic
  • file formats are usually .svg .cgm .odg; file formats are usually .jpeg .bmp .png
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How is sound transmitted?

A

Sound requires a medium in which to travel through (it cannot travel in a vacuum). This is because it is transmitted by causing oscillations of particles within the medium.

The human ear picks up these oscillations (changes in air pressure) and interpret them as sound. Each sound wave has a frequency and wavelength; the amplitude (height of a sound wave) specifies the loudness of the sound.

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

How does an ADC convert analogue sound to digital to be stored in a computer?

A

If the sound is to be used as a music file, it is often filtered first to remove higher frequencies and lower frequencies which are outside the range of human hearing.

To convert the analogue data to digital, the sound waves are sampled at a given time rate. The amplitude of the sound cannot be measured precisely, so approximate values are stored.

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

What is the difference between sampling rate and sampling resolution?

A

Increasing the number of possible values used to represent sound amplitude also increases the accuracy of the sampled sound (for example, using a range of 0 to 127 gives a much more accurate representation of the sound sample than using a range of, for example, 0 to 10). This is known as sampling resolution (also known as the bit depth)

Sampling rate is the number of sound samples taken per second. The higher the sampling rate and/or sampling resolution, the greater the file size. For example, a 16-bit sampling resolution is used when recording CDs to give better sound quality

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

How is sampling used to record a sound clip?

A
  • The amplitude of the sound wave is first determined at set time intervals (the sampling rate).
  • This gives an approximate representation of the sound wave.
  • The sound wave is then encoded as a series of binary digits.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What do people use sound software for?

A
  • Edit the start/stop times and duration of a sample
  • Extract and save (or delete) part of a sample
  • Alter the frequency and amplitude of a sample
  • Fade in and fade out
  • Mix and /or merge multiple sound tracks or sources
  • Combine various sound sources together and alter their properties
  • Remove ‘noise’ to enhance one sound wave in a multiple of waves (for example, to identify and exact one person’s voice out of a group of people
  • Convert between different audio formats
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What pros and cons are there to using a higher sampling rate or larger resolution to represent a sound?

A

Using a higher sampling rate or larger resolution will result in a more faithful representation of the original sound source, although the increased file size will take up more space and take longer to transmit (upload/download) over the internet

17
Q

Why do we need to compress files?

A
  • to save storage space

* to reduce the time taken to stream or transmit data from one device to another.

18
Q

What differences are there between lossless file compression and lossy file compression?

A

Lossless File Compression, all the data from the original file can be reconstructed when the file is uncompressed again. This is particularly important for files where loss of any data would be disastrous (such as a spreadsheet file of important results)

Lossy File Compression, the file compression algorithm eliminates unnecessary data (as with MP3 and JPEG formats, for example). Lossless file compression is designed to lose none of the original details from the file (such as run length encoding (RLE).

19
Q

How does perpetual music shaping work?

A

Perceptual music shaping removes certain sounds,
• Frequencies that are outside the human hearing range
• If two sounds are played at the same time, only the louder one can be heard by the ear, the softer sound is eliminated

This means that certain parts of the music can be removed without affecting the quality too much. MP3 files use what is known as a lossy format, since part of the original file is lost following the compression algorithm and the file cannot be put back together again.

20
Q

What is the bit rate? And what are mp4s?

A

This refers to the number of bits per second used when creating the sound file. The higher the bit rate the higher quality (MP3 closer to a normal CD quality)

MPEG-4 (MP4) files are slightly different to MP3 files. This format allows the storage of multimedia files rather than just sound. Music, videos, photos and animation can all be stored in the MP4 format.

21
Q

What does compression do to a bit map image such as JPEG (lossy)?

A
  • the file size and quality of image are reduced
  • Once the image is subjected to the JPEG compression algorithm, a new file is formed and the original file can no longer be constructed. A JPEG will reduce the raw bit-map image by a factor of between 5 and 15, depending on the quality of the original.
22
Q

What is run-length encoding (RLE)?

A

Run-length encoding (RLE) can be used to compress a number of different file formats. It is a form of lossless/reversible file compression that reduces the size of a string of adjacent, identical data (such as repeated colours in an image).

A repeating string is enclosed in two values. The first value represents the number of identical data items (such as characters) in the run. The second value represents the code of the data item (such as ASCII code if it is a keyboard character).

RLE is only effective where there is a long run of repeated units/bits.

23
Q

What general methods are there to reducing file size?

A

Movie files - reduce the sampling rate used, reduce the sampling resolution, reduce the frame rate
Image files - crop the image, decrease bit/colour depth, reduce the image resolution