compat: Add GetPreviewImageData shim for camera

Signed-off-by: daniml3 <daniel@danielml.dev>
Change-Id: Iad9d37b992775b6d7b9b52ed4637c70fd13ede7f
This commit is contained in:
daniml3 2022-08-19 13:56:19 +02:00 committed by Subhajeet Muhuri
parent f0f1e67f41
commit b6e1983240
No known key found for this signature in database
GPG key ID: F57B1F6CE8E055AF
2 changed files with 24 additions and 0 deletions

View file

@ -278,6 +278,13 @@ cc_library {
vendor: true,
}
cc_library_shared {
name: "libpiex_shim",
shared_libs: ["libpiex"],
srcs: ["libpiex/piex_shim.cpp"],
vendor: true,
}
cc_library_shared {
name: "libui_shim",
shared_libs: ["libui"],

17
libpiex/piex_shim.cpp Normal file
View file

@ -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 android