

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


[ 3 points] 1.
Use Table 9.1 in the textbook as the quantization table. Write out the output of each step of the JPEG encoder (Figure 9.1 in the textbook) for an 8 x 8 block from the Y image of an imaginary image shown below:
200 200 200 200 200 200 200 200 175 175 175 175 175 200 200 200 195 195 195 195 195 200 200 200 195 190 190 190 200 200 200 200 195 195 190 190 200 200 200 200 195 190 190 190 175 175 175 175 195 195 195 195 175 175 175 175 160 160 160 160 160 160 160 160
[2 points] 2.
The “hue” is the colour, independent of brightness and how much pure white has been added to it. We can make a simple definition of hue as the set of ratios R:G:B. Suppose a colour (i.e., an RGB) is divided by 2.0, so that the RGB triple now has values 0.5 times its former values. Explain using numerical values:
[1 point] (a) If gamma-correction is applied after the division by 2.0 and before the colour is stored, does the darker RGB have the same hue as the original in the sense of having the same ratios R:G:B of light emanating from the CRT display device? (We are not discussing any psychophysical effects that change our perception — here we’re just worried about the machine itself).
[0.5 point] (b) If gamma-correction is not applied, does the second RGB have the same hue as the first RGB, when displayed?
[0.5 point] (c) For what colour triples is the hue always unchanged?
[5 points] 3.
Consider the following video encoding scheme:
[0.5 point] (a) What is the transmission order and what is the display order of the video stream?
[4.5 points] (b) Assume that the video stream is transmitted over a wireless channel with bit error rate 10^(-5). Assume that the size of all I frames is the same and is 10000 bits; the size of all P frames is the same and is 5000 bits; and the size of all B frames is the same and is 1000 bits. For an acceptable video quality, we require that no three consecutive video frames can be missed during the replay. Therefore, a missing frame due to transmission error should or may not be re- transmitted, depending on whether or not the miss of the frame violates the quality requirement. It is worth noting that due to the encoding dependency between frames, a missing I or P frame must be retransmitted.
[1.5 points] (b.1) In order to delivery a 1.51Mb video file over the wireless channel with the above quality requirement, what is the expected number of transmitted frames?
[3 points] (b.2) If we require that no two consecutive video frames can be missed during the replay, what is the expected number of transmitted frames to delivery a 1.51Mb video file over the wireless channel?
[3 points] 4.
Assume that at time t=0, three packets of size 3, 2, 1 unit(s) belonging to connections A, B, C respectively arrive at an empty queue with service rate of 1 unit/second and Weighted Fair Queuing (WFQ) scheduler. The weights for connections A, B, C are 2, 1, 1, respectively. [1.5 point] (a) Calculate the finish number and the actual finish time for these three packets. [1.5 points] (b) Assume that three more packets of size 1, 1, 1 for connections A, B, C respectively arrive at the same queue at t=5. Calculate the finish number and the actual finish time for these three new packets.