Ignore:
Timestamp:
Feb 19, 2020, 5:07:13 PM (5 years ago)
Author:
Sanahuja Guillaume
Message:

v4lcamera: use pimpl

File:
1 edited

Legend:

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

    r351 r352  
    1111 */
    1212
    13 #ifndef V4LCamera_H
    14 #define V4LCamera_H
     13#ifndef V4LCAMERA_H
     14#define V4LCAMERA_H
    1515
    1616#include <Thread.h>
    1717#include "Camera.h"
    18 
    19 #include <linux/videodev2.h>
    20 #define DEFAULT_V4L_BUFFERS 4
    2118
    2219namespace flair {
     
    2421    class Image;
    2522  }
    26   namespace gui {
    27     class DoubleSpinBox;
    28     class CheckBox;
    29     class Label;
    30   }
    3123}
     24
     25class V4LCamera_impl;
    3226
    3327namespace flair {
     
    3832*/
    3933class V4LCamera : public core::Thread, public Camera {
     34  friend class ::V4LCamera_impl;
    4035public:
    4136  /*!
     
    141136  void Run(void);
    142137 
    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_;
    165139};
    166140} // end namespace sensor
    167141} // end namespace flair
    168 #endif // V4LCamera_H
     142#endif // V4LCAMERA_H
Note: See TracChangeset for help on using the changeset viewer.