|
3288 reload 摄像头1027x768分辨率问题
发表于 2017-3-9 17:08:03
浏览:11260
|
回复:3
打印
只看该作者
[复制链接]
楼主
大家好,我需要让系统支持一个定制的mipi摄像头,它支持1280x720和1027x768这两种分辨率,然后我直接使用了系统自带的OV2685_MIPI_YUV的代码,修改了里面的一些通信,然后成功的让系统能够播放1280x720的分辨率,但是呢我设置1027x768这个分辨率的时候发现不行,系统本身好像不支持这个分辨率,然后我在cam_board.xml 以及 CameraHal 里面设置了 相关的分辨率,这样上层是可以设置这个分辨率的,但是我发现,出了一个问题:
- 01-01 15:40:36.882: I/test(1494): doStartPreview...
- 01-01 15:40:36.883: W/gralloc(151): Debugmem The fd=64, in vmalloc !!!! Ishwc=0
- 01-01 15:40:36.884: I/test(1494): 1.pictureSizes:width = 1920 height = 1080
- 01-01 15:40:36.884: I/test(1494): 1.pictureSizes:width = 640 height = 480
- 01-01 15:40:36.884: I/test(1494): 1.pictureSizes:width = 352 height = 288
- 01-01 15:40:36.884: I/test(1494): 1.pictureSizes:width = 320 height = 240
- 01-01 15:40:36.884: I/test(1494): 1.pictureSizes:width = 176 height = 144
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 176 height = 144
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 320 height = 240
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 352 height = 288
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 640 height = 480
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 720 height = 480
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 800 height = 600
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 1024 height = 768 // 这个是我增加的
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 1280 height = 720
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 1920 height = 1080
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 1920 height = 1080
- 01-01 15:40:36.884: I/test(1494): 2.previewSizes:width = 1280 height = 720
- 01-01 15:40:36.884: I/System.out(1494): mParams.setPreviewSize
- 01-01 15:40:36.885: I/System.out(1494): mParams.setParameters
- 01-01 15:40:36.890: I/System.out(1494): mParams.setPreviewDisplay
- 01-01 15:40:36.891: I/System.out(1494): mParams.startPreview
- 01-01 15:40:36.892: I/ActivityManagerService(445): Displayed org.test.playcamera/org.test.activity.CameraActivity: +665ms
- 01-01 15:40:36.893: D/CameraHal(166): commandThread(937): commandThread(937):receive CMD_SET_PREVIEW_WINDOW
- 01-01 15:40:36.893: D/CameraHal(166): commandThread(953): commandThread(953): CMD_SET_PREVIEW_WINDOW out
- 01-01 15:40:36.893: D/CameraHal(166): commandThread(832): commandThread(832):receive CMD_PREVIEW_START
- 01-01 15:40:36.894: D/CameraHal(166): stop(1861): m_camDevice->stopPreview success!
- 01-01 15:40:36.896: E/CameraHal_Marvin(166): CAM_API_CAMENGINE: changeResolution (can't change resolution of sensor)
- 01-01 15:40:36.896: E/CameraHal(166): setupPreview(259): >>>>>>>width_sensor=1280,height_sensor=720,preview_w=1280,preview_h=720
- 01-01 15:40:36.896: D/CameraHal(166): setupPreview(307): isp out put format is YUV420SP.
- 01-01 15:40:36.897: I/test(1494): final----:PreviewSize--With = 1024Height = 768
- 01-01 15:40:36.899: D/CameraHal(166): start(1816): m_camDevice->startPreview success
- 01-01 15:40:36.899: D/CameraHal(166): displayThread(596): displayThread(596): receive CMD_DISPLAY_START
- 01-01 15:40:36.899: D/CameraHal(166): cameraDisplayBufferDestory(399): cameraDisplayBufferDestory(399): mANativeWindow is NULL, destory is ignore
- 01-01 15:40:36.901: D/ViewRootImpl(445): onDetachedFromWindow ungister contentObserver
- 01-01 15:40:36.901: E/CameraHal_Marvin(166): CAMERIC-ISP-IRQ:
- 01-01 15:40:36.901: E/CameraHal_Marvin(166): CamerIcIspIrq: pic err first,g_ispFrameNum == 1
- 01-01 15:40:36.901: E/CameraHal_Marvin(166): CAMERIC-ISP-IRQ:
- 01-01 15:40:36.901: E/CameraHal_Marvin(166): CamerIcIspIrq: pic err first,g_ispFrameNum == 1
- 剩下是一直重复打印上面的两句话
复制代码 其中这里有句 01-01 15:40:36.896: E/CameraHal_Marvin(166): CAM_API_CAMENGINE: changeResolution (can't change resolution of sensor)
这里是libisp_silicomimageisp_api这个库里面的函数 , 不知道调用了什么,导致设置失败了,接着分辨率就变成了默认的1280x720了:
01-01 15:40:36.896: E/CameraHal(166): setupPreview(259): >>>>>>>width_sensor=1280,height_sensor=720,preview_w=1280,preview_h=720
有没有知道这里该怎么改才能让系统支持1027x768这个分辨率呢?
CAM_API_CAMENGINE: changeResolution (can't change resolution of sensor)
这里该如何修改才能够正常的设置呢?一定得是系统自带的分辨率么?kernel 驱动里面好像也没有找到有关分辨率设置的相关代码,都是在cam_board.xml里面设置的么?
我看好久以前有人发过帖子
http://developer.t-firefly.com/f ... =%C9%E3%CF%F1%CD%B7
这个人也是添加新分辨率遇到了问题,有人能解决这个问题么?
|
|