[DEV] add jpeg 2000, tiff, and CMS library
This commit is contained in:
parent
18a3c87007
commit
83e2486728
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "openjpeg"]
|
||||
path = openjpeg
|
||||
url = https://github.com/generic-library/openjpeg.git
|
15
generated/opj_apps_config.h
Normal file
15
generated/opj_apps_config.h
Normal file
@ -0,0 +1,15 @@
|
||||
#include "opj_config_private.h"
|
||||
|
||||
/* create opj_apps_config.h for CMake */
|
||||
|
||||
#define OPJ_HAVE_LIBPNG
|
||||
#define OPJ_HAVE_PNG_H
|
||||
#define OPJ_HAVE_LIBTIFF
|
||||
#define OPJ_HAVE_TIFF_H
|
||||
|
||||
/* #undef OPJ_HAVE_LIBLCMS1 */
|
||||
#define OPJ_HAVE_LIBLCMS2
|
||||
/* #undef OPJ_HAVE_LCMS1_H */
|
||||
#define OPJ_HAVE_LCMS2_H
|
||||
|
||||
|
10
generated/opj_config.h
Normal file
10
generated/opj_config.h
Normal file
@ -0,0 +1,10 @@
|
||||
/* create opj_config.h for CMake */
|
||||
#define OPJ_HAVE_STDINT_H 1
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
/* OpenJPEG Versioning */
|
||||
|
||||
/* Version number. */
|
||||
#define OPJ_VERSION_MAJOR 2
|
||||
#define OPJ_VERSION_MINOR 2
|
||||
#define OPJ_VERSION_BUILD 0
|
49
generated/opj_config_private.h
Normal file
49
generated/opj_config_private.h
Normal file
@ -0,0 +1,49 @@
|
||||
/* create opj_config_private.h for CMake */
|
||||
#define OPJ_HAVE_INTTYPES_H 1
|
||||
|
||||
#define OPJ_PACKAGE_VERSION "2.2.0"
|
||||
|
||||
/* Not used by openjp2*/
|
||||
/*#define HAVE_MEMORY_H 1*/
|
||||
/*#define HAVE_STDLIB_H 1*/
|
||||
/*#define HAVE_STRINGS_H 1*/
|
||||
/*#define HAVE_STRING_H 1*/
|
||||
/*#define HAVE_SYS_STAT_H 1*/
|
||||
/*#define HAVE_SYS_TYPES_H 1 */
|
||||
/*#define HAVE_UNISTD_H 1*/
|
||||
|
||||
/* #undef _LARGEFILE_SOURCE */
|
||||
/* #undef _LARGE_FILES */
|
||||
/* #undef _FILE_OFFSET_BITS */
|
||||
#define OPJ_HAVE_FSEEKO ON
|
||||
|
||||
/* find whether or not have <malloc.h> */
|
||||
#define OPJ_HAVE_MALLOC_H
|
||||
/* check if function `aligned_alloc` exists */
|
||||
/* #undef OPJ_HAVE_ALIGNED_ALLOC */
|
||||
/* check if function `_aligned_malloc` exists */
|
||||
/* #undef OPJ_HAVE__ALIGNED_MALLOC */
|
||||
/* check if function `memalign` exists */
|
||||
#define OPJ_HAVE_MEMALIGN
|
||||
/* check if function `posix_memalign` exists */
|
||||
#define OPJ_HAVE_POSIX_MEMALIGN
|
||||
|
||||
#if !defined(_POSIX_C_SOURCE)
|
||||
#if defined(OPJ_HAVE_FSEEKO) || defined(OPJ_HAVE_POSIX_MEMALIGN)
|
||||
/* Get declarations of fseeko, ftello, posix_memalign. */
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Byte order. */
|
||||
/* All compilers that support Mac OS X define either __BIG_ENDIAN__ or
|
||||
__LITTLE_ENDIAN__ to match the endianness of the architecture being
|
||||
compiled for. This is not necessarily the same as the architecture of the
|
||||
machine doing the building. In order to support Universal Binaries on
|
||||
Mac OS X, we prefer those defines to decide the endianness.
|
||||
On other platforms we use the result of the TRY_RUN. */
|
||||
#if !defined(__APPLE__)
|
||||
/* #undef OPJ_BIG_ENDIAN */
|
||||
#elif defined(__BIG_ENDIAN__)
|
||||
# define OPJ_BIG_ENDIAN
|
||||
#endif
|
261
generated/tif_config.h
Normal file
261
generated/tif_config.h
Normal file
@ -0,0 +1,261 @@
|
||||
/* libtiff/tif_config.h.cmake.in. Not generated, but originated from autoheader. */
|
||||
/* This file must be kept up-to-date with needed substitutions from libtiff/tif_config.h.in. */
|
||||
|
||||
/* Support CCITT Group 3 & 4 algorithms */
|
||||
#define CCITT_SUPPORT 1
|
||||
|
||||
/* Pick up YCbCr subsampling info from the JPEG data stream to support files
|
||||
lacking the tag (default enabled). */
|
||||
#define CHECK_JPEG_YCBCR_SUBSAMPLING 1
|
||||
|
||||
/* enable partial strip reading for large strips (experimental) */
|
||||
/* #undef CHUNKY_STRIP_READ_SUPPORT */
|
||||
|
||||
/* Support C++ stream API (requires C++ compiler) */
|
||||
/* #undef CXX_SUPPORT */
|
||||
|
||||
/* enable deferred strip/tile offset/size loading (experimental) */
|
||||
/* #undef DEFER_STRILE_LOAD */
|
||||
|
||||
/* Define to 1 if you have the <assert.h> header file. */
|
||||
#define HAVE_ASSERT_H 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
/* Define to 1 if you have the `floor' function. */
|
||||
#define HAVE_FLOOR 1
|
||||
|
||||
/* Define to 1 if you have the `getopt' function. */
|
||||
#define HAVE_GETOPT 1
|
||||
|
||||
/* Define to 1 if you have the <GLUT/glut.h> header file. */
|
||||
/* #undef HAVE_GLUT_GLUT_H */
|
||||
|
||||
/* Define to 1 if you have the <GL/glut.h> header file. */
|
||||
/* #undef HAVE_GL_GLUT_H */
|
||||
|
||||
/* Define to 1 if you have the <GL/glu.h> header file. */
|
||||
/* #undef HAVE_GL_GLU_H */
|
||||
|
||||
/* Define to 1 if you have the <GL/gl.h> header file. */
|
||||
/* #undef HAVE_GL_GL_H */
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <io.h> header file. */
|
||||
/* #undef HAVE_IO_H */
|
||||
|
||||
/* Define to 1 if you have the `isascii' function. */
|
||||
#define HAVE_ISASCII 1
|
||||
|
||||
/* Define to 1 if you have the `jbg_newlen' function. */
|
||||
/* #undef HAVE_JBG_NEWLEN */
|
||||
|
||||
/* Define to 1 if you have the `lfind' function. */
|
||||
#define HAVE_LFIND 1
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#define HAVE_LIMITS_H 1
|
||||
|
||||
/* Define to 1 if you have the <malloc.h> header file. */
|
||||
#define HAVE_MALLOC_H 1
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `memset' function. */
|
||||
#define HAVE_MEMSET 1
|
||||
|
||||
/* Define to 1 if you have the `mmap' function. */
|
||||
#define HAVE_MMAP 1
|
||||
|
||||
/* Define to 1 if you have the <OpenGL/glu.h> header file. */
|
||||
/* #undef HAVE_OPENGL_GLU_H */
|
||||
|
||||
/* Define to 1 if you have the <OpenGL/gl.h> header file. */
|
||||
/* #undef HAVE_OPENGL_GL_H */
|
||||
|
||||
/* Define to 1 if you have the `pow' function. */
|
||||
#define HAVE_POW 1
|
||||
|
||||
/* Define to 1 if you have the <search.h> header file. */
|
||||
#define HAVE_SEARCH_H 1
|
||||
|
||||
/* Define to 1 if you have the `setmode' function. */
|
||||
/* #undef HAVE_SETMODE */
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#define HAVE_SNPRINTF 1
|
||||
|
||||
/* Define to 1 if you have the `sqrt' function. */
|
||||
#define HAVE_SQRT 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the `strcasecmp' function. */
|
||||
#define HAVE_STRCASECMP 1
|
||||
|
||||
/* Define to 1 if you have the `strchr' function. */
|
||||
#define HAVE_STRCHR 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the `strrchr' function. */
|
||||
#define HAVE_STRRCHR 1
|
||||
|
||||
/* Define to 1 if you have the `strstr' function. */
|
||||
#define HAVE_STRSTR 1
|
||||
|
||||
/* Define to 1 if you have the `strtol' function. */
|
||||
#define HAVE_STRTOL 1
|
||||
|
||||
/* Define to 1 if you have the `strtoul' function. */
|
||||
#define HAVE_STRTOUL 1
|
||||
|
||||
/* Define to 1 if you have the `strtoull' function. */
|
||||
#define HAVE_STRTOULL 1
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#define HAVE_SYS_TIME_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* 8/12 bit libjpeg dual mode enabled */
|
||||
/* #undef JPEG_DUAL_MODE_8_12 */
|
||||
|
||||
/* 12bit libjpeg primary include file with path */
|
||||
#define LIBJPEG_12_PATH
|
||||
|
||||
/* Support LZMA2 compression */
|
||||
/* #undef LZMA_SUPPORT */
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE ""
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT ""
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME ""
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING ""
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME ""
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION ""4.0.6""
|
||||
|
||||
/* The size of `signed int', as computed by sizeof. */
|
||||
#define SIZEOF_SIGNED_INT 4
|
||||
|
||||
/* The size of `signed long', as computed by sizeof. */
|
||||
#define SIZEOF_SIGNED_LONG 8
|
||||
|
||||
/* The size of `signed long long', as computed by sizeof. */
|
||||
#define SIZEOF_SIGNED_LONG_LONG 8
|
||||
|
||||
/* The size of `signed short', as computed by sizeof. */
|
||||
#define SIZEOF_SIGNED_SHORT 2
|
||||
|
||||
/* The size of `unsigned char *', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_CHAR_P 8
|
||||
|
||||
/* The size of `unsigned int', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_INT 4
|
||||
|
||||
/* The size of `unsigned long', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_LONG 8
|
||||
|
||||
/* The size of `unsigned long long', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_LONG_LONG 8
|
||||
|
||||
/* The size of `unsigned short', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_SHORT 2
|
||||
|
||||
/* Default size of the strip in bytes (when strip chopping enabled) */
|
||||
#define STRIP_SIZE_DEFAULT 8192
|
||||
|
||||
/* Signed 32-bit type formatter */
|
||||
#define TIFF_INT32_FORMAT "%d"
|
||||
|
||||
/* Signed 64-bit type formatter */
|
||||
#define TIFF_INT64_FORMAT "%lld"
|
||||
|
||||
/* Pointer difference type formatter */
|
||||
#define TIFF_PTRDIFF_FORMAT "%ld"
|
||||
|
||||
/* Unsigned size type formatter */
|
||||
#define TIFF_SIZE_FORMAT ""
|
||||
|
||||
/* Signed size type formatter */
|
||||
#define TIFF_SSIZE_FORMAT ""
|
||||
|
||||
/* Unsigned 32-bit type formatter */
|
||||
#define TIFF_UINT32_FORMAT "%u"
|
||||
|
||||
/* Unsigned 64-bit type formatter */
|
||||
#define TIFF_UINT64_FORMAT "%llu"
|
||||
|
||||
/* Unsigned 8-bit type */
|
||||
#define TIFF_UINT8_T uint8_t
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME
|
||||
|
||||
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
||||
/* #undef TM_IN_SYS_TIME */
|
||||
|
||||
/* define to use win32 IO system */
|
||||
/* #undef USE_WIN32_FILEIO */
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION ""4.0.6""
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#else
|
||||
# ifndef WORDS_BIGENDIAN
|
||||
# undef WORDS_BIGENDIAN
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#define inline inline
|
||||
#endif
|
||||
|
||||
/* Define to `long int' if <sys/types.h> does not define. */
|
||||
#undef off_t
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
#undef size_t
|
115
generated/tiffconf.h
Normal file
115
generated/tiffconf.h
Normal file
@ -0,0 +1,115 @@
|
||||
/*
|
||||
Configuration defines for installed libtiff.
|
||||
This file maintained for backward compatibility. Do not use definitions
|
||||
from this file in your programs.
|
||||
*/
|
||||
|
||||
#ifndef _TIFFCONF_
|
||||
#define _TIFFCONF_
|
||||
|
||||
#include "tif_config.h"
|
||||
#if defined( HAVE_STDINT_H )
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#if defined( HAVE_UNISTD_H )
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
/* Signed 16-bit type */
|
||||
#define TIFF_INT16_T int16_t
|
||||
|
||||
/* Signed 32-bit type */
|
||||
#define TIFF_INT32_T int32_t
|
||||
|
||||
/* Signed 64-bit type */
|
||||
#define TIFF_INT64_T int64_t
|
||||
|
||||
/* Signed 8-bit type */
|
||||
#define TIFF_INT8_T int8_t
|
||||
|
||||
/* Unsigned 16-bit type */
|
||||
#define TIFF_UINT16_T uint16_t
|
||||
|
||||
/* Unsigned 32-bit type */
|
||||
#define TIFF_UINT32_T uint32_t
|
||||
|
||||
/* Unsigned 64-bit type */
|
||||
#define TIFF_UINT64_T uint64_t
|
||||
|
||||
/* Unsigned 8-bit type */
|
||||
#define TIFF_UINT8_T uint8_t
|
||||
|
||||
/* Unsigned size type */
|
||||
#define TIFF_SIZE_T
|
||||
|
||||
/* Signed size type */
|
||||
#define TIFF_SSIZE_T ssize_t
|
||||
|
||||
/* Pointer difference type */
|
||||
#define TIFF_PTRDIFF_T ptrdiff_t
|
||||
|
||||
/* Define as 0 or 1 according to the floating point format suported by the
|
||||
machine */
|
||||
#define HAVE_IEEEFP 1
|
||||
|
||||
/* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
|
||||
#define HOST_FILLORDER FILLORDER_LSB2MSB
|
||||
|
||||
/* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
|
||||
(Intel) */
|
||||
#define HOST_BIGENDIAN 0
|
||||
|
||||
/* Support CCITT Group 3 & 4 algorithms */
|
||||
#define CCITT_SUPPORT 1
|
||||
|
||||
/* Support LogLuv high dynamic range encoding */
|
||||
#define LOGLUV_SUPPORT 1
|
||||
|
||||
/* Support LZW algorithm */
|
||||
#define LZW_SUPPORT 1
|
||||
|
||||
/* Support NeXT 2-bit RLE algorithm */
|
||||
#define NEXT_SUPPORT 1
|
||||
|
||||
/* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
|
||||
fails with unpatched IJG JPEG library) */
|
||||
/* #undef OJPEG_SUPPORT */
|
||||
|
||||
/* Support Macintosh PackBits algorithm */
|
||||
#define PACKBITS_SUPPORT 1
|
||||
|
||||
/* Support ThunderScan 4-bit RLE algorithm */
|
||||
#define THUNDER_SUPPORT 1
|
||||
|
||||
/* Support strip chopping (whether or not to convert single-strip uncompressed
|
||||
images to mutiple strips of ~8Kb to reduce memory usage) */
|
||||
#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
|
||||
|
||||
/* Enable SubIFD tag (330) support */
|
||||
#define SUBIFD_SUPPORT 1
|
||||
|
||||
/* Treat extra sample as alpha (default enabled). The RGBA interface will
|
||||
treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
|
||||
packages produce RGBA files but don't mark the alpha properly. */
|
||||
/*#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1*/
|
||||
|
||||
/* Pick up YCbCr subsampling info from the JPEG data stream to support files
|
||||
lacking the tag (default enabled). */
|
||||
#define CHECK_JPEG_YCBCR_SUBSAMPLING 1
|
||||
|
||||
/* Support MS MDI magic number files as TIFF */
|
||||
#define MDI_SUPPORT 1
|
||||
|
||||
/*
|
||||
* Feature support definitions.
|
||||
* XXX: These macros are obsoleted. Don't use them in your apps!
|
||||
* Macros stays here for backward compatibility and should be always defined.
|
||||
*/
|
||||
#define COLORIMETRY_SUPPORT
|
||||
#define YCBCR_SUPPORT
|
||||
#define CMYK_SUPPORT
|
||||
#define ICC_SUPPORT
|
||||
#define PHOTOSHOP_SUPPORT
|
||||
#define IPTC_SUPPORT
|
||||
|
||||
#endif /* _TIFFCONF_ */
|
82
lutin_cms.py
Normal file
82
lutin_cms.py
Normal file
@ -0,0 +1,82 @@
|
||||
#!/usr/bin/python
|
||||
import lutin.debug as debug
|
||||
import lutin.tools as tools
|
||||
import os
|
||||
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_desc():
|
||||
return "JPEG 2000 reade writer"
|
||||
|
||||
def get_licence():
|
||||
return "BSD-2"
|
||||
|
||||
def get_compagny_type():
|
||||
return "org"
|
||||
|
||||
def get_compagny_name():
|
||||
return "openjpeg"
|
||||
|
||||
def get_maintainer():
|
||||
return [
|
||||
"David Janssens",
|
||||
"Kaori Hagihara",
|
||||
"Jerome Fimes",
|
||||
"Giuseppe Baruffa",
|
||||
"Mickael Savinaud",
|
||||
"Mathieu Malaterre"
|
||||
]
|
||||
|
||||
def get_version():
|
||||
return [2,1,2]
|
||||
|
||||
def configure(target, my_module):
|
||||
my_module.add_src_file([
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsalpha.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmscam02.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmscgats.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmscnvrt.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmserr.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsgamma.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsgmt.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmshalf.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsintrp.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsio0.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsio1.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmslut.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsmd5.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsmtrx.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsnamed.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsopt.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmspack.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmspcs.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsplugin.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsps2.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmssamp.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmssm.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmstypes.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsvirt.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmswtpnt.c',
|
||||
'openjpeg/thirdparty/liblcms2/src/cmsxform.c',
|
||||
])
|
||||
my_module.add_flag('c', [
|
||||
'-DMUTEX_pthread',
|
||||
'-Dopenjp2_EXPORTS'
|
||||
])
|
||||
my_module.compile_version("c", 1999)
|
||||
my_module.add_depend([
|
||||
'z',
|
||||
'm',
|
||||
])
|
||||
my_module.add_path("openjpeg/thirdparty/liblcms2/src/")
|
||||
my_module.add_header_file([
|
||||
'openjpeg/thirdparty/liblcms2/include/lcms2.h',
|
||||
'openjpeg/thirdparty/liblcms2/include/lcms2_plugin.h',
|
||||
],
|
||||
destination_path="")
|
||||
return True
|
||||
|
||||
|
||||
|
60
lutin_openjpeg-compress.py
Normal file
60
lutin_openjpeg-compress.py
Normal file
@ -0,0 +1,60 @@
|
||||
#!/usr/bin/python
|
||||
import lutin.debug as debug
|
||||
import lutin.tools as tools
|
||||
|
||||
|
||||
def get_type():
|
||||
return "BINARY"
|
||||
|
||||
def get_name():
|
||||
return "jpeg-2000-compressor"
|
||||
|
||||
def get_sub_type():
|
||||
return "TEST"
|
||||
|
||||
def get_desc():
|
||||
return "jpeg 2000 compressor"
|
||||
|
||||
def get_licence():
|
||||
return "BSD-2"
|
||||
|
||||
def get_compagny_type():
|
||||
return "org"
|
||||
|
||||
def get_compagny_name():
|
||||
return "openjpeg"
|
||||
|
||||
def get_maintainer():
|
||||
return [
|
||||
"David Janssens",
|
||||
"Kaori Hagihara",
|
||||
"Jerome Fimes",
|
||||
"Giuseppe Baruffa",
|
||||
"Micka Savinaud",
|
||||
"Mathieu Malaterre"
|
||||
]
|
||||
|
||||
def get_version():
|
||||
return [2,1,2]
|
||||
|
||||
def configure(target, my_module):
|
||||
my_module.add_src_file([
|
||||
'openjpeg/src/bin/jp2/opj_compress.c',
|
||||
'openjpeg/src/bin/jp2/convert.c',
|
||||
'openjpeg/src/bin/jp2/convertbmp.c',
|
||||
'openjpeg/src/bin/jp2/index.c',
|
||||
'openjpeg/src/bin/jp2/converttif.c',
|
||||
'openjpeg/src/bin/jp2/convertpng.c',
|
||||
'openjpeg/src/bin/common/color.c',
|
||||
'openjpeg/src/bin/common/opj_getopt.c',
|
||||
])
|
||||
my_module.add_path("generated")
|
||||
my_module.add_path("openjpeg/src/bin/common/")
|
||||
my_module.add_depend([
|
||||
'openjpeg',
|
||||
'png',
|
||||
'cms',
|
||||
'tiff'
|
||||
])
|
||||
return True
|
||||
|
60
lutin_openjpeg-decompress.py
Normal file
60
lutin_openjpeg-decompress.py
Normal file
@ -0,0 +1,60 @@
|
||||
#!/usr/bin/python
|
||||
import lutin.debug as debug
|
||||
import lutin.tools as tools
|
||||
|
||||
|
||||
def get_type():
|
||||
return "BINARY"
|
||||
|
||||
def get_name():
|
||||
return "jpeg-2000-compressor"
|
||||
|
||||
def get_sub_type():
|
||||
return "TEST"
|
||||
|
||||
def get_desc():
|
||||
return "jpeg 2000 compressor"
|
||||
|
||||
def get_licence():
|
||||
return "BSD-2"
|
||||
|
||||
def get_compagny_type():
|
||||
return "org"
|
||||
|
||||
def get_compagny_name():
|
||||
return "openjpeg"
|
||||
|
||||
def get_maintainer():
|
||||
return [
|
||||
"David Janssens",
|
||||
"Kaori Hagihara",
|
||||
"Jerome Fimes",
|
||||
"Giuseppe Baruffa",
|
||||
"Micka Savinaud",
|
||||
"Mathieu Malaterre"
|
||||
]
|
||||
|
||||
def get_version():
|
||||
return [2,1,2]
|
||||
|
||||
def configure(target, my_module):
|
||||
my_module.add_src_file([
|
||||
'openjpeg/src/bin/jp2/opj_decompress.c',
|
||||
'openjpeg/src/bin/jp2/convert.c',
|
||||
'openjpeg/src/bin/jp2/convertbmp.c',
|
||||
'openjpeg/src/bin/jp2/index.c',
|
||||
'openjpeg/src/bin/jp2/converttif.c',
|
||||
'openjpeg/src/bin/jp2/convertpng.c',
|
||||
'openjpeg/src/bin/common/color.c',
|
||||
'openjpeg/src/bin/common/opj_getopt.c',
|
||||
])
|
||||
my_module.add_path("generated")
|
||||
my_module.add_path("openjpeg/src/bin/common/")
|
||||
my_module.add_depend([
|
||||
'openjpeg',
|
||||
'png',
|
||||
'tiff',
|
||||
'cms',
|
||||
])
|
||||
return True
|
||||
|
60
lutin_openjpeg-dump.py
Normal file
60
lutin_openjpeg-dump.py
Normal file
@ -0,0 +1,60 @@
|
||||
#!/usr/bin/python
|
||||
import lutin.debug as debug
|
||||
import lutin.tools as tools
|
||||
|
||||
|
||||
def get_type():
|
||||
return "BINARY"
|
||||
|
||||
def get_name():
|
||||
return "jpeg-2000-compressor"
|
||||
|
||||
def get_sub_type():
|
||||
return "TEST"
|
||||
|
||||
def get_desc():
|
||||
return "jpeg 2000 compressor"
|
||||
|
||||
def get_licence():
|
||||
return "BSD-2"
|
||||
|
||||
def get_compagny_type():
|
||||
return "org"
|
||||
|
||||
def get_compagny_name():
|
||||
return "openjpeg"
|
||||
|
||||
def get_maintainer():
|
||||
return [
|
||||
"David Janssens",
|
||||
"Kaori Hagihara",
|
||||
"Jerome Fimes",
|
||||
"Giuseppe Baruffa",
|
||||
"Micka Savinaud",
|
||||
"Mathieu Malaterre"
|
||||
]
|
||||
|
||||
def get_version():
|
||||
return [2,1,2]
|
||||
|
||||
def configure(target, my_module):
|
||||
my_module.add_src_file([
|
||||
'openjpeg/src/bin/jp2/opj_dump.c',
|
||||
'openjpeg/src/bin/jp2/convert.c',
|
||||
'openjpeg/src/bin/jp2/convertbmp.c',
|
||||
'openjpeg/src/bin/jp2/index.c',
|
||||
'openjpeg/src/bin/jp2/converttif.c',
|
||||
'openjpeg/src/bin/jp2/convertpng.c',
|
||||
'openjpeg/src/bin/common/color.c',
|
||||
'openjpeg/src/bin/common/opj_getopt.c',
|
||||
])
|
||||
my_module.add_path("generated")
|
||||
my_module.add_path("openjpeg/src/bin/common/")
|
||||
my_module.add_depend([
|
||||
'openjpeg',
|
||||
'png',
|
||||
'cms',
|
||||
'tiff'
|
||||
])
|
||||
return True
|
||||
|
108
lutin_openjpeg.py
Normal file
108
lutin_openjpeg.py
Normal file
@ -0,0 +1,108 @@
|
||||
#!/usr/bin/python
|
||||
import lutin.debug as debug
|
||||
import lutin.tools as tools
|
||||
import os
|
||||
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_desc():
|
||||
return "JPEG 2000 reade writer"
|
||||
|
||||
def get_licence():
|
||||
return "BSD-2"
|
||||
|
||||
def get_compagny_type():
|
||||
return "org"
|
||||
|
||||
def get_compagny_name():
|
||||
return "openjpeg"
|
||||
|
||||
def get_maintainer():
|
||||
return [
|
||||
"David Janssens",
|
||||
"Kaori Hagihara",
|
||||
"Jerome Fimes",
|
||||
"Giuseppe Baruffa",
|
||||
"Mickael Savinaud",
|
||||
"Mathieu Malaterre"
|
||||
]
|
||||
|
||||
def get_version():
|
||||
return [2,1,2]
|
||||
|
||||
def configure(target, my_module):
|
||||
my_module.add_src_file([
|
||||
'openjpeg/src/lib/openjp2/thread.c',
|
||||
'openjpeg/src/lib/openjp2/bio.c',
|
||||
'openjpeg/src/lib/openjp2/cio.c',
|
||||
'openjpeg/src/lib/openjp2/dwt.c',
|
||||
'openjpeg/src/lib/openjp2/pi.c',
|
||||
'openjpeg/src/lib/openjp2/event.c',
|
||||
'openjpeg/src/lib/openjp2/image.c',
|
||||
'openjpeg/src/lib/openjp2/invert.c',
|
||||
'openjpeg/src/lib/openjp2/j2k.c',
|
||||
'openjpeg/src/lib/openjp2/jp2.c',
|
||||
'openjpeg/src/lib/openjp2/mct.c',
|
||||
'openjpeg/src/lib/openjp2/mqc.c',
|
||||
'openjpeg/src/lib/openjp2/openjpeg.c',
|
||||
'openjpeg/src/lib/openjp2/opj_clock.c',
|
||||
'openjpeg/src/lib/openjp2/pi.c',
|
||||
'openjpeg/src/lib/openjp2/raw.c',
|
||||
'openjpeg/src/lib/openjp2/t1.c',
|
||||
'openjpeg/src/lib/openjp2/t2.c',
|
||||
'openjpeg/src/lib/openjp2/tcd.c',
|
||||
'openjpeg/src/lib/openjp2/tgt.c',
|
||||
'openjpeg/src/lib/openjp2/function_list.c',
|
||||
'openjpeg/src/lib/openjp2/opj_malloc.c',
|
||||
])
|
||||
my_module.add_flag('c', [
|
||||
'-DMUTEX_pthread',
|
||||
'-Dopenjp2_EXPORTS'
|
||||
])
|
||||
my_module.compile_version("c", 1999)
|
||||
my_module.add_depend([
|
||||
'z',
|
||||
'm',
|
||||
'pthread',
|
||||
])
|
||||
my_module.add_path("openjpeg/src/lib/openjp2/")
|
||||
my_module.add_path("generated")
|
||||
my_module.add_header_file([
|
||||
'openjpeg/src/lib/openjp2/openjpeg.h',
|
||||
'openjpeg/src/lib/openjp2/function_list.h',
|
||||
'openjpeg/src/lib/openjp2/bio.h',
|
||||
'openjpeg/src/lib/openjp2/dwt.h',
|
||||
'openjpeg/src/lib/openjp2/mct.h',
|
||||
'openjpeg/src/lib/openjp2/opj_stdint.h',
|
||||
'openjpeg/src/lib/openjp2/opj_malloc.h',
|
||||
'openjpeg/src/lib/openjp2/jp2.h',
|
||||
'openjpeg/src/lib/openjp2/raw.h',
|
||||
'openjpeg/src/lib/openjp2/cio.h',
|
||||
'openjpeg/src/lib/openjp2/thread.h',
|
||||
'openjpeg/src/lib/openjp2/indexbox_manager.h',
|
||||
'openjpeg/src/lib/openjp2/event.h',
|
||||
'openjpeg/src/lib/openjp2/invert.h',
|
||||
'openjpeg/src/lib/openjp2/mqc.h',
|
||||
'openjpeg/src/lib/openjp2/tls_keys.h',
|
||||
'openjpeg/src/lib/openjp2/opj_inttypes.h',
|
||||
'openjpeg/src/lib/openjp2/t1_luts.h',
|
||||
'openjpeg/src/lib/openjp2/pi.h',
|
||||
'openjpeg/src/lib/openjp2/cidx_manager.h',
|
||||
'openjpeg/src/lib/openjp2/image.h',
|
||||
'openjpeg/src/lib/openjp2/opj_intmath.h',
|
||||
'openjpeg/src/lib/openjp2/t1.h',
|
||||
'openjpeg/src/lib/openjp2/mqc_inl.h',
|
||||
'openjpeg/src/lib/openjp2/opj_includes.h',
|
||||
'openjpeg/src/lib/openjp2/tcd.h',
|
||||
'openjpeg/src/lib/openjp2/t2.h',
|
||||
'openjpeg/src/lib/openjp2/j2k.h',
|
||||
'openjpeg/src/lib/openjp2/tgt.h',
|
||||
'openjpeg/src/lib/openjp2/opj_codec.h',
|
||||
'openjpeg/src/lib/openjp2/opj_clock.h',
|
||||
'generated/opj_config_private.h',
|
||||
'generated/opj_config.h',
|
||||
],
|
||||
destination_path="")
|
||||
return True
|
107
lutin_tiff.py
Normal file
107
lutin_tiff.py
Normal file
@ -0,0 +1,107 @@
|
||||
#!/usr/bin/python
|
||||
import lutin.debug as debug
|
||||
import lutin.tools as tools
|
||||
import os
|
||||
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_desc():
|
||||
return "JPEG 2000 reade writer"
|
||||
|
||||
def get_licence():
|
||||
return "BSD-2"
|
||||
|
||||
def get_compagny_type():
|
||||
return "org"
|
||||
|
||||
def get_compagny_name():
|
||||
return "openjpeg"
|
||||
|
||||
def get_maintainer():
|
||||
return [
|
||||
"David Janssens",
|
||||
"Kaori Hagihara",
|
||||
"Jerome Fimes",
|
||||
"Giuseppe Baruffa",
|
||||
"Mickael Savinaud",
|
||||
"Mathieu Malaterre"
|
||||
]
|
||||
|
||||
def get_version():
|
||||
return [2,1,2]
|
||||
|
||||
def configure(target, my_module):
|
||||
my_module.add_src_file([
|
||||
'openjpeg/thirdparty/libtiff/tif_aux.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_close.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_codec.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_color.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_compress.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_dir.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_dirinfo.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_dirread.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_dirwrite.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_dumpmode.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_error.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_extension.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_fax3.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_fax3sm.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_flush.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_getimage.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_jbig.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_jpeg.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_luv.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_lzw.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_next.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_ojpeg.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_open.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_packbits.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_pixarlog.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_predict.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_print.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_read.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_strip.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_swab.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_thunder.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_tile.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_version.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_warning.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_write.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_zip.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_jpeg_12.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_lzma.c',
|
||||
'openjpeg/thirdparty/libtiff/tif_unix.c',
|
||||
])
|
||||
"""
|
||||
my_module.add_flag('c', [
|
||||
'-DMUTEX_pthread',
|
||||
'-Dopenjp2_EXPORTS'
|
||||
])
|
||||
"""
|
||||
my_module.compile_version("c", 1999)
|
||||
my_module.add_depend([
|
||||
'z',
|
||||
'm',
|
||||
])
|
||||
my_module.add_path("openjpeg/src/lib/openjp2/")
|
||||
my_module.add_path("generated")
|
||||
my_module.add_header_file([
|
||||
'openjpeg/thirdparty/libtiff/libport.h',
|
||||
'openjpeg/thirdparty/libtiff/t4.h',
|
||||
'generated/tif_config.h',
|
||||
'openjpeg/thirdparty/libtiff/tif_dir.h',
|
||||
'openjpeg/thirdparty/libtiff/tif_fax3.h',
|
||||
'generated/tiffconf.h',
|
||||
'openjpeg/thirdparty/libtiff/tiff.h',
|
||||
'openjpeg/thirdparty/libtiff/tiffio.h',
|
||||
'openjpeg/thirdparty/libtiff/tiffio.hxx',
|
||||
'openjpeg/thirdparty/libtiff/tiffiop.h',
|
||||
'openjpeg/thirdparty/libtiff/tiffvers.h',
|
||||
'openjpeg/thirdparty/libtiff/tif_predict.h',
|
||||
'openjpeg/thirdparty/libtiff/uvcode.h',
|
||||
],
|
||||
destination_path="")
|
||||
return True
|
||||
|
1
openjpeg
Submodule
1
openjpeg
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 7113c4e3bbb4b397ae0c27cbfb645ae8acfee042
|
Loading…
Reference in New Issue
Block a user