Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BIAS::VideoSource_DCAM Class Reference

This class VideoSource_DCAM implements access to IEEE1394 (Firewire, iLink) cameras following the DCam 2.0 standard protocol. More...

#include <VideoSource/VideoSource_DCAM.hh>

+ Inheritance diagram for BIAS::VideoSource_DCAM:
+ Collaboration diagram for BIAS::VideoSource_DCAM:

Public Member Functions

void ActivateScorpionTimestamp ()
 Activates the timestamp for PointGrey Scorpion SCOR-20SO. More...
 
void AddDebugLevel (const long int lv)
 
void AddDebugLevel (const std::string &name)
 
virtual int AutoMode (int a, bool b)
 Use this to enable/disable any automatic modes addressed via enumerations. More...
 
int AutoMode (dc1394feature_t feature, dc1394feature_mode_t mode)
 Set a camera feature to auto or to manual mode. More...
 
int CloseDevice ()
 closes a camera device and cleans up More...
 
bool DebugLevelIsSet (const long int lv) const
 
bool DebugLevelIsSet (const std::string &name) const
 
void EnsureLatestFrame (const bool ensure)
 
void ForceFormat7 (bool forcef7)
 this choses f7 mode even for standard resolution More...
 
virtual int GetAllDevices (std::vector< std::string > &devices)
 
bool GetAutoBrightness ()
 
virtual bool GetAutoContrast ()
 
bool GetAutoGain ()
 
bool GetAutoShutter ()
 
float GetBrightness ()
 get the value of the brightness feature More...
 
virtual void GetBrightnessRange (double &min, double &max)
 
void GetBytesPerPacketForFormat7 (int camid, dc1394video_mode_t mode, int width, int height, unsigned int &bppmin, unsigned int &bppmax)
 returns min and max bytes per packet for a specified resolution in format 7 More...
 
float GetBytesPerPixel () const
 
