Changeset 10862 in josm for trunk/src/com/drew/metadata/exif/ExifThumbnailDescriptor.java
- Timestamp:
- 2016-08-20T20:58:03+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/ExifThumbnailDescriptor.java
r8243 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 22 22 package com.drew.metadata.exif; 23 23 24 import static com.drew.metadata.exif.ExifThumbnailDirectory.TAG_THUMBNAIL_LENGTH; 25 import static com.drew.metadata.exif.ExifThumbnailDirectory.TAG_THUMBNAIL_OFFSET; 26 24 27 import com.drew.lang.annotations.NotNull; 25 28 import com.drew.lang.annotations.Nullable; 26 27 import static com.drew.metadata.exif.ExifThumbnailDirectory.*;28 29 29 30 /** … … 48 49 case TAG_THUMBNAIL_LENGTH: 49 50 return getThumbnailLengthDescription(); 50 case TAG_THUMBNAIL_COMPRESSION:51 return getCompressionDescription();52 51 default: 53 52 return super.getDescription(tagType); 54 }55 }56 57 @Nullable58 public String getCompressionDescription()59 {60 Integer value = _directory.getInteger(TAG_THUMBNAIL_COMPRESSION);61 if (value == null)62 return null;63 switch (value) {64 case 1: return "Uncompressed";65 case 2: return "CCITT 1D";66 case 3: return "T4/Group 3 Fax";67 case 4: return "T6/Group 4 Fax";68 case 5: return "LZW";69 case 6: return "JPEG (old-style)";70 case 7: return "JPEG";71 case 8: return "Adobe Deflate";72 case 9: return "JBIG B&W";73 case 10: return "JBIG Color";74 case 32766: return "Next";75 case 32771: return "CCIRLEW";76 case 32773: return "PackBits";77 case 32809: return "Thunderscan";78 case 32895: return "IT8CTPAD";79 case 32896: return "IT8LW";80 case 32897: return "IT8MP";81 case 32898: return "IT8BL";82 case 32908: return "PixarFilm";83 case 32909: return "PixarLog";84 case 32946: return "Deflate";85 case 32947: return "DCS";86 case 32661: return "JBIG";87 case 32676: return "SGILog";88 case 32677: return "SGILog24";89 case 32712: return "JPEG 2000";90 case 32713: return "Nikon NEF Compressed";91 default:92 return "Unknown compression";93 53 } 94 54 }
Note:
See TracChangeset
for help on using the changeset viewer.
