saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
2.96k stars 1.19k forks source link

How to use UVCCamera in C++ code #593

Open jumpy88 opened 3 years ago

jumpy88 commented 3 years ago

Hello everyone, I'm trying to use UVCCamera libraries in C++ source code. I manage to build and link my project https://github.com/jumpy88/godot_uvc-camera-reader_android which calls functions in libuvc.so built with UVCCamera project, but uvc_find_device fails with UVC_ERROR_NO_DEVICE = -4 error and I don't understand how to use uvc_get_device_with_fd (mostly I don't understand how to initialize fd). Someone can address me to the right direction?