virtual int GetCapabilities (VideoSourceCapabilities &caps)
 Use this method to learn something about the capabilities of the source (only useful for V4L sources, e.g. More...
 
virtual int GetCapabilities (const char *device, VideoSourceCapabilities &caps)
 
int GetColorChannels () const
 
BIAS::ImageBase::EColorModel GetColorModel () const
 
virtual float GetContrast ()
 Get contrast as value in interval [0, 100]. */. More...
 
virtual void GetContrastRange (double &min, double &max)
 
int GetDebugLevel () const
 
std::ostream & GetDebugStream () const
 
void GetDebugStream (std::ostream &os) const
 
virtual void GetDeviceChannelNames (std::vector< std::string > &names)
 If more than one channel is present, names can be returned here. More...
 
virtual unsigned int GetFeature (int feature)
 This function is used to query features like shutter, zoom, etc. More...
 
unsigned int GetFeature (dc1394feature_t feature)
 get the value of a specific feature More...
 
void GetFormat7ImageDimensions (int &maxWidth, int &maxHeight, int &minBpP, int &maxBpP)
 
float GetGain ()
 get the value of the gain feature More...
 
virtual void GetGainRange (double &min, double &max)
 
int GetGammaMode ()
 get the value of Gamma Mode More...
 
int GetHeight () const
 
int GetID () const
 
std::string GetIdentifier () const
 
unsigned int GetLeft ()
 
float GetShutter ()
 get the value of the shutter feature More...
 
virtual void GetShutterRange (double &min, double &max)
 
unsigned int GetTop ()
 
int GetTransmissionTime ()
 
virtual int GetWhiteBalance (float &rvalue, float &bvalue)
 Get white balance as values in interval [0, 100]. */. More...
 
int GetWidth () const
 
virtual int GrabSingle (BIAS::Camera< float > &image)
 
virtual int GrabSingle (BIAS::Camera< char > &image)
 
virtual int GrabSingle (BIAS::Camera< short int > &image)
 
virtual int GrabSingle (BIAS::Camera< int > &image)
 
virtual int GrabSingle (BIAS::Camera< unsigned short int > &image)
 
virtual int GrabSingle (BIAS::Camera< unsigned int > &image)
 
virtual int GrabSingle (BIAS::Camera< double > &image)
 
int GrabSingle (BIAS::Camera< unsigned char > &image)
 Select the port (bus-id) to use, only valid before OpenDevice() More...
 
int GrabSingle (BIAS::Camera< unsigned short > &image)
 
bool HasControlBrightness ()
 
virtual bool HasControlContrast ()
 
bool HasControlGain ()
 
bool HasControlShutter ()
 
bool HasControlWhiteBalance ()
 
virtual int InitImage (BIAS::ImageBase &Image)
 
bool IsActive () const
 
bool IsControllable ()
 Specify if SetShutter(), SetGain() ... would work for this camera. More...
 
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found More...
 
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel More...
 
virtual int OnePushAuto (int feature)
 
int OnePushAuto (dc1394feature_t feature)
 
bool OnePushRunning (dc1394feature_t feature)
 is a feature available at OnePush? More...
 
virtual int OpenDevice (const char *device)
 a device name like "/dev/video1" can be specified here More...
 
virtual int OpenDevice (std::string Prefix, std::string Postfix, int DigitCount, int PictureCount, int StartCount=0)
 used by derived class VideoSource_Disk More...
 
virtual int OpenDevice (const std::vector< std::string > &FileNames)
 used by derived class VideoSource_Disk More...
 
int OpenDevice ()
 Opens a dc1394 device. More...
 
int OpenDevice (int camid)
 Opens a dc1394 device with id camid. More...
 
int PostGrab ()
 stops iso transmission of a camera. More...
 
int PreGrab ()
 initializes the iso transmission of a camera. More...
 
void PrintDebugLevel (std::ostream &os=std::cout) const
 
void RemoveDebugLevel (const long int lv)
 
void RemoveDebugLevel (const std::string &name)
 
virtual void ResetPanTiltZoom ()
 Reset digital zoom, pan, and tilt to defaults to ensure compliance with calibration. More...
 
int SelectDefault ()
 selects the default framerate for a cam More...
 
void SetAutoBrightness (bool b)
 
virtual void SetAutoContrast (bool b)
 
void SetAutoGain (bool b)
 set the gain to auto or manual mode More...
 
void SetAutoShutter (bool b)
 set the shutter to auto or manual mode More...
 
void SetBinning (bool b)
 
int SetBrightness (float b)
 set value for brightness More...
 
void SetBytesPerPacket (const int b)
 sets the bytes per packet used for format 7 More...
 
void SetBytesPerPixel (unsigned char bpp)
 
void SetCam_ID (int manualcamid_)
 set's the id of a camera manually, has to be called before OpenDevice() More...
 
int SetCamera (CameraParameterSet camparam)
 set camera to parameters specified in complete set More...
 
virtual void SetCameraID (int)
 
void SetCameraModel (CameraModel model)
 Sets the Camera model. More...
 
int SetColorFromMode_ (dc1394video_mode_t videoMode)
 selects the colormodel for a specific mode More...
 
virtual int SetColorModel (BIAS::ImageBase::EColorModel mode)
 Select colormodel to use. More...
 
virtual int SetContrast (float g)
 Set contrast as value in interval [0, 100]. */. More...
 
void SetDebugLevel (const long int lv)
 
void SetDebugLevel (const std::string &name)
 
void SetDebugStream (const std::ostream &os)
 
void SetDeviceChannel (int channel)
 Use channel to select one of many cameras on the same. More...
 
int SetDirectToDisk (const std::string &filename)
 Enables the very fast direct-to-disk mode. More...
 
void SetExternalTrigger (bool trigger=true)
 set External Trigger mode, overrides Base class function More...
 
virtual int SetFeature (int feature, unsigned int value)
 This function is used to control features like shutter, zoom, etc. More...
 
int SetFeature (dc1394feature_t feature, unsigned int value)
 Set a camera feature by hand. More...
 
void SetFirewireB (bool on)
 
int SetFormat7 (int mode, int bpp, dc1394color_coding_t colorCoding=DC1394_COLOR_CODING_MONO8)
 this a special function to by-pass all automatic initializations and Use only in conjuction with SetSize() and SetLeftTop() ! More...
 
void SetFPS (float fps)
 Set frame per second for image capturing. More...
 
int SetGain (float g)
 set value for gain More...
 
int SetGammaMode (int g)
 set Gamma Mode More...
 
int SetLeftTop (unsigned int left, unsigned int top)
 set the topleft corner for partitial scan More...
 
void SetModeAndFramerate (dc1394video_mode_t mode, float framerate)
 
int SetShutter (float exptime)
 set value for shutter More...
 
virtual void SetSize (int w, int h, int bytesperpixel=1)
 Set image size and number of bytes per pixel (e.g. More...
 
virtual void SetWaitForNew (bool waitForNew)
 Specify if grab should wait for new frames. More...
 
int SetWhiteBalance (float rvalue, float bvalue)
 sets the white balance of the camera, rvalue and bvalue are in range -0.5 to 0.5 More...
 
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels More...
 
virtual int SoftwareWhiteBalance ()
 Set white balance to optimal value in software. More...
 
 VideoSource_DCAM (int Card=0)
 Constructor with IEEE1394 card. More...
 
 ~VideoSource_DCAM ()
 Destructor. More...
 

Static Public Member Functions

static long int GetGlobalDebugLevel ()
 
static void SetGlobalDebugLevel (long int lev)
 
static std::string VideoModeToString (dc1394video_mode_t mode)
 returns a string from a IEEE1394 video mode More...
 

Public Attributes

bool ScorpionTimestampActive_
 

Protected Member Functions

int ActivateExternalTrigger_ (bool trigger=true)
 if external triggering is true, activate it here in Opendevice More...
 
int ApplyBytesPerPacket ()
 Set this value and read back what really happend. More...
 
unsigned int CalcBytesPerPacket ()
 Evaluate Min and Max BpP, framesize and fps, then calc BpP. More...
 
long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel More...
 
CameraModel GetModelForEuid (const u_int64_t euid)
 searches for the correct cammodel by means of the euid of a camera More...
 
int InitCam ()
 initializes the camera and tries to set the optimal settings for the camera if no settings are specified More...
 
int QueryCam ()
 querys the cam for available modes, framerates and features More...
 
int ShowCapabilities ()
 
int UserSizeToFormat7_ ()
 if user requested format 7 More...
 
int UserSizeToMode ()
 tries to find a camera mode from user given width and height More...
 
int UserSizeToMode_16bit_ ()
 for all formats with 16bit per pixel per channel (aka short int) More...
 
int UserSizeToMode_8bit_ ()
 for all formats with standard 8bpp per channel (unsigned char image) More...
 
int WriteDirect_ (const unsigned char *data, const BIAS::UUID &uuid, const long int &sec, const long int &usec)
 

Protected Attributes

long int _liDebugLevel
 
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class More...
 
std::map< std::string, long int > _String2Debuglevel
 
bool Active_
 Active flag is set in PreGrab() und unset in PostGrab() More...
 
bool bEnsureLatestFrame_
 
bool bExternalTrigger_
 External trigger flag. More...
 
int BytesPerPacket_
 
float BytesPerPixel_
 BytesPerPixel cannot be int (e.g. it is 1.5 for YUV420p) More...
 
dc1394camera_t * camera
 
dc1394framerates_t CameraFramerates_ [DC1394_VIDEO_MODE_NUM]
 
dc1394camera_list_t * cameraList
 
dc1394video_modes_t CameraModes_
 
int camid
 
CameraModel CamModel_
 
int ColorChannels_
 
BIAS::ImageBase::EColorModel ColorMode_
 Color mode used by camera. More...
 
bool CompleteInitialized_
 Complete_initialized_ is set when OpenDevice(), UseChannel() etc. are done. More...
 
int DcamDMABuffers_
 
dc1394featureset_t DcamFeatures_
 
int DcamFormat_
 
dc1394framerate_t DcamFps_
 
int DcamIsoChannel_
 
dc1394video_mode_t DcamMode_
 
int DcamSpeed_
 
dc1394_t * dcbus
 
const char * DefaultDevice_
 Device name. More...
 
int DeviceChannel_
 Device channel. More...
 
bool DirectF7_
 
bool DirectToDisk_
 Write directly to disk. More...
 
char * DtDBuffer_
 512 byte aligned buffer, contains VSImageHeader and image data More...
 
unsigned int DtDBufferSize_
 Buffer size must be multiple of 512. More...
 
int DtDFd_
 File descriptor for direct-to-disk mode. More...
 
BIAS::VideoStream::VSImageHeaderDtDImageHeader_
 Pointer to the beginning of DtDBuffer_. More...
 
char * DtDStartOfImage_
 Pointer into DtDBuffer after VSImageHeader. More...
 
dc1394error_t err
 
dc1394color_coding_t f7ColorCoding_
 
bool ForceF7_
 
float FramesPerSecond_
 Capturing framerate. More...
 
bool Grabbing_
 Grabbing flag is set and unset in GrabSingle() methods. More...
 
pthread_mutex_t grabMutex_
 
int Height_
 
int ID_
 Camera ID. More...
 
std::string Identifier_
 Verbose camera descriptor. More...
 
Image< unsigned char > * imageintern_
 
unsigned int ImageSize_
 Image size, useful for allocating and copying memory. More...
 
bool IsControllable_
 Must be initialized be the derived classes. More...
 
unsigned int Left_
 
LensModel Lens_
 
unsigned int MaxBpP_
 
double maxBrightness_
 
double maxContrast_
 
double maxGain_
 
unsigned int MaxHeight_
 
double maxShutter_
 
unsigned int MaxWidth_
 
unsigned int MinBpP_
 
double minBrightness_
 
double minContrast_
 Feature ranges. More...
 
double minGain_
 
double minShutter_
 
int NumCams_
 
uint32_t numCamsOnBus
 
int SelectedCam_
 
unsigned char Shift16_
 
unsigned int Top_
 
int TransmissionTime_
 
dc1394trigger_mode_t Trigger_
 
bool TryFirewireB_
 
unsigned int UnitHeight_
 
unsigned int UnitWidth_
 
bool UseBinning_
 
bool UseDMA_
 
bool UserMode_
 
bool UserTopLeft_
 
bool WaitForNew_
 Wait for new frames in GrabSingle() More...
 
int Width_
 Image format. More...
 

Static Protected Attributes

static std::ostream _zDebugStream
 
static long int GlobalDebugLevel = 0
 
static int InstancesTotal_ = 0
 

Detailed Description

This class VideoSource_DCAM implements access to IEEE1394 (Firewire, iLink) cameras following the DCam 2.0 standard protocol.

Author
evers/angerer
Examples:
ExampleDcam.cpp, ExampleDcamImageConvert.cpp, ExampleDirectToDisk.cpp, ExampleMixtureOfGaussians.cpp, ExamplePtGreyHiresColor.cpp, and ExampleVideoSource_Controller.cpp.

Definition at line 320 of file VideoSource_DCAM.hh.

Constructor & Destructor Documentation

VideoSource_DCAM::VideoSource_DCAM ( int  Card = 0)
VideoSource_DCAM::~VideoSource_DCAM ( )

Destructor.

Definition at line 295 of file VideoSource_DCAM.cpp.

References BIAS::VideoSource::Active_, camera, dcbus, InstancesTotal_, and PostGrab().

Member Function Documentation

int VideoSource_DCAM::ActivateExternalTrigger_ ( bool  trigger = true)
protected

if external triggering is true, activate it here in Opendevice

Parameters
triggertrue if external trigger should be acticated, false if deactivated
Returns
int, <0 on failure, 0 on success

Definition at line 1625 of file VideoSource_DCAM.cpp.

References camera, BIAS::CAMERA_SONY_DFW_X700, CamModel_, BIAS::VideoSource::ID_, and Trigger_.

Referenced by InitCam(), and SetExternalTrigger().

void VideoSource_DCAM::ActivateScorpionTimestamp ( )

Activates the timestamp for PointGrey Scorpion SCOR-20SO.

Definition at line 618 of file VideoSource_DCAM.cpp.

void BIAS::Debug::AddDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::AddDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 362 of file Debug.hh.

int VideoSource_DCAM::ApplyBytesPerPacket ( )
protected

Set this value and read back what really happend.

Returns
int, <0 on failure, 0 on success

Definition at line 1203 of file VideoSource_DCAM.cpp.

int VideoSource::AutoMode ( int  a,
bool  b 
)
virtualinherited

Use this to enable/disable any automatic modes addressed via enumerations.

Definition at line 283 of file VideoSource_Base.cpp.

int VideoSource_DCAM::AutoMode ( dc1394feature_t  feature,
dc1394feature_mode_t  mode 
)

Set a camera feature to auto or to manual mode.

Parameters
featurethe feature to set
modethe mode to set as enum, use DC1394_FEATURE_MODE_AUTO for auto mode or DC1394_FEATURE_MODE_MANUAL for manual mode
Returns
int, <0 on failure, 0 on success;
Examples:
ExamplePtGreyHiresColor.cpp.

Definition at line 1498 of file VideoSource_DCAM.cpp.

References camera.

Referenced by SetAutoBrightness(), SetAutoGain(), SetAutoShutter(), SetCamera(), and SetFeature().

unsigned int VideoSource_DCAM::CalcBytesPerPacket ( )
protected

Evaluate Min and Max BpP, framesize and fps, then calc BpP.

Returns
unsigned int, returns the bytesperpackage calculated from Min and Max BpPm, framesize and fps

Definition at line 1139 of file VideoSource_DCAM.cpp.

References BytesPerPacket_, camera, BIAS::VideoSource::ColorChannels_, BIAS::VideoSource::FramesPerSecond_, BIAS::VideoSource::Height_, MaxBpP_, MinBpP_, and BIAS::VideoSource::Width_.

int VideoSource_DCAM::CloseDevice ( )
virtual
long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( )
inlineprotectedinherited

returns the next available debuglevel

Author
woelk 09/2006

Definition at line 521 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const
inlineinherited
bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const
inlineinherited

Definition at line 350 of file Debug.hh.

void BIAS::VideoSource_DCAM::EnsureLatestFrame ( const bool  ensure)
inlinevirtual

Reimplemented from BIAS::VideoSource.

Definition at line 622 of file VideoSource_DCAM.hh.

void BIAS::VideoSource_DCAM::ForceFormat7 ( bool  forcef7)
inline

this choses f7 mode even for standard resolution

Parameters
forcef7true if format 7 should be forced, false if not

Definition at line 605 of file VideoSource_DCAM.hh.

int VideoSource::GetAllDevices ( std::vector< std::string > &  devices)
virtualinherited

Reimplemented in BIAS::VideoSource_DSHOW, and BIAS::VideoSource_V4L.

Definition at line 197 of file VideoSource_Base.cpp.

Referenced by BIAS::ShowCamWxFrame::OnFindWebcams().

bool VideoSource_DCAM::GetAutoBrightness ( )
virtual

Reimplemented from BIAS::VideoSource.

Definition at line 1547 of file VideoSource_DCAM.cpp.

References camera.

virtual bool BIAS::VideoSource::GetAutoContrast ( )
inlinevirtualinherited

Reimplemented in BIAS::VideoSource_DSHOW.

Definition at line 257 of file VideoSource_Base.hh.

bool VideoSource_DCAM::GetAutoGain ( )
virtual
Returns
returns true if the gain is set to automode, false if not

Reimplemented from BIAS::VideoSource.

Definition at line 1570 of file VideoSource_DCAM.cpp.

References camera.

bool VideoSource_DCAM::GetAutoShutter ( )
virtual
Returns
returns true if the shutter is set to automode, false if not

Reimplemented from BIAS::VideoSource.

Definition at line 1521 of file VideoSource_DCAM.cpp.

References camera.

float VideoSource_DCAM::GetBrightness ( )
virtual

get the value of the brightness feature

Returns
float returns the brightness value

Reimplemented from BIAS::VideoSource.

Definition at line 1958 of file VideoSource_DCAM.cpp.

References camera.

virtual void BIAS::VideoSource::GetBrightnessRange ( double &  min,
double &  max 
)
inlinevirtualinherited
void VideoSource_DCAM::GetBytesPerPacketForFormat7 ( int  camid,
dc1394video_mode_t  mode,
int  width,
int  height,
unsigned int &  bppmin,
unsigned int &  bppmax 
)

returns min and max bytes per packet for a specified resolution in format 7

Parameters
camidthe id of the cam
modethe format 7 mode
widthof the resulting picture
heightof the resulting picture
bppminhere the minimum bytes per packet are stored bppmax here the maximum bytes per packet are stored

Definition at line 307 of file VideoSource_DCAM.cpp.

References camera, cameraList, dcbus, err, BIAS::VideoSource::ID_, numCamsOnBus, and SelectedCam_.

float BIAS::VideoSource::GetBytesPerPixel ( ) const
inlineinherited

Definition at line 193 of file VideoSource_Base.hh.

int VideoSource::GetCapabilities ( VideoSourceCapabilities caps)
virtualinherited

Use this method to learn something about the capabilities of the source (only useful for V4L sources, e.g.

/dev/video0). Output is send to stdout.

Reimplemented in BIAS::VideoSource_DSHOW, BIAS::VideoSource_Kinect, BIAS::VideoSource_OpenNI, BIAS::VideoSource_Kinect2, BIAS::VideoSource_Kinect_Base, BIAS::VideoSource_SwissRanger, BIAS::VideoSource_V4L, and BIAS::VideoSource_Kinect2Net.

Definition at line 203 of file VideoSource_Base.cpp.

Referenced by BIAS::ShowCamWxFrame::OnFindWebcams().

int VideoSource::GetCapabilities ( const char *  device,
VideoSourceCapabilities caps 
)
virtualinherited
int BIAS::VideoSource::GetColorChannels ( ) const
inlineinherited
BIAS::ImageBase::EColorModel BIAS::VideoSource::GetColorModel ( ) const
inlineinherited
virtual float BIAS::VideoSource::GetContrast ( )
inlinevirtualinherited

Get contrast as value in interval [0, 100]. */.

Reimplemented in BIAS::VideoSource_DSHOW, and BIAS::VideoSource_V4L.

Definition at line 253 of file VideoSource_Base.hh.

virtual void BIAS::VideoSource::GetContrastRange ( double &  min,
double &  max 
)
inlinevirtualinherited
int BIAS::Debug::GetDebugLevel ( ) const
inlineinherited
std::ostream& BIAS::Debug::GetDebugStream ( ) const
inlineinherited

Definition at line 405 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const
inlineinherited

Definition at line 414 of file Debug.hh.

virtual void BIAS::VideoSource::GetDeviceChannelNames ( std::vector< std::string > &  names)
inlinevirtualinherited

If more than one channel is present, names can be returned here.

The position in the vector corresponds to the channel number in SetChannel().

Reimplemented in BIAS::VideoSource_V4L.

Definition at line 170 of file VideoSource_Base.hh.

Referenced by BIAS::ShowCamWxFrame::OnFindWebcams().

unsigned int VideoSource::GetFeature ( int  feature)
virtualinherited

This function is used to query features like shutter, zoom, etc.

Definition at line 290 of file VideoSource_Base.cpp.

unsigned int VideoSource_DCAM::GetFeature ( dc1394feature_t  feature)

get the value of a specific feature

Parameters
featurethe feature of which the value should be requested
Returns
unsigned int, the value of the feature

Definition at line 1662 of file VideoSource_DCAM.cpp.

References camera, and BIAS::VideoSource::ID_.

Referenced by GetGain(), GetGammaMode(), and GetShutter().

void BIAS::VideoSource_DCAM::GetFormat7ImageDimensions ( int &  maxWidth,
int &  maxHeight,
int &  minBpP,
int &  maxBpP 
)
inline

Definition at line 626 of file VideoSource_DCAM.hh.

float VideoSource_DCAM::GetGain ( )
virtual
virtual void BIAS::VideoSource::GetGainRange ( double &  min,
double &  max 
)
inlinevirtualinherited

Definition at line 238 of file VideoSource_Base.hh.

int VideoSource_DCAM::GetGammaMode ( )

get the value of Gamma Mode

Returns
unsigned char, returns the value of Gamma Mode

Definition at line 1975 of file VideoSource_DCAM.cpp.

References GetFeature().

static long int BIAS::Debug::GetGlobalDebugLevel ( )
inlinestaticinherited

Definition at line 431 of file Debug.hh.

int BIAS::VideoSource::GetHeight ( ) const
inlineinherited
int BIAS::VideoSource::GetID ( ) const
inlineinherited
Examples:
ExampleMDCamToShm.cpp.

Definition at line 206 of file VideoSource_Base.hh.

std::string BIAS::VideoSource::GetIdentifier ( ) const
inlineinherited

Definition at line 285 of file VideoSource_Base.hh.

unsigned int BIAS::VideoSource_DCAM::GetLeft ( )
inline

Definition at line 575 of file VideoSource_DCAM.hh.

CameraModel VideoSource_DCAM::GetModelForEuid ( const u_int64_t  euid)
protected
float VideoSource_DCAM::GetShutter ( )
virtual
virtual void BIAS::VideoSource::GetShutterRange ( double &  min,
double &  max 
)
inlinevirtualinherited

Definition at line 228 of file VideoSource_Base.hh.

unsigned int BIAS::VideoSource_DCAM::GetTop ( )
inline

Definition at line 574 of file VideoSource_DCAM.hh.

int BIAS::VideoSource_DCAM::GetTransmissionTime ( )
inline

Definition at line 586 of file VideoSource_DCAM.hh.

int VideoSource::GetWhiteBalance ( float &  rvalue,
float &  bvalue 
)
virtualinherited

Get white balance as values in interval [0, 100]. */.

Reimplemented in BIAS::VideoSource_uEye.

Definition at line 335 of file VideoSource_Base.cpp.

int BIAS::VideoSource::GetWidth ( ) const
inlineinherited
int VideoSource::GrabSingle ( BIAS::Camera< float > &  image)
virtualinherited

Reimplemented in BIAS::VideoSource_Disk, and BIAS::VideoSource_Disk_Bayer.

Definition at line 229 of file VideoSource_Base.cpp.

int VideoSource::GrabSingle ( BIAS::Camera< char > &  image)
virtualinherited

Definition at line 252 of file VideoSource_Base.cpp.

int VideoSource::GrabSingle ( BIAS::Camera< short int > &  image)
virtualinherited

Definition at line 260 of file VideoSource_Base.cpp.

int VideoSource::GrabSingle ( BIAS::Camera< int > &  image)
virtualinherited

Definition at line 268 of file VideoSource_Base.cpp.

int VideoSource::GrabSingle ( BIAS::Camera< unsigned short int > &  image)
virtualinherited

Reimplemented in BIAS::VideoSource_Disk, and BIAS::VideoSource_Disk_Bayer.

Definition at line 236 of file VideoSource_Base.cpp.

int VideoSource::GrabSingle ( BIAS::Camera< unsigned int > &  image)
virtualinherited

Definition at line 244 of file VideoSource_Base.cpp.

int VideoSource::GrabSingle ( BIAS::Camera< double > &  image)
virtualinherited

Definition at line 276 of file VideoSource_Base.cpp.

int VideoSource_DCAM::GrabSingle ( BIAS::Camera< unsigned char > &  image)
virtual
int VideoSource_DCAM::GrabSingle ( BIAS::Camera< unsigned short > &  image)
bool BIAS::VideoSource_DCAM::HasControlBrightness ( )
inlinevirtual

Reimplemented from BIAS::VideoSource.

Definition at line 499 of file VideoSource_DCAM.hh.

virtual bool BIAS::VideoSource::HasControlContrast ( )
inlinevirtualinherited

Reimplemented in BIAS::VideoSource_DSHOW, and BIAS::VideoSource_V4L.

Definition at line 251 of file VideoSource_Base.hh.

bool BIAS::VideoSource_DCAM::HasControlGain ( )
inlinevirtual

Reimplemented from BIAS::VideoSource.

Definition at line 498 of file VideoSource_DCAM.hh.

bool BIAS::VideoSource_DCAM::HasControlShutter ( )
inlinevirtual

Reimplemented from BIAS::VideoSource.

Definition at line 497 of file VideoSource_DCAM.hh.

bool BIAS::VideoSource_DCAM::HasControlWhiteBalance ( )
inlinevirtual

Reimplemented from BIAS::VideoSource.

Definition at line 500 of file VideoSource_DCAM.hh.

int VideoSource_DCAM::InitCam ( )
protected
int VideoSource::InitImage ( BIAS::ImageBase Image)
virtualinherited
bool BIAS::VideoSource::IsActive ( ) const
inlineinherited

Definition at line 208 of file VideoSource_Base.hh.

bool BIAS::VideoSource::IsControllable ( )
inlineinherited

Specify if SetShutter(), SetGain() ... would work for this camera.

Definition at line 211 of file VideoSource_Base.hh.

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const
inlineinherited

looks up a debuglevel in the internal map, returns 0 if not found

Author
woelk 09/2006

Definition at line 454 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name)
inlineinherited
int VideoSource::OnePushAuto ( int  feature)
virtualinherited

Definition at line 326 of file VideoSource_Base.cpp.

int VideoSource_DCAM::OnePushAuto ( dc1394feature_t  feature)
Parameters
featurethe feature to set one push automode for
Returns
int, <0 on failure, 0 on success

!!ATTENTION BIAS::FEATURE... may differ from ::FEATURE... (from CMU)!!!

Examples:
ExamplePtGreyHiresColor.cpp.

Definition at line 1583 of file VideoSource_DCAM.cpp.

References camera, BIAS::CAMERA_PTGREY_DRAGONFLY_COLOR, CamModel_, and BIAS::VideoSource::SoftwareWhiteBalance().

Referenced by SetCamera().

bool VideoSource_DCAM::OnePushRunning ( dc1394feature_t  feature)

is a feature available at OnePush?

Returns
returns true, if the feature is available at OnePush mode

Definition at line 1607 of file VideoSource_DCAM.cpp.

References camera.

int VideoSource::OpenDevice ( const char *  device)
virtualinherited
int VideoSource::OpenDevice ( std::string  Prefix,
std::string  Postfix,
int  DigitCount,
int  PictureCount,
int  StartCount = 0 
)
virtualinherited

used by derived class VideoSource_Disk

Reimplemented in BIAS::VideoSource_Disk.

Definition at line 185 of file VideoSource_Base.cpp.

int VideoSource::OpenDevice ( const std::vector< std::string > &  FileNames)
virtualinherited
int VideoSource_DCAM::OpenDevice ( )
virtual

Opens a dc1394 device.

Returns
int, <0 on failure, 0 on success

Reimplemented from BIAS::VideoSource.

Examples:
ExampleDcam.cpp, ExampleDcamImageConvert.cpp, ExampleDirectToDisk.cpp, ExampleGrabTrippleFromXB3.cpp, ExamplePtGreyHiresColor.cpp, and ExampleVideoSource_Controller.cpp.

Definition at line 432 of file VideoSource_DCAM.cpp.

References camid.

Referenced by BIAS::VideoSource_MDcam::ScanBus(), and BIAS::ScanBus().

int VideoSource_DCAM::OpenDevice ( int  camid)
virtual

Opens a dc1394 device with id camid.

Parameters
camidThe camera id of the camera to open
Returns
int, <0 on failure, 0 on success

Reimplemented from BIAS::VideoSource.

Definition at line 356 of file VideoSource_DCAM.cpp.

References camera, cameraList, CamModel_, dcbus, err, GetModelForEuid(), BIAS::VideoSource::ID_, InitCam(), numCamsOnBus, QueryCam(), and SelectedCam_.

int VideoSource_DCAM::PostGrab ( )
virtual

stops iso transmission of a camera.

this has to be called after capturing any image

Returns
int, <0 on failure, 0 on success

Reimplemented from BIAS::VideoSource.

Examples:
ExampleDcam.cpp, ExampleDcamImageConvert.cpp, ExampleDirectToDisk.cpp, ExampleGrabTrippleFromXB3.cpp, and ExamplePtGreyHiresColor.cpp.

Definition at line 654 of file VideoSource_DCAM.cpp.

References BIAS::VideoSource::Active_, camera, and SelectedCam_.

Referenced by CloseDevice(), and ~VideoSource_DCAM().

int VideoSource_DCAM::PreGrab ( )
virtual

initializes the iso transmission of a camera.

this has to be called before capturing any image

Returns
int, <0 on failure, 0 on success

Reimplemented from BIAS::VideoSource.

Examples:
ExampleDcam.cpp, ExampleDcamImageConvert.cpp, ExampleDirectToDisk.cpp, ExampleGrabTrippleFromXB3.cpp, ExamplePtGreyHiresColor.cpp, and ExampleVideoSource_Controller.cpp.

Definition at line 626 of file VideoSource_DCAM.cpp.

References BIAS::VideoSource::Active_, camera, BIAS::VideoSource::CompleteInitialized_, InitCam(), and SelectedCam_.

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

Definition at line 383 of file Debug.hh.

int VideoSource_DCAM::QueryCam ( )
protected

querys the cam for available modes, framerates and features

Returns
int, <0 on failure, 0 on success

Definition at line 672 of file VideoSource_DCAM.cpp.

References camera, CameraFramerates_, CameraModes_, DcamFeatures_, err, MaxBpP_, MaxHeight_, MaxWidth_, MinBpP_, SelectedCam_, UnitHeight_, and UnitWidth_.

Referenced by OpenDevice().

void BIAS::Debug::RemoveDebugLevel ( const long int  lv)
inlineinherited

Definition at line 369 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 376 of file Debug.hh.

virtual void BIAS::VideoSource::ResetPanTiltZoom ( void  )
inlinevirtualinherited

Reset digital zoom, pan, and tilt to defaults to ensure compliance with calibration.

Reimplemented in BIAS::VideoSource_DSHOW, and BIAS::VideoSource_V4L.

Definition at line 265 of file VideoSource_Base.hh.

int VideoSource_DCAM::SelectDefault ( )
void VideoSource_DCAM::SetAutoBrightness ( bool  b)
virtual

Reimplemented from BIAS::VideoSource.

Definition at line 1536 of file VideoSource_DCAM.cpp.

References AutoMode().

virtual void BIAS::VideoSource::SetAutoContrast ( bool  b)
inlinevirtualinherited

Reimplemented in BIAS::VideoSource_DSHOW.

Definition at line 256 of file VideoSource_Base.hh.

void VideoSource_DCAM::SetAutoGain ( bool  b)
virtual

set the gain to auto or manual mode

Parameters
btrue if the gain should be set to auto mode, false if not

Reimplemented from BIAS::VideoSource.

Definition at line 1559 of file VideoSource_DCAM.cpp.

References AutoMode().

void VideoSource_DCAM::SetAutoShutter ( bool  b)
virtual

set the shutter to auto or manual mode

Parameters
btrue if the shutter should be set to auto mode, false if not

Reimplemented from BIAS::VideoSource.

Definition at line 1510 of file VideoSource_DCAM.cpp.

References AutoMode().

void BIAS::VideoSource_DCAM::SetBinning ( bool  b)
inline

Definition at line 371 of file VideoSource_DCAM.hh.

int VideoSource_DCAM::SetBrightness ( float  b)
virtual

set value for brightness

Parameters
bbrightness
Returns
int, <0 on failure, 0 on success

Reimplemented from BIAS::VideoSource.

Definition at line 1948 of file VideoSource_DCAM.cpp.

References camera.

void BIAS::VideoSource_DCAM::SetBytesPerPacket ( const int  b)
inline

sets the bytes per packet used for format 7

Parameters
bthe bytes per packet

Definition at line 611 of file VideoSource_DCAM.hh.

void BIAS::VideoSource::SetBytesPerPixel ( unsigned char  bpp)
inlineinherited
Attention
Must be used before OpenDevice()!

Definition at line 183 of file VideoSource_Base.hh.

void VideoSource_DCAM::SetCam_ID ( int  manualcamid_)

set's the id of a camera manually, has to be called before OpenDevice()

Parameters
manualcamid_the unique id of the camera

Definition at line 348 of file VideoSource_DCAM.cpp.

References camid.

int VideoSource_DCAM::SetCamera ( CameraParameterSet  camparam)
virtual void BIAS::VideoSource_DCAM::SetCameraID ( int  )
inlinevirtual

Definition at line 595 of file VideoSource_DCAM.hh.

void VideoSource_DCAM::SetCameraModel ( CameraModel  model)

Sets the Camera model.

Definition at line 800 of file VideoSource_DCAM_CMU.cpp.

References CamModel_.

int VideoSource_DCAM::SetColorFromMode_ ( dc1394video_mode_t  videoMode)
int VideoSource::SetColorModel ( BIAS::ImageBase::EColorModel  mode)
virtualinherited
virtual int BIAS::VideoSource::SetContrast ( float  g)
inlinevirtualinherited

Set contrast as value in interval [0, 100]. */.

Reimplemented in BIAS::VideoSource_DSHOW, and BIAS::VideoSource_V4L.

Definition at line 255 of file VideoSource_Base.hh.

void BIAS::Debug::SetDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::SetDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 325 of file Debug.hh.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os)
inlineinherited

