Package pixy.image.jpeg
Enum Marker
java.lang.Object
java.lang.Enum<Marker>
pixy.image.jpeg.Marker
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Marker>
,java.lang.constant.Constable
public enum Marker extends java.lang.Enum<Marker>
Class represents JPEG marker.
- Version:
- 1.0 01/08/2013
- Author:
- Wen Yu, yuwen_66@yahoo.com
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Marker.Attribute
-
Enum Constant Summary
Enum Constants Enum Constant Description APP0
APP1
APP10
APP11
APP12
APP13
APP14
APP15
APP2
APP3
APP4
APP5
APP6
APP7
APP8
APP9
COM
DAC
DHP
DHT
DNL
DQT
DRI
EOI
EXP
JPG
JPG0
JPG13
PADDING
RST0
RSTn are used for resync, may be ignored, no length and other contents are associated with these markers.RST1
RST2
RST3
RST4
RST5
RST6
RST7
SOF0
SOF1
SOF10
SOF11
SOF13
SOF14
SOF15
SOF2
SOF3
SOF5
SOF6
SOF7
SOF9
SOI
SOS
TEM
Define JPEG markers.UNKNOWN
-
Method Summary
Modifier and Type Method Description static Marker
fromShort(short value)
java.lang.String
getDescription()
short
getValue()
java.lang.String
toString()
static Marker
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Marker[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TEM
Define JPEG markers. A marker is prefixed by a one byte segment identifier 0xff. Most markers will have additional information following them. When this is the case, the marker and its associated information is referred to as a "header." In a header the marker is immediately followed by two bytes that indicate the length of the information, in bytes, that the header contains. The two bytes that indicate the length are always included in that count. -
SOF0
-
SOF1
-
SOF2
-
SOF3
-
DHT
-
SOF5
-
SOF6
-
SOF7
-
JPG
-
SOF9
-
SOF10
-
SOF11
-
DAC
-
SOF13
-
SOF14
-
SOF15
-
RST0
RSTn are used for resync, may be ignored, no length and other contents are associated with these markers. -
RST1
-
RST2
-
RST3
-
RST4
-
RST5
-
RST6
-
RST7
-
SOI
-
EOI
-
SOS
-
DQT
-
DNL
-
DRI
-
DHP
-
EXP
-
APP0
-
APP1
-
APP2
-
APP3
-
APP4
-
APP5
-
APP6
-
APP7
-
APP8
-
APP9
-
APP10
-
APP11
-
APP12
-
APP13
-
APP14
-
APP15
-
JPG0
-
JPG13
-
COM
-
PADDING
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDescription
public java.lang.String getDescription() -
getValue
public short getValue() -
fromShort
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<Marker>
-