Multimedia
Multimedia
2
Image/Graphic Data Representation
▪ GlF and JPG image file formats are the two formats that most web
3
Image/Graphic Data Representation
5
Image/Graphic Data Representation
6
Types of Images
o bit-maps and
o vector graphics.
7
Bit-map images (also called Raster Graphics)
▪ They are formed from pixels – a matrix of dots with different colors.
▪ For example, a 640X480 image contains 640 pixels and 480 pixels in
▪ If you enlarge a small area of a bit-mapped image, you can clearly see the
▪ Draw programs, also called vector graphics programs, are used to create and
edit these vector graphics.
1-bit Images
▪ Each pixel is stored as a single bit (0 or 1), so also referred to as binary image.
10
Types of Bitmap Images
▪ The entire image can be thought of as a two dimensional array of pixel values.
memory.
▪ This value indicates the degree of brightness of that point. This brightness
▪ A 640 x 480 8-bit color image requires 307.2 KB of storage (the same as
8-bit greyscale).
▪ Examples: GIF
14
8-bit Color Images
15
8-bit Color Images cont’
▪ 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
16
Color lookup Tables (LUTs)
▪ It used in 8-bit color images to store only the index, or code value, for each pixel.
▪ Then, if a pixel stores, say, the value 25, the meaning is to go to row 25 in a color lookup
table (LUT).
▪ While images are displayed as two-dimensional arrays of values, they are usually stored
in row-column order as simply a long series of values.
▪ 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.
17
Color lookup Tables (LUTs) Con’t
18
24-bit Color Images
▪ The extra byte of data for each pixel is used to store an alpha value
19
Image Resolution
measured in pixels per inch, ppi, sometimes called dots per inch, dpi.
▪ A printed image that has a low resolution may look pixelated or made up
20
3.2. 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.
▪ The most common formats used on internet are the GIF, JPG, and PNG.
21
Standard System Independent Formats
▪ Limited to only 8-bit (256) color images, suitable for images with few distinctive
▪ GIF format has long been the most popular on the Internet, mainly because of
GIF Image
23
Standard System Independent Formats
PNG
▪ It is intended as a replacement for GIF in the WWW and image editing tools.
▪ All use of GIF may have to pay royalties to Unisys due to the patent.
▪ PNG can be animated through the MNG extension of the format, but browser support is less
▪ Takes advantage of limitations in the human vision system to achieve high rates of
compression
▪ Uses complex lossy compression, which allows user to set the desired level of quality
(compression).
▪ A compression setting of about 60% will result in the optimum balance of quality and file
size.
▪ Though JPGs can be interlaced, they do not support animation and transparency unlike
GIF. 25
Standard System Independent Formats
TIFF
▪ Tagged Image File Format (TIFF), stores many different types of images (e.g.,
monochrome, grayscale, 8-bit & 24-bit RGB, etc.)
▪ Uses tags, keywords defining the characteristics of the image that is included in the
file. For example, a picture 320 by 240 pixels would include a ‘width’ tag followed by the
number ‘320’ and a ‘depth’ tag followed by the number ‘240’.
▪ Developed by the Aldus Corp. in the 1980s and later supported by the Microsoft
▪ TIFF is a lossless format (when not utilizing the new JPEG tag which allows for JPEG
compression)
▪ It does not provide any major advantages over JPEG and is not as user-controllable.
▪ Do not use TIFF for web images. They produce big files, and more importantly, most
web browsers will not display TIFFs. 26
System Dependent Formats
Microsoft Windows: BMP
▪ Bit Map (BMP) is the major system standard graphics file format for Microsoft
Windows, used in Microsoft Paint and other programs.
▪ It makes use of run-length encoding compression and can efficiently store 24-
bit bitmap images.
▪ Note, however, that BMP has many different modes, including uncompressed
24-bit images.
▪ 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) for storing structured graphics.
28
3.3. Digital Audio and MIDI
▪ What is Sound?
▪ Sound is produced by a rapid variation in the average density or pressure of air
molecules above and below the current atmospheric pressure.
▪ Sound waves are produced by a vibrating body, be it a guitar string, loudspeaker cone or
jet engine.
▪ The vibrating sound source causes a disturbance to the surrounding air molecules,
causing them bounce off each other with a force proportional to the disturbance.
30
Common Audio Formats
▪ There are two basic types of audio files:
▪ WAV: The WAV format is the standard audio file format for Microsoft Windows applications,
and is the default file type produced when conducting digital recording within Windows.
▪ This format is very popular upon IBM PC platforms, and is widely used as a basic format for
▪ Like the WAV format, it supports a variety of bit resolutions, sample rates, and
channels of audio and is widely used in software programs used to create and
modify digital audio.
▪ AU: The AU file format is a compressed audio file format developed by Sun
Microsystems and popular in the unix world.
▪ It is also the standard audio file format for the Java programming language.
Only supports 8-bit depth thus cannot provide CD-quality sound.
32
1. The Traditional Discrete Audio File:
▪ MP3: MP3 stands for Motion Picture Experts Group, Audio Layer 3 Compression.
▪ MP3 files provide near-CD-quality sound but are only about 1/10th as large as a
standard audio CD file.
▪ Because MP3 files are small, they can easily be transferred across the Internet
and played on any multimedia computer with MP3 player software.
▪ MIDI files are very small compared to recorded audio file formats.
33
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.
• For streaming to work, the client side has to receive the data and
continuously feed it to the player application. 34
2. Streaming Audio File Formats
▪ RA/RM
▪ The latest versions of RealNetworks server and player software can handle
multiple encodings of a single file, allowing the quality of transmission to vary
with the available bandwidth.
▪ Webcast radio broadcast of both talk and music frequently uses RealAudio.
▪ ASF
internet streaming media and can accommodate not only synchronized audio, but
also video and other multimedia elements, all while supporting multiple
or browser plugin.
36
2. Streaming Audio File Formats
▪ MOV
▪ Apple QuickTime movies (MOV files) can be created without a video channel and used as
a sound-only format.
▪ QuickTime also accepts different audio sample rates, bit depths, and offers full
functionality in both Windows as well as the Mac OS.
o au (Unix)
o aiff (MAC)
o wav (PC)
o Mp3(multiple) 37
MIDI
memory, etc.
computer. (It used to be a storage server for MIDI data. Nowadays it is more a
software music editor on the computer. It has one or more MIDI INs and MIDI
OUTs.
39
MIDI
40
MIDI
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,..)
1.What is the difference bit map and vectors graphics? Which one is
better? Why.
42
43