#include <l1394_dcccamera.h>
Inheritance diagram for L1394::DccCamera:
Public Member Functions | |
void | setFramerate (const Framerate framerate) |
DccCamera constructor | |
These functions creates the DccCamera objects. | |
DccCamera (const u_int32_t node_id, const Card *parent) | |
Constructor. | |
virtual | ~DccCamera () |
destructor | |
Camera information | |
These functions return some camera specific information. | |
Quadlet | getFeatureHiInquiry () |
This method reads the first feature Quadlet from a DccCamera. | |
Quadlet | getFeatureLoInquiry () |
This method reads the second feature quadlet from a DccCamera. | |
virtual bool | hasVideoFormat (const Videomode videomode) |
This method tests, if a videomode is supported by a Camera. | |
virtual bool | hasFramerate (const Videomode mode, const Framerate framerate) |
This method tests, if a framerate, with a videomode is supported. | |
virtual int | setParameter (const int buffercount=2, const int channel=FREE_ISO_CHANNEL, const Isomode isomode=DEVICE_ISO_RUN, const Videomode videomode=DEVICE_320x240_YUV_422, const Framerate framerate=DEVICE_FRAMES_30) |
This method initialize the camera and create the iso object. | |
Basic functions | |
These functions implement the basic functions, defined in abstract class Device. | |
virtual int | start () |
This method starts the camera. | |
virtual int | stop () |
This method stops a sending camera. | |
virtual void | shot () |
This method sends a command to the DccCamera to send one frame. | |
virtual void | multiShot (unsigned int) |
This method enables multiShot. | |
virtual Frame * | getFrame () |
This method returns a pointer to the actual frame of a DccCamera. | |
virtual Iso * | getIsoObject () const |
This method returns the current Iso object. | |
virtual int | init () |
This method inits the camera to the parameter set by the function setParameter() . | |
DccCamera control interface | |
These functions describe the interface of a camera | |
virtual const CameraRegister * | brightness () |
Access 'Brightness' feature register. | |
virtual const CameraRegister * | autoExposure () |
Access 'Auto-Exposure' feature CDC_register. | |
virtual const CameraRegister * | sharpness () |
Access 'Sharpness' feature dcc_register. | |
virtual const CameraRegister * | whiteBalance () |
Access 'White-Balance' feature dcc_register. | |
virtual const CameraRegister * | whiteBalance (int value) |
Access 'White-Balance' feature dcc_register. | |
virtual const CameraRegister * | hue () |
Access 'Hue' feature dcc_register. | |
virtual const CameraRegister * | saturation () |
Access 'Saturation' feature dcc_register. | |
virtual const CameraRegister * | gamma () |
Access 'Gamma' feature dcc_register. | |
virtual const CameraRegister * | shutter () |
Access 'Shutter' feature dcc_register. | |
virtual const CameraRegister * | gain () |
Access 'Gain' feature dcc_register. | |
virtual const CameraRegister * | iris () |
Access 'Iris' feature dcc_register. | |
virtual const CameraRegister * | focus () |
Access 'Focus' feature dcc_register. | |
virtual const CameraRegister * | temperature () |
Access 'Temperature' feature dcc_register. | |
virtual const CameraRegister * | trigger () |
Access 'Trigger' feature dcc_register. | |
virtual const CameraRegister * | zoom () |
Access 'Zoom' feature dcc_register. | |
virtual const CameraRegister * | pan () |
Access 'Pan' feature dcc_register. | |
virtual const CameraRegister * | tilt () |
Access 'Tilt' feature dcc_register. | |
virtual const CameraRegister * | filter () |
Access 'Filter' feature dcc_register. | |
Protected Member Functions | |
void | setFramerate () |
void | setVideoMode () |
The mechanism to create commands is the same, as described in class Camera .
The Session class provides also functions to get explicit DccCameras. So the little example in the Camera class documentation can be changed, if you need a DccCamera.
Session* session = GetSession(); DccCamera* camera = session->findDccCamera(); //get explicit a DccCamera if (camera == NULL) { cout << "No DccCamera found" << endl; exit(0); } if (camera->zoom()->hasFeature()) //if the camera support zoom camera->zoom()->setValue(camera->zoom()->getMinValue()); //set zoom value to the minimum value. else cout << " Feature not supported " << endl;
Definition at line 56 of file l1394_dcccamera.h.
|
Constructor.
Definition at line 26 of file l1394_dcccamera.cpp. References L1394::_DccNode, L1394::DEVICE_320x240_YUV_422, L1394::DEVICE_FRAMES_15, L1394::Device::setFrameHeight(), L1394::Device::setFrameSize(), L1394::Device::setFrameWidth(), and L1394::Device::setName(). |
|
destructor
Definition at line 54 of file l1394_dcccamera.cpp. References L1394::NODE_DESTROY. |
|
Access 'Auto-Exposure' feature CDC_register.
Implements L1394::Camera. Definition at line 195 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'Brightness' feature register.
Implements L1394::Camera. Definition at line 192 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'Filter' feature dcc_register.
Implements L1394::Camera. Definition at line 243 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'Focus' feature dcc_register.
Implements L1394::Camera. Definition at line 225 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'Gain' feature dcc_register.
Implements L1394::Camera. Definition at line 219 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'Gamma' feature dcc_register.
Implements L1394::Camera. Definition at line 213 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
This method reads the first feature Quadlet from a DccCamera.
Definition at line 86 of file l1394_dcccamera.h. References DCC_BASE. |
|
This method reads the second feature quadlet from a DccCamera.
Definition at line 93 of file l1394_dcccamera.h. References DCC_BASE. |
|
This method returns a pointer to the actual frame of a DccCamera. The method blocks, until it receive a frame from video module.
Reimplemented from L1394::Device. Definition at line 63 of file l1394_dcccamera.cpp. References L1394::DEVICE_ISO_ONESHOT, L1394::DEVICE_ISO_RUN, L1394::internal::DccIso::getFrame(), L1394::Device::isSending(), and shot(). Referenced by main(). |
|
This method returns the current Iso object.
Definition at line 172 of file l1394_dcccamera.h. |
|
This method tests, if a framerate, with a videomode is supported.
Implements L1394::Device. Definition at line 483 of file l1394_dcccamera.cpp. References DCC_BASE, L1394::Quadlet::getBit(), hasVideoFormat(), and L1394_SUCCESS. Referenced by init(). |
|
This method tests, if a videomode is supported by a Camera.
Implements L1394::Device. Definition at line 454 of file l1394_dcccamera.cpp. References DCC_BASE, L1394::DEVICE_1024x768_MONO, L1394::DEVICE_1024x768_RGB, L1394::DEVICE_1024x768_YUV_422, L1394::DEVICE_1280x960_MONO, L1394::DEVICE_1280x960_RGB, L1394::DEVICE_1280x960_YUV_422, L1394::DEVICE_1600x1200_MONO, L1394::DEVICE_1600x1200_RGB, L1394::DEVICE_1600x1200_YUV_422, L1394::DEVICE_160x120_YUV_444, L1394::DEVICE_320x240_YUV_422, L1394::DEVICE_640x480_MONO, L1394::DEVICE_640x480_RGB, L1394::DEVICE_640x480_YUV_411, L1394::DEVICE_640x480_YUV_422, L1394::DEVICE_800x600_MONO, L1394::DEVICE_800x600_RGB, L1394::DEVICE_800x600_YUV_422, and L1394::Quadlet::getBit(). Referenced by hasFramerate(), and init(). |
|
Access 'Hue' feature dcc_register.
Implements L1394::Camera. Definition at line 207 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
This method inits the camera to the parameter set by the function setParameter() . You must call this method before the camera sends a frame.
Reimplemented from L1394::Device. Definition at line 184 of file l1394_dcccamera.cpp. References DCC_BASE, L1394::DEVICE_ISO_NO, L1394::Quadlet::fromInt(), L1394::Device::getFrameSize(), L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), hasFramerate(), hasVideoFormat(), L1394_FAILED, L1394_SUCCESS, L1394::Quadlet::setBit(), L1394::Quadlet::setBitRange(), setFramerate(), L1394::internal::DccIso::setParameter(), setVideoMode(), L1394::internal::DccIso::startIsoListen(), and whiteBalance(). Referenced by main(). |
|
Access 'Iris' feature dcc_register.
Implements L1394::Camera. Definition at line 222 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
This method enables multiShot.
Definition at line 132 of file l1394_dcccamera.cpp. References DCC_BASE, L1394::Quadlet::setBit(), and L1394::Quadlet::setBitRange(). |
|
Access 'Pan' feature dcc_register.
Implements L1394::Camera. Definition at line 237 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'Saturation' feature dcc_register.
Implements L1394::Camera. Definition at line 210 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Definition at line 424 of file l1394_dcccamera.cpp. References DCC_BASE, L1394::DEVICE_FRAMES_15, L1394::DEVICE_FRAMES_30, L1394::DEVICE_FRAMES_3_75, L1394::DEVICE_FRAMES_7_5, and L1394::Quadlet::setBitRange(). Referenced by init(), and setFramerate(). |
|
Definition at line 418 of file l1394_dcccamera.cpp. References setFramerate(). |
|
This method initialize the camera and create the iso object.
Implements L1394::Device. Definition at line 147 of file l1394_dcccamera.cpp. References DCC_BASE, L1394::DEVICE_ISO_MULTISHOT, L1394::DEVICE_ISO_ONESHOT, L1394::DEVICE_ISO_RUN, FREE_ISO_CHANNEL, L1394::Quadlet::getBit(), and L1394_SUCCESS. Referenced by main(). |
|
|
Access 'Sharpness' feature dcc_register.
Implements L1394::Camera. Definition at line 198 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
This method sends a command to the DccCamera to send one frame. The command getFrame() use this function. Definition at line 119 of file l1394_dcccamera.cpp. References DCC_BASE, L1394::internal::Transaction::delay(), L1394::Quadlet::getBit(), and L1394::Quadlet::setBit(). Referenced by getFrame(). |
|
Access 'Shutter' feature dcc_register.
Implements L1394::Camera. Definition at line 216 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
This method starts the camera.
Implements L1394::Device. Definition at line 93 of file l1394_dcccamera.cpp. References DCC_BASE, L1394_FAILED, L1394_SUCCESS, L1394::Quadlet::setBit(), and L1394::Device::setSending(). Referenced by main(). |
|
This method stops a sending camera.
Implements L1394::Device. Definition at line 108 of file l1394_dcccamera.cpp. References DCC_BASE, L1394::internal::DccIso::flushQueue(), L1394_SUCCESS, L1394::Quadlet::setBit(), and L1394::Device::setSending(). |
|
Access 'Temperature' feature dcc_register.
Implements L1394::Camera. Definition at line 228 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'Tilt' feature dcc_register.
Implements L1394::Camera. Definition at line 240 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'Trigger' feature dcc_register.
Implements L1394::Camera. Definition at line 231 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'White-Balance' feature dcc_register.
Implements L1394::Camera. Definition at line 204 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |
|
Access 'White-Balance' feature dcc_register.
Implements L1394::Camera. Definition at line 201 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). Referenced by init(). |
|
Access 'Zoom' feature dcc_register.
Implements L1394::Camera. Definition at line 234 of file l1394_dcccamera.h. References L1394::DccRegister::setOffset(). |