mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-02 11:05:29 -04:00
TMI-TIFF: Added more constants + debugging code for field names + suppressed unwanted warnings.
This commit is contained in:
parent
a0d4973d7f
commit
cc604e650b
@ -35,6 +35,7 @@ package com.twelvemonkeys.imageio.metadata.exif;
|
||||
* @author last modified by $Author: haraldk$
|
||||
* @version $Id: EXIF.java,v 1.0 Nov 11, 2009 5:36:04 PM haraldk Exp$
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public interface EXIF {
|
||||
// See http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html
|
||||
int TAG_EXPOSURE_TIME = 33434;
|
||||
|
@ -209,6 +209,28 @@ final class EXIFEntry extends AbstractEntry {
|
||||
return "PixelYDimension";
|
||||
|
||||
// TODO: More field names
|
||||
/*
|
||||
default:
|
||||
Class[] classes = new Class[] {TIFF.class, EXIF.class};
|
||||
|
||||
for (Class cl : classes) {
|
||||
Field[] fields = cl.getFields();
|
||||
|
||||
for (Field field : fields) {
|
||||
try {
|
||||
if (field.getType() == Integer.TYPE && field.getName().startsWith("TAG_")) {
|
||||
if (field.get(null).equals(getIdentifier())) {
|
||||
return StringUtil.lispToCamel(field.getName().substring(4).replace("_", "-").toLowerCase(), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IllegalAccessException e) {
|
||||
// Should never happen, but in case, abort
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
return null;
|
||||
|
@ -35,6 +35,7 @@ package com.twelvemonkeys.imageio.metadata.exif;
|
||||
* @author last modified by $Author: haraldk$
|
||||
* @version $Id: TIFF.java,v 1.0 Nov 15, 2009 3:02:24 PM haraldk Exp$
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public interface TIFF {
|
||||
int TIFF_MAGIC = 42;
|
||||
|
||||
@ -98,6 +99,7 @@ public interface TIFF {
|
||||
int TAG_BITS_PER_SAMPLE = 258;
|
||||
int TAG_COMPRESSION = 259;
|
||||
int TAG_PHOTOMETRIC_INTERPRETATION = 262;
|
||||
int TAG_FILL_ORDER = 266;
|
||||
int TAG_ORIENTATION = 274;
|
||||
int TAG_SAMPLES_PER_PIXEL = 277;
|
||||
int TAG_PLANAR_CONFIGURATION = 284;
|
||||
@ -135,6 +137,7 @@ public interface TIFF {
|
||||
int TAG_IMAGE_DESCRIPTION = 270;
|
||||
int TAG_MAKE = 271;
|
||||
int TAG_MODEL = 272;
|
||||
int TAG_PAGE_NUMBER = 297;
|
||||
int TAG_SOFTWARE = 305;
|
||||
int TAG_ARTIST = 315;
|
||||
int TAG_HOST_COMPUTER = 316;
|
||||
@ -168,7 +171,7 @@ public interface TIFF {
|
||||
|
||||
// "Old-style" JPEG (Obsolete) DO NOT WRITE!
|
||||
int TAG_OLD_JPEG_PROC = 512;
|
||||
int TAG_OLD_JPEG_QTABLES = 519;
|
||||
int TAG_OLD_JPEG_DCTABLES = 520;
|
||||
int TAG_OLD_JPEG_ACTABLES = 521;
|
||||
int TAG_OLD_JPEG_Q_TABLES = 519;
|
||||
int TAG_OLD_JPEG_DC_TABLES = 520;
|
||||
int TAG_OLD_JPEG_AC_TABLES = 521;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user