summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-11-29 14:38:26 +0000
committerGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-11-29 14:38:26 +0000
commite06bcd027f860f2d62c5419dab14a975eecae7c9 (patch)
tree43c511e05e90780b5662585ac0913425a84e239f /codec
parent9e5d165e79499cffe11a85ebc1b1ff320d52953b (diff)
Added index.h and index.c in VC6 projects; wrapped index.h in the C++ preprocessor; modified OPJViewer project and some files.
Diffstat (limited to 'codec')
-rw-r--r--codec/image_to_j2k.dsp8
-rw-r--r--codec/index.c1
-rw-r--r--codec/index.h8
-rw-r--r--codec/j2k_to_image.dsp8
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