summaryrefslogtreecommitdiffstats
path: root/src/libraw-test.cpp
diff options
context:
space:
mode:
authorAlberto Mardegan <mardy@users.sourceforge.net>2020-04-11 08:02:06 (GMT)
committerTony Theodore <tonyt@logyst.com>2020-06-21 15:27:59 (GMT)
commit88167a310b8cbf94b2fcc6f8570fb6d78a483e05 (patch)
tree1895e7aec30992cda0133f2113d42512f6b07efa /src/libraw-test.cpp
parent437e89c01e9a4eabd29a5fa4f6da033d02cad35e (diff)
downloadmxe-88167a310b8cbf94b2fcc6f8570fb6d78a483e05.zip
mxe-88167a310b8cbf94b2fcc6f8570fb6d78a483e05.tar.gz
mxe-88167a310b8cbf94b2fcc6f8570fb6d78a483e05.tar.bz2
Add libraw: library for processing raw image files
Let's keep jasper disabled for now, as it produces build errors: /mnt/Lavoro/mxe/mxe/usr/x86_64-w64-mingw32.shared/include/jasper/jas_math.h: In function 'bool jas_safe_intfast32_mul(int_fast32_t, int_fast32_t, int_fast32_t*)': /mnt/Lavoro/mxe/mxe/usr/x86_64-w64-mingw32.shared/include/jasper/jas_math.h:241:12: error: 'INT_FAST32_MAX' was not declared in this scope if (x > INT_FAST32_MAX / y) { ^ It's not a required dependency, but we might want to add it later if someone asks for it (and can provide a solution).
Diffstat (limited to 'src/libraw-test.cpp')
-rw-r--r--src/libraw-test.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libraw-test.cpp b/src/libraw-test.cpp
new file mode 100644
index 0000000..1382bd5
--- /dev/null
+++ b/src/libraw-test.cpp
@@ -0,0 +1,18 @@
+/*
+ * This file is part of MXE. See LICENSE.md for licensing information.
+ */
+
+#include <iostream>
+#include <libraw.h>
+
+int main(int argc, char *argv[])
+{
+ (void)argc;
+ (void)argv;
+
+ LibRaw libRaw;
+ std::cout << "This is libraw version " << libRaw.version() << std::endl;
+ std::cout << libRaw.cameraCount() << " cameras supported." << std::endl;
+
+ return 0;
+}