/****************************************************************************
Mouse-capture Version 1:2006-6-29
This program is used to get one picture from a jpeg webcam to test whether the webcam's drive is successfully installed.
It is made for ARM9.Of course it can be used on PC if you modify the complier:)
It is modified from servfox by daily3(戴丽-戴小鼠 in Hefei University of Technology and HHCN-BBS).
Thanks to 我爱狗熊.
If you have problems ,you can contact me.
Email:daily3@126.com
Wish you some useful help!
Best Wish to the orignal authors! Thank you very much!
****************************************************************************/
USAGE:
1.Cross compile.Directly make then create executable file-mouse_capture in the root directory.
2.Put it on ramdisk or just nfs to test it.
3.Execute it then create a picture in /tmp/1.jpg of ARM9.
4.Then you can check up the picture.
Notice:
Webcam capturing has two methods.One is mmap ,the other is read.
In this program,the default method is read,you can modify the value of grabmethod to change the capturing method.
But in my all tests,the method of read is better:)