Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 181 → Rev 182

/shark/trunk/drivers/bttv/fgman-it.txt
28,7 → 28,7
#include <driver/bttv.h>
 
//Istruzione di inizializzazione semplificata
FG_init(period,wcet,width,height,color);
FG_init(period,wcet,width,height,color,channel);
 
---
period: periodo del grabbing, ovvero quanti microsecondi passano
44,10 → 44,12
 
color: puo' essere FG_MONO o FG_RGB24
 
channel: canale video, solitamente settato a 0
 
Esempio:
---
 
FG_init(50000,15000,400,300,FG_MONO);
FG_init(50000,15000,400,300,FG_MONO,0);
 
---
 
/shark/trunk/drivers/bttv/include/drivers/fg.h
4,7 → 4,8
#define FG_MONO 0
#define FG_RGB24 1
 
int FG_init(unsigned int period, unsigned int wcet, unsigned int width, unsigned int height, unsigned int color);
int FG_init(unsigned int period, unsigned int wcet, unsigned int width,
unsigned int height, unsigned int color, unsigned int channel);
void FG_start_grabbing(void);
void FG_close(void);
void * FG_getbuffer(void);
/shark/trunk/drivers/bttv/fg.c
56,7 → 56,8
 
}
 
int FG_init(unsigned int period, unsigned int wcet, unsigned int width, unsigned int height, unsigned int color) {
int FG_init(unsigned int period, unsigned int wcet, unsigned int width,
unsigned int height, unsigned int color, unsigned int channel) {
struct video_window vw;
struct video_picture p;
93,7 → 94,7
bttv_ioctl(&btv, VIDIOCSPICT, &p);
 
bttv_ioctl(&btv, VIDIOCGCHAN, &ch);
ch.channel = 0;
ch.channel = channel;
ch.norm = 3;
bttv_ioctl(&btv, VIDIOCSCHAN, &ch);
/shark/trunk/drivers/bttv/readme
32,10 → 32,13
 
#include <drivers/fg.h>
 
FG_init(<grabbing period>,<grabbing wcet>,<grabbing width>,<grabbing height>,<color mode>); //Initialize FG
FG_init(<grabbing period>,<grabbing wcet>,<grabbing width>,
<grabbing height>,<color mode>,<channel>); //Initialize FG
 
<color mode> could be FG_MONO or FG_RGB24
 
<channel> usually 0
 
fgptr = FG_getbuffer(); //Get the image pointer
 
Now fgptr is a pointer to the grabbed image, but to elaborate an