struct SimpleCapParams
{
int * mTargetBuf;
int mWidth;
int mHeight;
};
enum CAPTURE_PROPETIES
{
CAPTURE_BRIGHTNESS,
CAPTURE_CONTRAST,
CAPTURE_HUE,
CAPTURE_SATURATION,
CAPTURE_SHARPNESS,
CAPTURE_GAMMA,
CAPTURE_COLORENABLE,
CAPTURE_WHITEBALANCE,
CAPTURE_BACKLIGHTCOMPENSATION,
CAPTURE_GAIN,
CAPTURE_PAN,
CAPTURE_TILT,
CAPTURE_ROLL,
CAPTURE_ZOOM,
CAPTURE_EXPOSURE,
CAPTURE_IRIS,
CAPTURE_FOCUS,
CAPTURE_PROP_MAX
};
extern int setupESCAPI();
typedef int (*countCaptureDevicesProc)();
typedef int (*initCaptureProc)(unsigned int deviceno, struct SimpleCapParams *aParams);
typedef void (*deinitCaptureProc)(unsigned int deviceno);
typedef void (*doCaptureProc)(unsigned int deviceno);
typedef int (*isCaptureDoneProc)(unsigned int deviceno);
typedef void (*getCaptureDeviceNameProc)(unsigned int deviceno, char *namebuffer, int bufferlength);
typedef int (*ESCAPIVersionProc)();
typedef float (*getCapturePropertyValueProc)(unsigned int deviceno, int prop);
typedef int(*getCapturePropertyAutoProc)(unsigned int deviceno, int prop);
typedef int (*setCapturePropertyProc)(unsigned int deviceno, int prop, float value, int autoval);
typedef int (*getCaptureErrorLineProc)(unsigned int deviceno);
typedef int (*getCaptureErrorCodeProc)(unsigned int deviceno);
typedef int (*initCaptureWithOptionsProc)(unsigned int deviceno, struct SimpleCapParams *aParams, unsigned int aOptions);
#define CAPTURE_OPTION_RAWDATA 1
#define CAPTURE_OPTIONS_MASK (CAPTURE_OPTION_RAWDATA)
#ifndef ESCAPI_DEFINITIONS_ONLY
extern countCaptureDevicesProc countCaptureDevices;
extern initCaptureProc initCapture;
extern deinitCaptureProc deinitCapture;
extern doCaptureProc doCapture;
extern isCaptureDoneProc isCaptureDone;
extern getCaptureDeviceNameProc getCaptureDeviceName;
extern ESCAPIVersionProc ESCAPIVersion;
extern getCapturePropertyValueProc getCapturePropertyValue;
extern getCapturePropertyAutoProc getCapturePropertyAuto;
extern setCapturePropertyProc setCaptureProperty;
extern getCaptureErrorLineProc getCaptureErrorLine;
extern getCaptureErrorCodeProc getCaptureErrorCode;
extern initCaptureWithOptionsProc initCaptureWithOptions;
#endif