30 #ifndef _REC_ROBOTINO_API2_CAMERA_H_ 31 #define _REC_ROBOTINO_API2_CAMERA_H_ 33 #include "rec/robotino/api2/defines.h" 34 #include "rec/robotino/api2/ComObject.h" 35 #include "rec/robotino/api2/CameraCapabilities.h" 49 #ifdef REC_ROBOTINO_API2_CLASS_ATTRIBUTE 50 REC_ROBOTINO_API2_CLASS_ATTRIBUTE
54 friend class CameraImpl;
75 void setComId(
const ComId&
id );
80 static unsigned int numCameras();
92 void setCameraNumber(
int number );
101 int cameraNumber()
const;
115 void setJPGDecodingEnabled(
bool enable);
123 bool isJPGDecodingEnabled()
const;
131 void processEvents();
149 void setJPGImage(
const unsigned char* data,
unsigned int dataSize );
160 void setFormat(
unsigned int width,
unsigned int height,
const char* format );
168 void setBrightness(
int value );
176 void setContrast(
int value );
184 void setSaturation(
int value );
192 void setAutoWhiteBalanceEnabled(
bool enable );
200 void setGain(
int value );
208 void setWhiteBalanceTemperature(
int value );
216 void setBacklightCompensation(
int value );
224 void setAutoExposureEnabled(
bool enable );
232 void setExposure(
int value );
240 void setAutoFocusEnabled(
bool enable );
248 void setFocus(
int value );
256 void setSharpness(
int value );
269 int calibration(
double** buffer,
unsigned int bufferSize );
277 bool isNewImageAvailable(
unsigned int* dataSize )
const;
291 bool getImage(
unsigned char** data,
292 unsigned int dataSize,
294 unsigned int* height,
295 unsigned int* step );
303 void setBGREnabled(
bool enable );
309 bool isBGRenabled()
const;
314 bool isLocalConnection()
const;
328 virtual void imageReceivedEvent(
const unsigned char* data,
329 unsigned int dataSize,
348 virtual void settingsChangedEvent(
unsigned int width,
unsigned int height,
const char* format );
356 virtual void calibrationChanged(
const double* data,
unsigned int dataSize );
Represents a camera.
Definition: Camera.h:48
Capabilities of Robotino's camera.
Definition: CameraCapabilities.h:44
The base class for all Robotino objects.
Definition: ComObject.h:44
Definition: AnalogInput.h:36
The id of a Com object.
Definition: ComId.h:48