surfaces-unies/src/common.h
2018-11-12 14:25:24 +01:00

20 lines
508 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* \file common.h
* \brief Déclaration pour la (dé)compression dimages
*/
#ifndef COMMON_H
#define COMMON_H
#include "ppm.h"
/// Teste léligibilité dun pixel à une zone
bool sameColor(Pixel_t, Zone_t);
/// Ajoute un pixel et ses pixels connexes à une zone
void addPixelToSelectedZone(Image_t t_img, int t_idx, Zone_t t_zone);
void chooseZoneForPixel(Image_t t_img, int t_idx, darray_t zones);
darray_t imgToZones(Image_t t_img);
void compress(const char*);
#endif /* COMMON_H */