#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>
Go to the source code of this file.
Defines | |
#define | IEEE1394WAIT 1 |
#define | SET_FEATURE(fval, pname, fname) |
#define | HANDLE_PARAM(FVAL, MODELPARAM, FNAME) |
FireWire grabber class based on libdc1394 version 2.x
Definition in file DC1394Grabber2.C.
#define HANDLE_PARAM | ( | FVAL, | |||
MODELPARAM, | |||||
FNAME | ) |
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 | ) |
do { \ if (dc1394_feature_set_value(itsCam, DC1394_FEATURE_ ## fval, \ pname.getVal()) != DC1394_SUCCESS) \ LERROR("Unable to set " fname); \ } while (0)