我正在按照这些说明为树莓派3构建一个Nougat AOSP镜像:https://github.com/tab-pi/platform_manifest。我有一台UVC兼容的USB网络摄像头(Logitech C525),我想通过Android相机API进行访问。
到目前为止,摄像头在UsbManager.getDeviceList()中可见,但Camera.getNumberOfCameras()返回0。
我已经定制了内核,以便在插入摄像头时出现适当权限的
我尝试在我的AOSP树上构建以下HAL,但它们全部失败了:
/dev/video0
:$ adb shell ls -l /dev/video0
crw-rw---- 1 system camera 81, 0 2018-09-20 10:16 /dev/video0
我尝试在我的AOSP树上构建以下HAL,但它们全部失败了:
https://github.com/jollen/libv4l2-android:
fatal error: 'ui/CameraHardwareInterface.h'文件未找到
https://github.com/antmicro/android-camera-hal:
error: use of undeclared identifier 'kMaxStride'
no member named 'I422ToABGRRow_NEON' in namespace 'libyuv'
https://github.com/aosp-mirror/platform_hardware_libhardware/tree/master/modules/camera/3_4
ninja: error: 'out/target/product/rpi3/obj/STATIC_LIBRARIES/libgtest_prod_intermediates/export_includes', needed by 'out/target/product/rpi3/obj/SHARED_LIBRARIES/camera.v4l2_intermediates/import_includes', missing and no known rule to make it