Definition at line 398 of file Debug.hh.

void BIAS::VideoSource::SetDeviceChannel ( int  channel)
inlineinherited

Use channel to select one of many cameras on the same.

Attention
Must be used before OpenDevice()!

Definition at line 165 of file VideoSource_Base.hh.

Referenced by BIAS::ShowCamWxFrame::OnFindWebcams().

int VideoSource::SetDirectToDisk ( const std::string &  filename)
inherited
void VideoSource_DCAM::SetExternalTrigger ( bool  trigger = true)
virtual

set External Trigger mode, overrides Base class function

Parameters
trigger,boolto activate or deactivate trigger

Reimplemented from BIAS::VideoSource.

Definition at line 1490 of file VideoSource_DCAM.cpp.

References ActivateExternalTrigger_(), BIAS::VideoSource::bExternalTrigger_, BIAS::VideoSource::CompleteInitialized_, and BIAS::VideoSource::SetExternalTrigger().

int VideoSource::SetFeature ( int  feature,
unsigned int  value 
)
virtualinherited

This function is used to control features like shutter, zoom, etc.

Definition at line 296 of file VideoSource_Base.cpp.

int VideoSource_DCAM::SetFeature ( dc1394feature_t  feature,
unsigned int  value 
)

Set a camera feature by hand.

