File: jpeg.h

package info (click to toggle)
swftools 0.9.2%2Bgit20130725-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,680 kB
  • ctags: 17,348
  • sloc: ansic: 108,712; sh: 8,494; cpp: 8,040; yacc: 2,260; lisp: 904; makefile: 601; python: 300
file content (22 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __jpeg_h__
#define __jpeg_h__

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

int jpeg_save(unsigned char*data, unsigned int width, unsigned int height, int quality, const char*filename);
int jpeg_save_gray(unsigned char*data, unsigned int width, unsigned int height, int quality, const char*filename);
int jpeg_save_to_file(unsigned char*data, unsigned int width, unsigned int height, int quality, FILE*fi);
int jpeg_save_to_mem(unsigned char*data, unsigned width, unsigned height, int quality, unsigned char*_dest, int _destlen, int components);
int jpeg_load(const char*filename, unsigned char**dest, unsigned int*width, unsigned int*height);
int jpeg_load_from_mem(unsigned char*_data, int _size, unsigned char**dest, unsigned int*width, unsigned int*height);
void jpeg_get_size(const char *fname, unsigned int *width, unsigned int *height);

#ifdef __cplusplus
}
#endif

#endif