Firefly开源社区

标题: firefly-RK3288 reload版,安卓5.1版本,点不亮商城的USB高清摄像头(199元) [打印本页]

作者: lori    时间: 2017-12-16 16:52
标题: firefly-RK3288 reload版,安卓5.1版本,点不亮商城的USB高清摄像头(199元)
用最新的固件:Firefly-RK3288-Reload_Android5.1_201711211135.7z  也试过不行请问有什么特别的补丁或者如何修改?




作者: jpchen    时间: 2017-12-18 10:14
请插入USB 然后重启一下试试
作者: leung先森    时间: 2017-12-18 10:19
logcat -s CameraHal将log发出来看看
作者: lori    时间: 2017-12-18 10:48
--------- beginning of system

--------- beginning of crash

--------- beginning of main

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_1 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_1 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_1 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(0), orientation(0)

I/CameraHal( 2881): camera_device_open(500): camera_device open

D/CameraHal( 2881): gCameraHalLogLevel: 0

D/CameraHal( 2881): CameraHal(146): it is a uvc camera!

D/CameraHal( 2881): Writetxt(80): /data/rotation_flag open success!

D/CameraHal( 2881): Calling process is: com.android.camera2

D/CameraHal( 2881): cameraCreate(374): Camera driver: uvcvideo   Driver version: 3.10.0  CameraHal version: 1.55.1

D/CameraHal( 2881): cameraCreate(381): mCamDriverSupportFmt: fmt = 1448695129,index = 0

D/CameraHal( 2881): cameraCreate(381): mCamDriverSupportFmt: fmt = 1196444237,index = 1

D/CameraHal( 2881): cameraCreate(419): cameraCreate(419): mCamDriverPreviewFmt(YUYV) is cameraHal and camera driver is also supported!!

D/CameraHal( 2881): cameraCreate(421): mCamDriverPreviewFmt  = 1448695129

D/CameraHal( 2881): cameraCreate(427): cameraCreate(427): Current driver is uvcvideo, v4l2 memory is V4L2_MEMORY_MMAP

E/CameraHal( 2881): initDefaultParameters(486): initDefaultParameters(486): mCamDriverCapability.card is error!

D/CameraHal( 2881): initDefaultParameters(534): Support Preview format: yuv420sp,yuv420p .. yuv420sp

D/CameraHal( 2881): initDefaultParameters(536): Support Preview sizes: 640x480,352x288,320x240,176x144,160x120,544x288,432x240,320x176,640x360     640x480

D/CameraHal( 2881): initDefaultParameters(537): Support Preview FPS range: (15000,30000)

D/CameraHal( 2881): initDefaultParameters(538): Support Preview framerate: 30,15

D/CameraHal( 2881): initDefaultParameters(539): Support Picture sizes: 640x480,352x288,320x240,176x144,160x120,544x288,432x240,320x176,640x360

D/CameraHal( 2881): initDefaultParameters(541): Support white balance: auto,incandescent,fluorescent,daylight,cloudy-daylight

D/CameraHal( 2881): initDefaultParameters(549): Support focus: fixed  focus zone: 0

D/CameraHal( 2881): initDefaultParameters(551): Support zoom: true(ratios: 100,105,110,115,120,125,130,135,140,145,150,155,160,165,170,175,180,185,190,195,200,205,210,215,220,225,230,235,240,245,250,255,260,265,270,275,280,285,290,295,300,)

D/CameraHal( 2881): initDefaultParameters(555): Support exposure: (-3 -> 3)

D/CameraHal( 2881): initDefaultParameters(559): Support anti-banding: off,50hz,60hz,auto  anti-banding: off

D/CameraHal( 2881): initDefaultParameters(561): Support hardware faces detecte: 0

D/CameraHal( 2881): initDefaultParameters(562): Support software faces detecte: 0

D/CameraHal( 2881): initDefaultParameters(563): Support video stabilization: false

D/CameraHal( 2881): initDefaultParameters(564): Support recording hint: false

D/CameraHal( 2881): cameraConfig(696): cameraConfig(696): Set framerate(30 fps) success

D/CameraHal( 2881): cameraConfig(739): cameraConfig(739): Set white balance(auto) success

D/CameraHal( 2881): cameraConfig(816): cameraConfig(816): Set anti-banding Disabled

D/CameraHal( 2881): cameraConfig(897): cameraConfig(897): Set exposure 0        0

D/CameraHal( 2881): enableSensor(213): orientation = 0xb7b10968 (MPL accel)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(0), orientation(0)

D/CameraHal( 2881): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_1 facing(0), orientation(0)

D/CameraHal( 2881): setParameters(623): suppport focus modes:fixed, expect:fixed

D/CameraHal( 2881): setParameters(623): suppport focus modes:fixed, expect:fixed

D/CameraHal( 2881): setParameters(623): suppport focus modes:fixed, expect:fixed

D/CameraHal( 2881): setParameters(623): suppport focus modes:fixed, expect:fixed

D/CameraHal( 2881): commandThread(964): commandThread(964):receive CMD_SET_PREVIEW_WINDOW

D/CameraHal( 2881): commandThread(980): commandThread(980): CMD_SET_PREVIEW_WINDOW out

D/CameraHal( 2881): commandThread(859): commandThread(859):receive CMD_PREVIEW_START

D/CameraHal( 2881): startPreview(177): startPreview177:preview_w = 640,preview_h = 480,drv_w = 640,drv_h = 480

D/CameraHal( 2881): cameraSetSize(476): cameraSetSize(476):IN, w = 640,h = 480

D/CameraHal( 2881): cameraStream(498): cameraStream(498):on = 1

D/CameraHal( 2881): startPreview(223): startPreview(223):OUT

D/CameraHal( 2881): displayThread(596): displayThread(596): receive CMD_DISPLAY_START

D/CameraHal( 2881): cameraDisplayBufferDestory(399): cameraDisplayBufferDestory(399): mANativeWindow is NULL, destory is ignore

D/CameraHal( 2881): commandThread(932): commandThread(932): CMD_PREVIEW_START out

D/CameraHal( 2881): setParameters(623): suppport focus modes:fixed, expect:fixed


作者: jpchen    时间: 2017-12-18 11:22
插入USB camera后重启系统,然后用camera apk打开,然后把上层的log和内核的log发一下
作者: lori    时间: 2017-12-18 14:12
USB摄像头目前只能用系统自带的“相机”才能打开
作者: benjo    时间: 2017-12-19 17:36
USB Camera可以直接通过/dev/video0节点来控制,Linux uvc的标准接口可以直接用的。有直接控制video节点的APP。这个Camera输出是yuv格式的数据,比较占USB带宽,最好用mjpeg的会好点。rk Camerahal不支持h264格式的USB Camera,这个要注意。




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1