1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
| /*------------------------------------------------------------------------------
| -- --
| -- This software is confidential and proprietary and may be used --
| -- only as expressly authorized by a licensing agreement from --
| -- --
| -- Rockchip Products . --
| -- --
| -- (C) COPYRIGHT 2014 ROCKCHIP PRODUCTS --
| -- ALL RIGHTS RESERVED --
| -- --
| -- The entire notice above must be reproduced --
| -- on all copies and should not be removed. --
| -- --
| --------------------------------------------------------------------------------
| --
| -- Description : SW Jpeg Decoder
| --
| --------------------------------------------------------------------------------
| --
| --
| --
| ------------------------------------------------------------------------------*/
|
| /*------------------------------------------------------------------------------
|
| Table of contents
|
| 1. Include headers
| 2. Module defines
| 3. Data types
| 4. Function prototypes
|
| ------------------------------------------------------------------------------*/
|
| #ifndef JPEGDECMARKERS_H
| #define JPEGDECMARKERS_H
|
| /*------------------------------------------------------------------------------
| 1. Include headers
| ------------------------------------------------------------------------------*/
|
| /*------------------------------------------------------------------------------
| 2. Module defines
| ------------------------------------------------------------------------------*/
|
| /* JPEG markers, table B.1 page 32 */
|
| enum {
| SOF0 = 0xC0,
| SOF1 = 0xC1,
| SOF2 = 0xC2,
| SOF3 = 0xC3,
| SOF5 = 0xC5,
| SOF6 = 0xC6,
| SOF7 = 0xC7,
| SOF9 = 0xC8,
| SOF10 = 0xCA,
| SOF11 = 0xCB,
| SOF13 = 0xCD,
| SOF14 = 0xCE,
| SOF15 = 0xCF,
| JPG = 0xC8,
| DHT = 0xC4,
| DAC = 0xCC,
| SOI = 0xD8,
| EOI = 0xD9,
| SOS = 0xDA,
| DQT = 0xDB,
| DNL = 0xDC,
| DRI = 0xDD,
| DHP = 0xDE,
| EXP = 0xDF,
| 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,
| 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,
| COM = 0xFE,
| TEM = 0x01,
| RST0 = 0xD0,
| RST1 = 0xD1,
| RST2 = 0xD2,
| RST3 = 0xD3,
| RST4 = 0xD4,
| RST5 = 0xD5,
| RST6 = 0xD6,
| RST7 = 0xD7
| };
|
| /*------------------------------------------------------------------------------
| 3. Data types
| ------------------------------------------------------------------------------*/
|
| /*------------------------------------------------------------------------------
| 4. Function prototypes
| ------------------------------------------------------------------------------*/
|
| #endif /* #ifdef JPEGDECMARKERS_H */
|
|