Parameters
featurethe feature to set
valuethe value to be set for the feature feature
Returns
int, <0 on failure, 0 on success

Definition at line 1682 of file VideoSource_DCAM.cpp.

References AutoMode(), camera, and BIAS::VideoSource::ID_.

Referenced by SetCamera(), SetGain(), SetGammaMode(), and SetShutter().

void VideoSource_DCAM::SetFirewireB ( bool  on)
Examples:
ExampleDcam.cpp.

Definition at line 472 of file VideoSource_DCAM.cpp.

References TryFirewireB_.

Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateDCAM().

int VideoSource_DCAM::SetFormat7 ( int  mode,
int  bpp,
dc1394color_coding_t  colorCoding = DC1394_COLOR_CODING_MONO8 
)

this a special function to by-pass all automatic initializations and Use only in conjuction with SetSize() and SetLeftTop() !

Examples:
ExampleGrabTrippleFromXB3.cpp.

Definition at line 451 of file VideoSource_DCAM.cpp.

References BytesPerPacket_, DcamMode_, DirectF7_, and f7ColorCoding_.

Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), and BIAS::VideoSource_DCAM_BumbleBee::SetStereoDefaultMode().

void BIAS::VideoSource::SetFPS ( float  fps)
inlineinherited

Set frame per second for image capturing.

