Changeset 352 in flair-src for trunk/lib/FlairSensorActuator/src/V4LCamera.h
- Timestamp:
- Feb 19, 2020, 5:07:13 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/V4LCamera.h
r351 r352 11 11 */ 12 12 13 #ifndef V4LC amera_H14 #define V4LC amera_H13 #ifndef V4LCAMERA_H 14 #define V4LCAMERA_H 15 15 16 16 #include <Thread.h> 17 17 #include "Camera.h" 18 19 #include <linux/videodev2.h>20 #define DEFAULT_V4L_BUFFERS 421 18 22 19 namespace flair { … … 24 21 class Image; 25 22 } 26 namespace gui {27 class DoubleSpinBox;28 class CheckBox;29 class Label;30 }31 23 } 24 25 class V4LCamera_impl; 32 26 33 27 namespace flair { … … 38 32 */ 39 33 class V4LCamera : public core::Thread, public Camera { 34 friend class ::V4LCamera_impl; 40 35 public: 41 36 /*! … … 141 136 void Run(void); 142 137 143 gui::Tab *sensor_tab; 144 gui::DoubleSpinBox *bright, *exposure, *gain, *contrast, *hue, *sharpness,*sat; 145 gui::CheckBox *autogain, *awb, *autoexposure; 146 gui::Label *fps; 147 148 int device; 149 bool hasProblems; 150 void* buffers[DEFAULT_V4L_BUFFERS]; 151 int nbBuffers; 152 char *imageData; 153 bool useMemoryUsrPtr; 154 155 int Init(int width, int height,unsigned long colorspace); 156 int xioctl( int fd, int request, void *arg); 157 void SetProperty(int property,float value); 158 float GetProperty(int property); 159 int GrabFrame(void); 160 int AllocV4LBuffers(void); 161 int AllocUserBuffers(void); 162 int QueueBuffer(int index); 163 int QueueBuffer(struct v4l2_buffer *buf); 164 struct v4l2_buffer dQueuedBuffer; 138 class V4LCamera_impl *pimpl_; 165 139 }; 166 140 } // end namespace sensor 167 141 } // end namespace flair 168 #endif // V4LC amera_H142 #endif // V4LCAMERA_H
Note:
See TracChangeset
for help on using the changeset viewer.