sm6150-common: Add GetPreviewImageData shim for camera
Signed-off-by: daniml3 <daniel@danielml.dev> Change-Id: Iad9d37b992775b6d7b9b52ed4637c70fd13ede7f
This commit is contained in:
parent
816cf6a1cd
commit
c4f19714f0
17
camera/Android.bp
Normal file
17
camera/Android.bp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2022 The LineageOS Project
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
cc_library_shared {
|
||||||
|
name: "libpiex_shim",
|
||||||
|
srcs: [
|
||||||
|
"libpiex_shim.cpp",
|
||||||
|
],
|
||||||
|
vendor: true,
|
||||||
|
shared_libs: [
|
||||||
|
"libpiex",
|
||||||
|
"libutils",
|
||||||
|
],
|
||||||
|
}
|
17
camera/libpiex_shim.cpp
Normal file
17
camera/libpiex_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 New Issue
Block a user