Ignore:
Timestamp:
2015-04-21T00:42:50+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #11359 - update to metadata-extractor 2.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/drew/metadata/exif/ExifThumbnailDirectory.java

    r8132 r8243  
    2424import com.drew.lang.annotations.NotNull;
    2525import com.drew.lang.annotations.Nullable;
    26 import com.drew.metadata.Directory;
    2726import com.drew.metadata.MetadataException;
    2827
     
    3635 * @author Drew Noakes https://drewnoakes.com
    3736 */
    38 public class ExifThumbnailDirectory extends Directory
     37public class ExifThumbnailDirectory extends ExifDirectoryBase
    3938{
    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.
    4641     */
    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;
    4847
    4948    /**
     
    7978    public static final int TAG_THUMBNAIL_COMPRESSION = 0x0103;
    8079
    81     /**
    82      * Shows the color space of the image data components.
    83      * 0 = WhiteIsZero
    84      * 1 = BlackIsZero
    85      * 2 = RGB
    86      * 3 = RGB Palette
    87      * 4 = Transparency Mask
    88      * 5 = CMYK
    89      * 6 = YCbCr
    90      * 8 = CIELab
    91      * 9 = ICCLab
    92      * 10 = ITULab
    93      * 32803 = Color Filter Array
    94      * 32844 = Pixar LogL
    95      * 32845 = Pixar LogLuv
    96      * 34892 = Linear Raw
    97      */
    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 of
    119      * YCbCr data. If value is '1', Y/Cb/Cr value is chunky format, contiguous for
    120      * each subsampling pixel. If value is '2', Y/Cb/Cr value is separated and
    121      * 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 
    14080    @NotNull
    14181    protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
    14282
    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
    14787        _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");
    15888        _tagNameMap.put(TAG_THUMBNAIL_OFFSET, "Thumbnail Offset");
    15989        _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");
    16490    }
    16591
Note: See TracChangeset for help on using the changeset viewer.