Ignore:
Timestamp:
Nov 28, 2019, 5:08:04 PM (2 years ago)
Author:
Sanahuja Guillaume
Message:

add servos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/V4LCamera.h

    r338 r340  
    163163  char* frame;
    164164  int nbBuffers;
     165 
     166    typedef struct CvCaptureCAM_V4L
     167{
     168    int deviceHandle;
     169    int bufferIndex;
     170    int FirstCapture;
     171    struct video_capability capability;
     172    struct video_window     captureWindow;
     173    struct video_picture    imageProperties;
     174    struct video_mbuf       memoryBuffer;
     175    struct video_mmap       *mmaps;
     176    char *memoryMap;
     177    //IplImage frame;
     178char *imageData;
     179int imageSize;
     180
     181   /* V4L2 variables */
     182   buffer buffers[MAX_V4L_BUFFERS + 1];
     183   struct v4l2_capability cap;
     184   struct v4l2_input inp;
     185   struct v4l2_format form;
     186   struct v4l2_crop crop;
     187   struct v4l2_cropcap cropcap;
     188   struct v4l2_requestbuffers req;
     189   struct v4l2_jpegcompression compr;
     190   struct v4l2_control control;
     191   enum v4l2_buf_type type;
     192   struct v4l2_queryctrl queryctrl;
     193   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} CvCaptureCAM_V4L;
     209
     210CvCaptureCAM_V4L capture;
     211int _capture_V4L2 (CvCaptureCAM_V4L *capture);
     212int try_init_v4l2(CvCaptureCAM_V4L* capture);
     213int autosetup_capture_mode_v4l2(CvCaptureCAM_V4L* capture);
     214int icvSetVideoSize( CvCaptureCAM_V4L* capture, int w, int h);
     215int try_palette_v4l2(CvCaptureCAM_V4L* capture, unsigned long colorspace);
     216int  PALETTE_YUYV,PALETTE_UYVY;
     217int icvSetPropertyCAM_V4L( CvCaptureCAM_V4L* capture,int property_id, double value );
     218int icvSetControl (CvCaptureCAM_V4L* capture,int property_id, double value) ;
     219int cvGrabFrame(CvCaptureCAM_V4L* capture);
     220int v4l2_alloc_buffers (CvCaptureCAM_V4L *capture, char *deviceName);
     221void mainloop_v4l2(CvCaptureCAM_V4L* capture);
     222int read_frame_v4l2(CvCaptureCAM_V4L* capture);
     223void cvRetrieveRawFrame( CvCaptureCAM_V4L* capture);
     224unsigned int n_buffers ;
    165225};
    166226} // end namespace sensor
Note: See TracChangeset for help on using the changeset viewer.