Attention
Must be used before OpenDevice()!
Examples:
ExampleDirectToDisk.cpp.

Definition at line 175 of file VideoSource_Base.hh.

Referenced by SetModeAndFramerate().

int VideoSource_DCAM::SetGain ( float  g)
virtual
int VideoSource_DCAM::SetGammaMode ( int  g)

set Gamma Mode

Parameters
gthe gamma mode as unsigned char
Returns
int, <0 on failure, 0 on success

Definition at line 1966 of file VideoSource_DCAM.cpp.

References SetFeature().

Referenced by SetCamera().

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev)
inlinestaticinherited

Definition at line 424 of file Debug.hh.

int VideoSource_DCAM::SetLeftTop ( unsigned int  left,
unsigned int  top 
)

set the topleft corner for partitial scan

Parameters
leftdistance from left
topdistance from top
Returns
int, <0 on failure, 0 on success
Examples:
ExampleGrabTrippleFromXB3.cpp.

Definition at line 1703 of file VideoSource_DCAM.cpp.

References BIAS::VideoSource::Height_, Left_, MaxHeight_, MaxWidth_, Top_, UserTopLeft_, and BIAS::VideoSource::Width_.

Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), and BIAS::VideoSource_DCAM_BumbleBee::SetStereoDefaultMode().

