DECLAREContigPutFunc(putRGBcontig16bittile)
{
	int samplesperpixel = img->samplesperpixel;
	uint16 *wp = (uint16 *)pp;
	(void) y;
	fromskew *= samplesperpixel;
	while (h-- > 0) {
		for (x = w; x-- > 0;) {
			*cp++ = PACK(img->Bitdepth16To8[wp[0]],
			    img->Bitdepth16To8[wp[1]],
			    img->Bitdepth16To8[wp[2]]);
			wp += samplesperpixel;
		}
		cp += toskew;
		wp += fromskew;
	}
}
['DECLAREContigPutFunc(putRGBcontig16bittile)\n{\n\tint samplesperpixel = img->samplesperpixel;\n\tuint16 *wp = (uint16 *)pp;\n\t(void) y;\n\tfromskew *= samplesperpixel;\n\twhile (h-- > 0) {\n\t\tfor (x = w; x-- > 0;) {\n\t\t\t*cp++ = PACK(img->Bitdepth16To8[wp[0]],\n\t\t\t    img->Bitdepth16To8[wp[1]],\n\t\t\t    img->Bitdepth16To8[wp[2]]);\n\t\t\twp += samplesperpixel;\n\t\t}\n\t\tcp += toskew;\n\t\twp += fromskew;\n\t}\n}']