base_firei_control Class Reference
[Base_firei]

#include <base_firei.h>

Public Member Functions

 base_firei_control ()
 Class constructor.
 base_firei_control (char *devicefile, int HN, int NN, int CF, int FR)
 Overloaded class constructor.
 ~base_firei_control ()
 Class destructor.
int PrintPossibleModes (void)
 Prints to shell all the camera possible modes.
int PrintPossibleFrameRates (void)
 Prints to shell all the camera possible frame rates.
int PrintCameraFeatures (void)
 Prints to shell all the camera features.
int PrintCameraInfo (void)
 Prints to shell some camera info.
int SetHandleNum (int num)
 Sets the flag HandleNum to num.
int SetNodeNum (int num)
 Sets the flag NodeNum to num.
int SetColorFormat (int cm)
 Sets the camera color format.
int SetFeatureToManualAuto (unsigned int f, unsigned int val)
 Sets a camera feature to manual or auto control.
int SetPredefinedParams (int paramsset)
int SetFlgverbose (unsigned char val)
 Sets the flag verbose to val.
int SetFlgtestimgparams (unsigned char val)
 Sets the flag testimgparams to val.
int DmaUnlisten (void)
int CleanupIsoChannels (void)
int OpenHandle (void)
 Opens the raw1394 handle with the num HandleNum.
int TurnOffCamera (void)
 Turns off the camera in handle handlenum and node nodenum.
int TurnOnCamera (void)
 Turns on the camera in handle handlenum and node nodenum.
int GetCameraNodes (void)
 Gets all the cameras and their nodes in the predefined handlenum.
int SetupCapture_dma (void)
 Sets up the capture.
int StartIsoTransmission (void)
 Starts iso transmission.
int GetFrame_dma (IplImage *img)
 Gets an image from the camera at handle handlenum and node nodenum.
int GetFrame_dma (IplImage *img, int64 *ts)
int GetFrame_dma (IplImage *img, double *ts)
int GetFrame (IplImage *img, double *ts)
int InitCameraToFactorySettings (void)
 Inits camera to its factory settings.
int GetFrameRate (void)
int GetBrightness (void)
int GetSaturation (void)
int GetExposure (void)
int GetSharpness (void)
int GetWhiteBalance (void)
int GetHue (void)
int GetGamma (void)
int GetShutter (void)
int GetGain (void)
int GetIris (void)
int SetFrameRate (int fr)
int SetBrightness (unsigned int b, unsigned char manual)
int SetSaturation (unsigned int s, unsigned char manual)
int SetExposure (unsigned int e, unsigned char manual)
int SetSharpness (unsigned int s, unsigned char manual)
int SetWhiteBalance (unsigned int ub, unsigned int vr, unsigned char manual)
int SetHue (unsigned int h, unsigned char manual)
int SetGamma (unsigned int g, unsigned char manual)
int SetShutter (unsigned int s, unsigned char manual)
int SetGain (unsigned int g, unsigned char manual)

Private Attributes

dc1394_feature_info * feature
dc1394_feature_set * featureset
dc1394_miscinfo * info
dc1394_camerainfo * camerainfo
unsigned char * TmpBuffer
int handlenum
int nodenum
dc1394_cameracapture camera
int numNodes
int numCameras
raw1394handle_t handle
nodeid_t * camera_nodes
unsigned int channel
unsigned int speed
unsigned int format
unsigned int framerate
unsigned int mode
IplImage * image
struct {
   unsigned char   verbose
   unsigned char   hashandle
   unsigned char   testimgparams
flg
struct {
   int   width
   int   height
   int   numchannels
   unsigned int   channel
   unsigned int   speed
   int   colormode
   int   framerate
   unsigned int   Brightness
   unsigned int   Exposure
   unsigned int   Sharpness
   unsigned int   Hue
   unsigned int   Saturation
   unsigned int   Gamma
   unsigned int   Temperature
   unsigned int   Shutter
   unsigned int   Gain
   unsigned int   FrameRate
   unsigned int   Iris
   struct {
      unsigned int   u_b_value
      unsigned int   v_r_value
   }   WhiteBalance
captureparams

Member Function Documentation

int base_firei_control::CleanupIsoChannels ( void   )  [inline]
int base_firei_control::DmaUnlisten ( void   )  [inline]

References camera, and handle.

int base_firei_control::InitCameraToFactorySettings ( void   )  [inline]

Inits camera to its factory settings.

Returns:
function result. 1 is OK 0 is NOK

References camera_nodes, handle, and nodenum.

int base_firei_control::PrintCameraFeatures ( void   )  [inline]

Prints to shell all the camera features.

Returns:
function result. 1 is OK 0 is NOK

References featureset.

int base_firei_control::PrintCameraInfo ( void   )  [inline]

Prints to shell some camera info.

Returns:
function result. 1 is OK 0 is NOK

References camerainfo.

int base_firei_control::SetFlgtestimgparams ( unsigned char  val  )  [inline]

Sets the flag testimgparams to val.

If true every time a get image is called the pointer to the image is first tested avoiding a runtime crash.

Parameters:
val 1 for TRUE or 0 for FALSE
Returns:
function result. 1 is OK 0 is NOK
int base_firei_control::SetFlgverbose ( unsigned char  val  )  [inline]

Sets the flag verbose to val.

If true reports will be written to the shell.

Parameters:
val 1 for TRUE or 0 for FALSE
Returns:
function result. 1 is OK 0 is NOK
int base_firei_control::SetHandleNum ( int  num  )  [inline]

Sets the flag HandleNum to num.

Parameters:
num Number of the handle
Returns:
function result. 1 is OK 0 is NOK

References handlenum.

int base_firei_control::SetNodeNum ( int  num  )  [inline]

Sets the flag NodeNum to num.

Parameters:
num Number of the node
Returns:
function result. 1 is OK 0 is NOK

References nodenum.

int base_firei_control::SetupCapture_dma ( void   ) 

Sets up the capture.

Returns:
function result. 1 is OK 0 is NOK

Field Documentation

dc1394_cameracapture base_firei_control::camera [private]
nodeid_t* base_firei_control::camera_nodes [private]
dc1394_camerainfo* base_firei_control::camerainfo [private]

Referenced by PrintCameraInfo().

struct { ... } base_firei_control::captureparams [private]
unsigned int base_firei_control::channel [private]

Referenced by base_firei_control().

dc1394_feature_info* base_firei_control::feature [private]
dc1394_feature_set* base_firei_control::featureset [private]

Referenced by PrintCameraFeatures().

struct { ... } base_firei_control::flg [private]
unsigned int base_firei_control::format [private]

Referenced by base_firei_control().

unsigned int base_firei_control::framerate [private]

Referenced by base_firei_control().

raw1394handle_t base_firei_control::handle [private]
IplImage* base_firei_control::image [private]
dc1394_miscinfo* base_firei_control::info [private]
unsigned int base_firei_control::mode [private]

Referenced by base_firei_control().

unsigned int base_firei_control::speed [private]

Referenced by base_firei_control().

unsigned char* base_firei_control::TmpBuffer [private]

The documentation for this class was generated from the following files:
Generated on Wed Jun 2 12:43:29 2010 for LAR Atlas by  doxygen 1.6.3