From e06bcd027f860f2d62c5419dab14a975eecae7c9 Mon Sep 17 00:00:00 2001 From: Giuseppe Baruffa Date: Thu, 29 Nov 2007 14:38:26 +0000 Subject: Added index.h and index.c in VC6 projects; wrapped index.h in the C++ preprocessor; modified OPJViewer project and some files. --- codec/image_to_j2k.dsp | 8 ++++++++ codec/index.c | 1 + codec/index.h | 8 ++++++++ codec/j2k_to_image.dsp | 8 ++++++++ 4 files changed, 25 insertions(+) (limited to 'codec') diff --git a/codec/image_to_j2k.dsp b/codec/image_to_j2k.dsp index ee02c169..3e1b0f66 100644 --- a/codec/image_to_j2k.dsp +++ b/codec/image_to_j2k.dsp @@ -106,5 +106,13 @@ SOURCE=.\compat\getopt.h SOURCE=.\image_to_j2k.c # End Source File +# Begin Source File + +SOURCE=.\index.c +# End Source File +# Begin Source File + +SOURCE=.\index.h +# End Source File # End Target # End Project diff --git a/codec/index.c b/codec/index.c index 985c18a0..2e0283dd 100644 --- a/codec/index.c +++ b/codec/index.c @@ -28,6 +28,7 @@ #include #include +#include #include "openjpeg.h" #include "index.h" diff --git a/codec/index.h b/codec/index.h index aed61e62..29f673a1 100644 --- a/codec/index.h +++ b/codec/index.h @@ -29,6 +29,10 @@ #ifndef __J2K_INDEX_H #define __J2K_INDEX_H +#ifdef __cplusplus +extern "C" { +#endif + /** Write a structured index to a file @param cstr_info Codestream information @@ -37,5 +41,9 @@ Write a structured index to a file */ int write_index_file(opj_codestream_info_t *cstr_info, char *index); +#ifdef __cplusplus +} +#endif + #endif /* __J2K_INDEX_H */ diff --git a/codec/j2k_to_image.dsp b/codec/j2k_to_image.dsp index 36fc74bb..927f1a59 100644 --- a/codec/j2k_to_image.dsp +++ b/codec/j2k_to_image.dsp @@ -103,6 +103,14 @@ SOURCE=.\compat\getopt.h # End Source File # Begin Source File +SOURCE=.\index.c +# End Source File +# Begin Source File + +SOURCE=.\index.h +# End Source File +# Begin Source File + SOURCE=.\j2k_to_image.c # End Source File # End Target -- cgit v1.2.3