Changeset 350 in flair-src for trunk/lib/FlairSensorActuator/src/V4LCamera.h
- Timestamp:
- 02/19/20 14:19:28 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/V4LCamera.h
r349 r350 16 16 #include <Thread.h> 17 17 #include "Camera.h" 18 //todo use pimpl and remove this 18 19 19 #include <linux/videodev2.h> 20 #include <libv4l1-videodev.h>21 22 20 #define DEFAULT_V4L_BUFFERS 4 23 21 … … 152 150 void* buffers[DEFAULT_V4L_BUFFERS]; 153 151 int nbBuffers; 154 int bufferIndex;155 152 char *imageData; 153 bool useMemoryUsrPtr; 156 154 157 int init(int width, int height,unsigned long colorspace);158 staticint xioctl( int fd, int request, void *arg);155 int Init(int width, int height,unsigned long colorspace); 156 int xioctl( int fd, int request, void *arg); 159 157 void SetProperty(int property,float value); 160 158 float GetProperty(int property); 161 int GrabFrame(void);162 int Alloc Buffers(void);163 int allocBuffers(void);159 //int GrabFrame(void); 160 int AllocV4LBuffers(void); 161 int AllocUserBuffers(void); 164 162 int QueueBuffer(int index); 163 int QueueBuffer(struct v4l2_buffer *buf); 164 struct v4l2_buffer dQueuedBuffer; 165 165 166 166 167 167 int cvGrabFrame(void); 168 int read_frame_v4l2(void); 169 void cvRetrieveRawFrame(void); 168 170 169 171 170
Note:
See TracChangeset
for help on using the changeset viewer.