v4l.h File Reference

Interface with v4l. More...

Go to the source code of this file.

Functions

void BGRtoRGB (unsigned char *img)
 Transforms a BGR image in a RGB image.
unsigned char * BGR640toRGB720 (unsigned char *img)
 Transforms a 640x480 BGR image in a 720x480 RGB image, putting black bands on laterals.
unsigned char * NextFrame (void)
 Gets an image from v4l device.
int setChannel_Mode (int channel, int mode)
 Sets channel and norm of the v4l device.
int initialize (char *deviceName, int channelNumber, int videoMode)
 Initializes the v4l device.
void finalize (void)
 Terminates communication with v4l device.


Detailed Description

Interface with v4l.


Function Documentation

unsigned char* BGR640toRGB720 ( unsigned char *  img  ) 

Transforms a 640x480 BGR image in a 720x480 RGB image, putting black bands on laterals.

Parameters:
img The image to transform.

void BGRtoRGB ( unsigned char *  img  ) 

Transforms a BGR image in a RGB image.

Parameters:
img The image to transform.

void finalize ( void   ) 

Terminates communication with v4l device.

int initialize ( char *  deviceName,
int  channelNumber,
int  channelMode 
)

Initializes the v4l device.

Parameters:
deviceName The device name: "/dev/video0"
channel The channel number: 0=TV 1=Composite1 2=S-Video 3=Composite3
mode The video mode: 0=VIDEO_MODE_PAL 1=VIDEO_MODE_NTSC.

unsigned char* NextFrame ( void   ) 

Gets an image from v4l device.

Returns:
unsigned char* The image

int setChannel_Mode ( int  channel,
int  mode 
)

Sets channel and norm of the v4l device.

Parameters:
channel The channel number: 0=TV 1=Composite1 2=S-Video 3=Composite3
mode The video mode: 0=VIDEO_MODE_PAL 1=VIDEO_MODE_NTSC.


Generated on Tue Jan 22 17:07:30 2008 for MUAN by  doxygen 1.4.7