d07c171f |
1 | #ifndef _JPEG_RW_H_ |
2 | #define _JPEG_RW_H_ |
3 | /* |
4 | // header file for the BMGLib JPEG functions |
5 | // |
6 | // Copyright 2000, 2001 M. Scott Heiman |
7 | // All Rights Reserved |
8 | // libJPEG is Copyright (C) 1991-1998, Thomas G. Lane and is part of the |
9 | // Independent JPEG Group's software. |
10 | // |
11 | // We are releasing this software for both noncommercial and commercial use. |
12 | // Companies are welcome to use it as the basis for JPEG-related products. |
13 | // We do not ask a royalty, although we do ask for an acknowledgement in |
14 | // product literature (see the README file in the distribution for details). |
15 | // We hope to make this software industrial-quality --- although, as with |
16 | // anything that's free, we offer no warranty and accept no liability. |
17 | */ |
18 | #include "BMGImage.h" |
19 | |
20 | #if defined(__cplusplus) |
21 | extern "C" { |
22 | #endif |
23 | |
24 | extern BMGError ReadJPEG( const char *filename, |
25 | struct BMGImageStruct *img ); |
26 | |
27 | extern BMGError WriteJPEG( const char *filename, |
28 | struct BMGImageStruct img, |
29 | int quality ); |
30 | |
31 | #if defined(__cplusplus) |
32 | } |
33 | #endif |
34 | |
35 | #endif |
36 | |