Assume an image uses a palette of size 8 out of the table used by JPEG (GIF uses the same strategy, but the size of the palette is 256), with the combination of the following colors with the indicated level of intensities.
Red: 0 and 7
Blue: 0 and 5
Green: 0 and 4
Show the palette for this situation and answer the following questions:
a. How many bits are sent for each pixel?
b. What are the bits sent for the following pixels: red, blue, green, black, white, and magenta (red and blue, but no green)?