Professional Documents
Culture Documents
Data and le format standardisation is crucial for sharing data among multiple applications, and for exchanging information between applications. However, standards are rarely nal; they must evolve on an ongoing basis to address new demands and new technology. A large number of different formats, standards as well as proprietary, are in use. We will examine a few very popular and typical formats: Rich-text format (RTF) Tagged image le format (TIFF) Resources image le format (RIFF) Musical (MIDI) instrument digital interface
(199811)
(199811)
Rich-Text Format
Simple ASCII text is a limited form of data exchange because when text is moved from one application to another, all formatting information is lost. However, this remains one of the most popular and convenient form of data exchange. Rich-text format (RTF) expands the range of information that can be pass between applications. This assumes that both the source application and destination application have a reasonable common set of features. The key information carried in RTF les are: Character sets determine the characters that are ported in a particular implementation. Font table lists all fonts used in the
COMP3600 Multimedia Systems
document. These fonts are then mapped to the fonts available in the receiving application for displaying the text. Colour table lists the colours used in the document for highlighting text (i.e., the characters are a specic colour, not black). Document formatting information of the format applying to the entire document, such as document margins, and so on. Section formatting Section breaks (and page breaks) are used to dene separation of groups of paragraphs. The formatting information species the space above and below the section. Paragraph formatting The RTF specication denes control characters for specifying paragraph justication, tab
(199811)
positions, left, right, and rst indents relative to document margins, and the spacing between paragraphs. Paragraph formatting information also includes style sheets. General formatting Formatting information in this group includes items such as footnotes, annotation, bookmarks, and pictures.
Character formatting Formatting information, including bold, italic, underline (continuous, dotted, or word), strikethrough, shadow text, outline text, and hidden text, are specied using control characters. Special characters Special characters include hyphens non-breaking space backslashes, and so on.
(199811)
it contains one or more image le dictionaries (IFD) it contains a number of blocks of image data. The number of image data block is no maore than the number of IFD.
IFH
IFD
Image data
(199811)
The size of IFD is variable. Each IFD contains a number of tags. The size of each tag is xed, and it is 12 bytes long. the rst word of an IFD indicates the number of tags in this IFD this is followed by the tags the last double word is a pointer to the next IFD. The pointer in the last IFD is NULL
TIFF format has a large number of tags dened. Some of them are required while others are optional. The required tags for bi-level, gray scale, palette-colour and RGB colour images are listed on the next page.
(199811)
(199811)
YCbCr colour These images require all tags listed above plus the followings:
Tag ID Dec. Hex. 529 0217 530 0218 531 0219 532 021A Tag Name YCbCrCoefcients YCbCrSubSampling YCbCrPositioning ReferencelackWhite Data Type RATIONAL SHORT SHORT LONG
Data Type LONG SHORT/LONG SHORT/LONG SHORT SHORT SHORT SHORT/LONG SHORT SHORT/LONG SHORT/LONG RATIONAL RATIONAL SHORT
Fax Class Palette-colour and RGB colour These images require all tags listed above plus the followings:
Tag ID Dec. Hex. 284 011C 320 0140 Tag Name PlanarConguration ColorMap Data Type SHORT SHORT
Strip 2
These images require all tags listed in the bilevel images plus the followings:
Tag ID Dec. Hex. 326 0146 327 0147 328 0148 Data Type BadFaxLine SHORT/LONG CleanFaxData SHORT ConsecutiveBadFaxLine SHORT/LONG Tag Name
The advantages of this organisation are to allow smaller systems to read only part of the images, and to allow random access.
(199811)
(199811)
RIFF provides a standard way to organise data in a le Data in a RIFF le is divided into chunks. The RIFF specication denes three kinds of chunks:
(199811)
(199811)
(199811)
(199811)
Global colour table (optional) it is a series of three-byte triples making up the entries in the colour table. The number of entries is always a power of 2, i.e., 2, 4, 8, . . . , up to a maximum of 256. Image data (optional) Each image block can be divided into three parts:
Local image descriptor contains information about this image block, such the
(199811)