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 classMarker.Attribute -
Enum Constant Summary
Enum Constants Enum Constant Description APP0APP1APP10APP11APP12APP13APP14APP15APP2APP3APP4APP5APP6APP7APP8APP9COMDACDHPDHTDNLDQTDRIEOIEXPJPGJPG0JPG13PADDINGRST0RSTn are used for resync, may be ignored, no length and other contents are associated with these markers.RST1RST2RST3RST4RST5RST6RST7SOF0SOF1SOF10SOF11SOF13SOF14SOF15SOF2SOF3SOF5SOF6SOF7SOF9SOISOSTEMDefine JPEG markers.UNKNOWN -
Method Summary
Modifier and Type Method Description static MarkerfromShort(short value)java.lang.StringgetDescription()shortgetValue()java.lang.StringtoString()static MarkervalueOf(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:
toStringin classjava.lang.Enum<Marker>
-