marble: add libcodec2_hidl_shim library and implementation for codec2 HIDL interface

This commit is contained in:
2025-06-16 08:46:16 +09:00
parent ed59e6f20f
commit 2e3e573a54
2 changed files with 19 additions and 0 deletions

8
libshim/Android.bp Normal file
View File

@ -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,
}

View File

@ -0,0 +1,11 @@
#include <stdint.h>
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);
}
}