142 unsigned short pixVal0, pixVal1, pixVal2;
161 pixVal0=((0x3fc&(((
unsigned short)(src[1]))<<2)) | (src[0] >> 6));
162 pixVal1=((0x3f0&(((
unsigned short)(src[0]))<<4)) | (src[3] >> 4));
163 pixVal0 = curve0[pixVal0];
164 pixVal1 = curve1[pixVal1];
165 *(src+1) = (
unsigned char) ((pixVal0>>2));
166 *src = (
unsigned char) ((pixVal0<<6)|(pixVal1>>4));
168 pixVal2=((0x3c0&(((
unsigned short)(src[3]))<<6)) | (src[2] >> 2));
169 pixVal0=((0x300&(((
unsigned short)(src[2]))<<8)) | (src[5]));
170 pixVal2 = curve0[pixVal2];
171 pixVal0 = curve1[pixVal0];
172 *(src+3) = (
unsigned char) ((pixVal1<<4)|(pixVal2>>6));
173 *(src+2) = (
unsigned char) ((pixVal2<<2)|(pixVal0>>8));
174 *(src+5) = (
unsigned char) ((pixVal0));
176 pixVal0=((0x3fc&(((
unsigned short)(src[4]))<<2)) | (src[7] >> 6));
177 pixVal1=((0x3f0&(((
unsigned short)(src[7]))<<4)) | (src[6] >> 4));
178 pixVal0 = curve0[pixVal0];
179 pixVal1 = curve1[pixVal1];
180 *(src+4) = (
unsigned char) ((pixVal0>>2));
181 *(src+7) = (
unsigned char) ((pixVal0<<6)|(pixVal1>>4));
183 pixVal2=((0x3c0&(((
unsigned short)(src[6]))<<6)) | (src[9] >> 2));
184 pixVal0=((0x300&(((
unsigned short)(src[9]))<<8)) | (src[8]));
185 pixVal2 = curve0[pixVal2];
186 pixVal0 = curve1[pixVal0];
187 *(src+6) = (
unsigned char) ((pixVal1<<4)|(pixVal2>>6));
188 *(src+9) = (
unsigned char) ((pixVal2<<2)|(pixVal0>>8));
189 *(src+8) = (
unsigned char) ((pixVal0));
192 pixVal0=((0x3fc&(((
unsigned short)(src[1]))<<2)) | (src[0] >> 6));
193 pixVal1=((0x3f0&(((
unsigned short)(src[0]))<<4)) | (src[3] >> 4));
194 pixVal0 = curve2[pixVal0];
195 pixVal1 = curve3[pixVal1];
196 *(src+1) = (
unsigned char) ((pixVal0>>2));
197 *src = (
unsigned char) ((pixVal0<<6)|(pixVal1>>4));
199 pixVal2=((0x3c0&(((
unsigned short)(src[3]))<<6)) | (src[2] >> 2));
200 pixVal0=((0x300&(((
unsigned short)(src[2]))<<8)) | (src[5]));
201 pixVal2 = curve2[pixVal2];
202 pixVal0 = curve3[pixVal0];
203 *(src+3) = (
unsigned char) ((pixVal1<<4)|(pixVal2>>6));
204 *(src+2) = (
unsigned char) ((pixVal2<<2)|(pixVal0>>8));
205 *(src+5) = (
unsigned char) ((pixVal0));
207 pixVal0=((0x3fc&(((
unsigned short)(src[4]))<<2)) | (src[7] >> 6));
208 pixVal1=((0x3f0&(((
unsigned short)(src[7]))<<4)) | (src[6] >> 4));
209 pixVal0 = curve2[pixVal0];
210 pixVal1 = curve3[pixVal1];
211 *(src+4) = (
unsigned char) ((pixVal0>>2));
212 *(src+7) = (
unsigned char) ((pixVal0<<6)|(pixVal1>>4));
214 pixVal2=((0x3c0&(((
unsigned short)(src[6]))<<6)) | (src[9] >> 2));
215 pixVal0=((0x300&(((
unsigned short)(src[9]))<<8)) | (src[8]));
216 pixVal2 = curve2[pixVal2];
217 pixVal0 = curve3[pixVal0];
218 *(src+6) = (
unsigned char) ((pixVal1<<4)|(pixVal2>>6));
219 *(src+9) = (
unsigned char) ((pixVal2<<2)|(pixVal0>>8));
220 *(src+8) = (
unsigned char) ((pixVal0));