291 static const unsigned char R1=0x80,G1=0x50,B1=0x00;
292 static const unsigned char R2=3*R1/4,G2=3*G1/4,B2=3*B1/4;
293 static const unsigned char R4=3*R2/4,G4=3*G2/4,B4=3*B2/4;
299 if (image[bytePos-3]<R4) image[bytePos-3]=R4;
300 if (image[bytePos-2]<G4) image[bytePos-2]=G4;
303 if (image[bytePos ]<R2) image[bytePos ]=R2;
304 if (image[bytePos+1]<G2) image[bytePos+1]=G2;
307 if (image[bytePos+3]<R4) image[bytePos+3]=R4;
308 if (image[bytePos+4]<G4) image[bytePos+4]=G4;
313 if (image[bytePos-3]<R2) image[bytePos-3]=R2;
314 if (image[bytePos-2]<G2) image[bytePos-2]=G2;
317 if (image[bytePos ]<R1) image[bytePos ]=R1;
318 if (image[bytePos+1]<G1) image[bytePos+1]=G1;
321 if (image[bytePos+3]<R2) image[bytePos+3]=R2;
322 if (image[bytePos+4]<G2) image[bytePos+4]=G2;
327 if (image[bytePos-3]<R4) image[bytePos-3]=R4;
328 if (image[bytePos-2]<G4) image[bytePos-2]=G4;
331 if (image[bytePos ]<R2) image[bytePos ]=R2;
332 if (image[bytePos+1]<G2) image[bytePos+1]=G2;
335 if (image[bytePos+3]<R4) image[bytePos+3]=R4;
336 if (image[bytePos+4]<G4) image[bytePos+4]=G4;