0% found this document useful (0 votes)
34 views41 pages

Chapter 4

Uploaded by

muhammadadem5012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views41 pages

Chapter 4

Uploaded by

muhammadadem5012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 41

CHAPTER 4

Multimedia Data Representation


 Image/Graphic data representation
 Image Data Types
 Popular Image File Formats
 Digital Audio and MIDI
Image/Graphic Data Representation
 The number of file formats are used in multimedia
system.

21
Image/Graphic Data Representation

 The number of pixels in the image determines


the resolution of the image.
 The number of pixels determines the quality of the
image resolution.
 Higher resolution always yields better quality.
Image/Graphic Data Representation

 Every such single point is called pixel, short form of


picture element.
 Image is a collection of these points that are colored in
such a way that they produce meaningful
information /data.
 Pixel (picture element) contains the color or hue and
relative brightness of that point in the image.

21
Types of Images
 There are two basic forms of computer graphics:
bit-maps and
vector graphics.

 Bitmap formats are the ones used for digital


photographs.

 Vector formats are used only for line drawings.


A) Bit-map images
 They are formed from pixels – a matrix of dots with
different colors.
 Bitmap images are defined by their dimension in pixels
as well as by the number of colors they represent.
 For example, a 640X480 image contains 640 pixels and
480 pixels in horizontal and vertical direction
respectively.
B) Vector graphics
 They are really just a list of graphical objects such as
lines, rectangles, ellipses, arcs, or curves – called
primitives.
 This format is widely used by computer-aided design
programs to create detailed engineering and design
drawings.
 It is also used in multimedia when 3D animation is
desired.
Types of Bitmap Images
1-bit Images
 Each pixel is stored as a single bit (0 or 1), so also
referred to as binary image.
 Such an image is also called a 1-bit monochrome
image, since it contains no color.
 The value of the bit indicates whether it is light or
dark
 A 640 x 480 monochrome image requires 37.5 KB of
storage
21
The Figure shows a 1-bit monochrome image

22
8-bit Gray-Scale Images

 Each pixel is usually stored as a byte (value between 0


to 255).
 This value indicates the degree of brightness of that
point. This brightness goes from black to white
 A 640 x 480 grayscale image requires over 300 KB of
storage.
 This type of image is more smooth than 1-bit image.
23
The Figure shows a 8-bit gray-scale image
8-bit Color Images
 One byte for each pixel
 Supports 256 out of the millions possible, acceptable
color quality
 Requires Color Look-Up Tables (LUTs)
 A 640 x 480 8-bit color image requires 307.2 KB of
storage (the same as 8-bit greyscale).

Examples: GIF
8-bit Color Images

 Such image files use the concept of a lookup table to


store color information.

 Basically, the image stores not color but instead just a


set of bytes, each of which is an index into a table with
3-byte values that specify the color for a pixel with that
lookup table index.
Color lookup Tables (LUTs)

 It used in 8-bit color images is to store only the index, or


code value, for each pixel.
 For an 8-bit image, the image file can store in the file
header information just what 8-bit values for R, G, and B
correspond to each index.
 Figure below displays this idea.

 The LUT is often called a palette.


Color lookup Tables (LUTs)


24-bit Color Images
 Each pixel is represented by three bytes (e.g., RGB)

 Supports 256 x 256 x 256 possible combined colors (16,777,216)

 A 640 x 480 24-bit color image would require 921.6 KB of


storage

 Most 24-bit images are 32-bit images,

 The extra byte of data for each pixel is used to store an alpha
value representing special effect information
Image Resolution
 Image resolution refers to the spacing of pixels in an
image and is measured in pixels per inch, ppi,
sometimes called dots per inch, dpi.
 The higher the resolution, the more pixels in the
image.
 A printed image that has a low resolution may look
pixelated or made up of small squares, with jagged
edges and without smoothness.
 Image size refers to the physical dimensions of an
image
Popular Image File Formats

 Choosing the right file type for your image to save in is of


vital importance.
 If you are, for example, creating image for web pages,
then it should load fast.
 So such images should be small size.
 The most common formats used on internet are the
GIF, JPG, and PNG.
Standard System Independent Formats
A) Graphics Interchange Format (GIF)
 Graphics Interchange Format (GIF) devised
CompuServe, initially for transmitting graphical
images over phone lines via modems.
 Supports animation multiple pictures per file
(animated GIF)
 GIF format has long been the most popular, mainly
because of its small size
B) PNG

 Stands for Portable Network Graphics

 It is intended as a replacement for GIF in the WWW


and image editing tools.

 PNG can be animated through the MNG extension of


the format, but browser support is less for this format.
C) JPEG/JPG
 A standard for photographic image compression
 created by the Joint Photographic Experts Group
 Intended for encoding and compression of
photographs and similar images
 Though JPGs can be interlaced, they do not
support animation and transparency unlike GIF.
D) TIFF
 Tagged Image File Format (TIFF), stores many
