From 9a0a2da53003775eb965207e47fd84c607d001da Mon Sep 17 00:00:00 2001 From: daniml3 Date: Fri, 19 Aug 2022 13:56:19 +0200 Subject: veux: shim the GetPreviewImageData symbol on libpiex Signed-off-by: daniml3 --- camera/libpiex_shim.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 camera/libpiex_shim.cpp (limited to 'camera/libpiex_shim.cpp') 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 + +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 -- cgit v1.2.3