01: // Jpeg.java
02: // $Id: Jpeg.java,v 1.4 2000/08/16 21:37:50 ylafon Exp $
03: // (c) COPYRIGHT MIT, INRIA and Keio, 1999.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.tools.jpeg;
07:
08: /**
09: * @version $Revision: 1.4 $
10: * @author Benoît Mahé (bmahe@w3.org)
11: */
12: public interface Jpeg {
13:
14: /* Start Of Frame N */
15: public int M_SOF0 = 0xC0;
16:
17: /* N indicates which compression process */
18: public int M_SOF1 = 0xC1;
19:
20: /* Only SOF0-SOF2 are now in common use */
21: public int M_SOF2 = 0xC2;
22: public int M_SOF3 = 0xC3;
23:
24: /* NB: codes C4 and CC are NOT SOF markers */
25: public int M_SOF5 = 0xC5;
26: public int M_SOF6 = 0xC6;
27: public int M_SOF7 = 0xC7;
28: public int M_SOF9 = 0xC9;
29: public int M_SOF10 = 0xCA;
30: public int M_SOF11 = 0xCB;
31: public int M_SOF13 = 0xCD;
32: public int M_SOF14 = 0xCE;
33: public int M_SOF15 = 0xCF;
34:
35: /* Start Of Image (beginning of datastream) */
36: public int M_SOI = 0xD8;
37:
38: /* End Of Image (end of datastream) */
39: public int M_EOI = 0xD9;
40:
41: /* Start Of Scan (begins compressed data) */
42: public int M_SOS = 0xDA;
43:
44: /* Application-specific marker, type N */
45: public int M_APP0 = 0xE0;
46: public int M_APP1 = 0xE1;
47: public int M_APP2 = 0xE2;
48: public int M_APP3 = 0xE3;
49: public int M_APP4 = 0xE4;
50: public int M_APP5 = 0xE5;
51: public int M_APP6 = 0xE6;
52: public int M_APP7 = 0xE7;
53: public int M_APP8 = 0xE8;
54: public int M_APP9 = 0xE9;
55: public int M_APP10 = 0xEA;
56: public int M_APP11 = 0xEB;
57: public int M_APP12 = 0xEC;
58: public int M_APP13 = 0xED;
59: public int M_APP14 = 0xEE;
60: public int M_APP15 = 0xEF;
61:
62: public int M_COM = 0xFE;
63: /* The maximal comment length */
64: public int M_MAX_COM_LENGTH = 65500;
65:
66: }
|