39 *
40 * <p> The non-baseline values of baseline tags included in this class are
41 * <ul>
42 * <li>{@link #TAG_COMPRESSION Compression} tag values:
43 * <ul>
44 * <li>{@link #COMPRESSION_JPEG JPEG-in-TIFF compression}</li>
45 * <li>{@link #COMPRESSION_ZLIB Zlib-in-TIFF compression}</li>
46 * <li>{@link #COMPRESSION_DEFLATE Deflate compression}</li>
47 * </ul>
48 * </li>
49 * <li>{@link #TAG_PHOTOMETRIC_INTERPRETATION PhotometricInterpretation}
50 * tag values:
51 * <ul>
52 * <li>{@link #PHOTOMETRIC_INTERPRETATION_ICCLAB ICCLAB
53 * photometric interpretation}</li>
54 * </ul>
55 * </li>
56 * </ul>
57 *
58 * @since 9
59 * @see <a href="http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf"> TIFF 6.0 Specification</a>
60 */
61 public final class BaselineTIFFTagSet extends TIFFTagSet {
62
63 private static BaselineTIFFTagSet theInstance = null;
64
65 // Tags from TIFF 6.0 specification
66
67 /**
68 * Constant specifying the "NewSubfileType" tag.
69 *
70 * @see #NEW_SUBFILE_TYPE_REDUCED_RESOLUTION
71 * @see #NEW_SUBFILE_TYPE_SINGLE_PAGE
72 * @see #NEW_SUBFILE_TYPE_TRANSPARENCY
73 */
74 public static final int TAG_NEW_SUBFILE_TYPE = 254;
75
76 /**
77 * A mask to be used with the "NewSubfileType" tag.
78 *
79 * @see #TAG_NEW_SUBFILE_TYPE
184 public static final int COMPRESSION_CCITT_T_6 = 4;
185
186 /**
187 * A value to be used with the "Compression" tag.
188 *
189 * @see #TAG_COMPRESSION
190 */
191 public static final int COMPRESSION_LZW = 5;
192
193 /**
194 * A value to be used with the "Compression" tag.
195 *
196 * @see #TAG_COMPRESSION
197 */
198 public static final int COMPRESSION_OLD_JPEG = 6;
199
200 /**
201 * A value to be used with the "Compression" tag.
202 *
203 * @see #TAG_COMPRESSION
204 * @see <a href="http://partners.adobe.com/public/developer/en/tiff/TIFFphotoshop.pdf">TIFF Specification Supplement 2</a>
205 */
206 public static final int COMPRESSION_JPEG = 7;
207
208 /**
209 * A value to be used with the "Compression" tag.
210 *
211 * @see #TAG_COMPRESSION
212 * @see <a href="http://partners.adobe.com/public/developer/en/tiff/TIFFphotoshop.pdf"> TIFF Specification Supplement 2</a>
213 */
214 public static final int COMPRESSION_ZLIB = 8;
215
216 /**
217 * A value to be used with the "Compression" tag.
218 *
219 * @see #TAG_COMPRESSION
220 */
221 public static final int COMPRESSION_PACKBITS = 32773;
222
223 /**
224 * A value to be used with the "Compression" tag.
225 *
226 * @see #TAG_COMPRESSION
227 * @see <a href="https://tools.ietf.org/html/rfc1951">DEFLATE specification</a>
228 * @see <a href="http://partners.adobe.com/public/developer/en/tiff/TIFFphotoshop.pdf"> TIFF Specification Supplement 2</a>
229 */
230 public static final int COMPRESSION_DEFLATE = 32946;
231
232 /**
233 * Constant specifying the "PhotometricInterpretation" tag.
234 *
235 * @see #PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO
236 * @see #PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO
237 * @see #PHOTOMETRIC_INTERPRETATION_RGB
238 * @see #PHOTOMETRIC_INTERPRETATION_PALETTE_COLOR
239 * @see #PHOTOMETRIC_INTERPRETATION_TRANSPARENCY_MASK
240 * @see #PHOTOMETRIC_INTERPRETATION_Y_CB_CR
241 * @see #PHOTOMETRIC_INTERPRETATION_CIELAB
242 * @see #PHOTOMETRIC_INTERPRETATION_ICCLAB
243 */
244 public static final int TAG_PHOTOMETRIC_INTERPRETATION = 262;
245
246 /**
247 * A value to be used with the "PhotometricInterpretation" tag.
248 *
286 public static final int PHOTOMETRIC_INTERPRETATION_CMYK = 5;
287
288 /**
289 * A value to be used with the "PhotometricInterpretation" tag.
290 *
291 * @see #TAG_PHOTOMETRIC_INTERPRETATION
292 */
293 public static final int PHOTOMETRIC_INTERPRETATION_Y_CB_CR = 6;
294
295 /**
296 * A value to be used with the "PhotometricInterpretation" tag.
297 *
298 * @see #TAG_PHOTOMETRIC_INTERPRETATION
299 */
300 public static final int PHOTOMETRIC_INTERPRETATION_CIELAB = 8;
301
302 /**
303 * A value to be used with the "PhotometricInterpretation" tag.
304 *
305 * @see #TAG_PHOTOMETRIC_INTERPRETATION
306 * @see <a href="http://partners.adobe.com/public/developer/en/tiff/TIFFPM6.pdf">TIFF Specification Supplement 1</a>
307 */
308 public static final int PHOTOMETRIC_INTERPRETATION_ICCLAB = 9;
309
310 /**
311 * Constant specifying the "Threshholding" tag.
312 *
313 * @see #THRESHHOLDING_NONE
314 * @see #THRESHHOLDING_ORDERED_DITHER
315 * @see #THRESHHOLDING_RANDOMIZED_DITHER
316 */
317 public static final int TAG_THRESHHOLDING = 263;
318
319 /**
320 * A value to be used with the "Thresholding" tag.
321 *
322 * @see #TAG_THRESHHOLDING
323 */
324 public static final int THRESHHOLDING_NONE = 1;
325
326 /**
881 public static final int SAMPLE_FORMAT_UNDEFINED = 4;
882
883 /**
884 * Constant specifying the "SMinSampleValue" tag.
885 */
886 public static final int TAG_S_MIN_SAMPLE_VALUE = 340;
887
888 /**
889 * Constant specifying the "SMaxSampleValue" tag.
890 */
891 public static final int TAG_S_MAX_SAMPLE_VALUE = 341;
892
893 /**
894 * Constant specifying the "TransferRange" tag.
895 */
896 public static final int TAG_TRANSFER_RANGE = 342;
897
898 /**
899 * Constant specifying the "JPEGTables" tag.
900 *
901 * @see <a href="http://partners.adobe.com/public/developer/en/tiff/TIFFphotoshop.pdf">TIFF Specification Supplement 2</a>
902 * @see <a href="ftp://ftp.sgi.com/graphics/tiff/TTN2.draft.txt">JPEG-in-TIFF compression</a>
903 */
904 public static final int TAG_JPEG_TABLES = 347;
905
906 /**
907 * Constant specifying the "JPEGProc" tag.
908 */
909 public static final int TAG_JPEG_PROC = 512;
910
911 /**
912 * A value to be used with the "JPEGProc" tag.
913 *
914 * @see #TAG_JPEG_PROC
915 */
916 public static final int JPEG_PROC_BASELINE = 1;
917
918 /**
919 * A value to be used with the "JPEGProc" tag.
920 *
921 * @see #TAG_JPEG_PROC
|
39 *
40 * <p> The non-baseline values of baseline tags included in this class are
41 * <ul>
42 * <li>{@link #TAG_COMPRESSION Compression} tag values:
43 * <ul>
44 * <li>{@link #COMPRESSION_JPEG JPEG-in-TIFF compression}</li>
45 * <li>{@link #COMPRESSION_ZLIB Zlib-in-TIFF compression}</li>
46 * <li>{@link #COMPRESSION_DEFLATE Deflate compression}</li>
47 * </ul>
48 * </li>
49 * <li>{@link #TAG_PHOTOMETRIC_INTERPRETATION PhotometricInterpretation}
50 * tag values:
51 * <ul>
52 * <li>{@link #PHOTOMETRIC_INTERPRETATION_ICCLAB ICCLAB
53 * photometric interpretation}</li>
54 * </ul>
55 * </li>
56 * </ul>
57 *
58 * @since 9
59 * @see <a href="https://www.itu.int/itudoc/itu-t/com16/tiff-fx/docs/tiff6.pdf"> TIFF 6.0 Specification</a>
60 */
61 public final class BaselineTIFFTagSet extends TIFFTagSet {
62
63 private static BaselineTIFFTagSet theInstance = null;
64
65 // Tags from TIFF 6.0 specification
66
67 /**
68 * Constant specifying the "NewSubfileType" tag.
69 *
70 * @see #NEW_SUBFILE_TYPE_REDUCED_RESOLUTION
71 * @see #NEW_SUBFILE_TYPE_SINGLE_PAGE
72 * @see #NEW_SUBFILE_TYPE_TRANSPARENCY
73 */
74 public static final int TAG_NEW_SUBFILE_TYPE = 254;
75
76 /**
77 * A mask to be used with the "NewSubfileType" tag.
78 *
79 * @see #TAG_NEW_SUBFILE_TYPE
184 public static final int COMPRESSION_CCITT_T_6 = 4;
185
186 /**
187 * A value to be used with the "Compression" tag.
188 *
189 * @see #TAG_COMPRESSION
190 */
191 public static final int COMPRESSION_LZW = 5;
192
193 /**
194 * A value to be used with the "Compression" tag.
195 *
196 * @see #TAG_COMPRESSION
197 */
198 public static final int COMPRESSION_OLD_JPEG = 6;
199
200 /**
201 * A value to be used with the "Compression" tag.
202 *
203 * @see #TAG_COMPRESSION
204 */
205 public static final int COMPRESSION_JPEG = 7;
206
207 /**
208 * A value to be used with the "Compression" tag.
209 *
210 * @see #TAG_COMPRESSION
211 */
212 public static final int COMPRESSION_ZLIB = 8;
213
214 /**
215 * A value to be used with the "Compression" tag.
216 *
217 * @see #TAG_COMPRESSION
218 */
219 public static final int COMPRESSION_PACKBITS = 32773;
220
221 /**
222 * A value to be used with the "Compression" tag.
223 *
224 * @see #TAG_COMPRESSION
225 * @see <a href="https://tools.ietf.org/html/rfc1951">DEFLATE specification</a>
226 */
227 public static final int COMPRESSION_DEFLATE = 32946;
228
229 /**
230 * Constant specifying the "PhotometricInterpretation" tag.
231 *
232 * @see #PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO
233 * @see #PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO
234 * @see #PHOTOMETRIC_INTERPRETATION_RGB
235 * @see #PHOTOMETRIC_INTERPRETATION_PALETTE_COLOR
236 * @see #PHOTOMETRIC_INTERPRETATION_TRANSPARENCY_MASK
237 * @see #PHOTOMETRIC_INTERPRETATION_Y_CB_CR
238 * @see #PHOTOMETRIC_INTERPRETATION_CIELAB
239 * @see #PHOTOMETRIC_INTERPRETATION_ICCLAB
240 */
241 public static final int TAG_PHOTOMETRIC_INTERPRETATION = 262;
242
243 /**
244 * A value to be used with the "PhotometricInterpretation" tag.
245 *
283 public static final int PHOTOMETRIC_INTERPRETATION_CMYK = 5;
284
285 /**
286 * A value to be used with the "PhotometricInterpretation" tag.
287 *
288 * @see #TAG_PHOTOMETRIC_INTERPRETATION
289 */
290 public static final int PHOTOMETRIC_INTERPRETATION_Y_CB_CR = 6;
291
292 /**
293 * A value to be used with the "PhotometricInterpretation" tag.
294 *
295 * @see #TAG_PHOTOMETRIC_INTERPRETATION
296 */
297 public static final int PHOTOMETRIC_INTERPRETATION_CIELAB = 8;
298
299 /**
300 * A value to be used with the "PhotometricInterpretation" tag.
301 *
302 * @see #TAG_PHOTOMETRIC_INTERPRETATION
303 */
304 public static final int PHOTOMETRIC_INTERPRETATION_ICCLAB = 9;
305
306 /**
307 * Constant specifying the "Threshholding" tag.
308 *
309 * @see #THRESHHOLDING_NONE
310 * @see #THRESHHOLDING_ORDERED_DITHER
311 * @see #THRESHHOLDING_RANDOMIZED_DITHER
312 */
313 public static final int TAG_THRESHHOLDING = 263;
314
315 /**
316 * A value to be used with the "Thresholding" tag.
317 *
318 * @see #TAG_THRESHHOLDING
319 */
320 public static final int THRESHHOLDING_NONE = 1;
321
322 /**
877 public static final int SAMPLE_FORMAT_UNDEFINED = 4;
878
879 /**
880 * Constant specifying the "SMinSampleValue" tag.
881 */
882 public static final int TAG_S_MIN_SAMPLE_VALUE = 340;
883
884 /**
885 * Constant specifying the "SMaxSampleValue" tag.
886 */
887 public static final int TAG_S_MAX_SAMPLE_VALUE = 341;
888
889 /**
890 * Constant specifying the "TransferRange" tag.
891 */
892 public static final int TAG_TRANSFER_RANGE = 342;
893
894 /**
895 * Constant specifying the "JPEGTables" tag.
896 *
897 * @see <a href="ftp://ftp.sgi.com/graphics/tiff/TTN2.draft.txt">JPEG-in-TIFF compression</a>
898 */
899 public static final int TAG_JPEG_TABLES = 347;
900
901 /**
902 * Constant specifying the "JPEGProc" tag.
903 */
904 public static final int TAG_JPEG_PROC = 512;
905
906 /**
907 * A value to be used with the "JPEGProc" tag.
908 *
909 * @see #TAG_JPEG_PROC
910 */
911 public static final int JPEG_PROC_BASELINE = 1;
912
913 /**
914 * A value to be used with the "JPEGProc" tag.
915 *
916 * @see #TAG_JPEG_PROC
|