sm6150-common: Improve camera shim

Change-Id: Id11965102d7d5dce50f989c99810cda6a43aa1ec
This commit is contained in:
Arian 2022-08-20 00:31:27 +02:00
parent c4f19714f0
commit 2a63fa8cff
2 changed files with 10 additions and 12 deletions

View File

@ -12,6 +12,5 @@ cc_library_shared {
vendor: true,
shared_libs: [
"libpiex",
"libutils",
],
}

View File

@ -1,17 +1,16 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#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);
Error GetPreviewImageData(StreamInterface* data,
PreviewImageData* preview_image_data) {
return GetPreviewImageData(data, preview_image_data, nullptr);
}
} // namespace android
} // namespace piex