AnsweredAssumed Answered

USB Camera preview distortion when settings button pressed

Question asked by Mohammed Hasan on Mar 20, 2014
Latest reply on Apr 22, 2015 by li yu

Hi,

 

 

 

We are seeing Camera preview distortion while USB camera is connected and camera setting dialog is in foreground.

 

 

 

Scenario :

1.       Connect USB camera.

2.       Go to default Google Camera application (GMS) and open USB camera > select camera settings.

3.       Some distortion will be seen on the screen and after few minutes preview frames stops due to timeout issue in Camera HAL at select(mCameraHandle+1, &rfds, NULL, NULL, &tv) in UvcDevice.cpp.

 

 

 

This issue is observed with applications using Surface Texture (OpenGL ES texture) instead of Surface Holder for output destination.

 

 

 

Setup:

Android JB 4.2.2.1.1.0 build

Custom board based on FSL IMX6 Sabresd

Camera: Logitech Webcam C930e and C310

 

 

 

Could you please provide the patches for the above issue for Android 4.2.2?

 

 

 

Regards,

Hasan

Not-working1.png

Outcomes