mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
959 B
25 lines
959 B
14 years ago
|
enum CameraWrapperErrorCode {
|
||
|
ERROR_NATIVE_CAMERA_WRAPPER_NOERROR = 0,
|
||
|
ERROR_NATIVE_CAMERA_WRAPPER_CANNOT_FIND_CLASS = 1,
|
||
|
ERROR_NATIVE_CAMERA_WRAPPER_CANNOT_FIND_FIELD = 2,
|
||
|
ERROR_NATIVE_CAMERA_WRAPPER_CANNOT_SET_PREVIEW_DISPLAY = 3
|
||
|
};
|
||
|
|
||
|
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);
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
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);
|
||
|
}
|
||
|
|