1 /* GStreamer
2  *
3  * jpegformat: a plugin for JPEG Interchange Format
4  *
5  * Copyright (C) <2010> Stefan Kost <ensonic@users.sf.net>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 
24 #ifndef __GST_JPEG_FORMAT_H__
25 #define __GST_JPEG_FORMAT_H__
26 
27 G_BEGIN_DECLS
28 
29 /*
30  * JPEG Markers
31  */
32 
33 /* Start Of Frame markers, non-differential, Huffman coding */
34 #define SOF0      0xc0  /* Baseline DCT */
35 #define SOF1      0xc1  /* Extended sequential DCT */
36 #define SOF2      0xc2  /* Progressive DCT */
37 #define SOF3      0xc3  /* Lossless */
38 
39 /* Start Of Frame markers, differential, Huffman coding */
40 #define SOF5      0xc5
41 #define SOF6      0xc6
42 #define SOF7      0xc7
43 
44 /* Start Of Frame markers, non-differential, arithmetic coding */
45 #define JPG       0xc8  /* Reserved */
46 #define SOF9      0xc9
47 #define SOF10     0xca
48 #define SOF11     0xcb
49 
50 /* Start Of Frame markers, differential, arithmetic coding */
51 #define SOF13     0xcd
52 #define SOF14     0xce
53 #define SOF15     0xcf
54 
55 /* Restart interval termination */
56 #define RST0      0xd0  /* Restart ... */
57 #define RST1      0xd1
58 #define RST2      0xd2
59 #define RST3      0xd3
60 #define RST4      0xd4
61 #define RST5      0xd5
62 #define RST6      0xd6
63 #define RST7      0xd7
64 
65 #define SOI       0xd8  /* Start of image */
66 #define EOI       0xd9  /* End Of Image */
67 #define SOS       0xda  /* Start Of Scan */
68 
69 #define DHT       0xc4  /* Huffman Table(s) */
70 #define DAC       0xcc  /* Algorithmic Coding Table */
71 #define DQT       0xdb  /* Quantisation Table(s) */
72 #define DNL       0xdc  /* Number of lines */
73 #define DRI       0xdd  /* Restart Interval */
74 #define DHP       0xde  /* Hierarchical progression */
75 #define EXP       0xdf
76 
77 #define APP0      0xe0  /* Application marker */
78 #define APP1      0xe1
79 #define APP2      0xe2
80 #define APP13     0xed
81 #define APP14     0xee
82 #define APP15     0xef
83 
84 #define JPG0      0xf0  /* Reserved ... */
85 #define JPG13     0xfd
86 #define COM       0xfe  /* Comment */
87 
88 #define TEM       0x01
89 
90 G_END_DECLS
91 
92 #endif /* __GST_JPEG_FORMAT_H__ */
93