Mercurial > projects > dwt-win
comparison dwt/internal/image/JPEGScanHeader.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 |
---|---|
14 | 14 |
15 import dwt.DWT; | 15 import dwt.DWT; |
16 import dwt.internal.image.JPEGVariableSizeSegment; | 16 import dwt.internal.image.JPEGVariableSizeSegment; |
17 import dwt.internal.image.LEDataInputStream; | 17 import dwt.internal.image.LEDataInputStream; |
18 import dwt.internal.image.JPEGFileFormat; | 18 import dwt.internal.image.JPEGFileFormat; |
19 import dwt.dwthelper.System; | 19 import dwt.dwthelper.utils; |
20 | 20 |
21 final class JPEGScanHeader : JPEGVariableSizeSegment { | 21 final class JPEGScanHeader : JPEGVariableSizeSegment { |
22 public int[][] componentParameters; | 22 public int[][] componentParameters; |
23 | 23 |
24 public this(byte[] reference) { | 24 public this(byte[] reference) { |
93 | 93 |
94 public void setStartOfSpectralSelection(int anInteger) { | 94 public void setStartOfSpectralSelection(int anInteger) { |
95 reference[(2 * getNumberOfImageComponents()) + 5] = cast(byte)anInteger; | 95 reference[(2 * getNumberOfImageComponents()) + 5] = cast(byte)anInteger; |
96 } | 96 } |
97 | 97 |
98 override public int signature() { | 98 public override int signature() { |
99 return JPEGFileFormat.SOS; | 99 return JPEGFileFormat.SOS; |
100 } | 100 } |
101 | 101 |
102 public bool verifyProgressiveScan() { | 102 public bool verifyProgressiveScan() { |
103 int start = getStartOfSpectralSelection(); | 103 int start = getStartOfSpectralSelection(); |