minor modifications were added as a part of testing codec2 service on rockchip SoC. These mods are only for testing and wouldn't impact the functionality
93 lines
2.4 KiB
Text
93 lines
2.4 KiB
Text
// Copyright (C) 2022 Michael Goffioul <michael.goffioul@gmail.com>
|
|
// Copyright (C) 2025 KonstaKANG
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
cc_defaults {
|
|
name: "ffmpeg_codec2_defaults",
|
|
relative_install_path: "hw",
|
|
vendor: true,
|
|
srcs: [
|
|
"C2FFMPEGAudioDecodeComponent.cpp",
|
|
"C2FFMPEGAudioDecodeInterface.cpp",
|
|
"C2FFMPEGComponentInterface.cpp",
|
|
"C2FFMPEGComponentStore.cpp",
|
|
"C2FFMPEGVideoDecodeComponent.cpp",
|
|
"C2FFMPEGVideoDecodeInterface.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libavcodec",
|
|
"libavservices_minijail",
|
|
"libavutil",
|
|
"libbase",
|
|
"libcodec2_soft_common",
|
|
"libcodec2_vndk",
|
|
"libffmpeg_utils",
|
|
"liblog",
|
|
"libstagefright_foundation",
|
|
"libswresample",
|
|
"libswscale",
|
|
"libutils",
|
|
"libyuv",
|
|
],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.media.c2@1.2-service-ffmpeg",
|
|
init_rc: ["android.hardware.media.c2@1.2-service-ffmpeg.rc"],
|
|
vintf_fragments: ["android.hardware.media.c2@1.2-service-ffmpeg.xml"],
|
|
srcs: [
|
|
"main-hidl.cpp",
|
|
],
|
|
shared_libs: [
|
|
"android.hardware.media.c2@1.2",
|
|
"libbinder",
|
|
"libcodec2_hidl@1.2",
|
|
"libhidlbase",
|
|
],
|
|
defaults: ["ffmpeg_codec2_defaults"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.media.c2-service-ffmpeg",
|
|
srcs: [
|
|
"main.cpp",
|
|
],
|
|
shared_libs: [
|
|
"android.hardware.media.c2-V1-ndk",
|
|
"libbinder_ndk",
|
|
"libcodec2_aidl",
|
|
"libcodec2_hal_common",
|
|
],
|
|
defaults: ["ffmpeg_codec2_defaults"],
|
|
installable: false,
|
|
}
|
|
|
|
prebuilt_etc {
|
|
name: "android.hardware.media.c2-service-ffmpeg.rc",
|
|
src: "android.hardware.media.c2-service-ffmpeg.rc",
|
|
installable: false,
|
|
}
|
|
|
|
prebuilt_etc {
|
|
name: "android.hardware.media.c2-service-ffmpeg.xml",
|
|
src: "android.hardware.media.c2-service-ffmpeg.xml",
|
|
sub_dir: "vintf",
|
|
installable: false,
|
|
}
|
|
|
|
apex {
|
|
name: "com.android.hardware.media.c2.ffmpeg",
|
|
manifest: "apex_manifest.json",
|
|
file_contexts: "apex_file_contexts",
|
|
key: "com.android.hardware.key",
|
|
certificate: ":com.android.hardware.certificate",
|
|
updatable: false,
|
|
vendor: true,
|
|
binaries: ["android.hardware.media.c2-service-ffmpeg"],
|
|
|
|
prebuilts: [
|
|
"android.hardware.media.c2-service-ffmpeg.rc",
|
|
"android.hardware.media.c2-service-ffmpeg.xml",
|
|
],
|
|
}
|