different types of images (e.g., monochrome, grayscale,
8-bit & 24-bit RGB, etc.)
 TIFF is a lossless format (when not utilizing the new
JPEG tag which allows for JPEG compression)
 Do not use TIFF for web images. They produce big
files, and more importantly, most web browsers will not
display TIFFs.
System Dependent Formats
A) Microsoft Windows: BMP
 Bit Map (BMP) is the major system standard graphics
file format for Microsoft Windows, used in Microsoft
Paint and other programs.
 A system standard graphics file format for Microsoft
Windows
 Used in Many PC Graphics programs
 It is capable of storing 24-bit bitmap images
B) Macintosh: PAINT and PICT

 PAINT was originally used in Mac Paint program,


initially only for 1-bit monochrome images.
 PICT is a file format that was developed by Apple
Computer in 1984 as the native format for Macintosh
graphics.
 The PICT format is a meta-format that can be used for
both bitmap images and vector images though it was
originally used in MacDraw (a vector based drawing
program).
Digital Audio and MIDI
What is Sound?
 Sound is produced by a rapid variation in the average
density or pressure of air molecules.
 We perceive sound as these pressure fluctuations cause
our eardrums to vibrate.
 These usually minute changes in atmospheric pressure
are referred to as sound pressure and the fluctuations in
pressure as sound waves.
 Sound waves are produced by a vibrating body, be it a
guitar string, loudspeaker cone or jet engine.
Digitizing Sound
 Microphone produces analog signal
 Computers understands only discrete(digital) entities
 This creates a need to convert Analog audio to
Digital audio — specialized hardware.
 This is also known as Sampling.
Common Audio Formats

There are two basic types of audio files:


1. Traditional Discrete Audio File:
2. Streaming Audio File Formats

1. Traditional Discrete Audio File:

 In traditional audio file, you can save to a hard drive or


other digital storage medium.
Cont’d…

 WAV: The WAV format is the standard audio file


format for Microsoft Windows applications.

 It is the default file type produced when conducting


digital recording within Windows.
Cont’d…
 AIF: The Audio Interchange File Format (AIFF) is
the standard audio format employed by computers
using the Apple Macintosh operating system.

 AU: The AU file format is a compressed audio file


format developed by Sun Microsystems and popular in
the unix world.
Cont’d…
 MP3: MP3 stands for Motion Picture Experts Group,
Audio Layer 3 Compression.
 MP3 files are small, they can easily be transferred
across the Internet and played on any multimedia
computer with MP3 player software.
2. Streaming Audio File Formats
 Streaming is a network technique for transferring data
from a server to client in a format that can be
continuously read and processed by the client computer.
 Using this method, the client computer can start
playing the initial elements of large time-based audio or
video files before the entire file is downloaded.
 As the Internet grows, streaming technologies are
becoming an increasingly important way to deliver
time-based audio and video data.
Cont’d…
 RA/RM
 For audio data on the Internet, the defector standard is
RealNetwork’s RealAudio (.RA) compressed streaming
audio format.
 Streaming audio can also be provided in conjunction
with video as a combined RealMedia (RM) file.
Cont’d…

 ASF

 Microsofts Advanced Streaming Format (ASF) is similar


to designed to RealNetwork’s RealMedia format, in that it
provides a common definition for internet streaming
media and can accommodate not only synchronized audio,
but also video and other multimedia elements, all while
supporting multiple bandwidths within a single media file.
MIDI
 MIDI stands for Musical Instrument Digital Interface.

 Definition of MIDI: MIDI is a protocol that enables computer,


synthesizers, keyboards, and other musical device to
communicate with each other.

 MIDI allows interworking between instruments from different


manufacturers by providing a link to digital data.

 MIDI transmits only commands; it does not transmit an audio


signal.
Components of a MIDI System

1. Synthesizer: It is a sound generator (various pitch,


loudness, tone color). A good (musician’s) synthesizer
often has a microprocessor, keyboard, control panels,
memory, etc.

2. Sequencer: It can be a stand-alone unit or a software


program for a personal computer. Nowadays it is more
a software music editor on the computer. It has one or
more MIDI INs and MIDI OUTs.
Basic MIDI Concepts
• Track: Track in sequencer is used to organize the recordings.
Tracks can be turned on or off on recording or playing back.
• Channel: MIDI channels are used to separate information in a
MIDI system. There are 16 MIDI channels in one cable.
Channel numbers are coded into each MIDI message.
• Timbre: The quality of the sound, e.g., flute sound, cello sound,
etc.
• Multi-timbral: capable of playing many different sounds at the
same time (e.g., piano, brass, drums,..)
• Pitch: The Musical note that the instrument plays
• Voice: Voice is the portion of the synthesizer that produces
sound.
• Patch: The control settings that define a particular timbre.
Review Questions

1. What is the difference bit map and vectors graphics?


Which one is better? Why.
2. What is grayscale Image?
3. What are the different popular file formats of images?
4. Explain briefly the common audio formats. Where we
used?
THANK YOU !

You might also like