Rev 174 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
170 | giacomo | 1 | Project: S.Ha.R.K. |
2 | |||
3 | Frame Grabber support from BTTV linux driver |
||
4 | |||
5 | Coordinators: |
||
6 | |||
7 | Giorgio Buttazzo <giorgio@sssup.it> |
||
8 | Paolo Gai <pj@gandalf.sssup.it> |
||
9 | |||
10 | Authors: |
||
11 | |||
12 | Giacomo Guidi <giacomo@gandalf.sssup.it> |
||
13 | |||
14 | This is the first version of BTTV driver under shark. |
||
15 | It's a strongly hacked driver for all the frame grabbers |
||
16 | with bt848/878 actually supported by linux... I cannot |
||
17 | assure that every frame grabber card (with bt848) could work |
||
18 | without problems. The audio sub-device is not supported. |
||
19 | |||
20 | New things (related with PXC driver): |
||
21 | |||
22 | - No more DOS external init |
||
23 | |||
24 | - Color grabbing (bpp 8,16,24) |
||
25 | |||
26 | - Changing resolution and grabbing period (periodic hard task... see fg.c) |
||
27 | |||
28 | - BTTV linux-like driver interface (bttv_open, bttv_ioctl, ecc) |
||
29 | |||
30 | For a fast use of this driver (GREY8 default mode): |
||
31 | |||
32 | makefile symbol: __BTTV__ |
||
33 | |||
34 | #include <drivers/fg.h> |
||
35 | |||
36 | FG_init(<grabbing period>,<grabbing wcet>,<grabbing width>,<grabbing height>); //Initialize FG |
||
37 | |||
38 | fgptr = FG_getbuffer(); //Get the image pointer |
||
39 | |||
40 | Now fgptr is a pointer to the grabbed image (GREY8 type, to change it look at fg.c); |
||
41 | |||
42 | It's implemented a Double Buffer policy, so FG_getbuffer must |
||
43 | be called before any access to the grabbed image. |
||
44 | |||
45 | FG_close(); //Close the FG |
||
46 |