void VideoSource_DCAM::SetModeAndFramerate ( dc1394video_mode_t  mode,
float  framerate 
)
int VideoSource_DCAM::SetShutter ( float  exptime)
virtual
void VideoSource::SetSize ( int  w,
int  h,
int  bytesperpixel = 1 
)
virtualinherited
virtual void BIAS::VideoSource::SetWaitForNew ( bool  waitForNew)
inlinevirtualinherited

Specify if grab should wait for new frames.

If you want as many images as possible and don't care about equal ones, call this with waitForNew = false. By default, GrabSingle() blocks until a new frame arrives from the camera. Only used in V4L and DSHOW.

Author
grest

Reimplemented in BIAS::VideoSource_DSHOW.

Definition at line 293 of file VideoSource_Base.hh.

int VideoSource_DCAM::SetWhiteBalance ( float  rvalue,
float  bvalue 
)
virtual

sets the white balance of the camera, rvalue and bvalue are in range -0.5 to 0.5

Parameters
rvalue
bvalue
Returns
int, <0 on failure, 0 on success

Reimplemented from BIAS::VideoSource.

Examples:
ExamplePtGreyHiresColor.cpp.

Definition at line 1983 of file VideoSource_DCAM.cpp.

References camera, BIAS::CAMERA_PTGREY_DRAGONFLY2_COLOR_HIRES, BIAS::CAMERA_PTGREY_DRAGONFLY_COLOR, BIAS::CAMERA_PTGREY_GRASSHOPPER_COLOR, BIAS::CAMERA_PTGREY_SCORPION_COLOR_1600, BIAS::CAMERA_SONY_DFW_V500, BIAS::CAMERA_SONY_DFW_X700, and CamModel_.

int VideoSource_DCAM::ShowCapabilities ( )
protected

Definition at line 733 of file VideoSource_DCAM.cpp.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

prints all internally known debuglevels

Author
woelk 09/2006

Definition at line 496 of file Debug.hh.

