public class

JPEG

extends Object
java.lang.Object
   ↳ com.sun.imageio.plugins.jpeg.JPEG

Class Overview

A class containing JPEG-related constants, definitions, and static methods. This class and its constants must be public so that JPEGImageWriteParam can see it.

Summary

Constants
int ADOBE_IMPOSSIBLE
int ADOBE_UNKNOWN
int ADOBE_YCC
int ADOBE_YCCK
int APP0 APP0 used by JFIF
int APP1
int APP10
int APP11
int APP12
int APP13
int APP14 APP14 used by Adobe
int APP15
int APP2
int APP3
int APP4
int APP5
int APP6
int APP7
int APP8
int APP9
int COM Comment marker
int DAC Define Arithmetic conditioning tables
float DEFAULT_QUALITY
int DENSITY_UNIT_ASPECT_RATIO The X and Y units simply indicate the aspect ratio of the pixels.
int DENSITY_UNIT_DOTS_CM Pixel density is in pixels per centemeter.
int DENSITY_UNIT_DOTS_INCH Pixel density is in pixels per inch.
int DHP Define Heirarchical progression
int DHT Define Huffman Tables
int DNL Define Number of lines
int DQT Define Quantisation Tables
int DRI Define Restart Interval
int EOI End of Image
int EXP Expand reference image(s)
int JCS_CMYK
int JCS_GRAYSCALE
int JCS_RGB
int JCS_RGBA
int JCS_UNKNOWN
int JCS_YCC
int JCS_YCCA
int JCS_YCCK
int JCS_YCbCr
int JCS_YCbCrA
int JPG Reserved for JPEG extensions
int NUM_DENSITY_UNIT The max known value for DENSITY_UNIT
int NUM_JCS_CODES
int RESTART_RANGE Number of restart markers
int RST0
int RST1
int RST2
int RST3
int RST4
int RST5
int RST6
int RST7
int SOF0 Baseline DCT
int SOF1 Extended Sequential DCT
int SOF10 Progressive DCT, Arithmetic coding
int SOF11 Lossless Sequential, Arithmetic coding
int SOF13 Differential Sequential DCT, Arithmetic coding
int SOF14 Differential Progressive DCT, Arithmetic coding
int SOF15 Differential Lossless, Arithmetic coding
int SOF2 Progressive DCT
int SOF3 Lossless Sequential
int SOF5 Differential Sequential DCT
int SOF6 Differential Progressive DCT
int SOF7 Differential Lossless
int SOF9 Extended Sequential DCT, Arithmetic coding
int SOI Start of Image
int SOS Start of Scan
int TEM For temporary use in arithmetic coding
String nativeImageMetadataFormatClassName
String nativeImageMetadataFormatName
String nativeStreamMetadataFormatClassName
String nativeStreamMetadataFormatName
String vendor
String version
Fields
public static final String[] MIMETypes
protected static ColorSpace YCC
public static final int[] bOffsRGB
public static final int[][] bandOffsets IJG can handle up to 4-channel JPEGs
public static final String[] names
protected static final ColorSpace sRGB
public static final String[] suffixes
Public Constructors
JPEG()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ADOBE_IMPOSSIBLE

Constant Value: -1 (0xffffffff)

public static final int ADOBE_UNKNOWN

Constant Value: 0 (0x00000000)

public static final int ADOBE_YCC

Constant Value: 1 (0x00000001)

public static final int ADOBE_YCCK

Constant Value: 2 (0x00000002)

public static final int APP0

APP0 used by JFIF

Constant Value: 224 (0x000000e0)

public static final int APP1

Constant Value: 225 (0x000000e1)

public static final int APP10

Constant Value: 234 (0x000000ea)

public static final int APP11

Constant Value: 235 (0x000000eb)

public static final int APP12

Constant Value: 236 (0x000000ec)

public static final int APP13

Constant Value: 237 (0x000000ed)

public static final int APP14

APP14 used by Adobe

Constant Value: 238 (0x000000ee)

public static final int APP15

Constant Value: 239 (0x000000ef)

public static final int APP2

Constant Value: 226 (0x000000e2)

public static final int APP3

Constant Value: 227 (0x000000e3)

public static final int APP4

Constant Value: 228 (0x000000e4)

public static final int APP5

Constant Value: 229 (0x000000e5)

public static final int APP6

Constant Value: 230 (0x000000e6)

public static final int APP7

Constant Value: 231 (0x000000e7)

public static final int APP8

Constant Value: 232 (0x000000e8)

public static final int APP9

Constant Value: 233 (0x000000e9)

public static final int COM

Comment marker

Constant Value: 254 (0x000000fe)

public static final int DAC

Define Arithmetic conditioning tables

Constant Value: 204 (0x000000cc)

public static final float DEFAULT_QUALITY

Constant Value: 0.75

public static final int DENSITY_UNIT_ASPECT_RATIO

The X and Y units simply indicate the aspect ratio of the pixels.

Constant Value: 0 (0x00000000)

public static final int DENSITY_UNIT_DOTS_CM

Pixel density is in pixels per centemeter.

