Ignore:
Timestamp:
02/19/20 14:19:28 (2 years ago)
Author:
Sanahuja Guillaume
Message:

V4l modifs

File:
1 edited

Legend:

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

    r349 r350  
    1616#include <Thread.h>
    1717#include "Camera.h"
    18 //todo use pimpl and remove this
     18
    1919#include <linux/videodev2.h>
    20 #include <libv4l1-videodev.h>
    21 
    2220#define DEFAULT_V4L_BUFFERS 4
    2321
     
    152150  void* buffers[DEFAULT_V4L_BUFFERS];
    153151  int nbBuffers;
    154   int bufferIndex;
    155152  char *imageData;
     153  bool useMemoryUsrPtr;
    156154 
    157   int init(int width, int height,unsigned long colorspace);
    158   static int 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);
    159157  void SetProperty(int property,float value);
    160158  float GetProperty(int property);
    161   int GrabFrame(void);
    162   int AllocBuffers(void);
    163   int allocBuffers (void);
     159  //int GrabFrame(void);
     160  int AllocV4LBuffers(void);
     161  int AllocUserBuffers(void);
    164162  int QueueBuffer(int index);
     163  int QueueBuffer(struct v4l2_buffer *buf);
     164  struct v4l2_buffer dQueuedBuffer;
    165165 
    166166
    167167int cvGrabFrame(void);
    168 int read_frame_v4l2(void);
    169 void cvRetrieveRawFrame(void);
     168
    170169
    171170
Note: See TracChangeset for help on using the changeset viewer.