All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes
pangolin::FirewireVideo Class Reference

#include <firewire.h>

Inheritance diagram for pangolin::FirewireVideo:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FirewireVideo (unsigned deviceid=0, dc1394video_mode_t video_mode=DC1394_VIDEO_MODE_640x480_RGB8, dc1394framerate_t framerate=DC1394_FRAMERATE_30, dc1394speed_t iso_speed=DC1394_ISO_SPEED_400, int dma_buffers=10)
 FirewireVideo (Guid guid, dc1394video_mode_t video_mode=DC1394_VIDEO_MODE_640x480_RGB8, dc1394framerate_t framerate=DC1394_FRAMERATE_30, dc1394speed_t iso_speed=DC1394_ISO_SPEED_400, int dma_buffers=10)
 FirewireVideo (Guid guid, dc1394video_mode_t video_mode, int framerate, uint32_t width, uint32_t height, uint32_t left, uint32_t top, dc1394speed_t iso_speed, int dma_buffers, bool reset_at_boot=false)
 FirewireVideo (unsigned deviceid, dc1394video_mode_t video_mode, int framerate, uint32_t width, uint32_t height, uint32_t left, uint32_t top, dc1394speed_t iso_speed, int dma_buffers, bool reset_at_boot=false)
float GetGain () const
 return absolute gain value
float GetGamma () const
 return absolute gamma value
FirewireFrame GetNewest (bool wait=true)
FirewireFrame GetNext (bool wait=true)
float GetShutterTime () const
 return absolute shutter value
bool GrabNewest (unsigned char *image, bool wait=true)
 Implement VideoSource::GrabNewest()
bool GrabNext (unsigned char *image, bool wait=true)
 Implement VideoSource::GrabNext()
unsigned Height () const
 Implement VideoSource::Height()
std::string PixFormat () const
 Implement VideoSource::PixFormat()
void PutFrame (FirewireFrame &frame)
void SetAutoGain ()
 set auto shutter value
void SetAutoShutterTime ()
 set auto shutter value
void SetExternalTrigger (dc1394trigger_mode_t mode=DC1394_TRIGGER_MODE_0, dc1394trigger_polarity_t polarity=DC1394_TRIGGER_ACTIVE_HIGH, dc1394trigger_source_t source=DC1394_TRIGGER_SOURCE_0)
 set the trigger to external
void SetGain (float val)
 set absolute shutter value
void SetInternalTrigger ()
 set the trigger to internal, i.e. determined by video mode
void SetShutterTime (float val)
 set absolute shutter value
void SetShutterTimeQuant (int shutter)
 return quantised shutter value
size_t SizeBytes () const
 Implement VideoSource::SizeBytes()
void Start ()
 Implement VideoSource::Start()
void Stop ()
 Implement VideoSource::Stop()
unsigned Width () const
 Implement VideoSource::Width()
 ~FirewireVideo ()

Static Public Attributes

static const int EXT_TRIG = -1
static const int MAX_FR = -1

Protected Member Functions

void init_camera (uint64_t guid, int dma_frames, dc1394speed_t iso_speed, dc1394video_mode_t video_mode, dc1394framerate_t framerate)
void init_format7_camera (uint64_t guid, int dma_frames, dc1394speed_t iso_speed, dc1394video_mode_t video_mode, int framerate, uint32_t width, uint32_t height, uint32_t left, uint32_t top, bool reset_at_boot)

Static Protected Member Functions

static double bus_period_from_iso_speed (dc1394speed_t iso_speed)
static int nearest_value (int value, int step, int min, int max)

Protected Attributes

dc1394camera_t * camera
dc1394_t * d
dc1394error_t err
unsigned height
unsigned left
dc1394camera_list_t * list
bool running
unsigned top
unsigned width

Detailed Description

Definition at line 83 of file firewire.h.


Constructor & Destructor Documentation

pangolin::FirewireVideo::FirewireVideo ( unsigned  deviceid = 0,
dc1394video_mode_t  video_mode = DC1394_VIDEO_MODE_640x480_RGB8,
dc1394framerate_t  framerate = DC1394_FRAMERATE_30,
dc1394speed_t  iso_speed = DC1394_ISO_SPEED_400,
int  dma_buffers = 10 
)

Definition at line 513 of file firewire.cpp.

pangolin::FirewireVideo::FirewireVideo ( Guid  guid,
dc1394video_mode_t  video_mode = DC1394_VIDEO_MODE_640x480_RGB8,
dc1394framerate_t  framerate = DC1394_FRAMERATE_30,
dc1394speed_t  iso_speed = DC1394_ISO_SPEED_400,
int  dma_buffers = 10 
)

Definition at line 481 of file firewire.cpp.

pangolin::FirewireVideo::FirewireVideo ( Guid  guid,
dc1394video_mode_t  video_mode,
int  framerate,
uint32_t  width,
uint32_t  height,
uint32_t  left,
uint32_t  top,
dc1394speed_t  iso_speed,
int  dma_buffers,
bool  reset_at_boot = false 
)

Definition at line 496 of file firewire.cpp.

pangolin::FirewireVideo::FirewireVideo ( unsigned  deviceid,
dc1394video_mode_t  video_mode,
int  framerate,
uint32_t  width,
uint32_t  height,
uint32_t  left,
uint32_t  top,
dc1394speed_t  iso_speed,
int  dma_buffers,
bool  reset_at_boot = false 
)

Definition at line 543 of file firewire.cpp.

Definition at line 815 of file firewire.cpp.


Member Function Documentation

