2018-11-12 13:25:24 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file common.h
|
|
|
|
|
* \brief Déclaration pour la (dé)compression d’images
|
|
|
|
|
*/
|
|
|
|
|
|
2018-11-06 15:08:20 +00:00
|
|
|
|
#ifndef COMMON_H
|
|
|
|
|
#define COMMON_H
|
|
|
|
|
|
2018-11-12 13:25:24 +00:00
|
|
|
|
#include "ppm.h"
|
2018-11-06 15:08:20 +00:00
|
|
|
|
|
2018-11-12 13:25:24 +00:00
|
|
|
|
/// Teste l’éligibilité d’un pixel à une zone
|
2018-11-21 09:46:01 +00:00
|
|
|
|
bool sameColor(Pixel *, Zone *);
|
2018-11-12 13:25:24 +00:00
|
|
|
|
/// Ajoute un pixel et ses pixels connexes à une zone
|
2018-11-21 09:46:01 +00:00
|
|
|
|
void addPixelToSelectedZone(Image *t_img, int t_idx, Zone *t_zone);
|
|
|
|
|
void chooseZoneForPixel(Image *t_img, int t_idx, darray *zones);
|
|
|
|
|
darray *imgToZones(Image *t_img);
|
|
|
|
|
void compress(const char *);
|
2018-11-06 15:08:20 +00:00
|
|
|
|
|
|
|
|
|
#endif /* COMMON_H */
|