Class PelJpegMarker

Description

Class with static methods for JPEG markers.

This class defines the constants to be used whenever one refers to a JPEG marker. All the methods defined are static, and they all operate on one argument which should be one of the class constants. They will all be denoted by PelJpegMarker in the documentation.

Located in /src/PelJpegMarker.php (line 54)


	
			
Class Constant Summary
 APP0 = 0xE0
 APP1 = 0xE1
 APP2 = 0xE2
 APP3 = 0xE3
 APP4 = 0xE4
 APP5 = 0xE5
 APP6 = 0xE6
 APP7 = 0xE7
 APP8 = 0xE8
 APP9 = 0xE9
 APP10 = 0xEA
 APP11 = 0xEB
 APP12 = 0xEC
 APP13 = 0xED
 APP14 = 0xEE
 APP15 = 0xEF
 COM = 0xFE
 DAC = 0xCC
 DHP = 0xDE
 DHT = 0xC4
 DNL = 0xDC
 DQT = 0xDB
 DRI = 0xDD
 EOI = 0xD9
 EXP = 0xDF
 JPG = 0xC8
 JPG0 = 0xF0
 JPG1 = 0xF1
 JPG2 = 0xF2
 JPG3 = 0xF3
 JPG4 = 0xF4
 JPG5 = 0xF5
 JPG6 = 0xF6
 JPG7 = 0xF7
 JPG8 = 0xF8
 JPG9 = 0xF9
 JPG10 = 0xFA
 JPG11 = 0xFB
 JPG12 = 0xFC
 JPG13 = 0xFD
 RST0 = 0xD0
 RST1 = 0xD1
 RST2 = 0xD2
 RST3 = 0xD3
 RST4 = 0xD4
 RST5 = 0xD5
 RST6 = 0xD6
 RST7 = 0xD7
 SOF0 = 0xC0
 SOF1 = 0xC1
 SOF2 = 0xC2
 SOF3 = 0xC3
 SOF5 = 0xC5
 SOF6 = 0xC6
 SOF7 = 0xC7
 SOF9 = 0xC9
 SOF10 = 0xCA
 SOF11 = 0xCB
 SOF13 = 0xCD
 SOF14 = 0xCE
 SOF15 = 0xCF
 SOI = 0xD8
 SOS = 0xDA
Method Summary
static string getBytes (PelJpegMarker $m)
static string getDescription (PelJpegMarker $m)
static string getName (PelJpegMarker $m)
static boolean isValid (PelJpegMarker $m)
Methods
static method getBytes (line 210)

Turn a JPEG marker into bytes.

  • return: the marker as a string. This will be a string with just a single byte since all JPEG markers are simply single bytes.
static string getBytes (PelJpegMarker $m)
static method getDescription (line 299)

Returns a description of a JPEG marker.

  • return: the description of the marker.
static string getDescription (PelJpegMarker $m)
static method getName (line 222)

Return the short name for a marker.

  • return: the name of the marker, e.g., 'SOI' for the Start of Image marker.
static string getName (PelJpegMarker $m)
static method isValid (line 197)

Check if a byte is a valid JPEG marker.

  • return: if the byte is recognized true is returned, otherwise false will be returned.
static boolean isValid (PelJpegMarker $m)
Class Constants
APP0 = 0xE0 (line 121)

Application segment 0

APP1 = 0xE1 (line 129)

Application segment 1

When a JPEG image contains Exif data, the data will normally be stored in this section and a call to PelJpeg::getExif() will return a PelExif object representing it.

APP2 = 0xE2 (line 131)

Application segment 2

APP3 = 0xE3 (line 133)

Application segment 3

APP4 = 0xE4 (line 135)

Application segment 4

APP5 = 0xE5 (line 137)

Application segment 5

APP6 = 0xE6 (line 139)

Application segment 6

APP7 = 0xE7 (line 141)

Application segment 7

APP8 = 0xE8 (line 143)

Application segment 8

APP9 = 0xE9 (line 145)

Application segment 9

APP10 = 0xEA (line 147)

Application segment 10

APP11 = 0xEB (line 149)

Application segment 11

APP12 = 0xEC (line 151)

Application segment 12

APP13 = 0xED (line 153)

Application segment 13

APP14 = 0xEE (line 155)

Application segment 14

APP15 = 0xEF (line 157)

Application segment 15

COM = 0xFE (line 187)

Comment

DAC = 0xCC (line 81)

Define arithmetic coding conditioning

DHP = 0xDE (line 117)

Define hierarchical progression

DHT = 0xC4 (line 65)

Define Huffman table

DNL = 0xDC (line 113)

Define number of lines

DQT = 0xDB (line 111)

Define quantization table

DRI = 0xDD (line 115)

Define restart interval

EOI = 0xD9 (line 107)

End of image

EXP = 0xDF (line 119)

Expand reference component

JPG = 0xC8 (line 73)

Extension

JPG0 = 0xF0 (line 159)

Extension 0

JPG1 = 0xF1 (line 161)

Extension 1

JPG2 = 0xF2 (line 163)

Extension 2

JPG3 = 0xF3 (line 165)

Extension 3

JPG4 = 0xF4 (line 167)

Extension 4

JPG5 = 0xF5 (line 169)

Extension 5

JPG6 = 0xF6 (line 171)

Extension 6

JPG7 = 0xF7 (line 173)

Extension 7

JPG8 = 0xF8 (line 175)

Extension 8

JPG9 = 0xF9 (line 177)

Extension 9

JPG10 = 0xFA (line 179)

Extension 10

JPG11 = 0xFB (line 181)

Extension 11

JPG12 = 0xFC (line 183)

Extension 12

JPG13 = 0xFD (line 185)

Extension 13

RST0 = 0xD0 (line 89)

Restart 0

RST1 = 0xD1 (line 91)

Restart 1

RST2 = 0xD2 (line 93)

Restart 2

RST3 = 0xD3 (line 95)

Restart 3

RST4 = 0xD4 (line 97)

Restart 4

RST5 = 0xD5 (line 99)

Restart 5

RST6 = 0xD6 (line 101)

Restart 6

RST7 = 0xD7 (line 103)

Restart 7

SOF0 = 0xC0 (line 57)

Encoding (baseline)

SOF1 = 0xC1 (line 59)

Encoding (extended sequential)

SOF2 = 0xC2 (line 61)

Encoding (progressive)

SOF3 = 0xC3 (line 63)

Encoding (lossless)

SOF5 = 0xC5 (line 67)

Encoding (differential sequential)

SOF6 = 0xC6 (line 69)

Encoding (differential progressive)

SOF7 = 0xC7 (line 71)

Encoding (differential lossless)

SOF9 = 0xC9 (line 75)

Encoding (extended sequential, arithmetic)

SOF10 = 0xCA (line 77)

Encoding (progressive, arithmetic)

SOF11 = 0xCB (line 79)

Encoding (lossless, arithmetic)

SOF13 = 0xCD (line 83)

Encoding (differential sequential, arithmetic)

SOF14 = 0xCE (line 85)

Encoding (differential progressive, arithmetic)

SOF15 = 0xCF (line 87)

Encoding (differential lossless, arithmetic)

SOI = 0xD8 (line 105)

Start of image

SOS = 0xDA (line 109)

Start of scan

Documentation generated on Thu, 05 May 2011 07:19:22 +0200 by phpDocumentor 1.4.3