CVD::DC::RawDCVideo Class Reference
#include <dvbuffer.h>
List of all members.
Detailed Description
Internal (non type-safe) class used by DVBuffer2 to do the actual interfacing with the Firewire (IEE 1394) video hardware. A wrapper for the libdc1394 library, it assumes that the firewire device is on /dev/video1394/0
. Use DVBuffer2 if you want 8-bit greyscale or 24-bit colour.
Definition at line 129 of file dvbuffer.h.
Constructor & Destructor Documentation
CVD::DC::RawDCVideo::RawDCVideo |
( |
int |
camera_no, |
|
|
int |
num_dma_buffers, |
|
|
int |
bright, |
|
|
int |
exposure, |
|
|
int |
mode, |
|
|
double |
frame_rate | |
|
) |
| | |
Construct a video buffer
- Parameters:
-
| camera_no | The camera number (the first camera is 0) |
| num_dma_buffers | The number of DMA buffers to use (at least 3 is recommended) |
| bright | The brightness correction |
| exposure | The exposure correction |
| mode | The required mode |
| frame_rate | The number of frames per second |
CVD::DC::RawDCVideo::~RawDCVideo |
( |
|
) |
|
Member Function Documentation
void CVD::DC::RawDCVideo::auto_on_off |
( |
unsigned int |
feature, |
|
|
unsigned int |
auto_value | |
|
) |
| | |
Toggle auto on or off
- Parameters:
-
| feature | The feature to be toggled |
| auto_value | - 0 for auto off, nonzero for auto on |
bool CVD::DC::RawDCVideo::frame_pending |
( |
|
) |
|
Is there a frame waiting in the buffer? This function does not block.
Reimplemented in CVD::DVBuffer2< T >.
double CVD::DC::RawDCVideo::frame_rate |
( |
|
) |
|
unsigned int CVD::DC::RawDCVideo::get_brightness |
( |
|
) |
|
Get the camera brightness.
unsigned int CVD::DC::RawDCVideo::get_exposure |
( |
|
) |
|
std::pair<unsigned int, unsigned int> CVD::DC::RawDCVideo::get_feature_min_max |
( |
unsigned int |
feature |
) |
|
Get the min and max value of any camera feature
- Parameters:
-
| feature | The feature to be queried - c.f. dc1394_control.h |
unsigned int CVD::DC::RawDCVideo::get_feature_value |
( |
unsigned int |
feature |
) |
|
Get any DC1394 camera feature value
- Parameters:
-
| feature | The feature to be queried - c.f. dc1394_control.h |
Returns the next frame from the buffer. This function blocks until a frame is ready.
Reimplemented in CVD::DVBuffer2< T >.
unsigned int CVD::DC::RawDCVideo::get_gain |
( |
|
) |
|
unsigned int CVD::DC::RawDCVideo::get_iris |
( |
|
) |
|
unsigned int CVD::DC::RawDCVideo::get_sharpness |
( |
|
) |
|
Get the camera sharpness.
unsigned int CVD::DC::RawDCVideo::get_shutter |
( |
|
) |
|
Get the camera shutter speed.
raw1394handle_t& CVD::DC::RawDCVideo::handle |
( |
|
) |
|
What is the handle for this device?
nodeid_t& CVD::DC::RawDCVideo::node |
( |
|
) |
|
Which node is this device on?
Tell the buffer that you are finished with this frame
- Parameters:
-
| f | The frame that you are finished with. |
void CVD::DC::RawDCVideo::set_brightness |
( |
unsigned int |
b |
) |
|
Set the camera brightness
- Parameters:
-
| b | The requested brightness |
void CVD::DC::RawDCVideo::set_exposure |
( |
unsigned int |
e |
) |
|
Set the camera exposure
- Parameters:
-
void CVD::DC::RawDCVideo::set_feature_value |
( |
unsigned int |
feature, |
|
|
unsigned int |
value | |
|
) |
| | |
Set any DC1394 camera feature value
- Parameters:
-
| feature | The feature to be set - c.f. dc1394_control.h |
| value | Requested feature value |
void CVD::DC::RawDCVideo::set_gain |
( |
unsigned int |
g |
) |
|
Set the camera gain
- Parameters:
-
void CVD::DC::RawDCVideo::set_iris |
( |
unsigned int |
i |
) |
|
Set the camera iris
- Parameters:
-
void CVD::DC::RawDCVideo::set_sharpness |
( |
unsigned int |
s |
) |
|
Set the camera sharpness
- Parameters:
-
| s | The requested sharpness |
void CVD::DC::RawDCVideo::set_shutter |
( |
unsigned int |
s |
) |
|
Set the camera shutter speed
- Parameters:
-
Member Data Documentation
The documentation for this class was generated from the following file:
libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:54 2013