Lecture 3 & 4 Notes
Lecture 3 & 4 Notes
Information Representation
·
1 2
.
: Multimedia
Main
Topics :
·
Images
-
Bitmap
-
vector
· sound
·
File Compression
IMAGES :
>Pixel
·
Bitmap :
-
made up of
·
Bitmap imager are
pixels .
·
Millions of
pixels combined together make up an
image .
·
Data of a
bitmap image is encoded through bit
patterns
.
·
A file header consist of the bitmap file which includes
the image size ,
number of colors etc .
·
Bit Depth : Number of bits used to
represent a
pixel .
-
↓
h h
Image
Screen Resolution :
make up an
image .
If
image greater than screen resolution
resolution is
·
In
1920 x 1080
Img
·
< ·
z
W
1080
pixels
per
column >
1920 pixels per row
1080
No
pixels 1920 x Bit depth 4
=
.
of =
=
2
,
073 , 600 pixels
No . of bits : No of.
Image size :
Ibyte: Sbits
Actral
Ikilobyte =
1000
bytes In
1024
I
megabyte
=
1000 kilobytes 1 kB =
bytes
I
gigabyte =
1000
megabytes
I
terabyte
=
1000 gigabytes
In MB =
1036800 1036 800 .
1000
.S
10
=
1036 8kB
0368 MB
.
1 .
1000
=
1.0368 MB
he
Bytes =
1500x3000x8=36000000
bytes
36000444 =
36000kB =
36 MB
1444 1000
36
VECTOR GRAPHICS
·
Lines and curves are
grouped to form geometric shapes .
A vector
graphic has a
drawing List
· .
Drawing List :
image .
·
If shape is resized , properties are recalculated .
Bitmap and Vector
Diff .
blw Images :
VECTOR BITMAP
·
made up of geometric made
up of pixels of different
shapes . colors .
not a ,
size since it is is
large very large
.
Sound :
·
Sound is
analogue in nature .
data to
·
A
computer converts this analogue digital
data using an ADC (Analogue to Digital Converter)
-
sound wave amplitude amplitude
sampled at set time intervals
A
·
-
these samples are encoded
as
binary sequence -
-
This
sequence provides digital representation
of sound .
Sampling Rate :
No .
of
samples per unit time
taken .
increases sound
Increasing sampling rate
quality
but
·
,
of to
sample .
Bit rate :
No . of bits used for storing I second of sound .
Rate
Bit rate :
Sampling x
Sampling Resolution .
File size :
Bit rate x
Length of Sound
1 3 .
Compression
Benefits :
-
Reduces the amount of
storage needed to
store files .
there compression
two
types
:
are of
·
This is the
type of compression that allows original
·
·
This is important for files where loss data world
of
any
be disastrous .
Lossy Compression :
This is the of
·
Applications of Compression :
·
MP3 : ·
This is a
type of audio compression .
·
MP3 uses perceptual music shaping .
·
If two sounds are being played at the same times only
the lorder be heard the the softer
one can
by ear , so
sound is eliminated .
·
MP3 is a
lossy compression technique .
·
MP4 :
·
It can be used to
compress text and bitmap files .
adjacent ,
identical values ·
Example :
·
we have a text
string "accabibbccdddd"
·
After RLE :
Sa ub 2 4d
w =
1 , B =
0
........
........
........
9 W
C I
run count run value
·
0
-
·
RLE is beneficial where there are adjacent repecting
values ·