i.MX35 PDK Camera Not Working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX35 PDK Camera Not Working

ソリューションへジャンプ
1,896件の閲覧回数
mattias2
Contributor I

Has anyone managed to get the camera to work on the i.MX35 PDK? Camera functionality is not included in the demo application and I have had a hard time figuring out how to use it in an application. 

 

I have written an application which uses video4linux according to their web site and according to the test program for the i.MX35 PDK. My application works fine (no error codes, pointers to image buffers not 0) but the image is all black. Every byte is zero (I have tried V4L2_PIX_FMT_RGB565 and V4L2_PIX_FMT_YVU420). OV2640 is loaded as a kernel module.

 

Any suggestions?

 

0 件の賞賛
返信
1 解決策
1,148件の閲覧回数
mattias2
Contributor I

Problem solved!

 

I forgot to set member m.offset in struct v4l2_buffer before calling ioctl VIDIOC_QBUF.

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,149件の閲覧回数
mattias2
Contributor I

Problem solved!

 

I forgot to set member m.offset in struct v4l2_buffer before calling ioctl VIDIOC_QBUF.

 

0 件の賞賛
返信