diff --git a/Android.bp b/Android.bp index 44e6103..ce56e24 100644 --- a/Android.bp +++ b/Android.bp @@ -1465,7 +1465,7 @@ cc_prebuilt_library_shared { target: { android_arm64: { srcs: ["proprietary/vendor/lib64/hw/camera.qcom.so"], - shared_libs: ["libc++", "libcutils", "liblog", "libcdsprpc", "libqdMetaData", "libsnsapi", "libqmi_common_so", "libqmi_cci", "libqmi_encdec", "libprotobuf-cpp-full-3.9.1-vendorcompat", "libhardware", "libcamera_metadata", "libcamxfdengine", "libcamxstatscore", "libsync", "libmegface", "libMegviiFacepp-0.5.2", "libz", "libdl", "libc", "libm", ], + shared_libs: ["libc++", "libcutils", "liblog", "libcdsprpc", "libqdMetaData", "libsnsapi", "libqmi_common_so", "libqmi_cci", "libqmi_encdec", "libprotobuf-cpp-full-3.9.1-vendorcompat", "libhardware", "libcamera_metadata", "libcamxfdengine", "libcamxstatscore", "libsync", "libfacedet", "libFaceDetectpp-0.5.2", "libz", "libdl", "libc", "libm", ], }, }, compile_multilib: "64", @@ -1529,6 +1529,23 @@ cc_prebuilt_library_shared { soc_specific: true, } +cc_prebuilt_library_shared { + name: "libFaceDetectpp-0.5.2", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: ["proprietary/vendor/lib64/libFaceDetectpp-0.5.2.so"], + shared_libs: ["libfacedet", "libc", "libm", "libdl", "liblog", "libEGL", "libGLESv2", ], + }, + }, + compile_multilib: "64", + prefer: true, + soc_specific: true, +} + cc_prebuilt_library_shared { name: "libFaceGrade", owner: "xiaomi", @@ -2179,6 +2196,23 @@ cc_prebuilt_library_shared { soc_specific: true, } +cc_prebuilt_library_shared { + name: "libfacedet", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: ["proprietary/vendor/lib64/libfacedet.so"], + shared_libs: ["libm", "liblog", "libdl", "libc", ], + }, + }, + compile_multilib: "64", + prefer: true, + soc_specific: true, +} + cc_prebuilt_library_shared { name: "libft2vendor", owner: "xiaomi", diff --git a/proprietary/vendor/etc/camera/facedetectpp_0_5_2_model b/proprietary/vendor/etc/camera/facedetectpp_0_5_2_model new file mode 100644 index 0000000..4509745 Binary files /dev/null and b/proprietary/vendor/etc/camera/facedetectpp_0_5_2_model differ diff --git a/proprietary/vendor/lib64/hw/camera.qcom.so b/proprietary/vendor/lib64/hw/camera.qcom.so index 84b121f..9cf39a5 100644 Binary files a/proprietary/vendor/lib64/hw/camera.qcom.so and b/proprietary/vendor/lib64/hw/camera.qcom.so differ diff --git a/proprietary/vendor/lib64/libFaceDetectpp-0.5.2.so b/proprietary/vendor/lib64/libFaceDetectpp-0.5.2.so new file mode 100644 index 0000000..18be752 Binary files /dev/null and b/proprietary/vendor/lib64/libFaceDetectpp-0.5.2.so differ diff --git a/proprietary/vendor/lib64/libfacedet.so b/proprietary/vendor/lib64/libfacedet.so new file mode 100644 index 0000000..11010bf Binary files /dev/null and b/proprietary/vendor/lib64/libfacedet.so differ diff --git a/sweet-vendor.mk b/sweet-vendor.mk index 4608308..6e17c55 100644 --- a/sweet-vendor.mk +++ b/sweet-vendor.mk @@ -39,6 +39,7 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/sweet/proprietary/vendor/etc/camera/golden_rear_dc_cal_wu.bin:$(TARGET_COPY_OUT_VENDOR)/etc/camera/golden_rear_dc_cal_wu.bin \ vendor/xiaomi/sweet/proprietary/vendor/etc/camera/hdr_ui9_params.config:$(TARGET_COPY_OUT_VENDOR)/etc/camera/hdr_ui9_params.config \ vendor/xiaomi/sweet/proprietary/vendor/etc/camera/lf_facerank_model.bin:$(TARGET_COPY_OUT_VENDOR)/etc/camera/lf_facerank_model.bin \ + vendor/xiaomi/sweet/proprietary/vendor/etc/camera/facedetectpp_0_5_2_model:$(TARGET_COPY_OUT_VENDOR)/etc/camera/facedetectpp_0_5_2_model \ vendor/xiaomi/sweet/proprietary/vendor/etc/camera/mibokeh_712_opencl.bin:$(TARGET_COPY_OUT_VENDOR)/etc/camera/mibokeh_712_opencl.bin \ vendor/xiaomi/sweet/proprietary/vendor/etc/camera/mibokeh_712_parameter.bin:$(TARGET_COPY_OUT_VENDOR)/etc/camera/mibokeh_712_parameter.bin \ vendor/xiaomi/sweet/proprietary/vendor/etc/camera/sceneDetection.xml:$(TARGET_COPY_OUT_VENDOR)/etc/camera/sceneDetection.xml \ @@ -261,6 +262,7 @@ PRODUCT_PACKAGES += \ com.qti.chi.override \ fingerprint.fortsense.sm6150 \ fingerprint.fpc.sm6150 \ + libFaceDetectpp-0.5.2 \ libFaceGrade \ libPSNPE \ libSNPE \ @@ -299,6 +301,7 @@ PRODUCT_PACKAGES += \ libcom.qti.chinodeutils \ libdualcam_optical_zoom_control \ libdualcam_video_optical_zoom \ + libfacedet \ libft2vendor \ libhta \ libhta_hexagon_runtime \