Changeset 8243 in josm for trunk/src/com/drew/metadata/exif/ExifThumbnailDirectory.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/ExifThumbnailDirectory.java
r8132 r8243 24 24 import com.drew.lang.annotations.NotNull; 25 25 import com.drew.lang.annotations.Nullable; 26 import com.drew.metadata.Directory;27 26 import com.drew.metadata.MetadataException; 28 27 … … 36 35 * @author Drew Noakes https://drewnoakes.com 37 36 */ 38 public class ExifThumbnailDirectory extends Directory 37 public class ExifThumbnailDirectory extends ExifDirectoryBase 39 38 { 40 public static final int TAG_THUMBNAIL_IMAGE_WIDTH = 0x0100; 41 public static final int TAG_THUMBNAIL_IMAGE_HEIGHT = 0x0101; 42 43 /** 44 * When image format is no compression, this value shows the number of bits 45 * per component for each pixel. Usually this value is '8,8,8'. 39 /** 40 * The offset to thumbnail image bytes. 46 41 */ 47 public static final int TAG_BITS_PER_SAMPLE = 0x0102; 42 public static final int TAG_THUMBNAIL_OFFSET = 0x0201; 43 /** 44 * The size of the thumbnail image data in bytes. 45 */ 46 public static final int TAG_THUMBNAIL_LENGTH = 0x0202; 48 47 49 48 /** … … 79 78 public static final int TAG_THUMBNAIL_COMPRESSION = 0x0103; 80 79 81 /**82 * Shows the color space of the image data components.83 * 0 = WhiteIsZero84 * 1 = BlackIsZero85 * 2 = RGB86 * 3 = RGB Palette87 * 4 = Transparency Mask88 * 5 = CMYK89 * 6 = YCbCr90 * 8 = CIELab91 * 9 = ICCLab92 * 10 = ITULab93 * 32803 = Color Filter Array94 * 32844 = Pixar LogL95 * 32845 = Pixar LogLuv96 * 34892 = Linear Raw97 */98 public static final int TAG_PHOTOMETRIC_INTERPRETATION = 0x0106;99 100 /**101 * The position in the file of raster data.102 */103 public static final int TAG_STRIP_OFFSETS = 0x0111;104 public static final int TAG_ORIENTATION = 0x0112;105 /**106 * Each pixel is composed of this many samples.107 */108 public static final int TAG_SAMPLES_PER_PIXEL = 0x0115;109 /**110 * The raster is codified by a single block of data holding this many rows.111 */112 public static final int TAG_ROWS_PER_STRIP = 0x116;113 /**114 * The size of the raster data in bytes.115 */116 public static final int TAG_STRIP_BYTE_COUNTS = 0x0117;117 /**118 * When image format is no compression YCbCr, this value shows byte aligns of119 * YCbCr data. If value is '1', Y/Cb/Cr value is chunky format, contiguous for120 * each subsampling pixel. If value is '2', Y/Cb/Cr value is separated and121 * stored to Y plane/Cb plane/Cr plane format.122 */123 public static final int TAG_X_RESOLUTION = 0x011A;124 public static final int TAG_Y_RESOLUTION = 0x011B;125 public static final int TAG_PLANAR_CONFIGURATION = 0x011C;126 public static final int TAG_RESOLUTION_UNIT = 0x0128;127 /**128 * The offset to thumbnail image bytes.129 */130 public static final int TAG_THUMBNAIL_OFFSET = 0x0201;131 /**132 * The size of the thumbnail image data in bytes.133 */134 public static final int TAG_THUMBNAIL_LENGTH = 0x0202;135 public static final int TAG_YCBCR_COEFFICIENTS = 0x0211;136 public static final int TAG_YCBCR_SUBSAMPLING = 0x0212;137 public static final int TAG_YCBCR_POSITIONING = 0x0213;138 public static final int TAG_REFERENCE_BLACK_WHITE = 0x0214;139 140 80 @NotNull 141 81 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>(); 142 82 143 static {144 _tagNameMap.put(TAG_THUMBNAIL_IMAGE_WIDTH, "Thumbnail Image Width");145 _tagNameMap .put(TAG_THUMBNAIL_IMAGE_HEIGHT, "Thumbnail Image Height");146 _tagNameMap.put(TAG_BITS_PER_SAMPLE, "Bits Per Sample"); 83 static 84 { 85 addExifTagNames(_tagNameMap); 86 147 87 _tagNameMap.put(TAG_THUMBNAIL_COMPRESSION, "Thumbnail Compression"); 148 _tagNameMap.put(TAG_PHOTOMETRIC_INTERPRETATION, "Photometric Interpretation");149 _tagNameMap.put(TAG_STRIP_OFFSETS, "Strip Offsets");150 _tagNameMap.put(TAG_ORIENTATION, "Orientation");151 _tagNameMap.put(TAG_SAMPLES_PER_PIXEL, "Samples Per Pixel");152 _tagNameMap.put(TAG_ROWS_PER_STRIP, "Rows Per Strip");153 _tagNameMap.put(TAG_STRIP_BYTE_COUNTS, "Strip Byte Counts");154 _tagNameMap.put(TAG_X_RESOLUTION, "X Resolution");155 _tagNameMap.put(TAG_Y_RESOLUTION, "Y Resolution");156 _tagNameMap.put(TAG_PLANAR_CONFIGURATION, "Planar Configuration");157 _tagNameMap.put(TAG_RESOLUTION_UNIT, "Resolution Unit");158 88 _tagNameMap.put(TAG_THUMBNAIL_OFFSET, "Thumbnail Offset"); 159 89 _tagNameMap.put(TAG_THUMBNAIL_LENGTH, "Thumbnail Length"); 160 _tagNameMap.put(TAG_YCBCR_COEFFICIENTS, "YCbCr Coefficients");161 _tagNameMap.put(TAG_YCBCR_SUBSAMPLING, "YCbCr Sub-Sampling");162 _tagNameMap.put(TAG_YCBCR_POSITIONING, "YCbCr Positioning");163 _tagNameMap.put(TAG_REFERENCE_BLACK_WHITE, "Reference Black/White");164 90 } 165 91
Note:
See TracChangeset
for help on using the changeset viewer.
