2011-06-17 02:00:41 +08:00
|
|
|
typedef bool (*CameraCallback)(void* buffer, size_t bufferSize, void* userData);
|
|
|
|
|
|
|
|
typedef void* (*InitCameraConnectC)(void* cameraCallback, int cameraId, void* userData);
|
|
|
|
typedef void (*CloseCameraConnectC)(void**);
|
|
|
|
typedef double (*GetCameraPropertyC)(void* camera, int propIdx);
|
|
|
|
typedef void (*SetCameraPropertyC)(void* camera, int propIdx, double value);
|
|
|
|
typedef void (*ApplyCameraPropertiesC)(void** camera);
|
|
|
|
|
2012-10-17 07:18:30 +08:00
|
|
|
extern "C"
|
2011-06-17 02:00:41 +08:00
|
|
|
{
|
|
|
|
void* initCameraConnectC(void* cameraCallback, int cameraId, void* userData);
|
|
|
|
void closeCameraConnectC(void**);
|
|
|
|
double getCameraPropertyC(void* camera, int propIdx);
|
|
|
|
void setCameraPropertyC(void* camera, int propIdx, double value);
|
|
|
|
void applyCameraPropertiesC(void** camera);
|
|
|
|
}
|
|
|
|
|