2014-08-17 15:29:08 +00:00
|
|
|
/* ---------------------------------------------------------------------------
|
|
|
|
** This software is in the public domain, furnished "as is", without technical
|
|
|
|
** support, and with no warranty, express or implied, as to its usefulness for
|
|
|
|
** any purpose.
|
|
|
|
**
|
|
|
|
** V4l2READDeviceSource.h
|
|
|
|
**
|
|
|
|
** V4L2 source using read API
|
|
|
|
**
|
|
|
|
** -------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef V4L2_READ_DEVICE_SOURCE
|
|
|
|
#define V4L2_READ_DEVICE_SOURCE
|
|
|
|
|
|
|
|
// project
|
2014-08-23 21:57:07 +00:00
|
|
|
#include "V4l2Device.h"
|
2014-08-17 15:29:08 +00:00
|
|
|
|
2014-08-23 21:57:07 +00:00
|
|
|
class V4L2READDeviceSource : public V4L2Device
|
2014-08-17 15:29:08 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-08-23 21:57:07 +00:00
|
|
|
static V4L2READDeviceSource* createNew(V4L2DeviceParameters params);
|
2014-08-17 15:29:08 +00:00
|
|
|
|
|
|
|
protected:
|
2014-08-23 21:57:07 +00:00
|
|
|
V4L2READDeviceSource(V4L2DeviceParameters params) : V4L2Device(params) {};
|
2014-08-17 15:29:08 +00:00
|
|
|
|
2014-08-23 21:57:07 +00:00
|
|
|
public:
|
2014-08-17 15:29:08 +00:00
|
|
|
virtual bool captureStart() { return true; };
|
|
|
|
virtual size_t read(char* buffer, size_t bufferSize);
|
|
|
|
virtual bool captureStop() { return true; };
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|