surfaces-unies/src/common.h
2018-11-21 10:46:01 +01:00

20 lines
503 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 *, Zone *);
/// Ajoute un pixel et ses pixels connexes à une zone
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 *);
#endif /* COMMON_H */