Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 java.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/imageio/plugins/jpeg/SOSMarkerSegment.java
/* * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.imageio.plugins.jpeg; //import javax.imageio.IIOException; import javax.imageio.metadata.IIOInvalidTreeException; import javax.imageio.metadata.IIOMetadataNode; import javax.imageio.stream.ImageOutputStream; import java.io.IOException; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.w3c.dom.NamedNodeMap; /** * An SOS (Start Of Scan) marker segment. */ class SOSMarkerSegment extends MarkerSegment { int startSpectralSelection; int endSpectralSelection; int approxHigh; int approxLow; ScanComponentSpec [] componentSpecs; // Array size is numScanComponents SOSMarkerSegment(boolean willSubsample, byte[] componentIDs, int numComponents) { super(JPEG.SOS); startSpectralSelection = 0; endSpectralSelection = 63; approxHigh = 0; approxLow = 0; componentSpecs = new ScanComponentSpec[numComponents]; for (int i = 0; i < numComponents; i++) { int tableSel = 0; if (willSubsample) { if ((i == 1) || (i == 2)) { tableSel = 1; } } componentSpecs[i] = new ScanComponentSpec(componentIDs[i], tableSel); } } SOSMarkerSegment(JPEGBuffer buffer) throws IOException { super(buffer); int numComponents = buffer.buf[buffer.bufPtr++]; componentSpecs = new ScanComponentSpec[numComponents]; for (int i = 0; i < numComponents; i++) { componentSpecs[i] = new ScanComponentSpec(buffer); } startSpectralSelection = buffer.buf[buffer.bufPtr++]; endSpectralSelection = buffer.buf[buffer.bufPtr++]; approxHigh = buffer.buf[buffer.bufPtr] >> 4; approxLow = buffer.buf[buffer.bufPtr++] &0xf; buffer.bufAvail -= length; } SOSMarkerSegment(Node node) throws IIOInvalidTreeException { super(JPEG.SOS); startSpectralSelection = 0; endSpectralSelection = 63; approxHigh = 0; approxLow = 0; updateFromNativeNode(node, true); } protected Object clone () { SOSMarkerSegment newGuy = (SOSMarkerSegment) super.clone(); if (componentSpecs != null) { newGuy.componentSpecs = componentSpecs.clone(); for (int i = 0; i < componentSpecs.length; i++) { newGuy.componentSpecs[i] = (ScanComponentSpec) componentSpecs[i].clone(); } } return newGuy; } IIOMetadataNode getNativeNode() { IIOMetadataNode node = new IIOMetadataNode("sos"); node.setAttribute("numScanComponents", Integer.toString(componentSpecs.length)); node.setAttribute("startSpectralSelection", Integer.toString(startSpectralSelection)); node.setAttribute("endSpectralSelection", Integer.toString(endSpectralSelection)); node.setAttribute("approxHigh", Integer.toString(approxHigh)); node.setAttribute("approxLow", Integer.toString(approxLow)); for (int i = 0; i < componentSpecs.length; i++) { node.appendChild(componentSpecs[i].getNativeNode()); } return node; } void updateFromNativeNode(Node node, boolean fromScratch) throws IIOInvalidTreeException { NamedNodeMap attrs = node.getAttributes(); int numComponents = getAttributeValue(node, attrs, "numScanComponents", 1, 4, true); int value = getAttributeValue(node, attrs, "startSpectralSelection", 0, 63, false); startSpectralSelection = (value != -1) ? value : startSpectralSelection; value = getAttributeValue(node, attrs, "endSpectralSelection", 0, 63, false); endSpectralSelection = (value != -1) ? value : endSpectralSelection; value = getAttributeValue(node, attrs, "approxHigh", 0, 15, false); approxHigh = (value != -1) ? value : approxHigh; value = getAttributeValue(node, attrs, "approxLow", 0, 15, false); approxLow = (value != -1) ? value : approxLow; // Now the children NodeList children = node.getChildNodes(); if (children.getLength() != numComponents) { throw new IIOInvalidTreeException ("numScanComponents must match the number of children", node); } componentSpecs = new ScanComponentSpec[numComponents]; for (int i = 0; i < numComponents; i++) { componentSpecs[i] = new ScanComponentSpec(children.item(i)); } } /** * Writes the data for this segment to the stream in * valid JPEG format. */ void write(ImageOutputStream ios) throws IOException { // We don't write SOS segments; the IJG library does. } void print () { printTag("SOS"); System.out.print("Start spectral selection: "); System.out.println(startSpectralSelection); System.out.print("End spectral selection: "); System.out.println(endSpectralSelection); System.out.print("Approx high: "); System.out.println(approxHigh); System.out.print("Approx low: "); System.out.println(approxLow); System.out.print("Num scan components: "); System.out.println(componentSpecs.length); for (int i = 0; i< componentSpecs.length; i++) { componentSpecs[i].print(); } } ScanComponentSpec getScanComponentSpec(byte componentSel, int tableSel) { return new ScanComponentSpec(componentSel, tableSel); } /** * A scan component spec within an SOS marker segment. */ class ScanComponentSpec implements Cloneable { int componentSelector; int dcHuffTable; int acHuffTable; ScanComponentSpec(byte componentSel, int tableSel) { componentSelector = componentSel; dcHuffTable = tableSel; acHuffTable = tableSel; } ScanComponentSpec(JPEGBuffer buffer) { // Parent already loaded the buffer componentSelector = buffer.buf[buffer.bufPtr++]; dcHuffTable = buffer.buf[buffer.bufPtr] >> 4; acHuffTable = buffer.buf[buffer.bufPtr++] & 0xf; } ScanComponentSpec(Node node) throws IIOInvalidTreeException { NamedNodeMap attrs = node.getAttributes(); componentSelector = getAttributeValue(node, attrs, "componentSelector", 0, 255, true); dcHuffTable = getAttributeValue(node, attrs, "dcHuffTable", 0, 3, true); acHuffTable = getAttributeValue(node, attrs, "acHuffTable", 0, 3, true); } protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) {} // won't happen return null; } IIOMetadataNode getNativeNode() { IIOMetadataNode node = new IIOMetadataNode("scanComponentSpec"); node.setAttribute("componentSelector", Integer.toString(componentSelector)); node.setAttribute("dcHuffTable", Integer.toString(dcHuffTable)); node.setAttribute("acHuffTable", Integer.toString(acHuffTable)); return node; } void print () { System.out.print("Component Selector: "); System.out.println(componentSelector); System.out.print("DC huffman table: "); System.out.println(dcHuffTable); System.out.print("AC huffman table: "); System.out.println(acHuffTable); } } }
⏎ com/sun/imageio/plugins/jpeg/SOSMarkerSegment.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 84102👍, 0💬
Popular Posts:
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
How to download and install ojdbc11.jar for Oracle 21c? ojdbc11.jar for Oracle 21c is a Java JDBC Dr...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...