Package net.sourceforge.jiu.codecs.jpeg
Class JPEGConstants
java.lang.Object
net.sourceforge.jiu.codecs.jpeg.JPEGConstants
Constants necessary to encode and decode JPEG streams.
- Since:
- 0.13.0
- Author:
- Marco Schmidt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Length of sample block edge, in samples (8).static final int
16 bit value that denotes the beginning of a JPEG stream (0xffd8).static final int
DHT (define Huffman table) marker ID value.static final int
DQT (define quantization table) marker ID value.static final int
SOF0 (start of frame, type 0) marker ID value.static final int
SOF1 (start of frame, type 1) marker ID value.static final int
SOF2 (start of frame, type 2) marker ID value.static final int
SOF3 (start of frame, type 3) marker ID value.static final int
SOF5 (start of frame, type 5) marker ID value.static final int
SOF6 (start of frame, type 6) marker ID value.static final int
SOF7 (start of frame, type 7) marker ID value.static final int
SOF9 (start of frame, type 9) marker ID value.static final int
SOFa (start of frame, type a) marker ID value.static final int
SOFb (start of frame, type b) marker ID value.static final int
SOFd (start of frame, type d) marker ID value.static final int
SOFe (start of frame, type e) marker ID value.static final int
SOFf (start of frame, type f) marker ID value.static final int
SOS (start of scan) marker ID value.static final int
Maximum length of a Huffman code in bit (16).static final int
Number of samples in a block of samples (64). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Empty private constructor to prevent instantiation of this class. -
Method Summary
-
Field Details
-
BLOCK_EDGE_LENGTH
public static final int BLOCK_EDGE_LENGTHLength of sample block edge, in samples (8).- See Also:
-
JFIF_SIGNATURE
public static final int JFIF_SIGNATURE16 bit value that denotes the beginning of a JPEG stream (0xffd8).- See Also:
-
MARKER_DHT
public static final int MARKER_DHTDHT (define Huffman table) marker ID value.- See Also:
-
MARKER_DQT
public static final int MARKER_DQTDQT (define quantization table) marker ID value.- See Also:
-
MARKER_SOF0
public static final int MARKER_SOF0SOF0 (start of frame, type 0) marker ID value.- See Also:
-
MARKER_SOF1
public static final int MARKER_SOF1SOF1 (start of frame, type 1) marker ID value.- See Also:
-
MARKER_SOF2
public static final int MARKER_SOF2SOF2 (start of frame, type 2) marker ID value.- See Also:
-
MARKER_SOF3
public static final int MARKER_SOF3SOF3 (start of frame, type 3) marker ID value.- See Also:
-
MARKER_SOF5
public static final int MARKER_SOF5SOF5 (start of frame, type 5) marker ID value.- See Also:
-
MARKER_SOF6
public static final int MARKER_SOF6SOF6 (start of frame, type 6) marker ID value.- See Also:
-
MARKER_SOF7
public static final int MARKER_SOF7SOF7 (start of frame, type 7) marker ID value.- See Also:
-
MARKER_SOF9
public static final int MARKER_SOF9SOF9 (start of frame, type 9) marker ID value.- See Also:
-
MARKER_SOFA
public static final int MARKER_SOFASOFa (start of frame, type a) marker ID value.- See Also:
-
MARKER_SOFB
public static final int MARKER_SOFBSOFb (start of frame, type b) marker ID value.- See Also:
-
MARKER_SOFD
public static final int MARKER_SOFDSOFd (start of frame, type d) marker ID value.- See Also:
-
MARKER_SOFE
public static final int MARKER_SOFESOFe (start of frame, type e) marker ID value.- See Also:
-
MARKER_SOFF
public static final int MARKER_SOFFSOFf (start of frame, type f) marker ID value.- See Also:
-
MARKER_SOS
public static final int MARKER_SOSSOS (start of scan) marker ID value.- See Also:
-
MAX_HUFFMAN_CODE_LENGTH
public static final int MAX_HUFFMAN_CODE_LENGTHMaximum length of a Huffman code in bit (16).- See Also:
-
SAMPLES_PER_BLOCK
public static final int SAMPLES_PER_BLOCKNumber of samples in a block of samples (64).- See Also:
-
-
Constructor Details
-
JPEGConstants
private JPEGConstants()Empty private constructor to prevent instantiation of this class.
-