Changeset 8243 in josm for trunk/src/com/drew/metadata/exif/ExifIFD0Directory.java
- Timestamp:
- 2015-04-21T00:42:50+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/ExifIFD0Directory.java
r8132 r8243 23 23 24 24 import com.drew.lang.annotations.NotNull; 25 import com.drew.metadata.Directory;26 25 27 26 import java.util.HashMap; … … 32 31 * @author Drew Noakes https://drewnoakes.com 33 32 */ 34 public class ExifIFD0Directory extends Directory 33 public class ExifIFD0Directory extends ExifDirectoryBase 35 34 { 36 public static final int TAG_IMAGE_DESCRIPTION = 0x010E;37 public static final int TAG_MAKE = 0x010F;38 public static final int TAG_MODEL = 0x0110;39 public static final int TAG_ORIENTATION = 0x0112;40 public static final int TAG_X_RESOLUTION = 0x011A;41 public static final int TAG_Y_RESOLUTION = 0x011B;42 public static final int TAG_RESOLUTION_UNIT = 0x0128;43 public static final int TAG_SOFTWARE = 0x0131;44 public static final int TAG_DATETIME = 0x0132;45 public static final int TAG_ARTIST = 0x013B;46 public static final int TAG_WHITE_POINT = 0x013E;47 public static final int TAG_PRIMARY_CHROMATICITIES = 0x013F;48 49 public static final int TAG_YCBCR_COEFFICIENTS = 0x0211;50 public static final int TAG_YCBCR_POSITIONING = 0x0213;51 public static final int TAG_REFERENCE_BLACK_WHITE = 0x0214;52 53 54 35 /** This tag is a pointer to the Exif SubIFD. */ 55 36 public static final int TAG_EXIF_SUB_IFD_OFFSET = 0x8769; … … 58 39 public static final int TAG_GPS_INFO_OFFSET = 0x8825; 59 40 60 public static final int TAG_COPYRIGHT = 0x8298; 61 62 /** Non-standard, but in use. */ 63 public static final int TAG_TIME_ZONE_OFFSET = 0x882a; 64 65 /** The image title, as used by Windows XP. */ 66 public static final int TAG_WIN_TITLE = 0x9C9B; 67 /** The image comment, as used by Windows XP. */ 68 public static final int TAG_WIN_COMMENT = 0x9C9C; 69 /** The image author, as used by Windows XP (called Artist in the Windows shell). */ 70 public static final int TAG_WIN_AUTHOR = 0x9C9D; 71 /** The image keywords, as used by Windows XP. */ 72 public static final int TAG_WIN_KEYWORDS = 0x9C9E; 73 /** The image subject, as used by Windows XP. */ 74 public static final int TAG_WIN_SUBJECT = 0x9C9F; 41 public ExifIFD0Directory() 42 { 43 this.setDescriptor(new ExifIFD0Descriptor(this)); 44 } 75 45 76 46 @NotNull … … 79 49 static 80 50 { 81 _tagNameMap.put(TAG_IMAGE_DESCRIPTION, "Image Description"); 82 _tagNameMap.put(TAG_MAKE, "Make"); 83 _tagNameMap.put(TAG_MODEL, "Model"); 84 _tagNameMap.put(TAG_ORIENTATION, "Orientation"); 85 _tagNameMap.put(TAG_X_RESOLUTION, "X Resolution"); 86 _tagNameMap.put(TAG_Y_RESOLUTION, "Y Resolution"); 87 _tagNameMap.put(TAG_RESOLUTION_UNIT, "Resolution Unit"); 88 _tagNameMap.put(TAG_SOFTWARE, "Software"); 89 _tagNameMap.put(TAG_DATETIME, "Date/Time"); 90 _tagNameMap.put(TAG_ARTIST, "Artist"); 91 _tagNameMap.put(TAG_WHITE_POINT, "White Point"); 92 _tagNameMap.put(TAG_PRIMARY_CHROMATICITIES, "Primary Chromaticities"); 93 _tagNameMap.put(TAG_YCBCR_COEFFICIENTS, "YCbCr Coefficients"); 94 _tagNameMap.put(TAG_YCBCR_POSITIONING, "YCbCr Positioning"); 95 _tagNameMap.put(TAG_REFERENCE_BLACK_WHITE, "Reference Black/White"); 96 97 _tagNameMap.put(TAG_COPYRIGHT, "Copyright"); 98 99 _tagNameMap.put(TAG_TIME_ZONE_OFFSET, "Time Zone Offset"); 100 101 _tagNameMap.put(TAG_WIN_AUTHOR, "Windows XP Author"); 102 _tagNameMap.put(TAG_WIN_COMMENT, "Windows XP Comment"); 103 _tagNameMap.put(TAG_WIN_KEYWORDS, "Windows XP Keywords"); 104 _tagNameMap.put(TAG_WIN_SUBJECT, "Windows XP Subject"); 105 _tagNameMap.put(TAG_WIN_TITLE, "Windows XP Title"); 106 } 107 108 public ExifIFD0Directory() 109 { 110 this.setDescriptor(new ExifIFD0Descriptor(this)); 51 addExifTagNames(_tagNameMap); 111 52 } 112 53
Note:
See TracChangeset
for help on using the changeset viewer.
