USB Camera preview distortion when settings button pressed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB Camera preview distortion when settings button pressed

1,185 Views
mghasan
Contributor I

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

Tags (3)
0 Kudos
4 Replies

565 Views
liyu1
Contributor III

HI :

     I met the same issue ! please tell me to Solve it ?

0 Kudos

565 Views
saurabh206
Senior Contributor III

Hi,

You can see some improvement by enabling Force GPU rendering.

settings->Developer options-->Force GPU rendering.

Regards,

Saurabh

0 Kudos

565 Views
mghasan
Contributor I

Hi Saurabh,

I have enabled Force GPU rendering but still same distortion is seen.

0 Kudos

565 Views
Wlodek_D_
Senior Contributor II

Dear Mohammed Hasan,

Thank you for your post, however please consider moving it to the right community place (e.g. i.MX Community ) for better visibility.

For details please see general advice https://community.freescale.com/docs/DOC-99909

Thank you for using Freescale Community.

Regards,

Wlodek_D.

0 Kudos