Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/awt/image/JPEGImageDecoder.java
/*
* Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/*-
* Reads JPEG images from an InputStream and reports the
* image data to an InputStreamImageSource object.
*
* The native implementation of the JPEG image decoder was adapted from
* release 6 of the free JPEG software from the Independent JPEG Group.
*/
package sun.awt.image;
import java.util.Vector;
import java.util.Hashtable;
import java.io.InputStream;
import java.io.IOException;
import java.awt.image.*;
/**
* JPEG Image converter
*
* @author Jim Graham
*/
public class JPEGImageDecoder extends ImageDecoder {
private static ColorModel RGBcolormodel;
private static ColorModel ARGBcolormodel;
private static ColorModel Graycolormodel;
private static final Class<?> InputStreamClass = InputStream.class;
private static native void initIDs(Class<?> InputStreamClass);
private ColorModel colormodel;
static {
java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction<Void>() {
public Void run() {
System.loadLibrary("javajpeg");
return null;
}
});
initIDs(InputStreamClass);
RGBcolormodel = new DirectColorModel(24, 0xff0000, 0xff00, 0xff);
ARGBcolormodel = ColorModel.getRGBdefault();
byte g[] = new byte[256];
for (int i = 0; i < 256; i++) {
g[i] = (byte) i;
}
Graycolormodel = new IndexColorModel(8, 256, g, g, g);
}
private native void readImage(InputStream is, byte buf[])
throws ImageFormatException, IOException;
Hashtable<String, Object> props = new Hashtable<>();
public JPEGImageDecoder(InputStreamImageSource src, InputStream is) {
super(src, is);
}
/**
* An error has occurred. Throw an exception.
*/
private static void error(String s1) throws ImageFormatException {
throw new ImageFormatException(s1);
}
public boolean sendHeaderInfo(int width, int height,
boolean gray, boolean hasalpha,
boolean multipass)
{
setDimensions(width, height);
setProperties(props);
if (gray) {
colormodel = Graycolormodel;
} else {
if (hasalpha) {
colormodel = ARGBcolormodel;
} else {
colormodel = RGBcolormodel;
}
}
setColorModel(colormodel);
int flags = hintflags;
if (!multipass) {
flags |= ImageConsumer.SINGLEPASS;
}
setHints(hintflags);
headerComplete();
return true;
}
public boolean sendPixels(int pixels[], int y) {
int count = setPixels(0, y, pixels.length, 1, colormodel,
pixels, 0, pixels.length);
if (count <= 0) {
aborted = true;
}
return !aborted;
}
public boolean sendPixels(byte pixels[], int y) {
int count = setPixels(0, y, pixels.length, 1, colormodel,
pixels, 0, pixels.length);
if (count <= 0) {
aborted = true;
}
return !aborted;
}
/**
* produce an image from the stream.
*/
public void produceImage() throws IOException, ImageFormatException {
try {
readImage(input, new byte[1024]);
if (!aborted) {
imageComplete(ImageConsumer.STATICIMAGEDONE, true);
}
} catch (IOException e) {
if (!aborted) {
throw e;
}
} finally {
close();
}
}
/**
* The ImageConsumer hints flag for a JPEG image.
*/
private static final int hintflags =
ImageConsumer.TOPDOWNLEFTRIGHT | ImageConsumer.COMPLETESCANLINES |
ImageConsumer.SINGLEFRAME;
}
⏎ sun/awt/image/JPEGImageDecoder.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, ≈888🔥, 5💬
Popular Posts:
What Is HttpComponents httpclient-4.2.2.jar? HttpComponents httpclient-4.2.2.jar is the JAR file for...
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
JDK 17 jdk.internal.le.jmod is the JMOD file for JDK 17 Internal Line Editing module. JDK 17 Interna...