diff options
| author | Antonin Descampe <antonin@gmail.com> | 2010-12-08 11:06:41 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2010-12-08 11:06:41 +0000 |
| commit | 9fdaaa3316b362f538c2ea51888c93dc9a7452d4 (patch) | |
| tree | 6c89ad2707dc066b4a5a79a1244c577b6a2a7797 /libjp3dvm | |
| parent | c906c230fb403ff190d1730365026603f4c2c0d9 (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 'libjp3dvm')
| -rwxr-xr-x | libjp3dvm/event.c | 4 | ||||
| -rwxr-xr-x | libjp3dvm/jp3d_lib.c | 8 | ||||
| -rwxr-xr-x | libjp3dvm/openjpeg.c | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/libjp3dvm/event.c b/libjp3dvm/event.c index 6fe8ae2e..c558218c 100755 --- a/libjp3dvm/event.c +++ b/libjp3dvm/event.c @@ -30,7 +30,7 @@ // Utility functions
// ==========================================================
-#ifndef WIN32
+#ifndef _WIN32
static char*
i2a(unsigned i, char *a, unsigned r) {
if (i/r > 0) a = i2a(i/r,a,r);
@@ -57,7 +57,7 @@ _itoa(int i, char *a, int r) { return a;
}
-#endif // !WIN32
+#endif // !_WIN32
/* ----------------------------------------------------------------------- */
diff --git a/libjp3dvm/jp3d_lib.c b/libjp3dvm/jp3d_lib.c index fe19ab8b..b2303991 100755 --- a/libjp3dvm/jp3d_lib.c +++ b/libjp3dvm/jp3d_lib.c @@ -24,17 +24,17 @@ * POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/times.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
#include "opj_includes.h"
double opj_clock() {
-#ifdef WIN32
+#ifdef _WIN32
/* WIN32: use QueryPerformance (very accurate) */
LARGE_INTEGER freq , t ;
/* freq is the clock speed of the CPU */
@@ -54,7 +54,7 @@ double opj_clock() { procTime = t.ru_utime.tv_sec + t.ru_stime.tv_sec;
/* (2b) More precisely! Get the microseconds part ! */
return ( procTime + (t.ru_utime.tv_usec + t.ru_stime.tv_usec) * 1e-6 ) ;
-#endif
+#endif /* _WIN32 */
}
void* opj_malloc( size_t size ) {
diff --git a/libjp3dvm/openjpeg.c b/libjp3dvm/openjpeg.c index eb4c39bf..8e3a0782 100755 --- a/libjp3dvm/openjpeg.c +++ b/libjp3dvm/openjpeg.c @@ -25,14 +25,14 @@ * POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
#include "opj_includes.h"
#define JP3D_VERSION "1.3.0"
/* ---------------------------------------------------------------------- */
-#ifdef WIN32
+#ifdef _WIN32
#ifndef OPJ_STATIC
BOOL APIENTRY
DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
@@ -49,7 +49,7 @@ DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { return TRUE;
}
#endif /* OPJ_STATIC */
-#endif /* WIN32 */
+#endif /* _WIN32 */
/* ---------------------------------------------------------------------- */
|
