Ignore:
Timestamp:
Sep 25, 2019, 3:29:26 PM (2 years ago)
Author:
Sanahuja Guillaume
Message:

use less bandwidth in vprnlite

File:
1 edited

Legend:

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

    r165 r330  
    1616#include <Thread.h>
    1717#include "Camera.h"
    18 #include <highgui.h>
     18//todo use pimpl and remove this
     19#include <linux/videodev2.h>
     20#include <libv4l1-videodev.h>
     21#define MAX_V4L_BUFFERS 10
    1922
    2023namespace flair {
     
    138141  */
    139142  void Run(void);
    140 
    141   CvCapture *capture;
    142 
     143 
     144  int device;
    143145  gui::Tab *sensor_tab;
    144146  gui::DoubleSpinBox *bright, *exposure, *gain, *contrast, *hue, *sharpness,*sat;
     
    146148  gui::Label *fps;
    147149  bool hasProblems;
     150  static int xioctl( int fd, int request, void *arg);
     151  void SetProperty(int property,float value);
     152  float GetProperty(int property);
     153  void GrabFrame(void);
     154  int read_frame_v4l2(void);
     155  char *RetrieveRawFrame(void);
     156  int AllocBuffers(void);
     157  struct video_mmap *mmaps;
     158  int bufferIndex;
     159  struct v4l2_requestbuffers requestbuffers;
     160  struct buffer {
     161    void *  start;
     162    size_t  length;
     163  };
     164  buffer buffers[MAX_V4L_BUFFERS + 1];
     165  char* frame;
    148166};
    149167} // end namespace sensor
Note: See TracChangeset for help on using the changeset viewer.