AnsweredAssumed Answered

USB Camera in JB 4.2.2-1.0.0 SabreSD

Question asked by Chris1z on Jun 24, 2013
Latest reply on Aug 29, 2013 by Chris1z
Branched to a new discussion

I've enabled the USB camera on JB 4.2.2 SabreSD board using the following patch.  When I test it with a Logitech Webcam C250 and the "Camera" app, I see a lot of video glitches.  Pointing it at a static location, I see glitches every 5-10 seconds.  And if I wave my hand in front of the camera the video glitches are worse.

 

Is there a way to improve the USB video decoding performance?

 

 

 

 

diff --git a/sabresd_6dq/BoardConfig.mk b/sabresd_6dq/BoardConfig.mk

index 8ecf4a7..ef53f05 100755

--- a/sabresd_6dq/BoardConfig.mk

+++ b/sabresd_6dq/BoardConfig.mk

@@ -97,6 +97,8 @@ USE_GPU_ALLOCATOR := true

# camera hal v2

IMX_CAMERA_HAL_V2 := true

 

+BOARD_HAVE_USB_CAMERA := true

+

# define frame buffer count

NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3

 

diff --git a/sabresd_6dq/init.rc b/sabresd_6dq/init.rc

index 4420c07..70f7cae 100755

--- a/sabresd_6dq/init.rc

+++ b/sabresd_6dq/init.rc

@@ -52,10 +52,10 @@ on boot

     #For landscape mode, orient is 0

     #For portrait mode, orient is 90

     #the android before honycomb are all in portrait mode

-    setprop back_camera_name ov5640_mipi

+    setprop back_camera_name uvc

     setprop back_camera_orient 0

-    setprop front_camera_name uvc,ov5642_camera,ov5640_camera

-    setprop front_camera_orient 0

+    #setprop front_camera_name uvc

+    #setprop front_camera_orient 0

 

     # Set OpenGLES version

     setprop ro.opengles.version 131072

 

Outcomes