diff options
author | kraxel <kraxel> | 2004-03-28 11:31:57 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2004-03-28 11:31:57 +0000 |
commit | e9e9684117719204929821028ba9dbb7915ea119 (patch) | |
tree | 6dd2d71940b33a9f960945335e9124ef4fea9fe7 /jpegtools.h | |
download | fbida-e9e9684117719204929821028ba9dbb7915ea119.tar.gz |
Initial revision
Diffstat (limited to 'jpegtools.h')
-rw-r--r-- | jpegtools.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/jpegtools.h b/jpegtools.h new file mode 100644 index 0000000..78035b0 --- /dev/null +++ b/jpegtools.h @@ -0,0 +1,28 @@ + +/* various flags */ +#define JFLAG_TRANSFORM_IMAGE 0x0001 +#define JFLAG_TRANSFORM_THUMBNAIL 0x0002 + +#define JFLAG_UPDATE_COMMENT 0x0010 +#define JFLAG_UPDATE_ORIENTATION 0x0020 +#define JFLAG_UPDATE_THUMBNAIL 0x0040 + +#define JFLAG_FILE_BACKUP 0x0100 +#define JFLAG_FILE_KEEP_TIME 0x0200 + +/* functions */ +int jpeg_transform_fp(FILE *in, FILE *out, + JXFORM_CODE transform, + unsigned char *comment, + char *thumbnail, int tsize, + unsigned int flags); +int jpeg_transform_files(char *infile, char *outfile, + JXFORM_CODE transform, + unsigned char *comment, + char *thumbnail, int tsize, + unsigned int flags); +int jpeg_transform_inplace(char *file, + JXFORM_CODE transform, + unsigned char *comment, + char *thumbnail, int tsize, + unsigned int flags); |