video.cc File Reference

This file implements the video.h interface. More...


Functions

void video_setcameratype (int type)
 Configure the type of connection with device.
void video_setDeviceName (void)
 Configure deviceName parameter from camera_type.
void video_setfirewire (char *_deviceName)
 Configure firewire parameters.
void video_setv4l (char *_deviceName, int _channelNumber, int _videoMode)
 Configure v4l parameters.
int test_device (char *dev)
Imagevideo_open (void)
 Open communication with video device.
void video_close (void)
 Close communication with video device.
Boolean video_getimage (Image *i)
 Gets the frame image.
Boolean video_getframe (Frame *f)
 Gets the frame.
int video_gettype (void)
 Gets the video type.
void video_stopReceive ()
 Stop receiving images from device.
void video_startReceive ()
 Start receiving images from device.
void video_stopThread ()
 Stop the thread for receiving images from device.
void video_startThread ()
 Start the thread for receiving images from device.


Detailed Description

This file implements the video.h interface.


Function Documentation

int test_device ( char *  dev  ) 

void video_close ( void   ) 

Close communication with video device.

Boolean video_getframe ( Frame f  ) 

Gets the frame.

Parameters:
f the frame.
Returns:
TRUE if success, else returns FALSE

Boolean video_getimage ( Image i  ) 

Gets the frame image.

Parameters:
i the Image.
Returns:
TRUE if success, else returns FALSE

int video_gettype ( void   ) 

Gets the video type.

Returns:
The video type.

Image* video_open ( void   ) 

Open communication with video device.

Returns:
the Image created.

void video_setcameratype ( int  type  ) 

Configure the type of connection with device.

Parameters:
type,: CAMERA_V4L or CAMERA_FIREWIRE.

void video_setDeviceName ( void   ) 

Configure deviceName parameter from camera_type.

void video_setfirewire ( char *  _deviceName  ) 

Configure firewire parameters.

Parameters:
_deviceName 

void video_setv4l ( char *  _deviceName,
int  _channelNumber,
int  _videoMode 
)

Configure v4l parameters.

Parameters:
_deviceName 
_channelNumber //0: TV 1:Composite1 2:S-Video 3:Composite3.
_videoMode //0: VIDEO_MODE_PAL 1: VIDEO_MODE_NTSC
Returns:
TRUE if success, else returns FALSE

void video_startReceive (  ) 

Start receiving images from device.

void video_startThread (  ) 

Start the thread for receiving images from device.

void video_stopReceive (  ) 

Stop receiving images from device.

void video_stopThread (  ) 

Stop the thread for receiving images from device.


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