MX21_Camera_src

所属分类:视频捕捉采集剪辑
开发工具:Unix_Linux
文件大小:155KB
下载次数:38
上传日期:2007-04-12 16:35:10
上 传 者xiaosy
说明:  mx21 摄像头源代码,包括IM8012,IM8803两类型!
(mx21 camera source code, including IM8012, IM8803 two types!)

文件列表:
csi\autotest.csi (331, 2005-11-07)
csi\autotest.tvin (313, 2005-11-07)
csi\autotest.tvin2 (302, 2005-11-07)
csi\csi\drv\csi.c (21153, 2005-11-07)
csi\csi\drv\csi.h (2910, 2005-11-07)
csi\csi\drv\csi.o (7772, 2005-11-07)
csi\csi\drv\Makefile (594, 2005-11-07)
csi\csi\drv (0, 2007-04-12)
csi\csi\lib\csilib.c (8375, 2005-11-07)
csi\csi\lib\csilib.h (1449, 2005-11-07)
csi\csi\lib\csilib.o (4980, 2005-11-07)
csi\csi\lib\Makefile (576, 2005-11-07)
csi\csi\lib (0, 2007-04-12)
csi\csi\test\Makefile (669, 2005-11-07)
csi\csi\test\test_csi (15493, 2005-11-07)
csi\csi\test\test_csi.c (530, 2005-11-07)
csi\csi\test (0, 2007-04-12)
csi\csi (0, 2007-04-12)
csi\im8012\app\camera.c (2123, 2005-11-07)
csi\im8012\app\camera.h (1178, 2005-11-07)
csi\im8012\app\camera.o (21672, 2005-11-07)
csi\im8012\app\cameraAPI.a (31934, 2005-11-07)
csi\im8012\app\csi.cfg (29, 2005-11-07)
csi\im8012\app\doCapture (22359, 2005-11-07)
csi\im8012\app\doCapture.c (9433, 2005-11-07)
csi\im8012\app\doCapture2 (20237, 2005-11-07)
csi\im8012\app\doCapture2.c (7782, 2005-11-07)
csi\im8012\app\im8012.cfg (492, 2005-11-07)
csi\im8012\app\Makefile (1523, 2005-11-07)
csi\im8012\app\sensor.cfg (472, 2005-11-07)
csi\im8012\app\test\make.sh (472, 2005-11-07)
csi\im8012\app\test\test.sh (80, 2005-11-07)
csi\im8012\app\test (0, 2007-04-12)
csi\im8012\app (0, 2007-04-12)
csi\im8012\drv\im8012.c (24653, 2005-11-07)
csi\im8012\drv\im8012.h (2137, 2005-11-07)
csi\im8012\drv\im8012.o (10076, 2005-11-07)
csi\im8012\drv\Makefile (619, 2005-11-07)
csi\im8012\drv (0, 2007-04-12)
csi\im8012\lib\im8012lib.c (5643, 2005-11-07)
... ...

MX21 TO1 / TO2 CSI / CAMERA Driver README cliff.wong@motorola.com 16 Jun, 04 1. Description This package includes the drivers & user mode libraries for csi / camera IM8803 / camera IM8012, and demo applications that run the camera in loop mode. Drivers for csi / camera are covered by individual set of user mode apis, which are more user friendly than the ioctls. csi driver / lib csi driver is located in csi/drv directory. This is a camera independent implementation. The driver covers the ground level operations of the csi, instead of tieing to any particular sensor. The driver is configurable for different sensors or video input device, by using csi control files. csi driver is encapsulated by csilib. camera IM8803 driver Camera im8803 driver is located in im8803/drv directory. Camera driver is encapsulated by im8803lib. camera IM8012 driver Camera im8012 driver is located in im8012/drv directory. Camera driver is encapsulated by im8012lib. Camera app (almost the same for both IM8803 and IM8012) Camera main loop is located in im8012/app (or im8803/app) directory. The main() function supports both (1) polling and (2) csi-prp mode. When polling is selected, the output is written the display buffer device. When csi-prp is selected, csi-prp link is enabled, data directly goes to the emma, and software has nothing to do. Polling / prp mode is auto detected by reading the csi control file. DMA mode is not implmented as it becomes not useful since we have the emma link. The camera main loops reads in parameters from 2 control files. (1) csi.cfg -- for csi control, including timing config, interrupt enable, csi-prp selection, etc... (2) im8**.cfg -- for sensor control, including image size, color format, color processing parameters... 2. Directory Structure csi /drv - csi driver /lib - library api for csi driver access im8803 /drv - im8803 driver /lib - library for camera driver access /app - camera main loop /test - test directory - run ./make.sh will re-compile all the code and zip into a single file called a.zip. download a.zip to ads board and run ./test.sh im8803 /drv - im8803 driver /lib - library for camera driver access /app - camera main loop /test - test directory - run ./make.sh will re-compile all the code and zip into a single file called a.zip. download a.zip to ads board and run ./test.sh /link - contains the soft links to libraries: 1. gcclib 2. mx21kernel this directory supposed to be is to be generated by user. 3. Compilation All MAKEFILE files refers to the /link directory for soft links to library paths. There are 2 links: (1) gcclib (2) mx21kernel Pls generate the link in prior to compilation. For TO1 bsp, need to go into the file /csi/drv/csi.c, comment out #define TO2 in order to avoid using CSI control register 3, which does not exist in the kernel source header files. 3. Control files Control files are located in /im8803/app (or /im8012/app) dir. csi.cfg This controls the major operation of csi, including control register 1, 3 and rx counter register. Statistical control is not implemented yet. sensor.cfg This controls the operation of the sensor, specifically for im8012 (im8803). 4. Run time The following files are necessary for the program to run: 1. csi.o 2. im8xxx.o 3. doCapture 4. csi.cfg 5. im8**.cfg Procedures are: insmod csi.o insmod im8xxx.o ./doCapture csi.cfg im8**.cfg or simply run /im8012/app/test.sh

近期下载者

相关文件


收藏者