Blame | Last modification | View Log | RSS feed
Project: S.Ha.R.K.
Frame Grabber support from BTTV linux driver
Coordinators:
Giorgio Buttazzo <giorgio@sssup.it>
Paolo Gai <pj@gandalf.sssup.it>
Authors:
Giacomo Guidi <giacomo@gandalf.sssup.it>
This is the first version of BTTV driver under shark.
It's a strongly hacked driver for all the frame grabbers
with bt848/878 actually supported by linux... I cannot
assure that every frame grabber card (with bt848) could work
without problems. The audio sub-device is not supported.
New things (related with PXC driver):
- No more DOS external init
- Color grabbing (bpp 8,16,24)
- Changing resolution and grabbing period (periodic hard task... see fg.c)
- BTTV linux-like driver interface (bttv_open, bttv_ioctl, ecc)
For a fast use of this driver (GREY8 default mode):
makefile symbol: __BTTV__
#include <drivers/fg.h>
FG_init(<grabbing period>,<grabbing wcet>,<grabbing width>,<grabbing height>); //Initialize FG
fgptr = FG_getbuffer(); //Get the image pointer
Now fgptr is a pointer to the grabbed image (GREY8 type, to change it look at fg.c);
It's implemented a Double Buffer policy, so FG_getbuffer must
be called before any access to the grabbed image.
FG_close(); //Close the FG