static void
cpContigBufToSeparateBuf(uint8* out, uint8* in,
    uint32 rows, uint32 cols, int outskew, int inskew, tsample_t spp,
    int bytes_per_sample )
{
	while (rows-- > 0) {
		uint32 j = cols;
		while (j-- > 0)
		{
			int n = bytes_per_sample;
			while( n-- ) {
				*out++ = *in++;
			}
			in += (spp-1) * bytes_per_sample;
		}
		out += outskew;
		in += inskew;
	}
}
['static void\ncpContigBufToSeparateBuf(uint8* out, uint8* in,\n    uint32 rows, uint32 cols, int outskew, int inskew, tsample_t spp,\n    int bytes_per_sample )\n{\n\twhile (rows-- > 0) {\n\t\tuint32 j = cols;\n\t\twhile (j-- > 0)\n\t\t{\n\t\t\tint n = bytes_per_sample;\n\t\t\twhile( n-- ) {\n\t\t\t\t*out++ = *in++;\n\t\t\t}\n\t\t\tin += (spp-1) * bytes_per_sample;\n\t\t}\n\t\tout += outskew;\n\t\tin += inskew;\n\t}\n}']