double pangolin::FirewireVideo::bus_period_from_iso_speed ( dc1394speed_t  iso_speed) [static, protected]

Definition at line 845 of file firewire.cpp.

return absolute gain value

Definition at line 682 of file firewire.cpp.

return absolute gamma value

Definition at line 769 of file firewire.cpp.

Return object containing reference to newest image data within DMA buffer discarding old images. The FirewireFrame must be returned to signal that it can be reused with a corresponding PutFrame()

Definition at line 633 of file firewire.cpp.

Return object containing reference to image data within DMA buffer. The FirewireFrame must be returned to signal that it can be reused with a corresponding PutFrame()

Definition at line 623 of file firewire.cpp.

return absolute shutter value

Definition at line 704 of file firewire.cpp.

bool pangolin::FirewireVideo::GrabNewest ( unsigned char *  image,
bool  wait = true 
) [virtual]

Implement VideoSource::GrabNewest()

Implements pangolin::VideoInterface.

Definition at line 591 of file firewire.cpp.

bool pangolin::FirewireVideo::GrabNext ( unsigned char *  image,
bool  wait = true 
) [virtual]

Implement VideoSource::GrabNext()

Implements pangolin::VideoInterface.

Definition at line 575 of file firewire.cpp.

unsigned pangolin::FirewireVideo::Height ( ) const [inline, virtual]

Implement VideoSource::Height()

Implements pangolin::VideoInterface.

Definition at line 134 of file firewire.h.

void pangolin::FirewireVideo::init_camera ( uint64_t  guid,
int  dma_frames,
dc1394speed_t  iso_speed,
dc1394video_mode_t  video_mode,
dc1394framerate_t  framerate 
) [protected]

Definition at line 40 of file firewire.cpp.

void pangolin::FirewireVideo::init_format7_camera ( uint64_t  guid,
int  dma_frames,
dc1394speed_t  iso_speed,
dc1394video_mode_t  video_mode,
int  framerate,
uint32_t  width,
uint32_t  height,
uint32_t  left,
uint32_t  top,
bool  reset_at_boot 
) [protected]

Definition at line 105 of file firewire.cpp.

int pangolin::FirewireVideo::nearest_value ( int  value,
int  step,
int  min,
int  max 
) [static, protected]

Definition at line 827 of file firewire.cpp.

std::string pangolin::FirewireVideo::PixFormat ( ) const [virtual]

Implement VideoSource::PixFormat()

Implements pangolin::VideoInterface.

Definition at line 444 of file firewire.cpp.

Return FirewireFrame object. Data held by FirewireFrame is invalidated on return.

Definition at line 663 of file firewire.cpp.

set auto shutter value

Definition at line 693 of file firewire.cpp.

set auto shutter value

Definition at line 737 of file firewire.cpp.

void pangolin::FirewireVideo::SetExternalTrigger ( dc1394trigger_mode_t  mode = DC1394_TRIGGER_MODE_0,
dc1394trigger_polarity_t  polarity = DC1394_TRIGGER_ACTIVE_HIGH,
dc1394trigger_source_t  source = DC1394_TRIGGER_SOURCE_0 
)

set the trigger to external

Definition at line 787 of file firewire.cpp.

void pangolin::FirewireVideo::SetGain ( float  val)

set absolute shutter value

Definition at line 715 of file firewire.cpp.

set the trigger to internal, i.e. determined by video mode

Definition at line 778 of file firewire.cpp.

set absolute shutter value

Definition at line 747 of file firewire.cpp.

return quantised shutter value

Definition at line 672 of file firewire.cpp.

size_t pangolin::FirewireVideo::SizeBytes ( ) const [virtual]

Implement VideoSource::SizeBytes()

Implements pangolin::VideoInterface.

Definition at line 453 of file firewire.cpp.

void pangolin::FirewireVideo::Start ( ) [virtual]

Implement VideoSource::Start()

Implements pangolin::VideoInterface.

Definition at line 458 of file firewire.cpp.

void pangolin::FirewireVideo::Stop ( ) [virtual]

Implement VideoSource::Stop()

Implements pangolin::VideoInterface.

Definition at line 469 of file firewire.cpp.

unsigned pangolin::FirewireVideo::Width ( ) const [inline, virtual]

Implement VideoSource::Width()

Implements pangolin::VideoInterface.

Definition at line 128 of file firewire.h.


Member Data Documentation

dc1394camera_t* pangolin::FirewireVideo::camera [protected]

Definition at line 227 of file firewire.h.

dc1394_t* pangolin::FirewireVideo::d [protected]

Definition at line 230 of file firewire.h.

dc1394error_t pangolin::FirewireVideo::err [mutable, protected]

Definition at line 232 of file firewire.h.

const int pangolin::FirewireVideo::EXT_TRIG = -1 [static]

Definition at line 87 of file firewire.h.

unsigned pangolin::FirewireVideo::height [protected]

Definition at line 228 of file firewire.h.

unsigned pangolin::FirewireVideo::left [protected]

Definition at line 228 of file firewire.h.

dc1394camera_list_t* pangolin::FirewireVideo::list [protected]

Definition at line 231 of file firewire.h.

const int pangolin::FirewireVideo::MAX_FR = -1 [static]

Definition at line 86 of file firewire.h.

Definition at line 226 of file firewire.h.

unsigned pangolin::FirewireVideo::top [protected]

Definition at line 228 of file firewire.h.

unsigned pangolin::FirewireVideo::width [protected]

Definition at line 228 of file firewire.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


pangolin_wrapper
Author(s): Todor Stoyanov
autogenerated on Wed Feb 13 2013 14:03:25