background image
ISO/IEC 10918-1 : 1 1993(E)
ISO/IEC 10918-1 : 1 1993(E)
CCITT Rec. T.81 (1992 E)
Annex B
Compressed data formats
(This annex forms an integral part of this Recommendation | International Standard)
ISO/IEC 10918-1 : 1993(E)
CCITT Rec. T.81 (1992 E)
This annex specifies three compressed data formats:
a)
the interchange format, specified in B.2 and B.3;
b)
the abbreviated format for compressed image data, specified in B.4;
c)
the abbreviated format for table-specification data, specified in B.5.
B.1 describes the constituent parts of these formats. B.1.3 and B.1.4 give the conventions for symbols and figures used in
the format specifications.
B.1
General aspects of the compressed data format specifications
Structurally, the compressed data formats consist of an ordered collection of parameters, markers, and entropy-coded data
segments. Parameters and markers in turn are often organized into marker segments. Because all of these constituent parts
are represented with byte-aligned codes, each compressed data format consists of an ordered sequence of 8-bit bytes. For
each byte, a most significant bit (MSB) and a least significant bit (LSB) are defined.
B.1.1
Constituent parts
This subclause gives a general description of each of the constituent parts of the compressed data format.
B.1.1.1
Parameters
Parameters are integers, with values specific to the encoding process, source image characteristics, and other features
selectable by the application. Parameters are assigned either 4-bit, 1-byte, or 2-byte codes. Except for certain optional
groups of parameters, parameters encode critical information without which the decoding process cannot properly
reconstruct the image.
The code assignment for a parameter shall be an unsigned integer of the specified length in bits with the particular value
of the parameter.
For parameters which are 2 bytes (16 bits) in length, the most significant byte shall come first in the compressed data's
ordered sequence of bytes. Parameters which are 4 bits in length always come in pairs, and the pair shall always be
encoded in a single byte. The first 4-bit parameter of the pair shall occupy the most significant 4 bits of the byte. Within
any 16-, 8-, or 4-bit parameter, the MSB shall come first and LSB shall come last.
B.1.1.2
Markers
Markers serve to identify the various structural parts of the compressed data formats. Most markers start marker segments
containing a related group of parameters; some markers stand alone. All markers are assigned two-byte codes: an X'FF'
byte followed by a byte which is not equal to 0 or X'FF' (see Table B.1). Any marker may optionally be preceded by any
number of fill bytes, which are bytes assigned code X'FF'.
NOTE Because of this special code-assignment structure, markers make it possible for a decoder to parse the compressed
data and locate its various parts without having to decode other segments of image data.
B.1.1.3
Marker assignments
All markers shall be assigned two-byte codes: a X'FF' byte followed by a second byte which is not equal to 0 or X'FF'.
The second byte is specified in Table B.1 for each defined marker. An asterisk (*) indicates a marker which stands alone,
that is, which is not the start of a marker segment.
CCITT Rec. T.81 (1992 E)
31
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186]