302 static const unsigned char R1=0x80,G1=0x50,B1=0x00;
303 static const unsigned char R2=3*R1/4,G2=3*G1/4,B2=3*B1/4;
304 static const unsigned char R4=3*R2/4,G4=3*G2/4,B4=3*B2/4;
310 if (image[bytePos-3]<R4) image[bytePos-3]=R4;
311 if (image[bytePos-2]<G4) image[bytePos-2]=G4;
314 if (image[bytePos ]<R2) image[bytePos ]=R2;
315 if (image[bytePos+1]<G2) image[bytePos+1]=G2;
318 if (image[bytePos+3]<R4) image[bytePos+3]=R4;
319 if (image[bytePos+4]<G4) image[bytePos+4]=G4;
324 if (image[bytePos-3]<R2) image[bytePos-3]=R2;
325 if (image[bytePos-2]<G2) image[bytePos-2]=G2;
328 if (image[bytePos ]<R1) image[bytePos ]=R1;
329 if (image[bytePos+1]<G1) image[bytePos+1]=G1;
332 if (image[bytePos+3]<R2) image[bytePos+3]=R2;
333 if (image[bytePos+4]<G2) image[bytePos+4]=G2;
338 if (image[bytePos-3]<R4) image[bytePos-3]=R4;
339 if (image[bytePos-2]<G4) image[bytePos-2]=G4;
342 if (image[bytePos ]<R2) image[bytePos ]=R2;
343 if (image[bytePos+1]<G2) image[bytePos+1]=G2;
346 if (image[bytePos+3]<R4) image[bytePos+3]=R4;
347 if (image[bytePos+4]<G4) image[bytePos+4]=G4;