OL Data Formats 25
OL Data Formats 25
2x25 ·
Always read a QUESTION
I wice .
Analorge Signal
An-A dra
character is stored sample
10 z 10 How in
computer
= =
a
N
i
·
assigned unique
A ASCII Unicode
3 using a
coding scheme
X
N
2 -
e
That
.
g
A s 65
unique is converted inse binary by
....
R W 10 L and stored in
computer
=
processor
.
&
- TEXT AND NUMBER collection elements used to
of O
-
mainly developed for english characters only language of the Digital Signal Look like .
of wave
- -
.
-
Character codes are assigned in sequence. bits . at different points with respect to time.
It contains ASCII It's a subset unicodes It's process of converting analorge
of
- - -
a
A 65 97 31
a G codes as well sound signal into a
digit one.
are as
C67 C 99 2 33 Sound -
No
of bits per sample .
24/48 KHz .
-
0
,
16
,
24 , 32 bits 8-32 bits
2314 billion characters.
>
-
Used As Standard
Image Resolution o pixels wide by high Monochromatic Black and White
Image
-
-Number
of Pixels contained by 1 Bit = 1 Pixel
LE
image per unit
an area.
IR"
"
Distortion
Quality File Size
-
-
No
of bits peo pixel are reduced .
Quality decreases
No
of Pixels screen can
Image 6100.
-
a
-
~
Quantization Error
display vertically and horizontally. -
Also called pixelated
-
When we convert analarge
an e .
g 1024x768
width height data ?
signal into a
digital the
, difference Why we
compress
61w the signal Results in the colom depth - To decrease
fil size
Easier to
form of Error. No
of colors an image -
-
We can reduce DE by increasing contain. a network/ Internet .
increase
No
of bits required for each colour To
efficiency of memory
- -
.
1- Cut,
Copy ,
Paste , Merge different Q Colom
:
depth 16 colours .
,
.
3 Auto-tune .
= 16 > colom depth betained - is obtain
,
Pass and block the Loss
of DATA
frequencies to remaining
-
Quality is reduced -
Quality
remain same .
-
90% Maximum - 50 % Maximum
&
VECTOR 28 = 256
= = an -
on
,
Bitmap
> RASTER sound, Videos Numbers
,
Images ,
> Collection of Pixels Q : color
depth 30. Sound
· Picture Element -
Technique is -
Techniqu used
25 32
Perceptual
·
>
Smallest addressable area
=
called RLE .
5 Bits I Pixel
bitmap Image compression
=
on a .
11 Bytes
Rowl P6Y5 -4 Bytes
&
Row2 B/1 3 Bytes
Row] PSB6 - 4 Bytss
Row 22
values -
One value is the cadefor the sequence
~
other value is number of identical pixels/ Bytes) characters
e
g
.
gaac() > 395
PROBLEM In RLE
·
If we don't have same identical
pixels in a sequence , pixels are
changing instead
so
of compression
size is increased.
file
1
(b) Wilbur scans a hand drawn image. The scanned image uses 8 bits to store the colour for
each pixel. The image is 2048 pixels wide by 1024 pixels high.
(i) Calculate an estimate of the file size of the scanned image. Give your answer rounded
to the nearest MB.
Show your working. 2
1024 X 1024
...........................................................................................................................................
KiB miB
...........................................................................................................................................
...........................................................................................................................................
2
Answer ................................. MB MiB
=>
[2]
-
2 A digital camera takes a bitmap image. The image is 2000 pixels wide by 1000 pixels high
with colour
a depth of 24-bits.
>
-
(a) Calculate an estimate of the file size for the image. Give your answer in me bytes. Show
your working.
2000 X 1000 X 24
Working .....................................................................................................................................
1000XTo X & U
...................................................................................................................................................
MB KB
...................................................................................................................................................
Byte
...................................................................................................................................................
...................................................................................................................................................
-O
Answer .......................................................... MB
[3]
(b) A second image is taken, this time in black and white. It has the same number of pixels, but
the file size is smaller.
file size
.............................................................................................................................................
.
[2]
3 Amir has created a sound file using his desktop computer.
(a) Complete the table by writing the missing definitions and term about sound.
Definition
taken at
Amplitude of sound wave
-
....................................................................................................................
....................................................................................................................
Sampling
time
....................................................................................................................
.
....................................................................................................................
Samplina
......................................
......................................
The number of samples per unit time
Number
of bits contained
by each
·
....................................................................................................................
....................................................................................................................
....................................................................................................................
[3]
(b) The file is too large to be emailed and the file size needs to be reduced.
(i) Name one lossless compression technique that can be used to reduce the size of the
sound file.
-
RLE Run Length Encoding
...........................................................................................................................................
,
..................................................................................................................................... [1]
(ii) Describe one lossy compression technique that can be used to reduce the size of the
sound file.
-
We will
apply perceptual compressionremoving
...........................................................................................................................................
the sound
frequencies
that are
difficult for
...........................................................................................................................................
..................................................................................................................................... [2]
4 A product designer is creating a poster.
(a) The designer creates a 6-colour bitmap image for the poster as shown.
22 = 04
-
I R R P P P G
2 B R R P G G
3 B W B B O O
Y B W W P P O
So B B R P G O
6 B R R P G O
(i) State the minimum number of bits needed to represent each pixel in the image in part (a).
3. bits = 1 Pixal
.......................................................................................................................................[1]
(ii) Calculate the minimum file size of the image shown in part (a). Show your working.
8
...........................................................................................................................................
...........................................................................................................................................
13 . 5 Bytes
File size .............................................................................................................................
[3]
(b) (i) The designer takes a photograph to put on the poster. The photograph has a resolution of
50 000 pixels by 50 000 pixels. The colours are represented using 4 bytes per pixel.
Estimate the file size of the photograph in gigabytes. Show your working.
50000 X 5000
Working ..............................................................................................................................
2500000000 X Y
...........................................................................................................................................
100 0 000 0000 Bytes
...........................................................................................................................................
to 1000 x 1000
x
...........................................................................................................................................
GB mys KB
10GB
Estimated file size ..............................................................................................................
[4]
3
(ii) The photograph needs to be sent by email but the file size is too big. It needs to be
compressed.
The table lists several methods of making an image file size smaller.
Tick ( ) one box on each row to indicate whether each method is lossy or lossless.
(c) Explain how run-length encoding would compress the image in part (a).
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
An image is stored on a computer. The image is 16-bit colour and is 100 pixels high and
150 pixels wide.
Calculate the file size of the image in bytes. Show all your working.
*
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
30000
Answer ................................................ bytes
[3]
5 A company is designing a website.
(a) The company creates a 4-colour bitmap image for the website as shown.
T
= Y
2
I G
G
R
R
G
G
K
K
W
W
R
R
-Z G R G K W R
3
Y G R G K W R
so G G G K K R
⑤ W W W W K R
(i) State the minimum number of bits needed to represent each pixel in the image in part (a).
2 bits = Pixel
...................................................................................................................................... [1]
(ii) Calculate the minimum file size of the image shown in part (a). Show your working.
36x2 = 72 bits
Working .............................................................................................................................
8
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
9 Bytes
File size .............................................................................................................................
[3]
(b) The company takes a photograph of their office to put on the website. The photograph has
a resolution of 1000 pixels by 1000 pixels. Two bytes per pixel are used to represent the
colours.
(i) Estimate the file size of the photograph in megabytes. Show your working.
100 x 1000 X 2 Bytes
Working .............................................................................................................................
200 X oo
...........................................................................................................................................
MB KB
...........................................................................................................................................
...........................................................................................................................................
MB2
Estimated file size .............................................................................................................
[4]
MUHAMMAD ALI KHAN
PAGE 720
(i) Complete the following table to describe the two terms about graphics.
Term Description
...........................................................................................................................
Number .
of Colos ,
image can Represent
...........................................................................................................................
...........................................................................................................................
...........................................................................................................................
[2]
(ii) The image is scanned with an image resolution of 1024 512 pixels, and a colour depth
of 8 bits per pixel.
Calculate an estimate for the file size, giving your answer in mebibytes. Show your
working.
&
24X52X
Working .............................................................................................................................
24 x 10242x@
...........................................................................................................................................
MiB KiB Exte
...........................................................................................................................................
...........................................................................................................................................
0.5
Answer .......................................... mebibytes
[3]
We encode
-
pixels in
sequence
Description ................................................................................................................................
.
The
Repeating Sequence is encoded into two values
...................................................................................................................................................
-
[3]
MUHAMMAD ALI KHAN
PAGE 721
16
(c) A second bitmap image is stored using a colour depth of 8 bits per pixel.
(i) The table shows the compressed and uncompressed values for parts of the image file.
Complete the table. The first row has been completed for you.
32 32 80 81 81 232180281
[2]
Explain why lossless compression is more appropriate than lossy compression for a
text file.
=
In text
file we cannot remove any date So in Lossless
...........................................................................................................................................
.
...........................................................................................................................................
..................................................................................................................................... [2]
153
255
- - - - - - - - + + + +--
1
2 -11--
& -----
B
seem
10 153 32553153
9 1536 2551153
71539285
2016 2021 2022
Kib
1512
2 16
XI
I is
1 bit = /Pixel x 256
.
(oxy
&
KiB Bytes
=> 16 KiB
MUHAMMAD ALI KHAN
PAGE 718
24 bits = 1 Pixel
The image is displayed on a monitor that has a screen resolution of 1920 × 1080 pixels.
(a) Tick ( ) one box in each row to identify the effect of each action on the image file size.
O
Change the screen resolution
to 1366 × 768 pixels. v
Change the colour of the
rectangle from black to red. -
[2]
Ged Pr
Pum
green
2 4 ·
Frequently repeated woods are
..........................................................................................................................................................
,
yellow
3 10 assigned indexes
..........................................................................................................................................................
,
people 5, 8
· We
only store the word once
..........................................................................................................................................................
6, 9 and note all indexes their occuance.
Glue
of
..........................................................................................................................................................
grey Il · We
ignore the words that are not
..........................................................................................................................................................
black 12
repeated frequently .
..........................................................................................................................................................
pink 13 · Words
compressed only word
..........................................................................................................................................................
10 A photographer takes an image with a digital camera. The photographer sets the resolution and
colour depth for the image.
............................................................................................................................................. [1]
............................................................................................................................................. [1]
(c) Give one benefit of increasing the colour depth of the image.
-Greater colours
Range of
...................................................................................................................................................
-
More Realistic more detail image
............................................................................................................................................. [1]
(d) The photographer compresses the image using a method that permanently reduces the
colour depth and resolution of the image.
(e) One benefit for compressing the image is to reduce the storage space it uses.
...................................................................................................................................................
to
Less Bandwidth required transfer
2 ................................................................................................................................................
[2]
11 A band is recording their new song. They need to consider the sample rate and sample resolution
of their recording.
(a) Give one benefit of using a higher sample rate to record the song.
·
sound will be closes to the realistic song
...................................................................................................................................................
.
[1]
(b) Give one drawback of using a higher sample rate to record the song.
· File size will increase
...................................................................................................................................................
............................................................................................................................................. [1]
can contain
very Low and High-
...................................................................................................................................................
↑
(d) The band wants to compress the sound file, but they do not want any data to be permanently
removed.
Lossless
............................................................................................................................................. [1]
Term Description
12 When keys are pressed on a keyboard, the text is converted to binary to be processed by the
computer.
(a) Describe how the text is converted to binary to be processed by the computer.
· A charactes set is used ASCII Unicode
...................................................................................................................................................
by computer . Value
is
compared against
...................................................................................................................................................
(b) Text that is input into a computer can be stored in a text file.
character is
on screen.
displayed
A text file can be compressed using lossless compression.
..................................................................................................................................... [1]
...........................................................................................................................................
#
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [4]
(iii) Give two reasons why the text file may have been compressed.
To have more
storage
1 ........................................................................................................................................
...........................................................................................................................................