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 */
60 public final class BaselineTIFFTagSet extends TIFFTagSet {
61
62 private static BaselineTIFFTagSet theInstance = null;
63
64 // Tags from TIFF 6.0 specification
65
66 /**
67 * Constant specifying the "NewSubfileType" tag.
68 *
69 * @see #NEW_SUBFILE_TYPE_REDUCED_RESOLUTION
70 * @see #NEW_SUBFILE_TYPE_SINGLE_PAGE
71 * @see #NEW_SUBFILE_TYPE_TRANSPARENCY
72 */
73 public static final int TAG_NEW_SUBFILE_TYPE = 254;
74
75 /**
76 * A mask to be used with the "NewSubfileType" tag.
77 *
78 * @see #TAG_NEW_SUBFILE_TYPE
183 public static final int COMPRESSION_CCITT_T_6 = 4;
184
185 /**
186 * A value to be used with the "Compression" tag.
187 *
188 * @see #TAG_COMPRESSION
189 */
190 public static final int COMPRESSION_LZW = 5;
191
192 /**
193 * A value to be used with the "Compression" tag.
194 *
195 * @see #TAG_COMPRESSION
196 */
197 public static final int COMPRESSION_OLD_JPEG = 6;
198
199 /**
200 * A value to be used with the "Compression" tag.
201 *
202 * @see #TAG_COMPRESSION
203 */
204 public static final int COMPRESSION_JPEG = 7;
205
206 /**
207 * A value to be used with the "Compression" tag.
208 *
209 * @see #TAG_COMPRESSION
210 */
211 public static final int COMPRESSION_ZLIB = 8;
212
213 /**
214 * A value to be used with the "Compression" tag.
215 *
216 * @see #TAG_COMPRESSION
217 */
218 public static final int COMPRESSION_PACKBITS = 32773;
219
220 /**
221 * A value to be used with the "Compression" tag.
222 *
223 * @see #TAG_COMPRESSION
224 * @see <a href="https://tools.ietf.org/html/rfc1951">DEFLATE specification</a>
225 */
226 public static final int COMPRESSION_DEFLATE = 32946;
227
228 /**
229 * Constant specifying the "PhotometricInterpretation" tag.
230 *
231 * @see #PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO
232 * @see #PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO
233 * @see #PHOTOMETRIC_INTERPRETATION_RGB
234 * @see #PHOTOMETRIC_INTERPRETATION_PALETTE_COLOR
235 * @see #PHOTOMETRIC_INTERPRETATION_TRANSPARENCY_MASK
236 * @see #PHOTOMETRIC_INTERPRETATION_Y_CB_CR
237 * @see #PHOTOMETRIC_INTERPRETATION_CIELAB
238 * @see #PHOTOMETRIC_INTERPRETATION_ICCLAB
239 */
240 public static final int TAG_PHOTOMETRIC_INTERPRETATION = 262;
241
242 /**
243 * A value to be used with the "PhotometricInterpretation" tag.
244 *
282 public static final int PHOTOMETRIC_INTERPRETATION_CMYK = 5;
283
284 /**
285 * A value to be used with the "PhotometricInterpretation" tag.
286 *
287 * @see #TAG_PHOTOMETRIC_INTERPRETATION
288 */
289 public static final int PHOTOMETRIC_INTERPRETATION_Y_CB_CR = 6;
290
291 /**
292 * A value to be used with the "PhotometricInterpretation" tag.
293 *
294 * @see #TAG_PHOTOMETRIC_INTERPRETATION
295 */
296 public static final int PHOTOMETRIC_INTERPRETATION_CIELAB = 8;
297
298 /**
299 * A value to be used with the "PhotometricInterpretation" tag.
300 *
301 * @see #TAG_PHOTOMETRIC_INTERPRETATION
302 */
303 public static final int PHOTOMETRIC_INTERPRETATION_ICCLAB = 9;
304
305 /**
306 * Constant specifying the "Threshholding" tag.
307 *
308 * @see #THRESHHOLDING_NONE
309 * @see #THRESHHOLDING_ORDERED_DITHER
310 * @see #THRESHHOLDING_RANDOMIZED_DITHER
311 */
312 public static final int TAG_THRESHHOLDING = 263;
313
314 /**
315 * A value to be used with the "Thresholding" tag.
316 *
317 * @see #TAG_THRESHHOLDING
318 */
319 public static final int THRESHHOLDING_NONE = 1;
320
321 /**
876 public static final int SAMPLE_FORMAT_UNDEFINED = 4;
877
878 /**
879 * Constant specifying the "SMinSampleValue" tag.
880 */
881 public static final int TAG_S_MIN_SAMPLE_VALUE = 340;
882
883 /**
884 * Constant specifying the "SMaxSampleValue" tag.
885 */
886 public static final int TAG_S_MAX_SAMPLE_VALUE = 341;
887
888 /**
889 * Constant specifying the "TransferRange" tag.
890 */
891 public static final int TAG_TRANSFER_RANGE = 342;
892
893 /**
894 * Constant specifying the "JPEGTables" tag.
895 *
896 * @see <a href="ftp://ftp.sgi.com/graphics/tiff/TTN2.draft.txt">JPEG-in-TIFF compression</a>
897 */
898 public static final int TAG_JPEG_TABLES = 347;
899
900 /**
901 * Constant specifying the "JPEGProc" tag.
902 */
903 public static final int TAG_JPEG_PROC = 512;
904
905 /**
906 * A value to be used with the "JPEGProc" tag.
907 *
908 * @see #TAG_JPEG_PROC
909 */
910 public static final int JPEG_PROC_BASELINE = 1;
911
912 /**
913 * A value to be used with the "JPEGProc" tag.
914 *
915 * @see #TAG_JPEG_PROC
|