diff options
Diffstat (limited to 'codec')
| -rw-r--r-- | codec/image_to_j2k.dsp | 8 | ||||
| -rw-r--r-- | codec/index.c | 1 | ||||
| -rw-r--r-- | codec/index.h | 8 | ||||
| -rw-r--r-- | codec/j2k_to_image.dsp | 8 |
4 files changed, 25 insertions, 0 deletions
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 <stdio.h>
#include <math.h>
+#include <string.h>
#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
|
