Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
T325
Technologies for Digital Media
Midterm Assessment - Backup
Form A – Answer Key
Fall – 2012/2013
Day and Date
Number of Exam Pages:
(7) Time Allowed: (2) Hours
(Including this cover sheet)
Instructions:
11. Explain the difference between primary batteries and secondary batteries providing an
example of each one.
Primary batteries cannot be recharged. they are used once and then thrown away.
Examples: Alcaline and Lithium batteries. Secondary batteries are rechargeable such as
Nickel Metal Hybrid (NiMH) batteries, Lithium-Ion batteries, etc.
12. Explain battery self-discharge. what are the factors that influence this phenomenon
When not in use, all batteries gradually lose charge, a process referred to as self-discharge.
The different battery chemistries and the physical design of the battery affect self-discharge
rates.
13. Explain how read, write and erase operations are done in a two-level cell flash memory.
Reading a cell is the process of detecting which of the two states it is in.
Erasing a block of memory sets all the cells in a block to the same known state, that
representing a data 1.
Writing to the cells (programming the memory) is the process of setting some of the
cells to the other state, that which represents a data 0. Since the remaining cells are
already in the state representing a data 1, there is no need to do anything to them.
Luminance is a measure of how bright something is, while chrominance or chromaticity refers to the
particular shade of colour.
The range of colours available on a display is called its gamut
19. Explain the principle of 4:2:2 sampling format. Support your answer with a diagram
the two chrominance signals are each sampled at half the luminance rate, and an obvious way of
doing this is to take chrominance samples which coincide with alternate luminance ones.
Spatial compression uses the fact that, in most pictures, there is considerable correlation
between neighboring areas in a picture (and, hence, a high degree of redundancy in the data
directly obtained by sampling) to compress separately each picture in a video sequence.
Temporal compression applies to video, and uses the fact that, in most picture sequences,
there is normally very little change during the 1/25 s interval between one picture and the
next. The resulting high degree of correlation between consecutive pictures allows a
considerable amount of further compression.
21. A 1.25V battery has a volumetric energy density of 180 Wh/L, and a gravimetric energy
density of 55 Wh/Kg. The volume of the battery is 9 mL.
a. Calculate the energy stored in the battery in Joules (2 marks)
VED = E / V => E = VED * V = 180 Wh/L * 9*10^-3 = 1.62 Wh = 1.62 * 3600 = 5832 J
b. Calculate the weight of the battery (2 marks)
GED = E / M => M = E/ GED = 1.62 / 55 = 0.02945 Kg= 29.45 g
23. A rectangular code takes a (5 x 4) block message as input and produces the corresponding
codeword by adding the redundancy bits.
1 0 1 1
1 0 1 1 1
1 1 1 0
1 1 1 0 1
0 0 1 0
0 0 1 0 1
1 1 0 1
1 1 0 1 1
1 0 1 0
1 0 1 0 0
0 0 0 0 0
c. What are the code rate and redundancy of this code (2 marks)
code rate = k /n = 20/30 = 2/3
redundancy rate = n – k / n = 10 / 30 = 1/3
d. What is the maximum number of bits this code can detect? can correct? (2 marks)
the code can detect two erroneous bits and can correct one erroneous bits.
e. What is the hamming distance of this code? Justify your answer (2 marks)
The hamming distance of the code is 3.
This can be calculated based on the answer of the previous question
A code with hamming distance n can detect n -1 errors.
24. A 800 bytes Packet Elementary Stream (PES) is mapped onto a transport stream (TS).
a. Calculate the number of transport stream packets (3 marks)
Dividing the size of the PES over the size of the payload of a TS : 800/184 = 4.34 => 5
TS packets
b. Explain the role of the adaptation field in the mapping of a PES into a transport stream
(3 marks)
The role of the adaptation field is to make the byte count of the last TS packet payload
up to 184 if the PES data does not fill this packet.
c. Indicate the location (in which packet) of the adaptation field and calculate the size of
this field (4 marks)
The adaptation field is located at the start of the last transport packet (5th) of the set
The last TS packet contains 800 – 4*184 = 64 bytes of the payload
The size of the adaptation field is 184 – 64 = 120 bytes
d. What will be the value of the first byte of the adaptation field? Give your answer in
decimal and binary format. (4 marks)
The first byte of the adaptation field indicates the size of the adaptation field => it
contains the value of 120 in decimal (2 mark) and 01111000 in binary (2 mark)