13 #include <CamCmosOctUsb3.h>
28 ScanHeight = 0x4F00000C,
30 ExposureTime = 0x12108,
31 TriggerMode = 0x1210C,
32 TriggerFrameLineNumber = 0x12128
46 float GetLinePeriod ()
const override;
49 float GetExposureTime ()
const override;
52 int GetTriggerMode ()
const override;
55 int GetTriggerFrameLineNum ()
const;
58 int GetCameraWidth ()
const override;
61 int GetNumCameras ()
const override;
64 const char* GetCameraID (
int index = 0)
override;
67 int GetNumBitsInPixel ()
const override;
70 int GetNumBytesInPixel ()
const override;
75 bool SetLinePeriod (
float value)
override;
78 bool SetExposureTime (
float value)
override;
81 bool SetTriggerMode (
int value)
override;
85 bool SetTriggerFrameLineNum (
int value);
88 bool SetScanHeight (
int value)
override;
91 bool InitializeLibrary ()
override;
92 bool ShutDownLibrary ()
override;
95 bool Open (
const char*
id)
override;
97 bool Open (
int id = 0)
override;
98 bool Close ()
override;
100 bool ReadParameter (
unsigned int address,
unsigned int* value)
const override;
101 bool WriteParameter (
unsigned int address,
unsigned int value)
override;
103 bool SetParameters ()
override;
104 bool SetParameters (
int height,
int numBuffers)
override;
106 bool StartAcquiring ()
override;
107 bool StopAcquiring (
bool flushBuffers)
override;
109 bool GetBuffer (
void** buffer)
override;
110 bool GetBuffer2 (
unsigned short** buffer)
override;
111 bool GetBufferCopy (
unsigned short* buffer)
override;
112 bool GetBufferAndIndex (
void** buffer,
int** index,
unsigned long* frameNumber)
override;
113 bool GetBufferAndIndex2 (
unsigned short** buffer,
int** index,
unsigned long* frameNumber)
override;
114 bool AbortGetBuffer ()
override;
115 bool RequeueBuffer ()
override;
116 bool RequeueBuffer (
int* bufferHandle)
override;
117 bool FlushBuffers ()
override;
120 bool ResetDevice ()
override;
123 std::mutex _mutexGetBuffer;
124 std::mutex _mutexCopyBuffer;
127 tImageInfos _imageInfo;
128 tCameraInfo _curCameraInfo;
129 static bool _cameraIDsCollected;
130 static std::vector<string> _cameraIDs;
134 void CollectCameraIDs ();
135 bool GetCameraInfoFromId (
const char*
id, tCameraInfo& cameraInfo)
const;
136 int GetCameraWidthInternal ();
Interface and implementation of the WPCamera class.
This class is the implementation of IWPOCTCamera.
Definition: USB3Camera.h:22
RegisterAddress
Camera register.
Definition: USB3Camera.h:26
Class that converts a scanned image from one format to another.
Definition: WPCamera.h:25