Changeset 13061 in josm for trunk/src/com/drew/imaging/jpeg
- Timestamp:
- 2017-10-30T22:46:09+01:00 (7 years ago)
- Location:
- trunk/src/com/drew/imaging/jpeg
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/imaging/jpeg/JpegMetadataReader.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 41 41 //import com.drew.metadata.jfxx.JfxxReader; 42 42 import com.drew.metadata.jpeg.JpegCommentReader; 43 import com.drew.metadata.jpeg.JpegDhtReader; 44 import com.drew.metadata.jpeg.JpegDnlReader; 43 45 import com.drew.metadata.jpeg.JpegReader; 44 46 //import com.drew.metadata.photoshop.DuckyReader; … … 63 65 //new PhotoshopReader(), 64 66 //new DuckyReader(), 65 new IptcReader()//, 66 //new AdobeJpegReader() 67 new IptcReader(), 68 //new AdobeJpegReader(), 69 new JpegDhtReader(), 70 new JpegDnlReader() 67 71 ); 68 72 -
trunk/src/com/drew/imaging/jpeg/JpegProcessingException.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/imaging/jpeg/JpegSegmentData.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 52 52 * @param segmentBytes the byte array holding data for the segment being added 53 53 */ 54 @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"}) 54 55 public void addSegment(byte segmentType, @NotNull byte[] segmentBytes) 55 56 { … … 206 207 * @param occurrence the zero-based index of the segment occurrence to remove. 207 208 */ 209 @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"}) 208 210 public void removeSegmentOccurrence(@NotNull JpegSegmentType segmentType, int occurrence) 209 211 { … … 218 220 * @param occurrence the zero-based index of the segment occurrence to remove. 219 221 */ 222 @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"}) 220 223 public void removeSegmentOccurrence(byte segmentType, int occurrence) 221 224 { -
trunk/src/com/drew/imaging/jpeg/JpegSegmentMetadataReader.java
r8243 r13061 13 13 */ 14 14 @NotNull 15 publicIterable<JpegSegmentType> getSegmentTypes();15 Iterable<JpegSegmentType> getSegmentTypes(); 16 16 17 17 /** … … 23 23 * @param segmentType The {@link JpegSegmentType} being read. 24 24 */ 25 publicvoid readJpegSegments(@NotNull final Iterable<byte[]> segments, @NotNull final Metadata metadata, @NotNull final JpegSegmentType segmentType);25 void readJpegSegments(@NotNull final Iterable<byte[]> segments, @NotNull final Metadata metadata, @NotNull final JpegSegmentType segmentType); 26 26 } -
trunk/src/com/drew/imaging/jpeg/JpegSegmentReader.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/imaging/jpeg/JpegSegmentType.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 93 93 DQT((byte)0xDB, false), 94 94 95 /** Define Number of Lines segment identifier. */ 96 DNL((byte)0xDC, false), 97 98 /** Define Restart Interval segment identifier. */ 99 DRI((byte)0xDD, false), 100 101 /** Define Hierarchical Progression segment identifier. */ 102 DHP((byte)0xDE, false), 103 104 /** EXPand reference component(s) segment identifier. */ 105 EXP((byte)0xDF, false), 106 95 107 /** Define Huffman Table segment identifier. */ 96 108 DHT((byte)0xC4, false), 97 109 98 /** Start-of-Frame (0) segment identifier. */ 110 /** Define Arithmetic Coding conditioning segment identifier. */ 111 DAC((byte)0xCC, false), 112 113 /** Start-of-Frame (0) segment identifier for Baseline DCT. */ 99 114 SOF0((byte)0xC0, true), 100 115 101 /** Start-of-Frame (1) segment identifier . */116 /** Start-of-Frame (1) segment identifier for Extended sequential DCT. */ 102 117 SOF1((byte)0xC1, true), 103 118 104 /** Start-of-Frame (2) segment identifier . */119 /** Start-of-Frame (2) segment identifier for Progressive DCT. */ 105 120 SOF2((byte)0xC2, true), 106 121 107 /** Start-of-Frame (3) segment identifier . */122 /** Start-of-Frame (3) segment identifier for Lossless (sequential). */ 108 123 SOF3((byte)0xC3, true), 109 124 … … 111 126 // SOF4((byte)0xC4, true), 112 127 113 /** Start-of-Frame (5) segment identifier . */128 /** Start-of-Frame (5) segment identifier for Differential sequential DCT. */ 114 129 SOF5((byte)0xC5, true), 115 130 116 /** Start-of-Frame (6) segment identifier . */131 /** Start-of-Frame (6) segment identifier for Differential progressive DCT. */ 117 132 SOF6((byte)0xC6, true), 118 133 119 /** Start-of-Frame (7) segment identifier . */134 /** Start-of-Frame (7) segment identifier for Differential lossless (sequential). */ 120 135 SOF7((byte)0xC7, true), 121 136 122 /** Start-of-Frame (8) segment identifier. */123 SOF8((byte)0xC8, true),137 /** Reserved for JPEG extensions. */ 138 JPG((byte)0xC8, true), 124 139 125 /** Start-of-Frame (9) segment identifier . */140 /** Start-of-Frame (9) segment identifier for Extended sequential DCT. */ 126 141 SOF9((byte)0xC9, true), 127 142 128 /** Start-of-Frame (10) segment identifier . */143 /** Start-of-Frame (10) segment identifier for Progressive DCT. */ 129 144 SOF10((byte)0xCA, true), 130 145 131 /** Start-of-Frame (11) segment identifier . */146 /** Start-of-Frame (11) segment identifier for Lossless (sequential). */ 132 147 SOF11((byte)0xCB, true), 133 148 … … 135 150 // SOF12((byte)0xCC, true), 136 151 137 /** Start-of-Frame (13) segment identifier . */152 /** Start-of-Frame (13) segment identifier for Differential sequential DCT. */ 138 153 SOF13((byte)0xCD, true), 139 154 140 /** Start-of-Frame (14) segment identifier . */155 /** Start-of-Frame (14) segment identifier for Differential progressive DCT. */ 141 156 SOF14((byte)0xCE, true), 142 157 143 /** Start-of-Frame (15) segment identifier . */158 /** Start-of-Frame (15) segment identifier for Differential lossless (sequential). */ 144 159 SOF15((byte)0xCF, true), 145 160 146 /** JPEG comment segment identifier . */161 /** JPEG comment segment identifier for comments. */ 147 162 COM((byte)0xFE, true); 148 163
Note:
See TracChangeset
for help on using the changeset viewer.