Constant Value: 2 (0x00000002)

public static final int DENSITY_UNIT_DOTS_INCH

Pixel density is in pixels per inch.

Constant Value: 1 (0x00000001)

public static final int DHP

Define Heirarchical progression

Constant Value: 222 (0x000000de)

public static final int DHT

Define Huffman Tables

Constant Value: 196 (0x000000c4)

public static final int DNL

Define Number of lines

Constant Value: 220 (0x000000dc)

public static final int DQT

Define Quantisation Tables

Constant Value: 219 (0x000000db)

public static final int DRI

Define Restart Interval

Constant Value: 221 (0x000000dd)

public static final int EOI

End of Image

Constant Value: 217 (0x000000d9)

public static final int EXP

Expand reference image(s)

Constant Value: 223 (0x000000df)

public static final int JCS_CMYK

Constant Value: 4 (0x00000004)

public static final int JCS_GRAYSCALE

Constant Value: 1 (0x00000001)

public static final int JCS_RGB

Constant Value: 2 (0x00000002)

public static final int JCS_RGBA

Constant Value: 6 (0x00000006)

public static final int JCS_UNKNOWN

Constant Value: 0 (0x00000000)

public static final int JCS_YCC

Constant Value: 5 (0x00000005)

public static final int JCS_YCCA

Constant Value: 10 (0x0000000a)

public static final int JCS_YCCK

Constant Value: 11 (0x0000000b)

public static final int JCS_YCbCr

Constant Value: 3 (0x00000003)

public static final int JCS_YCbCrA

Constant Value: 7 (0x00000007)

public static final int JPG

Reserved for JPEG extensions

Constant Value: 200 (0x000000c8)

public static final int NUM_DENSITY_UNIT

The max known value for DENSITY_UNIT

Constant Value: 3 (0x00000003)

public static final int NUM_JCS_CODES

Constant Value: 12 (0x0000000c)

public static final int RESTART_RANGE

Number of restart markers

Constant Value: 8 (0x00000008)

public static final int RST0

Constant Value: 208 (0x000000d0)

public static final int RST1

Constant Value: 209 (0x000000d1)

public static final int RST2

Constant Value: 210 (0x000000d2)

public static final int RST3

Constant Value: 211 (0x000000d3)

public static final int RST4

Constant Value: 212 (0x000000d4)

public static final int RST5

Constant Value: 213 (0x000000d5)

public static final int RST6

Constant Value: 214 (0x000000d6)

public static final int RST7

Constant Value: 215 (0x000000d7)

public static final int SOF0

Baseline DCT

Constant Value: 192 (0x000000c0)

public static final int SOF1

Extended Sequential DCT

Constant Value: 193 (0x000000c1)

public static final int SOF10

Progressive DCT, Arithmetic coding

Constant Value: 202 (0x000000ca)

public static final int SOF11

Lossless Sequential, Arithmetic coding

Constant Value: 203 (0x000000cb)

public static final int SOF13

Differential Sequential DCT, Arithmetic coding

Constant Value: 205 (0x000000cd)

public static final int SOF14

Differential Progressive DCT, Arithmetic coding

Constant Value: 206 (0x000000ce)

public static final int SOF15

Differential Lossless, Arithmetic coding

Constant Value: 207 (0x000000cf)

public static final int SOF2

Progressive DCT

Constant Value: 194 (0x000000c2)

public static final int SOF3

Lossless Sequential

Constant Value: 195 (0x000000c3)

public static final int SOF5

Differential Sequential DCT

Constant Value: 197 (0x000000c5)

public static final int SOF6

Differential Progressive DCT

Constant Value: 198 (0x000000c6)

public static final int SOF7

Differential Lossless

Constant Value: 199 (0x000000c7)

public static final int SOF9

Extended Sequential DCT, Arithmetic coding

Constant Value: 201 (0x000000c9)

public static final int SOI

Start of Image

Constant Value: 216 (0x000000d8)

public static final int SOS

Start of Scan

Constant Value: 218 (0x000000da)

public static final int TEM

For temporary use in arithmetic coding

Constant Value: 1 (0x00000001)

public static final String nativeImageMetadataFormatClassName

Constant Value: "com.sun.imageio.plugins.jpeg.JPEGImageMetadataFormat"

public static final String nativeImageMetadataFormatName

Constant Value: "javax_imageio_jpeg_image_1.0"

public static final String nativeStreamMetadataFormatClassName

Constant Value: "com.sun.imageio.plugins.jpeg.JPEGStreamMetadataFormat"

public static final String nativeStreamMetadataFormatName

Constant Value: "javax_imageio_jpeg_stream_1.0"

public static final String vendor

Constant Value: "Sun Microsystems, Inc."

public static final String version

Constant Value: "0.5"

Fields

public static final String[] MIMETypes

protected static ColorSpace YCC

public static final int[] bOffsRGB

public static final int[][] bandOffsets

IJG can handle up to 4-channel JPEGs

public static final String[] names

protected static final ColorSpace sRGB

public static final String[] suffixes

Public Constructors

public JPEG ()