rec::robotino::api2 C interface
Camera.h
Go to the documentation of this file.
1 // Copyright (C) 2004-2008, Robotics Equipment Corporation GmbH
2 
3 #ifndef _REC_ROBOTINO_API2_C_CAMERA_H_
4 #define _REC_ROBOTINO_API2_C_CAMERA_H_
5 
6 #include "rec/robotino/api2/c/globals.h"
8 
17 typedef int CameraId;
18 
20 #define INVALID_CAMERAID -1
21 
26 DLLEXPORT CameraId Camera_construct();
27 
33 DLLEXPORT BOOL Camera_destroy( CameraId id );
34 
39 DLLEXPORT BOOL Camera_setComId( CameraId id, ComId comId );
40 
48 DLLEXPORT BOOL Camera_setCameraNumber(CameraId id, unsigned int n);
49 
53 DLLEXPORT unsigned int numCameras();
54 
60 DLLEXPORT BOOL Camera_grab( CameraId id );
61 
69 DLLEXPORT BOOL Camera_imageSize( CameraId id, unsigned int* width, unsigned int* height );
70 
83 DLLEXPORT BOOL Camera_getImage(
84  CameraId id,
85  unsigned char* imageBuffer,
86  unsigned int imageBufferSize,
87  unsigned int* width,
88  unsigned int* height );
89 
90 
98 DLLEXPORT BOOL Camera_setFormat(CameraId id, unsigned int width, unsigned int height);
99 
106 DLLEXPORT BOOL Camera_setStreaming( CameraId id, BOOL streaming );
107 
108 #endif //_REC_ROBOTINO_API2_C_CAMERA_H_
DLLEXPORT BOOL Camera_setCameraNumber(CameraId id, unsigned int n)
DLLEXPORT BOOL Camera_destroy(CameraId id)
DLLEXPORT BOOL Camera_setComId(CameraId id, ComId comId)
DLLEXPORT BOOL Camera_grab(CameraId id)
DLLEXPORT unsigned int numCameras()
DLLEXPORT BOOL Camera_imageSize(CameraId id, unsigned int *width, unsigned int *height)
int CameraId
Definition: Camera.h:17
In "rec/robotino/api2/c/Com.h" you can find functions for manipulating the communication interface to...
DLLEXPORT CameraId Camera_construct()
int ComId
Definition: Com.h:50
DLLEXPORT BOOL Camera_setFormat(CameraId id, unsigned int width, unsigned int height)
DLLEXPORT BOOL Camera_setStreaming(CameraId id, BOOL streaming)
DLLEXPORT BOOL Camera_getImage(CameraId id, unsigned char *imageBuffer, unsigned int imageBufferSize, unsigned int *width, unsigned int *height)