/* returns: 1 if image uses requested compression 0 otherwise (or on error)  */
int fit_image_check_comp(const void *fit, int noffset, uint8_t comp)
/* returns: 1 if image uses requested compression 0 otherwise (or on error)  */
int fit_image_check_comp(const void *fit, int noffset, uint8_t comp)
{
	uint8_t image_comp;
	if (fit_image_get_comp(fit, noffset, &image_comp))
		return 0;
	return (comp == image_comp);
}