main 函数增加初始化
g_pCedarV = CedarvEncInit(mVideoWidth,mVideoHeight,1024*1024,GetFrmBufCB);
InitCapture();
摄像头ov7670, 采用ashwing的 queryvideo () 查询可知摄像头是支持nv12的。
root@cubieboard2:~# ./client
cedarx_hardware_init success!
cedarv open ok
<E/osal_linux: (329) flush cache fail, range error!
H264encoder init OK!
3>[ccu-err] clk_enable: invalid handle
[ 432.233681] [ccu-err] clk_enable: invalid handle
<6>[CSI]sensor initial success when csi open!
<6>[CSI]buffer_setup, buffer count=4, size=460800
<3>disp: process 822 (client) has skipped the version handshake.
[ 433.356855] disp: process 822 (client) has skipped the version handshake.
<4>[DISP] layer allocated: 0,102
request layer 0 success =102<4>[DISP] layer allocated: 0,103
request layer 1 success =103
de---w:635,h:355
V4L2Camera::v4l2StartStreaming OK
thread_dec start!
VIDIOC_QBUF failed, id: 0
Exit encode thread
Exit encode thread========================
Exit decode thread
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
........................... |