| 
 
贡献132 
飞刀21 FD
注册时间2018-9-25
在线时间2 小时积分19 
 
 
 扫一扫,手机访问本帖  | 
 
| 用提供的 qmake 和 交叉编译工具 编译 app-cmd 下的 camera 代码 在开发板上运行时 拍照 是正常的  但 摄像时 会出错(直接运行 开发板自带的camera程序  拍照和摄像都是正常的) //错误 如下:
 
 # ./camera
 [1] start camera ov5640
 [2] start camera ov5645
 [3] quit
 Enter your selection: 2
 2
 [   78.902000] ov5645: ov5645_link_setup
 [   78.905000] hdc mipi_vin_setup_io
 [   78.905000] mipi_phy_enable
 [   78.907000] ov5645: ov5645_s_power: on 1
 [   78.913000] hdc mipi_vin_setup_io
 [   78.914000] mipi_phy_enable
 [   78.917000] ov5645: ov5645_s_power: on 1
 [   78.921000] ov5645: ov5645_s_fmt: 1600x1200
 [   78.925000] ov5645: ov5645_s_mbus_fmt
 [   78.928000] ov5645: ov5645_set_params
 [   78.932000] ov5645: ov5645_select_win
 [   78.936000] nxp_mlc_set_crop: pad(1), crop(0,0,1280,640)
 [   78.941000] nxp_mlc_set_crop: pad(1), crop(0,0,1280,640)
 [   78.949000] back_camera_power_enable: is_back_camera_enabled 0, on 1
 [   78.965000] ov5645: ov5645_s_stream: enable 1, initialized 0
 [   78.966000] ov5645: OV5645 Chip ID 0x5645 detected
 [   78.969000] ov5645: enter ov5645_init
 [1] take photo
 [2] record a video
 [3] quit
 Enter your selection:
 [1] take photo
 [2] record a video
 [3] quit
 Enter your selection:
 [   79.442000] ov5645: ov5645_s_stream reg_write_array init regs
 [   79.469000] ov5645: ov5645_s_stream: reg_write_array win regs
 [   79.469000] ov5645: ov5645_set_mbusformat
 [   79.821000] nxp_mlc_s_stream: enable 1, client VIDEO MLC VID0, is_video 1
 [   79.822000] _hw_configure_video 0: fw(1280), fh(640), crop(0:0:1280:640), priority(0), format(0x3053564d)
 [   79.846000] _hw_video_enable: module 0, enable 1
 [   83.184000] ov5645: reg_wait_stat status 70
 2
 NX_VidEncInit() success
 Encoder Header Size = 21
 [1] take photo
 [2] record a video
 [3] quit
 Enter your selection:
 [1] take photo
 [2] record a video
 [3] quit
 Enter your selection:
 [   0]FrameType = 1, size =   125172, bitRate =    inf kbps, Qp = 22, PSNR = 40.967880, time=     6
 [   89.909000] [DRV|VPU_API]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(400) : VPU HW Timeout!
 [   89.917000] [DRV|VPU_API]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(477) : VPU_WaitVpuInterrupt() TimeOut!!!(reason = 0x00000000, CurPC(0xBD 0xBF : bd bd bd))
 [   89.937000] [VPU|DRV]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/linux/linux_vpu_drv.c(372) : NX_VpuEncRunFrame() failed.(ErrorCode=-20)
 [VPU|API] nx_video_api.c(516) : IOCTL_VPU_ENC_RUN_FRAME ioctl failed!!!
 [   1]FrameType = 1, size =   125172, bitRate = 60082.560 kbps, Qp = 22, PSNR = 34.956001, time=  1045
 [   91.211000] [DRV|VPU_API]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(400) : VPU HW Timeout!
 [   91.221000] [DRV|VPU_API]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(477) : VPU_WaitVpuInterrupt() TimeOut!!!(reason = 0x00000000, CurPC(0xBD 0xBF : bd bd bf))
 [   91.239000] [VPU|DRV]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/linux/linux_vpu_drv.c(372) : NX_VpuEncRunFrame() failed.(ErrorCode=-20)
 [VPU|API] nx_video_api.c(516) : IOCTL_VPU_ENC_RUN_FRAME ioctl failed!!!
 [   2]FrameType = 1, size =   125172, bitRate = 45061.920 kbps, Qp = 22, PSNR = 34.777344, time=  1045
 [   92.523000] [DRV|VPU_API]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(400) : VPU HW Timeout!
 [   92.531000] [DRV|VPU_API]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(477) : VPU_WaitVpuInterrupt() TimeOut!!!(reason = 0x00000000, CurPC(0xBD 0xBF : bd bd bd))
 [   92.551000] [VPU|DRV]/diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/linux/linux_vpu_drv.c(372) : NX_VpuEncRunFrame() failed.(ErrorCode=-20)
 [VPU|API] nx_video_api.c(516) : IOCTL_VPU_ENC_RUN_FRAME ioctl failed!!!
 [   3]FrameType = 1, size =   125172, bitRate = 40055.040 kbps, Qp = 22, PSNR = 34.801540, time=  1046
 
 
 
 | 
 |