compat: Add GetPreviewImageData shim for camera
Signed-off-by: daniml3 <daniel@danielml.dev> Change-Id: Iad9d37b992775b6d7b9b52ed4637c70fd13ede7f
This commit is contained in:
parent
f0f1e67f41
commit
b6e1983240
2 changed files with 24 additions and 0 deletions
|
@ -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
17
libpiex/piex_shim.cpp
Normal 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
|
Loading…
Reference in a new issue