void compute_ideal_colors_and_weights_1plane(
	const block_size_descriptor& bsd,
	const image_block& blk,
	const error_weight_block& ewb,
	const partition_info& pi,
	endpoints_and_weights& ei
) {
	bool uses_alpha = !blk.is_constant_channel(3);

	if (uses_alpha)
	{
		compute_ideal_colors_and_weights_4_comp(bsd, blk, ewb, pi, ei);
	}
	else
	{
		compute_ideal_colors_and_weights_3_comp(bsd, blk, ewb,  pi, ei, 3);
	}
}
void compute_ideal_colors_and_weights_1plane(
	const block_size_descriptor& bsd,
	const image_block& blk,
	const error_weight_block& ewb,
	const partition_info& pi,
	endpoints_and_weights& ei
) {
	bool uses_alpha = !blk.is_constant_channel(3);

	if (uses_alpha)
	{
		compute_ideal_colors_and_weights_4_comp(bsd, blk, ewb, pi, ei);
	}
	else
	{
		compute_ideal_colors_and_weights_3_comp(bsd, blk, ewb,  pi, ei, 3);
	}
}