-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathImage.h
23 lines (16 loc) · 807 Bytes
/
Image.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Functions for loading/saving bmp and compressed files
////////////////////////////////////////////////////////////
#ifndef _Image_h
#define _Image_h
#include "Structs.h"
//loads a bmp file into memory for compression
int LoadBMP(char *fname, int &header_addr, int &header_size, int &img_addr, int &img_size);
//saves a bmp file after decompression
int SaveBMP(char *fname, unsigned char *header_data, int header_size, double *img_data, int img_size);
//saves a compressed file (extension is .wlt)
int SaveWLT(char *fname, wlt_header_info wlt, unsigned char *bmp_header_data,
int bmp_header_size, unsigned char *img_data, int img_size);
//loads a compressed file
int LoadWLT(char *fname, wlt_header_info &wlt, int &bmp_header_addr, int &bmp_header_size,
int &img_addr, int &img_size);
#endif