DC1394Grabber2.C File Reference

#include "Devices/DC1394Grabber2.H"
#include "Devices/DeviceOpts.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include "Raster/GenericFrame.H"
#include "Transport/TransportOpts.H"
#include "Util/Assert.H"
#include "Util/SimTime.H"
#include "Util/sformat.H"
#include "Video/VideoFrame.H"
#include <unistd.h>
Include dependency graph for DC1394Grabber2.C:

Go to the source code of this file.

Defines

#define IEEE1394WAIT   1
#define SET_FEATURE(fval, pname, fname)
#define HANDLE_PARAM(FVAL, MODELPARAM, FNAME)

Detailed Description

FireWire grabber class based on libdc1394 version 2.x

Definition in file DC1394Grabber2.C.


Define Documentation

#define HANDLE_PARAM ( FVAL,
MODELPARAM,
FNAME   ) 
Value:
if (valueChanged && param == &MODELPARAM)         \
        {                                               \
          LDEBUG("online change of " FNAME " from %s",  \
                 MODELPARAM.getName().c_str());         \
          if (dc1394_feature_set_value                  \
              (itsCam, DC1394_FEATURE_ ## FVAL,         \
               MODELPARAM.getVal())                     \
              != DC1394_SUCCESS)                        \
            {                                           \
              *status = ParamClient::CHANGE_REJECTED;   \
              LERROR("Unable to set " FNAME);           \
            }                                           \
        }
#define SET_FEATURE ( fval,
pname,
fname   ) 
Value:
do {                                                                  \
    if (dc1394_feature_set_value(itsCam, DC1394_FEATURE_ ## fval,       \
                                 pname.getVal()) != DC1394_SUCCESS)     \
      LERROR("Unable to set " fname);                                   \
  } while (0)
Generated on Sun May 8 08:42:40 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3