int VideoSource::SoftwareWhiteBalance ( )
virtualinherited
int VideoSource_DCAM::UserSizeToFormat7_ ( )
protected

if user requested format 7

Returns
int, <0 on failure, 0 on success

Definition at line 2329 of file VideoSource_DCAM.cpp.

References BIAS::VideoSource::ColorChannels_, DcamMode_, BIAS::VideoSource::Height_, Left_, MaxHeight_, MaxWidth_, Top_, UnitHeight_, UnitWidth_, UseBinning_, UserTopLeft_, and BIAS::VideoSource::Width_.

Referenced by UserSizeToMode().

int VideoSource_DCAM::UserSizeToMode ( )
protected

tries to find a camera mode from user given width and height

Returns
int, <0 on failure, 0 on success

Definition at line 942 of file VideoSource_DCAM.cpp.

References BIAS::VideoSource::BytesPerPixel_, BIAS::VideoSource::ColorMode_, ForceF7_, BIAS::VideoSource::Height_, SelectedCam_, UserSizeToFormat7_(), UserSizeToMode_16bit_(), UserSizeToMode_8bit_(), and BIAS::VideoSource::Width_.

Referenced by InitCam().

int VideoSource_DCAM::UserSizeToMode_16bit_ ( )
protected
int VideoSource_DCAM::UserSizeToMode_8bit_ ( )
protected
std::string VideoSource_DCAM::VideoModeToString ( dc1394video_mode_t  mode)
static

returns a string from a IEEE1394 video mode

Definition at line 2469 of file VideoSource_DCAM.cpp.

Referenced by BIAS::ShowCamWxFrame::AddIEEECameraToMenu().

int VideoSource::WriteDirect_ ( const unsigned char *  data,
const BIAS::UUID uuid,
const long int &  sec,
const long int &  usec 
)
protectedinherited

Member Data Documentation

long int BIAS::Debug::_liDebugLevel
protectedinherited

Definition at line 510 of file Debug.hh.

Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().

long int BIAS::Debug::_liNextDebugLevel
protectedinherited

new concept, debuglevel are managed here in the debug class

Definition at line 516 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel
protectedinherited

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream
staticprotectedinherited

Definition at line 511 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

bool BIAS::VideoSource::Active_
protectedinherited
bool BIAS::VideoSource_DCAM::bEnsureLatestFrame_
protected

Definition at line 764 of file VideoSource_DCAM.hh.

Referenced by GrabSingle(), and VideoSource_DCAM().

bool BIAS::VideoSource::bExternalTrigger_
protectedinherited

External trigger flag.

Definition at line 330 of file VideoSource_Base.hh.

Referenced by InitCam(), SetExternalTrigger(), and BIAS::VideoSource::VideoSource().

int BIAS::VideoSource_DCAM::BytesPerPacket_
protected

Definition at line 773 of file VideoSource_DCAM.hh.

Referenced by CalcBytesPerPacket(), InitCam(), SetFormat7(), and VideoSource_DCAM().

float BIAS::VideoSource::BytesPerPixel_
protectedinherited
dc1394camera_t* BIAS::VideoSource_DCAM::camera
protected
dc1394framerates_t BIAS::VideoSource_DCAM::CameraFramerates_[DC1394_VIDEO_MODE_NUM]
protected

Definition at line 745 of file VideoSource_DCAM.hh.

Referenced by InitCam(), QueryCam(), and SelectDefault().

dc1394camera_list_t* BIAS::VideoSource_DCAM::cameraList
protected

Definition at line 741 of file VideoSource_DCAM.hh.

Referenced by GetBytesPerPacketForFormat7(), OpenDevice(), and VideoSource_DCAM().

dc1394video_modes_t BIAS::VideoSource_DCAM::CameraModes_
protected

Definition at line 744 of file VideoSource_DCAM.hh.

Referenced by QueryCam(), and SelectDefault().

int BIAS::VideoSource_DCAM::camid
protected

Definition at line 737 of file VideoSource_DCAM.hh.

Referenced by OpenDevice(), SetCam_ID(), and VideoSource_DCAM().

CameraModel BIAS::VideoSource_DCAM::CamModel_
protected
int BIAS::VideoSource::ColorChannels_
protectedinherited
BIAS::ImageBase::EColorModel BIAS::VideoSource::ColorMode_
protectedinherited
bool BIAS::VideoSource::CompleteInitialized_
protectedinherited
int BIAS::VideoSource_DCAM::DcamDMABuffers_
protected

Definition at line 765 of file VideoSource_DCAM.hh.

dc1394featureset_t BIAS::VideoSource_DCAM::DcamFeatures_
protected

Definition at line 746 of file VideoSource_DCAM.hh.

Referenced by QueryCam().

int BIAS::VideoSource_DCAM::DcamFormat_
protected

Definition at line 758 of file VideoSource_DCAM.hh.

Referenced by VideoSource_DCAM().

dc1394framerate_t BIAS::VideoSource_DCAM::DcamFps_
protected

Definition at line 748 of file VideoSource_DCAM.hh.

Referenced by InitCam(), SelectDefault(), and VideoSource_DCAM().

int BIAS::VideoSource_DCAM::DcamIsoChannel_
protected

Definition at line 759 of file VideoSource_DCAM.hh.

dc1394video_mode_t BIAS::VideoSource_DCAM::DcamMode_
protected
int BIAS::VideoSource_DCAM::DcamSpeed_
protected

Definition at line 756 of file VideoSource_DCAM.hh.

dc1394_t* BIAS::VideoSource_DCAM::dcbus
protected
const char* BIAS::VideoSource::DefaultDevice_
protectedinherited
int BIAS::VideoSource::DeviceChannel_
protectedinherited
bool BIAS::VideoSource_DCAM::DirectF7_
protected

Definition at line 762 of file VideoSource_DCAM.hh.

Referenced by InitCam(), SetColorFromMode_(), SetFormat7(), and VideoSource_DCAM().

bool BIAS::VideoSource::DirectToDisk_
protectedinherited

Write directly to disk.

Definition at line 339 of file VideoSource_Base.hh.

Referenced by BIAS::VideoSource::SetDirectToDisk(), and BIAS::VideoSource::VideoSource().

char* BIAS::VideoSource::DtDBuffer_
protectedinherited

512 byte aligned buffer, contains VSImageHeader and image data

Definition at line 345 of file VideoSource_Base.hh.

Referenced by BIAS::VideoSource::SetDirectToDisk(), BIAS::VideoSource::VideoSource(), and BIAS::VideoSource::WriteDirect_().

unsigned int BIAS::VideoSource::DtDBufferSize_
protectedinherited

Buffer size must be multiple of 512.

Definition at line 348 of file VideoSource_Base.hh.

Referenced by BIAS::VideoSource::SetDirectToDisk(), BIAS::VideoSource::VideoSource(), and BIAS::VideoSource::WriteDirect_().

int BIAS::VideoSource::DtDFd_
protectedinherited

File descriptor for direct-to-disk mode.

Definition at line 342 of file VideoSource_Base.hh.

Referenced by BIAS::VideoSource::SetDirectToDisk(), BIAS::VideoSource::VideoSource(), and BIAS::VideoSource::WriteDirect_().

BIAS::VideoStream::VSImageHeader* BIAS::VideoSource::DtDImageHeader_
protectedinherited

