Search code examples
samplingmultimedia

Sampling Calculation / multimedia


I have a serious exam tomorrow and this is one of the sample questions provided. I tried to solve this problem many times but I could never get an accurate answer. There are no information regarding on the calculations in my lecture materials. I googled many things and looked for ways of calculating this in two different books which I have but could not find anything related. I do not know what the exact subject name for these sort of calculations but I think it is multimedia/sampling. I would greatly appreciate any information regarding the problem seriously any briefing would do. I just want to be able to solve it. I have quoted the question below.

"A supermarket must store text, image and video information on 2,000 items. There is text information associated with each item occupying 0.5 Kb. For 200 items, it is also necessary to store an image consisting of 1 million pixels. Each pixel represents one of 255 colours. For 10 items, it is also necessary to store a 4 second colour video (25 frames per second), to be viewed on a screen with a resolution of 1000 x 1000 pixels. The total storage required for the database is:"


Solution

  • TOTAL = 2,000 items x 0.5 kilobytes +
    (200 items x (1,000,000 pixels x 1 byte each)) +
    (10 items x (25 frames x 4 seconds) x (1,000 pixels x 1,000 pixels x 1 byte each))
    = 1,000,000 + 200,000,000 + 1,000,000,000
    = 1,201,000,000 bytes = 1.201 GB


    Notes:

    Kb could represent either 1000 or 1024, depending on how coherent your syllabus is. I imagine given the choice of the other numbers it is 1,000.

    Each of 255 colors can be stored in a single byte TINYINT (as 256 is the TINYINT max).