/* This functions converts a tilewidth x tilelength buffer of samples into an edgetilewidth x tilelength buffer of samples.  */
void t2p_tile_collapse_left(tdata_t, tsize_t, uint32, uint32, uint32)
/* This functions converts a tilewidth x tilelength buffer of samples into an edgetilewidth x tilelength buffer of samples.  */
void t2p_tile_collapse_left(tdata_t, tsize_t, uint32, uint32, uint32)
{
	uint32 i;
	tsize_t edgescanwidth=0;
	edgescanwidth = (scanwidth * edgetilewidth + (tilewidth - 1))/ tilewidth;
	for(i=0;i<tilelength;i++){
		memmove( 
			&(((char*)buffer)[edgescanwidth*i]), 
			&(((char*)buffer)[scanwidth*i]), 
			edgescanwidth);
	}
	return;
}