Changeset 347 in flair-src for trunk/lib/FlairSensorActuator/src/V4LCamera.h
- Timestamp:
- Feb 11, 2020, 5:58:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/V4LCamera.h
r346 r347 168 168 //int deviceHandle; 169 169 int bufferIndex; 170 int FirstCapture;171 170 struct video_capability capability; 172 171 struct video_window captureWindow; … … 192 191 struct v4l2_queryctrl queryctrl; 193 192 struct v4l2_querymenu querymenu; 194 195 /* V4L2 control variables */196 int v4l2_brightness, v4l2_brightness_min, v4l2_brightness_max;197 int v4l2_contrast, v4l2_contrast_min, v4l2_contrast_max;198 int v4l2_saturation, v4l2_saturation_min, v4l2_saturation_max;199 int v4l2_sharpness, v4l2_sharpness_min, v4l2_sharpness_max;200 int v4l2_exposure, v4l2_exposure_min, v4l2_exposure_max;201 int v4l2_hue, v4l2_hue_min, v4l2_hue_max;202 int v4l2_gain, v4l2_gain_min, v4l2_gain_max;203 int v4l2_autogain, v4l2_autogain_min, v4l2_autogain_max;204 int v4l2_awb, v4l2_awb_min, v4l2_awb_max;205 206 207 208 193 } CvCaptureCAM_V4L; 209 194 210 195 CvCaptureCAM_V4L capture; 211 int init(int width, int height); 212 int autosetup_capture_mode_v4l2(CvCaptureCAM_V4L* capture); 213 int icvSetVideoSize( CvCaptureCAM_V4L* capture, int w, int h); 214 int try_palette_v4l2(CvCaptureCAM_V4L* capture, unsigned long colorspace); 215 int PALETTE_YUYV,PALETTE_UYVY; 216 int setV4LProperty(int property_id, double value ); 217 int icvSetControl (CvCaptureCAM_V4L* capture,int property_id, double value) ; 218 int cvGrabFrame(CvCaptureCAM_V4L* capture); 219 int v4l2_alloc_buffers (CvCaptureCAM_V4L *capture, char *deviceName); 220 void mainloop_v4l2(CvCaptureCAM_V4L* capture); 196 int init(int width, int height,unsigned long colorspace); 197 int setVideoSize(int width, int height,unsigned long colorspace); 198 int cvGrabFrame(void); 199 int allocBuffers (void); 221 200 int read_frame_v4l2(CvCaptureCAM_V4L* capture); 222 201 void cvRetrieveRawFrame( CvCaptureCAM_V4L* capture);
Note:
See TracChangeset
for help on using the changeset viewer.