Pointer to the beginning of DtDBuffer_.

Definition at line 354 of file VideoSource_Base.hh.

Referenced by BIAS::VideoSource::SetDirectToDisk(), and BIAS::VideoSource::WriteDirect_().

char* BIAS::VideoSource::DtDStartOfImage_
protectedinherited

Pointer into DtDBuffer after VSImageHeader.

Definition at line 357 of file VideoSource_Base.hh.

Referenced by BIAS::VideoSource::SetDirectToDisk(), and BIAS::VideoSource::WriteDirect_().

dc1394error_t BIAS::VideoSource_DCAM::err
protected
dc1394color_coding_t BIAS::VideoSource_DCAM::f7ColorCoding_
protected

Definition at line 752 of file VideoSource_DCAM.hh.

Referenced by InitCam(), SetColorFromMode_(), SetFormat7(), and VideoSource_DCAM().

bool BIAS::VideoSource_DCAM::ForceF7_
protected

Definition at line 761 of file VideoSource_DCAM.hh.

Referenced by UserSizeToMode(), and VideoSource_DCAM().

float BIAS::VideoSource::FramesPerSecond_
protectedinherited
long int BIAS::Debug::GlobalDebugLevel = 0
staticprotectedinherited

Definition at line 513 of file Debug.hh.

bool BIAS::VideoSource::Grabbing_
protectedinherited
pthread_mutex_t BIAS::VideoSource_DCAM::grabMutex_
protected

Definition at line 787 of file VideoSource_DCAM.hh.

Referenced by GrabSingle(), and VideoSource_DCAM().

int BIAS::VideoSource::Height_
protectedinherited
int BIAS::VideoSource::ID_
protectedinherited
std::string BIAS::VideoSource::Identifier_
protectedinherited
Image<unsigned char>* BIAS::VideoSource_DCAM::imageintern_
protected

Definition at line 775 of file VideoSource_DCAM.hh.

unsigned int BIAS::VideoSource::ImageSize_
protectedinherited

Image size, useful for allocating and copying memory.

Definition at line 351 of file VideoSource_Base.hh.

Referenced by BIAS::VideoSource_FFmpeg::OpenDevice(), BIAS::VideoSource::SetDirectToDisk(), and BIAS::VideoSource::WriteDirect_().

int VideoSource_DCAM::InstancesTotal_ = 0
staticprotected

Definition at line 730 of file VideoSource_DCAM.hh.

Referenced by VideoSource_DCAM(), and ~VideoSource_DCAM().

bool BIAS::VideoSource::IsControllable_
protectedinherited
unsigned int BIAS::VideoSource_DCAM::Left_
protected

Definition at line 770 of file VideoSource_DCAM.hh.

Referenced by InitCam(), SetLeftTop(), and UserSizeToFormat7_().

LensModel BIAS::VideoSource_DCAM::Lens_
protected

Definition at line 781 of file VideoSource_DCAM.hh.

unsigned int BIAS::VideoSource_DCAM::MaxBpP_
protected

Definition at line 774 of file VideoSource_DCAM.hh.

Referenced by CalcBytesPerPacket(), and QueryCam().

double BIAS::VideoSource::maxBrightness_
protectedinherited
double BIAS::VideoSource::maxContrast_
protectedinherited
double BIAS::VideoSource::maxGain_
protectedinherited
unsigned int BIAS::VideoSource_DCAM::MaxHeight_
protected

Definition at line 770 of file VideoSource_DCAM.hh.

Referenced by QueryCam(), SetLeftTop(), and UserSizeToFormat7_().

double BIAS::VideoSource::maxShutter_
protectedinherited
unsigned int BIAS::VideoSource_DCAM::MaxWidth_
protected

Definition at line 770 of file VideoSource_DCAM.hh.

Referenced by QueryCam(), SetLeftTop(), and UserSizeToFormat7_().

unsigned int BIAS::VideoSource_DCAM::MinBpP_
protected

Definition at line 774 of file VideoSource_DCAM.hh.

Referenced by CalcBytesPerPacket(), and QueryCam().

double BIAS::VideoSource::minBrightness_
protectedinherited
double BIAS::VideoSource::minContrast_
protectedinherited
double BIAS::VideoSource::minGain_
protectedinherited
double BIAS::VideoSource::minShutter_
protectedinherited
int BIAS::VideoSource_DCAM::NumCams_
protected

Definition at line 754 of file VideoSource_DCAM.hh.

uint32_t BIAS::VideoSource_DCAM::numCamsOnBus
protected

Definition at line 743 of file VideoSource_DCAM.hh.

Referenced by GetBytesPerPacketForFormat7(), and OpenDevice().

bool BIAS::VideoSource_DCAM::ScorpionTimestampActive_

Definition at line 327 of file VideoSource_DCAM.hh.

int BIAS::VideoSource_DCAM::SelectedCam_
protected
unsigned char BIAS::VideoSource_DCAM::Shift16_
protected

Definition at line 779 of file VideoSource_DCAM.hh.

Referenced by GetModelForEuid(), GrabSingle(), and VideoSource_DCAM().

unsigned int BIAS::VideoSource_DCAM::Top_
protected

Definition at line 770 of file VideoSource_DCAM.hh.

Referenced by InitCam(), SetLeftTop(), and UserSizeToFormat7_().

int BIAS::VideoSource_DCAM::TransmissionTime_
protected

Definition at line 777 of file VideoSource_DCAM.hh.

Referenced by VideoSource_DCAM().

dc1394trigger_mode_t BIAS::VideoSource_DCAM::Trigger_
protected

Definition at line 749 of file VideoSource_DCAM.hh.

Referenced by ActivateExternalTrigger_().

bool BIAS::VideoSource_DCAM::TryFirewireB_
protected

Definition at line 766 of file VideoSource_DCAM.hh.

Referenced by InitCam(), SetFirewireB(), and VideoSource_DCAM().

unsigned int BIAS::VideoSource_DCAM::UnitHeight_
protected

Definition at line 771 of file VideoSource_DCAM.hh.

Referenced by QueryCam(), and UserSizeToFormat7_().

unsigned int BIAS::VideoSource_DCAM::UnitWidth_
protected

Definition at line 771 of file VideoSource_DCAM.hh.

Referenced by QueryCam(), and UserSizeToFormat7_().

bool BIAS::VideoSource_DCAM::UseBinning_
protected

Definition at line 782 of file VideoSource_DCAM.hh.

Referenced by InitCam(), UserSizeToFormat7_(), and VideoSource_DCAM().

bool BIAS::VideoSource_DCAM::UseDMA_
protected

Definition at line 763 of file VideoSource_DCAM.hh.

Referenced by VideoSource_DCAM().

bool BIAS::VideoSource_DCAM::UserMode_
protected

Definition at line 767 of file VideoSource_DCAM.hh.

Referenced by InitCam(), SetModeAndFramerate(), and VideoSource_DCAM().

bool BIAS::VideoSource_DCAM::UserTopLeft_
protected

Definition at line 772 of file VideoSource_DCAM.hh.

Referenced by SetLeftTop(), UserSizeToFormat7_(), and VideoSource_DCAM().

bool BIAS::VideoSource::WaitForNew_
protectedinherited
int BIAS::VideoSource::Width_
protectedinherited

The documentation for this class was generated from the following files: