summaryrefslogtreecommitdiff
path: root/JavaOpenJPEG/JavaOpenJPEG.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2010-12-08 11:06:41 +0000
committerAntonin Descampe <antonin@gmail.com>2010-12-08 11:06:41 +0000
commitd08a96e2517c545b8ff2d7b89c7778eb5b1fd4ba (patch)
tree16f839d4499afc2ead2b759b22907a50bd012de3 /JavaOpenJPEG/JavaOpenJPEG.c
parent59d9b97ffe35f17c71b25a749b885054cb4727d9 (diff)
(thanks to Winfried for his help)
* [antonin] changed remaining "WIN32" to "_WIN32" ! [antonin] libopenjpeg has no more dependency on LCMS lib. Everything concerning color (icc profile, conversion to rgb, etc) has been put outside libopenjpeg and is used in j2k_to_image.c and mj2_to_frames.c. - [antonin] removed "opj_convert{.c,.h}" + [antonin] added a directory "common/" that contains "getopt{.c,.h}" (previously in "codec/compat"). + [antonin] added files "color{.c,.h}" in "common/" that define the code for icc profile management and sycc_to_rgb conversion + [antonin] added "common/format_defs.h" that contains common definitions used in image_to_j2k, j2k_to_image, j2k_dump.
Diffstat (limited to 'JavaOpenJPEG/JavaOpenJPEG.c')
-rw-r--r--JavaOpenJPEG/JavaOpenJPEG.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/JavaOpenJPEG/JavaOpenJPEG.c b/JavaOpenJPEG/JavaOpenJPEG.c
index 6af3a44a..b1f03028 100644
--- a/JavaOpenJPEG/JavaOpenJPEG.c
+++ b/JavaOpenJPEG/JavaOpenJPEG.c
@@ -37,32 +37,19 @@
#include <math.h>
#include "openjpeg.h"
-#include "compat/getopt.h"
+#include "getopt.h"
#include "convert.h"
#include "index.h"
#include "dirent.h"
#include "org_openJpeg_OpenJPEGJavaEncoder.h"
-#ifndef WIN32
+#ifndef _WIN32
#define stricmp strcasecmp
#define strnicmp strncasecmp
#endif
-/* ----------------------------------------------------------------------- */
+#include "format_defs.h"
-#define J2K_CFMT 0
-#define JP2_CFMT 1
-#define JPT_CFMT 2
-
-#define PXM_DFMT 10
-#define PGX_DFMT 11
-#define BMP_DFMT 12
-#define YUV_DFMT 13
-#define TIF_DFMT 14
-#define RAW_DFMT 15
-#define TGA_DFMT 16
-
-/* ----------------------------------------------------------------------- */
#define CINEMA_24_CS 1302083 /*Codestream length for 24fps*/
#define CINEMA_48_CS 651041 /*Codestream length for 48fps*/
#define COMP_24_CS 1041666 /*Maximum size per color component for 2K & 4K @ 24fps*/