aboutsummaryrefslogtreecommitdiff
path: root/camera/libpiex_shim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'camera/libpiex_shim.cpp')
-rw-r--r--camera/libpiex_shim.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/camera/libpiex_shim.cpp b/camera/libpiex_shim.cpp
new file mode 100644
index 0000000..2ce9e19
--- /dev/null
+++ b/camera/libpiex_shim.cpp
@@ -0,0 +1,17 @@
+#include <src/piex.h>
+
+namespace piex {
+
+using image_type_recognition::RawImageTypes;
+
+extern "C" void
+ _ZN4piex19GetPreviewImageDataEPNS_15StreamInterfaceEPNS_16PreviewImageDataEPNS_22image_type_recognition13RawImageTypesE(
+ StreamInterface* data, PreviewImageData* preview_image_data, RawImageTypes* output_type);
+
+
+extern "C" void _ZN4piex19GetPreviewImageDataEPNS_15StreamInterfaceEPNS_16PreviewImageDataE(
+ StreamInterface* data, PreviewImageData* preview_image_data) {
+ return _ZN4piex19GetPreviewImageDataEPNS_15StreamInterfaceEPNS_16PreviewImageDataEPNS_22image_type_recognition13RawImageTypesE(data, preview_image_data, nullptr);
+}
+
+} // namespace piex \ No newline at end of file