From 2e3e573a54feeba318e6a9e991df6065869883c8 Mon Sep 17 00:00:00 2001 From: naijun0403 Date: Mon, 16 Jun 2025 08:46:16 +0900 Subject: [PATCH] marble: add libcodec2_hidl_shim library and implementation for codec2 HIDL interface --- libshim/Android.bp | 8 ++++++++ libshim/libcodec2_hidl_shim/libcodec2_hidl_shim.cpp | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 libshim/Android.bp create mode 100644 libshim/libcodec2_hidl_shim/libcodec2_hidl_shim.cpp diff --git a/libshim/Android.bp b/libshim/Android.bp new file mode 100644 index 0000000..061a487 --- /dev/null +++ b/libshim/Android.bp @@ -0,0 +1,8 @@ +cc_library_shared { + name: "libcodec2_hidl_shim", + srcs: ["libcodec2_hidl_shim/libcodec2_hidl_shim.cpp"], + shared_libs: [ + "libcodec2_hidl@1.0", + ], + vendor_available: true, +} \ No newline at end of file diff --git a/libshim/libcodec2_hidl_shim/libcodec2_hidl_shim.cpp b/libshim/libcodec2_hidl_shim/libcodec2_hidl_shim.cpp new file mode 100644 index 0000000..c388c5f --- /dev/null +++ b/libshim/libcodec2_hidl_shim/libcodec2_hidl_shim.cpp @@ -0,0 +1,11 @@ +#include + +namespace android { + extern "C" void _ZN7android8hardware5media2c24V1_05utils6objcpyEPNS3_10WorkBundleERKNSt3__14listINS7_10unique_ptrI6C2WorkNS7_14default_deleteISA_EEEENS7_9allocatorISD_EEEEPNS_16BufferPoolSenderINS4_15BufferPoolTypesEEE( + void* thisptr, void* list, bool param1, bool param2); + + extern "C" void _ZN7android8hardware5media2c24V1_05utils6objcpyEPNS3_10WorkBundleERKNSt3__14listINS7_10unique_ptrI6C2WorkNS7_14default_deleteISA_EEEENS7_9allocatorISD_EEEEPNS4_16BufferPoolSenderE( + void* thisptr, void* list, bool param1, bool param2) { + _ZN7android8hardware5media2c24V1_05utils6objcpyEPNS3_10WorkBundleERKNSt3__14listINS7_10unique_ptrI6C2WorkNS7_14default_deleteISA_EEEENS7_9allocatorISD_EEEEPNS_16BufferPoolSenderINS4_15BufferPoolTypesEEE(thisptr, list, param1, param2); + } +} \ No newline at end of file