comparison dwt/internal/image/JPEGFileFormat.d @ 54:8f049b136add

first example working
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Jan 2008 14:31:37 +0100
parents fc2b263b8a3f
children 8cec8f536af3
comparison
equal deleted inserted replaced
53:3da31bec7de0 54:8f049b136add
122 public static const int AC = 1; 122 public static const int AC = 1;
123 /* JFIF Component Constants */ 123 /* JFIF Component Constants */
124 public static const int ID_Y = 1 - 1; 124 public static const int ID_Y = 1 - 1;
125 public static const int ID_CB = 2 - 1; 125 public static const int ID_CB = 2 - 1;
126 public static const int ID_CR = 3 - 1; 126 public static const int ID_CR = 3 - 1;
127 public static const RGB[] RGB16; 127 public static /*const*/ RGB[] RGB16;
128 public static const int[] ExtendTest = [ 128 public static const int[] ExtendTest = [
129 0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 129 0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048,
130 4096, 8192, 16384, 32768, 65536, 131072, 262144 130 4096, 8192, 16384, 32768, 65536, 131072, 262144
131 ]; 131 ];
132 public static const int[] ExtendOffset = [ 132 public static const int[] ExtendOffset = [
145 ]; 145 ];
146 146
147 public static int[] CrRTable, CbBTable, CrGTable, CbGTable; 147 public static int[] CrRTable, CbBTable, CrGTable, CbGTable;
148 public static int[] RYTable, GYTable, BYTable, 148 public static int[] RYTable, GYTable, BYTable,
149 RCbTable, GCbTable, BCbTable, RCrTable, GCrTable, BCrTable, NBitsTable; 149 RCbTable, GCbTable, BCbTable, RCrTable, GCrTable, BCrTable, NBitsTable;
150 static this(){ 150 public static void static_this() {
151 initialize(); 151 initialize();
152 RGB16 = [ 152 RGB16 = [
153 new RGB(0,0,0), 153 new RGB(0,0,0),
154 new RGB(0x80,0,0), 154 new RGB(0x80,0,0),
155 new RGB(0,0x80,0), 155 new RGB(0,0x80,0),