replaced vindex/vkind fields with constant_t, do codestat calculation during writing
[swftools.git] / lib / jpeg.h
1 #ifndef __jpeg_h__
2 #define __jpeg_h__
3
4 #include <stdio.h>
5
6 #ifdef __CPLUSPLUS__
7 extern "C" {
8 #endif
9
10 int jpeg_save(unsigned char*data, int width, int height, int quality, const char*filename);
11 int jpeg_save_to_file(unsigned char*data, int width, int height, int quality, FILE*fi);
12 int jpeg_save_to_mem(unsigned char*data, int width, int height, int quality, unsigned char*dest, int destsize);
13 int jpeg_load(const char*filename, unsigned char**dest, int*width, int*height);
14 int jpeg_load_from_mem(unsigned char*_data, int size, unsigned char*dest, int width, int height);
15
16 #ifdef __CPLUSPLUS__
17 }
18 #endif
19
20 #endif