-
Notifications
You must be signed in to change notification settings - Fork 0
/
ima.h
32 lines (29 loc) · 949 Bytes
/
ima.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <GL/gl.h>
struct Image {
unsigned long sizeX;
unsigned long sizeY;
GLubyte *data;
};
typedef struct Image Image;
typedef unsigned short utab [3][3][3];
int ImageLoad_PPM(char *filename, Image *image);
void imagesave_PPM(char *filename, Image *image);
/*
void floattoint3(float, float, float, int *, int *, int *);
void inttofloat3(int, int, int, float *, float *, float*);
void rgbtohls(float, float, float, float *, float *, float *);
void hlstorgb(float, float, float, float *, float *, float *);
void modifclr(GLubyte *, GLubyte *, int);
void dlr27(Image *), dlr54(Image *), dlr27fs(Image *);
*/
void gris_uniforme (Image *);
void compressionImg(char *filename, Image *img);
int loadMyImage(char *filename, Image *img);
/*void untrait (Image *), untraitOK (Image *);
void moserr (Image *), mosprox(Image *);
Image * try2 (Image *);
Image * toclut (Image *);
*/