Multimedia
Multimedia
Multimedia is everything you can hear or see: texts, books, pictures, music, sounds, CDs,
videos, DVDs, Records, Films, and more.
File Formats
Sounds:
CDAudio (*.cda)
The upside of the MIDI format is that since it contains only instructions (notes), MIDI
files can be extremely small. The example above is only 23K in size but it plays for
nearly 5 minutes.
The MIDI format is supported by many different software systems over a large range of
platforms. MIDI files are supported by all the most popular Internet browsers.
Sounds stored in the MIDI format have the extension .mid or .midi.
The RealAudio Format
The RealAudio format was developed for the Internet by Real Media. The format also
supports video.
The format allows streaming of audio (on-line music, Internet radio) with low
bandwidths. Because of the low bandwidth priority, quality is often reduced.
Sounds stored in the RealAudio format have the extension .rm or .ram.
The AU Format
The AU format is supported by many different software systems over a large range of
platforms.
Sounds stored in the AU format have the extension .au.
The AIFF Format
The AIFF (Audio Interchange File Format) was developed by Apple.
AIFF files are not cross-platform and the format is not supported by all web browsers.
Sounds stored in the AIFF format have the extension .aif or .aiff.
The SND Format
The SND (Sound) was developed by Apple.
SND files are not cross-platform and the format is not supported by all web browsers.
Sounds stored in the SND format have the extension .snd.
QuickTime files (*.mov, or *.qt) created with versions one and two of
QuickTime. (Versions three and four are not supported.)
Animated GIF (*.gif) While animated GIFs are not movies, they come
close enough for discussion in this document. (Note: Only PPT2000
supports animated gifs.)
Image formats
1. Image sources
2. Image types
Images can be stored in many formats. Three fundamental types of images can be
considered: vector, bitmap, and moving images.
Vector image
The vector image stores the sequence of graphics instructions required to reproduce the
representation.
Bitmap image
The bitmap image stores the pixels required to reproduce the representation.
Moving images
Moving images are stored as a sequence of pictures used to give the illusion of motion.
Vector and bitmap images will be considered here. Moving images will be considered
separately elsewhere.
Detailed Description
Vector images
Vector images define an image as a set of instructions composed of graphic objects or
primitives. Strictly speaking, vectors are lines, but vector graphics generally include
ellipses, arcs, curves, filled areas and in many cases text. Many vector formats allow
complex bezier curves to be stored as mathematical equations.
Certain images, such as simple black and white silhouettes can translate adequately. It is
invariably impossible to convert complex subjects such as those found in photographs.
In certain cases it may be preferable to store an image as a vector graphic. Many line
drawings, silhouettes, logos, diagrams and charts can be more efficiently stored as vector
graphics. This offers the advantage of resolution independence. A vector graphic will
always reproduce at the optimum resolution for an output device and will maintain a
consistent size when reproduced.
Bitmap images
Bitmapped images or bitmaps represent an image as a grid of picture elements or pixels,
each with a value mapping a particular value of colour and intensity.
Any image can be represented in bitmap form, although this is not necessarily always
efficient. Bitmaps are generally employed to represent real world images. These can be
acquired using either a scanner or a video frame grabber.
Existing bitmap images can be modified using photo retouching packages. Image
processing functions can be used to modify such characteristics as sharpness, contrast,
and colour balance.
Original bitmap images can also be created in software applications. These are often
called painting packages. There are certain limitations in creating original images in
bitmap form:
When creating original artwork images it is often preferable to create images in vector
form, possibly converting to a bitmap image if required.
Mixed types
Vector and bitmap images tend to come together on screen displays and in printed output.
Generally, vector images are rasterized or converted to bitmap images for display on
bitmapped screens or other ultimately bitmapped devices such as laser printers.
For this reason, the software interpreters or engines responsible for handling screen
display and printed output often deal with a combination of vector and bitmap images.
The Microsoft Windows environment supports metafiles, sequences of graphics
instructions that can include both vector and bitmap descriptions. Page description
languages such as Hewlett Packard's PCL or Adobe PostScript support both vector and
bitmap images. This feature can cause confusion in particular when dealing with
PostScript as an image file format.
PostScript
Adobe PostScript is the de-facto standard for desktop publishing and produces consistent
results on output devices ranging from laser printers to phototypesetters.Originally
intended for printers and other output devices, PostScript is a page description language
which supports both vector and bitmap images and has more in common with a true
programming language rather than a file format. PostScript offers enormous flexibility
and the highest quality output, but this involves certain restrictions.
The CGM format was created by the American National Standards Institute as a universal
metafile specification. Although originally intended to include bitmaps, these are
generally not supported. The CGM file format is a useful intermediate format for
transferring vector images between different computer platforms and application
packages. It should be noted, however, that CGM does not support some features of
vector graphics and these will therefore be lost.
Windows Metafile
The WMF (Windows Metafile) is intended to support the vector drawing capabilities of
the Microsoft Windows interface. Although unique to this environment, it is almost
universally supported by Windows applications. The Windows Metafile serves as a
medium of exchange between various Windows applications and it can represent
anything that can be drawn directly through the Windows environment. Designed for
speed rather than compactness, the WMF format often produces very large files.
The Windows environment does not support certain features of vector images, notably
bezier curves or fountain fills. Such attributes will therefore be substituted. Bezier curves
are generally replaced by using short straight line approximations, which have the
advantage of faster display, although this can result in large file sizes. For this reason,
WMF files are rarely used as a primary file format, although they are a reliable export
path when the destination is a Windows application.
Macintosh PICT
The PICT QuickDraw picture format is a metafile format commonly used on the Apple
Macintosh platform for storing vector and or bitmap images. It is a native format of the
Macintosh Clipboard. It is additionally supported by some PC and UNIX applications to
provide some compatibility.
AutoCAD DXF
HPGL
The HPGL Hewlett Packard Graphics Language was designed to support pen plotters.
Since all HPGL code ultimately drives the same range of plotters, it is not liable to the
variations and inconsistencies that affect some file formats.
Bitmap images
File formats
A bitmap image simply contains a matrix of pixels, together with information about their
colour value. There are only so many ways in which this information can be represented
in binary form. Unfortunately, it varies from computer to computer. To decode a bitmap
it is therefore necessary to know the order in which the bits and bytes are stored. This
information is often coded in the file format.
Given below are brief details of some popular bitmap image file formats. The details
given are not intended to be comprehensive and are for general guidance only.
TIF
The TIFF Tagged Image File Format was jointly developed by Aldus and Microsoft for
use in desktop publishing and related graphics applications. The format deals with black-
and-white, greyscale, and colour images, including true colour images. It is well
supported on PC, Mac and Unix platforms and is highly suitable for the storage and
transfer of bitmap images and is often one of the best choices of bitmap format for data
exchange.
GIF
The CompuServe GIF (Graphics Interchange Format) is a popular bitmap image file
format employing data compression developed specifically for the storage and
transmission of images on the CompuServe network. The format includes LZW
compression and produces good lossless compression ratios.
PCX
The Zsoft PCX format is among the most commonly supported in the PC environment.
Originally developed as a proprietary format for use with the Zsoft Paintbrush program, it
established a de facto standard that became public and is very widely supported. It is
therefore a useful interchange format among PC applications.
BMP/DIB/RLE
The Microsoft Windows 3.x environment on the PC employs a special family of formats
for storage and display of bitmap images of 1, 4, 8 or 24 bits per pixel. Although the
bitmap file structures themselves are essentially similar, different filename extensions are
employed according to context. The file types used are BMP, DIB, and RLE, respectively
referring to BitMaP, Device Independent Bitmap, and Run Length Encoded bitmap..
TGA
The Targa TGA bitmap image format was developed by Truevision for their Targa and
Vista video hardware products on the PC and MAC. It is an industry standard although
not as widely supported as PCX or TIFF formats. The format provides support for run
length encoded compression.
EPS
PCD
IMG
The IMG format was developed by Digital Research as a bitmap format for use in the
GEM windowing environment. Supporting 1, 4 or 8 bits per pixel in monochrome
MAC (PNTG)
The MAC or PNTG bilevel bitmap format was the native bitmap image file format for
MacPaint on Apple Macintosh Computer. It is widely supported in the Mac environment.
RAS
The Sun Microsystems RAS Rasterfile is the native bitmap image format for Sun
workstations.
SGI
Silicon Graphics Inc. has a proprietary bitmap format used by much of their workstation
software.
Data compression
Large bitmaps require a large amount of storage. This makes heavy demands on
transmission and display systems. For this reason, various forms of data compression can
be used to minimise the storage requirements.
Data compression techniques work on the basis that there are redundant, repeating
elements in any data set. These repeating elements are identified and encoded to achieve
compression. The degree to which image data can be compressed is image dependent.
Images that contain lots of repeated information can be compressed more efficiently than
images containing lots of different information.
There are two fundamental types of image compression. Lossless compression allows the
image to be reconstituted exactly. Lossy compression discards data that is less important.
Both types of compression may be combined to yield high compression ratios.
Lossless data compression schemes generally involve the substitution of shorter codes for
common patterns in the image data, thus reducing the amount of storage space required.
This can work well for bilevel bitmaps or simple graphic images. However, such
conventional data-compression methods are not very effective for greyscale or colour
images. Higher resolution and pixel depth images do not generally display simple
arithmetic relationships or redundancies among nearby pixels. In the worst case, complex
images can result in negative compression, requiring more storage once data compression
has been applied.
The simplest form of data compression is known as Run Length Encoding or RLE. In
RLE a run of a certain value is represented by the length of the run, followed by the
value. Such a simple scheme works well for images with large areas of uniform value.
Lossy compression
While data compression involves coding data in such a way that it can be perfectly
reconstructed, lossy compression involves discarding the least significant data. Most
systems allow a threshold to be set so that the degree of loss and hence compression can
be varied.
Lossy compression is an irreversible operation in which information is lost. It is
therefore important to preserve an archive copy of the original file for future use. In
some circumstances, where the loss is not too great, the compressed file may be suitable
for archival purposes. Note that repeatedly reading and writing an image to and from a
file using a lossy compression system will result in progressive degradation
JPEG
Soon to be a dominant format for storage of photographic digital images, the published
JPEG system defined by the Joint Photographic Experts Group is an ISO standard for
compressing grey-scale or full colour digital images. Intended for hardware
implementation, JPEG is also supported in software on the PC, Mac, and workstation
platforms.
JPEG compression is proposed for inclusion in ISO Office Document Architecture,
CCITT colour facsimile, European ETSI videotex, and in version 6.0 of the TIFF bitmap
format. The standard defines the compression algorithm, but there are currently several
different file formats for storing JPEG compressed images. As a result many early
implementations are mutually incompatible.
The compression system makes use of the Discrete Cosine Transform. There is also a
lossless version that does not make use of the DCT, although it has little in common with
regular JPEG except for the name.
Most implementations start by converting the RGB images into a luminance/chrominance
colour space, that is, a greyscale base image plus two channels of colour difference
information, essentially encoding brightness, blueness and redness. Then a Discrete
Cosine Transformation is applied to convert the raster data into rate-of-change
information. Quantization truncates the results of the DCT coding to a smaller range of
values. This is the step that makes JPEG lossy. The quantization coefficients determine
just how much data is lost and hence the degree of compression and ultimate image
quality. Finally, the results of quantization are compressed using either Huffman or
arithmetic coding to produce the final output. Arithmetic coding is slightly more
compact, but due to patent restrictions, most current implementations use the public
domain Huffman scheme.
The lossy compression does not deal particularly well with images with a small number
of colours and sharp edges, such as cartoons. It is also limited in handling edge detail in
monochrome images. The system is therefore inappropriate for storing images intended
for machine analysis or for images where accuracy is critical such as applications in
medicine or fine art.
The level of loss and hence compression can be controlled, allowing a compromise
between image quality and file size. Usable compression ratios of up to 10:1 or 20:1 can
be achieved with minimal degradation. Effectively therefore, JPEG can usually construct
a full-colour picture nearly indistinguishable from the original, effectively using only
about 1 bit per pixel for storage.
At present there are various implementations of JPEG compression and there are a
number of different incompatible file formats.