/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
//import javax.imageio.IIOException;
/**
* An SOS (Start Of Scan) marker segment.
*/
int endSpectralSelection;
int approxHigh;
int approxLow;
byte[] componentIDs,
int numComponents) {
endSpectralSelection = 63;
approxHigh = 0;
approxLow = 0;
for (int i = 0; i < numComponents; i++) {
int tableSel = 0;
if (willSubsample) {
if ((i == 1) || (i == 2)) {
tableSel = 1;
}
}
tableSel);
}
}
super(buffer);
for (int i = 0; i < numComponents; i++) {
}
}
endSpectralSelection = 63;
approxHigh = 0;
approxLow = 0;
updateFromNativeNode(node, true);
}
if (componentSpecs != null) {
newGuy.componentSpecs[i] =
}
}
return newGuy;
}
}
return node;
}
throws IIOInvalidTreeException {
1, 4, true);
0, 63, false);
0, 63, false);
// Now the children
throw new IIOInvalidTreeException
("numScanComponents must match the number of children", node);
}
for (int i = 0; i < numComponents; i++) {
}
}
/**
* Writes the data for this segment to the stream in
* valid JPEG format.
*/
// We don't write SOS segments; the IJG library does.
}
void print () {
printTag("SOS");
componentSpecs[i].print();
}
}
}
/**
* A scan component spec within an SOS marker segment.
*/
int componentSelector;
int dcHuffTable;
int acHuffTable;
}
// Parent already loaded the buffer
}
0, 255, true);
0, 3, true);
0, 3, true);
}
try {
return super.clone();
} catch (CloneNotSupportedException e) {} // won't happen
return null;
}
return node;
}
void print () {
}
}
}