Mercurial > projects > dwt-win
comparison dwt/internal/image/JPEGFrameHeader.d @ 213:36f5cb12e1a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 17:34:28 +0200 |
parents | 9a64a7781bab |
children |
comparison
equal
deleted
inserted
replaced
212:ab60f3309436 | 213:36f5cb12e1a2 |
---|---|
15 | 15 |
16 import dwt.DWT; | 16 import dwt.DWT; |
17 import dwt.internal.image.JPEGVariableSizeSegment; | 17 import dwt.internal.image.JPEGVariableSizeSegment; |
18 import dwt.internal.image.JPEGFileFormat; | 18 import dwt.internal.image.JPEGFileFormat; |
19 import dwt.internal.image.LEDataInputStream; | 19 import dwt.internal.image.LEDataInputStream; |
20 import dwt.dwthelper.System; | 20 import dwt.dwthelper.utils; |
21 | 21 |
22 final class JPEGFrameHeader : JPEGVariableSizeSegment { | 22 final class JPEGFrameHeader : JPEGVariableSizeSegment { |
23 int maxVFactor; | 23 int maxVFactor; |
24 int maxHFactor; | 24 int maxHFactor; |
25 public int[] componentIdentifiers; | 25 public int[] componentIdentifiers; |
196 * SOF_11 - Lossless (sequential), arithmetic coding | 196 * SOF_11 - Lossless (sequential), arithmetic coding |
197 * SOF_13 - Differential sequential, arithmetic coding | 197 * SOF_13 - Differential sequential, arithmetic coding |
198 * SOF_14 - Differential progressive, arithmetic coding | 198 * SOF_14 - Differential progressive, arithmetic coding |
199 * SOF_15 - Differential lossless, arithmetic coding | 199 * SOF_15 - Differential lossless, arithmetic coding |
200 */ | 200 */ |
201 override public bool verify() { | 201 public override bool verify() { |
202 int marker = getSegmentMarker(); | 202 int marker = getSegmentMarker(); |
203 return (marker >= JPEGFileFormat.SOF0 && marker <= JPEGFileFormat.SOF3) || | 203 return (marker >= JPEGFileFormat.SOF0 && marker <= JPEGFileFormat.SOF3) || |
204 (marker >= JPEGFileFormat.SOF5 && marker <= JPEGFileFormat.SOF7) || | 204 (marker >= JPEGFileFormat.SOF5 && marker <= JPEGFileFormat.SOF7) || |
205 (marker >= JPEGFileFormat.SOF9 && marker <= JPEGFileFormat.SOF11) || | 205 (marker >= JPEGFileFormat.SOF9 && marker <= JPEGFileFormat.SOF11) || |
206 (marker >= JPEGFileFormat.SOF13 && marker <= JPEGFileFormat.SOF15); | 206 (marker >= JPEGFileFormat.SOF13 && marker <= JPEGFileFormat.SOF15); |