Hi all,
I am trying to enable USB Camera solution on an android-x86 platform (Kitkat 4.4.4).
I have taken the reference camera HAL code from here (Thanks to the people who have contributed to it :) )
Please note that I am using the default camera application, and have enabled the default UVC driver.
Now, as I understand, this code is supposed to work as is, without any modifications. However, my experience has been different:
1. Still Preview: I had to make few small fixes related to camera parameters to enable camera preview.
2. Still Picture: Camera HAL code returns jpeg format buffer, while the application expects exif metadata as well, resulting in java exception
3. Video Preview: TBD
4. Video Record: TBD
Now I am thinking that may be I am doing something wrong, as I am running into these issues. Another possibility is, that camera usecases have not been verified with newer versions of android (application/framework).
If someone could share their experiences with this camera HAL code, I would be really grateful.
Also, are all the three primary usecases (Preview, Still Capture, Video Record) functional with this code on Android Kitkat?
PS: I would be more than happy to share my fixes, if they are any useful.