spandsp  1.99.0
t30_dis_dtc_dcs_bits.h
Go to the documentation of this file.
1 /*
2  * SpanDSP - a series of DSP components for telephony
3  *
4  * t30_dis_dtc_dcs_bits.h - ITU T.30 fax control bits definitions
5  *
6  * Written by Steve Underwood <steveu@coppice.org>
7  *
8  * Copyright (C) 2009 Steve Underwood
9  *
10  * All rights reserved.
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 2.1,
14  * as published by the Free Software Foundation.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this program; if not, write to the Free Software
23  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  */
25 
26 /*! \file */
27 
28 #if !defined(_SPANDSP_PRIVATE_T30_DIS_DTC_DCS_BITS_H_)
29 #define _SPANDSP_PRIVATE_T30_DIS_DTC_DCS_BITS_H_
30 
31 /* Indicates that the terminal has the Simple mode capability defined in ITU-T Rec. T.37.
32  Internet address signals CIA, TSA or CSA can be sent and received. The recipient terminal
33  may process or ignore this signal. */
34 #define T30_DIS_BIT_T37 1
35 #define T30_DCS_BIT_T37 1
36 
37 /* Bit 2 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
38 
39 /* Indicates that the terminal has the capability to communicate using ITU-T Rec. T.38.
40  Internet address signals CIA, TSA or CSA can be sent and received. The recipient terminal
41  may process or ignore this signal. */
42 #define T30_DIS_BIT_T38 3
43 #define T30_DCS_BIT_T38 3
44 
45 /* Bit 4 set to "1" indicates 3rd Generation Mobile Network Access to the GSTN Connection.
46  Bit 4 set to "0" conveys no information about the type of connection. */
47 #define T30_DIS_BIT_3G_MOBILE 4
48 #define T30_DCS_BIT_3G_MOBILE 4
49 
50 /* Bit 5 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
51 
52 /* When ISDN mode is used, in DIS/DTC bit 6 shall be set to "0". */
53 #define T30_DIS_BIT_V8_CAPABILITY 6
54 /* Bit 6 in a DCS is "invalid", and should be set to zero */
55 
56 /* When ISDN mode is used, in DIS/DTC bit 7 shall be set to "0". */
57 #define T30_DIS_BIT_64_OCTET_ECM_FRAMES_PREFERRED 7
58 /* Bit 7 in a DCS is "invalid", and should be set to zero */
59 
60 /* Bit 8 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
61 
62 /* Bit 9 indicates that there is a facsimile document ready to be polled from the answering
63  terrminal. It is not an indication of a capability. */
64 #define T30_DIS_BIT_READY_TO_TRANSMIT_FAX_DOCUMENT 9
65 /* Bit 9 in a DCS should be set to zero */
66 
67 /* In DIS/DTC bit 10 indicates that the answering terminal has receiving capabilities.
68  In DCS it is a command to the receiving terminal to set itself in the receive mode. */
69 #define T30_DIS_BIT_READY_TO_RECEIVE_FAX_DOCUMENT 10
70 #define T30_DCS_BIT_RECEIVE_FAX_DOCUMENT 10
71 
72 /* Bits 11, 12, 13, 14 - modem type */
73 #define T30_DIS_BIT_MODEM_TYPE_1 11
74 #define T30_DCS_BIT_MODEM_TYPE_1 11
75 #define T30_DIS_BIT_MODEM_TYPE_2 12
76 #define T30_DCS_BIT_MODEM_TYPE_2 12
77 #define T30_DIS_BIT_MODEM_TYPE_3 13
78 #define T30_DCS_BIT_MODEM_TYPE_3 13
79 #define T30_DIS_BIT_MODEM_TYPE_4 14
80 #define T30_DCS_BIT_MODEM_TYPE_4 14
81 
82 #define T30_DIS_BIT_200_200_CAPABLE 15
83 #define T30_DCS_BIT_200_200 15
84 
85 #define T30_DIS_BIT_2D_CAPABLE 16
86 #define T30_DCS_BIT_2D_MODE 16
87 
88 /* Standard facsimile terminals conforming to ITU-T Rec. T.4 must have the following capability:
89  Paper length = 297 mm. */
90 
91 #define T30_DIS_BIT_215MM_255MM_WIDTH_CAPABLE 17
92 #define T30_DCS_BIT_255MM_WIDTH 17
93 
94 #define T30_DIS_BIT_215MM_255MM_303MM_WIDTH_CAPABLE 18
95 #define T30_DCS_BIT_303MM_WIDTH 18
96 
97 #define T30_DIS_BIT_A4_B4_LENGTH_CAPABLE 19
98 #define T30_DCS_BIT_B4_LENGTH 19
99 
100 #define T30_DIS_BIT_UNLIMITED_LENGTH_CAPABLE 20
101 #define T30_DCS_BIT_UNLIMITED_LENGTH 20
102 
103 /* Bits 21, 22, 23 - min scan line time */
104 /* When ISDN mode is used, in DIS/DTC bits 21 to 23 shall be set to "1". */
105 #define T30_DIS_BIT_MIN_SCAN_LINE_TIME_CAPABILITY_1 21
106 #define T30_DCS_BIT_MIN_SCAN_LINE_TIME_1 21
107 #define T30_DIS_BIT_MIN_SCAN_LINE_TIME_CAPABILITY_2 22
108 #define T30_DCS_BIT_MIN_SCAN_LINE_TIME_2 22
109 #define T30_DIS_BIT_MIN_SCAN_LINE_TIME_CAPABILITY_3 23
110 #define T30_DCS_BIT_MIN_SCAN_LINE_TIME_3 23
111 #define T30_DIS_BIT_MIN_SCAN_LINE_TIME_CAPABILITY_4 24
112 #define T30_DCS_BIT_MIN_SCAN_LINE_TIME_4 24
113 
114 /* Bit 24 is an extension bit */
115 
116 /* Bit 25 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
117 
118 #define T30_DIS_BIT_UNCOMPRESSED_CAPABLE 26
119 #define T30_DCS_BIT_UNCOMPRESSED_MODE 26
120 
121 /* When ISDN mode is used, in DIS/DTC bit 27 shall be set to "1". */
122 #define T30_DIS_BIT_ECM_CAPABLE 27
123 #define T30_DCS_BIT_ECM_MODE 27
124 
125 /* Bit 28 in a DIS or DTC should be set to zero */
126 /* (T.30 note 7) The value of bit 28 in the DCS command is only valid when ECM is selected. */
127 #define T30_DCS_BIT_64_OCTET_ECM_FRAMES 28
128 
129 /* Bit 29 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
130 
131 /* Bit 30 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
132 
133 /* (T.30 note 9) The value of bit 31 in the DCS command is only valid when ECM is selected. */
134 #define T30_DIS_BIT_T6_CAPABLE 31
135 #define T30_DCS_BIT_T6_MODE 31
136 
137 /* Bit 32 is an extension bit */
138 
139 #define T30_DIS_BIT_FNV_CAPABLE 33
140 #define T30_DCS_BIT_FNV_CAPABLE 33
141 
142 #define T30_DIS_BIT_MULTIPLE_SELECTIVE_POLLING_CAPABLE 34
143 /* Bit 34 in a DCS should be set to zero */
144 
145 #define T30_DIS_BIT_POLLED_SUBADDRESSING_CAPABLE 35
146 /* Bit 35 in a DCS should be set to zero */
147 
148 #define T30_DIS_BIT_T43_CAPABLE 36
149 #define T30_DCS_BIT_T43_MODE 36
150 
151 #define T30_DIS_BIT_PLANE_INTERLEAVE_CAPABLE 37
152 #define T30_DCS_BIT_PLANE_INTERLEAVE 37
153 
154 #define T30_DIS_BIT_G726_CAPABLE 38
155 #define T30_DCS_BIT_G726 38
156 
157 /* Bit 39 in a DIS, DTC, or DCS is "reserved for extended voice coding", so it should be set to zero */
158 
159 /* Bit 40 is an extension bit */
160 
161 /* This also enables R8 x 15.4/mm mode */
162 #define T30_DIS_BIT_200_400_CAPABLE 41
163 #define T30_DCS_BIT_200_400 41
164 
165 #define T30_DIS_BIT_300_300_CAPABLE 42
166 #define T30_DCS_BIT_300_300 42
167 
168 /* This also enables R16 x 15.4/mm mode */
169 #define T30_DIS_BIT_400_400_CAPABLE 43
170 #define T30_DCS_BIT_400_400 43
171 
172 /* Bits 44 and 45 are used only in conjunction with bits 15 and 43. Bit 44 in DCS, when used, shall correctly
173  indicate the resolution of the transmitted document, which means that bit 44 in DCS may not always match the
174  indication of bits 44 and 45 in DIS/DTC. Cross selection will cause the distortion and reduction of reproducible
175  area.
176  If a receiver indicates in DIS that it prefers to receive metric-based information, but the transmitter has
177  only the equivalent inch-based information (or vice versa), then communication shall still take place.
178  Bits 44 and 45 do not require the provision of any additional features on the terminal to indicate to the
179  sending or receiving user whether the information was transmitted or received on a metric-metric, inch-inch,
180  metric-inch, inch-metric basis. */
181 
182 #define T30_DIS_BIT_INCH_RESOLUTION_PREFERRED 44
183 #define T30_DCS_BIT_INCH_RESOLUTION 44
184 
185 #define T30_DIS_BIT_METRIC_RESOLUTION_PREFERRED 45
186 /* Bit 45 in a DCS is "don't care", so it should be set to zero */
187 
188 #define T30_DIS_BIT_MIN_SCAN_TIME_HALVES 46
189 /* Bit 46 in a DCS is "don't care", so it should be set to zero */
190 
191 #define T30_DIS_BIT_SELECTIVE_POLLING_CAPABLE 47
192 /* Bit 47 in a DCS should be set to zero */
193 
194 /* Bit 48 is an extension bit */
195 
196 #define T30_DIS_BIT_SUBADDRESSING_CAPABLE 49
197 #define T30_DCS_BIT_SUBADDRESS_TRANSMISSION 49
198 
199 #define T30_DIS_BIT_PASSWORD 50
200 #define T30_DCS_BIT_SENDER_ID_TRANSMISSION 50
201 
202 /* Bit 51 indicates that there is a data file ready to be polled from the answering terminal. It is
203  not an indication of a capability. This bit is used in conjunction with bits 53, 54, 55 and 57. */
204 #define T30_DIS_BIT_READY_TO_TRANSMIT_DATA_FILE 51
205 /* Bit 51 in a DCS should be set to zero */
206 
207 /* Bit 52 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
208 
209 /* The binary file transfer protocol is described in ITU-T Rec. T.434. */
210 #define T30_DIS_BIT_BFT_CAPABLE 53
211 #define T30_DCS_BIT_BFT 53
212 
213 #define T30_DIS_BIT_DTM_CAPABLE 54
214 #define T30_DCS_BIT_DTM 54
215 
216 #define T30_DIS_BIT_EDI_CAPABLE 55
217 #define T30_DCS_BIT_EDI 55
218 
219 /* Bit 56 is an extension bit */
220 
221 #define T30_DIS_BIT_BTM_CAPABLE 57
222 #define T30_DCS_BIT_BTM 57
223 
224 /* Bit 58 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
225 
226 /* Bit 59 indicates that there is a character-coded or mixed-mode document ready to be polled
227  from the answering terminal. It is not an indication of a capability. This bit is used in
228  conjunction with bits 60, 62 and 65. */
229 #define T30_DIS_BIT_READY_TO_TRANSMIT_MIXED_MODE_DOCUMENT 59
230 /* Bit 59 in a DCS should be set to zero */
231 
232 #define T30_DIS_BIT_CHARACTER_MODE_CAPABLE 60
233 #define T30_DCS_BIT_CHARACTER_MODE 60
234 
235 /* Bit 61 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
236 
237 #define T30_DIS_BIT_MIXED_MODE 62
238 #define T30_DCS_BIT_MIXED_MODE 62
239 
240 /* Bit 63 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
241 
242 /* Bit 64 is an extension bit */
243 
244 #define T30_DIS_BIT_PROCESSABLE_MODE_26 65
245 /* Bit 65 in a DCS should be set to zero */
246 
247 #define T30_DIS_BIT_DIGITAL_NETWORK_CAPABLE 66
248 #define T30_DCS_BIT_DIGITAL_NETWORK_CAPABLE 66
249 
250 #define T30_DIS_BIT_DUPLEX_CAPABLE 67
251 #define T30_DCS_BIT_DUPLEX_CAPABLE 67
252 
253 #define T30_DIS_BIT_T81_CAPABLE 68
254 #define T30_DCS_BIT_T81_MODE 68
255 
256 #define T30_DIS_BIT_FULL_COLOUR_CAPABLE 69
257 #define T30_DCS_BIT_FULL_COLOUR_MODE 69
258 
259 /* Bit 70 in a DCS should be set to zero */
260 #define T30_DCS_BIT_PREFERRED_HUFFMAN_TABLES 70
261 
262 /* In a DIS/DTC frame, setting bit 71 to "0" indicates that the called terminal can only accept
263  image data which has been digitized to 8 bits/pel/component for JPEG mode. This is also true for T.43
264  mode if bit 36 is also set to "1". Setting bit 71 to "1" indicates that the called terminal can also accept
265  image data that are digitized to 12 bits/pel/component for JPEG mode. This is also true for T.43 mode if
266  bit 36 is also set to "1". In a DCS frame, setting bit 71 to "0" indicates that the calling terminal's image
267  data are digitized to 8 bits/pel/component for JPEG mode. This is also true for T.43 mode if bit 36 is also
268  set to "1". Setting bit 71 to "1" indicates that the calling terminal transmits image data which has been
269  digitized to 12 bits/pel/component for JPEG mode. This is also true for T.43 mode if bit 36 is also set
270  to "1". */
271 #define T30_DIS_BIT_12BIT_CAPABLE 71
272 #define T30_DCS_BIT_12BIT_COMPONENT 71
273 
274 /* Bit 72 is an extension bit */
275 
276 #define T30_DIS_BIT_NO_SUBSAMPLING 73
277 #define T30_DCS_BIT_NO_SUBSAMPLING 73
278 
279 #define T30_DIS_BIT_CUSTOM_ILLUMINANT 74
280 #define T30_DCS_BIT_CUSTOM_ILLUMINANT 74
281 
282 #define T30_DIS_BIT_CUSTOM_GAMUT_RANGE 75
283 #define T30_DCS_BIT_CUSTOM_GAMUT_RANGE 75
284 
285 #define T30_DIS_BIT_NORTH_AMERICAN_LETTER_CAPABLE 76
286 #define T30_DCS_BIT_NORTH_AMERICAN_LETTER 76
287 
288 #define T30_DIS_BIT_NORTH_AMERICAN_LEGAL_CAPABLE 77
289 #define T30_DCS_BIT_NORTH_AMERICAN_LEGAL 77
290 
291 #define T30_DIS_BIT_T85_CAPABLE 78
292 #define T30_DCS_BIT_T85_MODE 78
293 
294 /* (T.30 note 30) This capability should only be set if T30_DIS_BIT_T85_CAPABLE is also set */
295 #define T30_DIS_BIT_T85_L0_CAPABLE 79
296 #define T30_DCS_BIT_T85_L0_MODE 79
297 
298 /* Bit 80 is an extension bit */
299 
300 #define T30_DIS_BIT_HKM_KEY_MANAGEMENT_CAPABLE 81
301 #define T30_DCS_BIT_HKM_KEY_MANAGEMENT_MODE 81
302 
303 #define T30_DIS_BIT_RSA_KEY_MANAGEMENT_CAPABLE 82
304 #define T30_DCS_BIT_RSA_KEY_MANAGEMENT_MODE 82
305 
306 #define T30_DIS_BIT_OVERRIDE_CAPABLE 83
307 #define T30_DCS_BIT_OVERRIDE_MODE 83
308 
309 #define T30_DIS_BIT_HFX40_CIPHER_CAPABLE 84
310 #define T30_DCS_BIT_HFX40_CIPHER_MODE 84
311 
312 #define T30_DIS_BIT_ALTERNATIVE_CIPHER_2_CAPABLE 85
313 #define T30_DCS_BIT_ALTERNATIVE_CIPHER_2_MODE 85
314 
315 #define T30_DIS_BIT_ALTERNATIVE_CIPHER_3_CAPABLE 86
316 #define T30_DCS_BIT_ALTERNATIVE_CIPHER_3_MODE 86
317 
318 #define T30_DIS_BIT_HFX40_I_HASHING_CAPABLE 87
319 #define T30_DCS_BIT_HFX40_I_HASHING_MODE 87
320 
321 /* Bit 88 is an extension bit */
322 
323 #define T30_DIS_BIT_ALTERNATIVE_HASHING_2_CAPABLE 89
324 #define T30_DCS_BIT_ALTERNATIVE_HASHING_2_MODE 89
325 
326 #define T30_DIS_BIT_ALTERNATIVE_HASHING_3_CAPABLE 90
327 #define T30_DCS_BIT_ALTERNATIVE_HASHING_3_MODE 90
328 
329 /* Bit 91 in a DIS, DTC, or DCS is "reserved for suture security features", so it should be set to zero */
330 
331 /* Bits 92 to 94 specify the mixed raster content mode. */
332 
333 #define T30_DIS_BIT_T44_PAGE_LENGTH 95
334 #define T30_DCS_BIT_T44_PAGE_LENGTH 95
335 
336 /* Bit 96 is an extension bit */
337 
338 /* In a DIS/DTC frame, setting bit 97 to "0" indicates that the called terminal does not have the
339  capability to accept 300 pels/25.4 mm x 300 lines/25.4 mm or 400 pels/25.4 mm x 400 lines/25.4 mm
340  resolutions for colour/gray-scale images or T.44 Mixed Raster Content (MRC) mask layer.
341 
342  Setting bit 97 to "1" indicates that the called terminal does have the capability to accept
343  300 pels/25.4 mm x 300 lines/25.4 mm or 400 pels/25.4 mm x 400 lines/25.4 mm resolutions for
344  colour/gray-scale images and MRC mask layer. Bit 97 is valid only when bits 68 and 42 or 43
345  (300 pels/25.4 mm x 300 lines/25.4 mm or 400 pels/25.4 mm x 400 lines/25.4 mm) are set to "1".
346 
347  In a DCS frame, setting bit 97 to "0" indicates that the calling terminal does not use
348  300 pels/25.4 mm x 300 lines/25.4 mm or 400 pels/25.4 mm x 400 lines/25.4 mm resolutions
349  for colour/gray-scale images and mask layer.
350 
351  Setting bit 97 to "1" indicates that the calling terminal uses 300 pels/25.4 mm x 300 lines/25.4 mm
352  or 400 pels/25.4 mm x 400 lines/25.4 mm resolutions for colour/gray-scale images and MRC mask layer.
353  Bit 97 is valid only when bits 68 and 42 or 43 (300 pels/25.4 mm x 300 lines/25.4 mm and
354  400 pels/25.4 mm x 400 lines/25.4 mm) are set to "1".
355 
356  In a DIS/DTC frame, combinations of bit 42, bit 43 and bit 97 indicate that the called terminal
357  has higher resolution capabilities as follows:
358 
359  Resolution capabilities (pels/25.4 mm)
360  DIS/DTC Monochrome Colour/gray-scale
361  42 43 97 300 x 300 400 x 400 300 x 300 400 x 400
362  0 0 0 no no no no
363  1 0 0 yes no no no
364  0 1 0 no yes no no
365  1 1 0 yes yes no no
366  0 0 1 (invalid)
367  1 0 1 yes no yes no
368  0 1 1 no yes no yes
369  1 1 1 yes yes yes yes
370  "yes" means that the called terminal has the corresponding capability.
371  "no" means that the called terminal does not have the corresponding capability. */
372 #define T30_DIS_BIT_COLOUR_GRAY_300_300_400_400_CAPABLE 97
373 #define T30_DCS_BIT_COLOUR_GRAY_300_300_400_400 97
374 
375 /* In a DIS/DTC frame, setting bit 98 to "0" indicates that the called terminal does not have the
376  capability to accept 100 pels/25.4 mm x 100 lines/25.4 mm spatial resolution for colour or gray-scale
377  images. Setting bit 98 to "1" indicates that the called terminal does have the capability to accept
378  100 pels/25.4 mm x 100 lines/25.4 mm spatial resolution for colour or gray-scale images. Bit 98 is valid
379  only when bit 68 is set to "1". In a DCS frame, setting bit 98 to "0" indicates that the calling terminal does
380  not use 100 pels/25.4 mm x 100 lines/25.4 mm spatial resolution for colour or gray-scale images. Setting
381  bit 98 to "1" indicates that the calling terminal uses 100 pels/25.4 mm x 100 lines/25.4 mm spatial
382  resolution for colour or gray-scale images. */
383 #define T30_DIS_BIT_COLOUR_GRAY_100_100_CAPABLE 98
384 #define T30_DCS_BIT_COLOUR_GRAY_100_100 98
385 
386 #define T30_DIS_BIT_SIMPLE_PHASE_C_BFT_NEGOTIATIONS_CAPABLE 99
387 #define T30_DCS_BIT_SIMPLE_PHASE_C_BFT_NEGOTIATIONS_CAPABLE 99
388 
389 #define T30_DIS_BIT_EXTENDED_BFT_NEGOTIATIONS_CAPABLE 100
390 /* Bit 100 in a DCS should be set to zero */
391 
392 /* To provide an error recovery mechanism, when PWD/SEP/SUB/SID/PSA/IRA/ISP frames are sent with DCS or DTC,
393  bits 49, 102 and 50 in DCS or bits 47, 101, 50 and 35 in DTC shall be set to "1" with the following
394  meaning:
395 
396  Bit DIS DTC DCS
397  35 Polled sub-address capability Polled sub-address transmission Not allowed - set to "0"
398  47 Selective polling capability Selective polling transmission Not allowed - set to "0"
399  49 Sub-addressing capability Not allowed (Set to "0") Sub-addressing transmission
400  50 Password Password transmission Sender identification transmission
401  101 Internet selective polling address capability Internet selective polling address transmission Not allowed - set to "0"
402  102 Internet routing address capability Not allowed (Set to "0") Internet routing address transmission
403 
404  Terminals conforming to the 1993 version of T.30 may set the above bits to "0" even though PWD/SEP/SUB
405  frames are transmitted. */
406 #define T30_DIS_BIT_INTERNET_SELECTIVE_POLLING_ADDRESS 101
407 /* Bit 101 in a DCS should be set to zero */
408 
409 #define T30_DIS_BIT_INTERNET_ROUTING_ADDRESS 102
410 #define T30_DCS_BIT_INTERNET_ROUTING_ADDRESS_TRANSMISSION 102
411 
412 /* Bit 103 in a DIS, DTC, or DCS is "reserved", so it should be set to zero */
413 
414 /* Bit 104 is an extension bit */
415 
416 #define T30_DIS_BIT_600_600_CAPABLE 105
417 #define T30_DCS_BIT_600_600 105
418 
419 #define T30_DIS_BIT_1200_1200_CAPABLE 106
420 #define T30_DCS_BIT_1200_1200 106
421 
422 #define T30_DIS_BIT_300_600_CAPABLE 107
423 #define T30_DCS_BIT_300_600 107
424 
425 #define T30_DIS_BIT_400_800_CAPABLE 108
426 #define T30_DCS_BIT_400_800 108
427 
428 #define T30_DIS_BIT_600_1200_CAPABLE 109
429 #define T30_DCS_BIT_600_1200 109
430 
431 /* This requires that bit 105 is also set */
432 #define T30_DIS_BIT_COLOUR_GRAY_600_600_CAPABLE 110
433 #define T30_DCS_BIT_COLOUR_GRAY_600_600 110
434 
435 /* This requires that bit 106 is also set */
436 #define T30_DIS_BIT_COLOUR_GRAY_1200_1200_CAPABLE 111
437 #define T30_DCS_BIT_COLOUR_GRAY_1200_1200 111
438 
439 /* Bit 112 is an extension bit */
440 
441 #define T30_DIS_BIT_ALTERNATE_DOUBLE_SIDED_CAPABLE 113
442 #define T30_DCS_BIT_ALTERNATE_DOUBLE_SIDED_CAPABLE 113
443 
444 #define T30_DIS_BIT_CONTINUOUS_DOUBLE_SIDED_CAPABLE 114
445 #define T30_DCS_BIT_CONTINUOUS_DOUBLE_SIDED_CAPABLE 114
446 
447 #define T30_DIS_BIT_BLACK_AND_WHITE_MRC 115
448 /* Bit 115 in a DCS should be set to zero */
449 
450 #define T30_DIS_BIT_T45_CAPABLE 116
451 #define T30_DCS_BIT_T45_MODE 116
452 
453 /* Bits 117 to 118 specify the shared memory capability */
454 
455 /* This bit defines the available colour space, when bit 92, 93 or 94 is set to "1".
456  Available colour space for all combinations of bits 92, 93, 94 and 119 are shown in the following table.
457  It should be noted that terminals which conform to the 2003 and earlier versions of this Recommendation
458  will send LAB with "1" in bit 92, 93 or 94 even if bit 119 is set to "1".
459 
460  Available colour space for DIS/DTC bits 92, 93, 94 and 119
461 
462  92 93 94 119 Mode of T.44 Available colour space
463  0 0 0 x Not available -
464  1 0 0 0 Mode 1 LAB only
465  1 0 0 1 Mode 1 YCC only
466  x 1 x 0 Mode 2 or higher LAB only
467  x x 1 0 Mode 2 or higher LAB only
468  x 1 x 1 Mode 2 or higher LAB and YCC
469  x x 1 1 Mode 2 or higher LAB and YCC
470 
471  Colour space for DCS bits 92, 93, 94 and 119
472 
473  92 93 94 119 Mode of T.44 Colour space
474  0 0 0 x* Not available -
475  1 0 0 0 Mode 1 LAB
476  1 0 0 1 Mode 1 YCC
477  x 1 x 0 Mode 2 or higher LAB
478  x x 1 0 Mode 2 or higher LAB
479  x 1 x 1 Mode 2 or higher YCC or mixing of YCC and LAB
480  x x 1 1 Mode 2 or higher YCC or mixing of YCC and LAB */
481 #define T30_DIS_BIT_T44_COLOUR_SPACE 119
482 #define T30_DCS_BIT_T44_COLOUR_SPACE 119
483 
484 /* Bit 120 is an extension bit */
485 
486 /* Can only be set in the communication through the T.38 gateway, to cope with delay of network.
487  T.x timer (12+-1s) should be used after emitting RNR or TNR. However, after receiving
488  PPS signal in ECM mode, T.5 timer should be used. */
489 #define T30_DIS_BIT_T38_FLOW_CONTROL_CAPABLE 121
490 #define T30_DCS_BIT_T38_FLOW_CONTROL_CAPABLE 121
491 
492 /* For resolutions greater than 200 lines/25.4 mm, 4.2.1.1/T.4 specifies the use of specific K
493  factors for each standardized vertical resolution. To ensure backward compatibility with earlier
494  versions of ITU-T Rec. T.4, bit 122 indicates when such K factors are being used. */
495 #define T30_DIS_BIT_K_GREATER_THAN_4 122
496 
497 /* This bit should be set to "1" if the fax device is an Internet-Aware Fax Device as defined in
498  ITU-T Rec. T.38 and if it is not affected by the data signal rate indicated by the DIS and DTC
499  signals when communicating with another Internet-Aware Fax Device operating in T.38 mode. This
500  bit shall not be used in GSTN mode. */
501 #define T30_DIS_BIT_T38_FAX_CAPABLE 123
502 /* This bit should be set to "1" if the fax device elects to operate in an Internet-Aware Fax mode
503  as defined in ITU-T Rec. T.38 in response to a device which has set the related DIS bit to "1".
504  When this bit is set to "1", the data signal rate of the modem (bits 11-14) should be set to "0". */
505 #define T30_DCS_BIT_T38_FAX_MODE 123
506 
507 /* Bits 124 to 126 specify the T.89 applications profile. */
508 #define T30_DIS_BIT_T88_CAPABILITY_1 124
509 #define T30_DCS_BIT_T88_MODE_1 124
510 #define T30_DIS_BIT_T88_CAPABILITY_2 125
511 #define T30_DCS_BIT_T88_MODE_2 125
512 #define T30_DIS_BIT_T88_CAPABILITY_3 126
513 #define T30_DCS_BIT_T88_MODE_3 126
514 
515 /* When either bit of 31, 36, 38, 51, 53, 54, 55, 57, 59, 60, 62, 65, 68, 78, 79, 115, 116 and 127 is
516  set to "1", ECM must be used. If the value of bit field 92 to 94 is non-zero, then ECM must be used.
517 
518  Annex K describes the optional continuous-tone colour and gray scale images mode
519  (sYCC-JPEG mode) protocol. When bit 127 in DIS/DTC frame is set to "1", the called terminal has the
520  capability to accept sYCC-JPEG mode. This is defined with complete independent in the colour space
521  CIELAB. In addition, when bit 127 in DCS frame is set to "1", ECM must be used and bits 15, 17, 18,
522  19, 20, 41, 42, 43, 45, 46, 68, 69, 71, 73, 74, 75, 76, 77, 97, 98, 105, 106, 107, 108,
523  109, 110 and 111 in DCS frame are "Don't care", and should be set to "0". In the case of
524  transmission of multiple images, a post message signal PPS-MPS between pages, PPS-NULL between
525  partial pages and PPS-EOP following the last page should be sent from the calling terminal to the
526  called terminal. */
527 #define T30_DIS_BIT_SYCC_T81_CAPABLE 127
528 #define T30_DCS_BIT_SYCC_T81_MODE 127
529 
530 #endif
531 /*- End of file ------------------------------------------------------------*/