rpeg/codes_markers.rs
1pub const JFIF_BYTE_FF: u8 = 0xFF; // All markers start with this as the MSB
2pub const JFIF_SOF0: u8 = 0xC0; // Start of Frame 0, Baseline DCT
3pub const JFIF_SOF1: u8 = 0xC1; // Start of Frame 1, Extended Sequential DCT
4pub const JFIF_SOF2: u8 = 0xC2; // Start of Frame 2, Progressive DCT
5pub const JFIF_SOF3: u8 = 0xC3; // Start of Frame 3, Lossless (Sequential)
6pub const JFIF_DHT: u8 = 0xC4; // Define Huffman Table
7pub const JFIF_SOF5: u8 = 0xC5; // Start of Frame 5, Differential Sequential DCT
8pub const JFIF_SOF6: u8 = 0xC6; // Start of Frame 6, Differential Progressive DCT
9pub const JFIF_SOF7: u8 = 0xC7; // Start of Frame 7, Differential Loessless (Sequential)
10pub const JFIF_SOF9: u8 = 0xC9; // Extended Sequential DCT, Arithmetic Coding
11pub const JFIF_SOF10: u8 = 0xCA; // Progressive DCT, Arithmetic Coding
12pub const JFIF_SOF11: u8 = 0xCB; // Lossless (Sequential), Arithmetic Coding
13pub const JFIF_SOF13: u8 = 0xCD; // Differential Sequential DCT, Arithmetic Coding
14pub const JFIF_SOF14: u8 = 0xCE; // Differential Progressive DCT, Arithmetic Coding
15pub const JFIF_SOF15: u8 = 0xCF; // Differential Lossless (Sequential), Arithmetic Coding
16pub const JFIF_SOI: u8 = 0xD8; // Start of Image
17pub const JFIF_EOI: u8 = 0xD9; // End of Image
18pub const JFIF_SOS: u8 = 0xDA; // Start of Scan
19pub const JFIF_DQT: u8 = 0xDB; // Define Quantization Table
20pub const JFIF_APP0: u8 = 0xE0; // Application Segment 0, JPEG-JFIF Image
21pub const JFIF_COM: u8 = 0xFE; // Comment
22
23pub const HUFFMAN_DC: u8 = 0; // DC value for DHT
24pub const HUFFMAN_AC: u8 = 1; // AC value for DHT
25
26pub const CHANNEL_LUMA: u8 = 0; // Code for luminance channel
27pub const CHANNEL_CHROMA: u8 = 1; // Code for chrominance channel