v4l2rtspserver/inc/V4l2READDeviceSource.h

33 lines
895 B
C
Raw Normal View History

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
#include "V4l2Device.h"
2014-08-17 15:29:08 +00:00
class V4L2READDeviceSource : public V4L2Device
2014-08-17 15:29:08 +00:00
{
public:
static V4L2READDeviceSource* createNew(V4L2DeviceParameters params);
2014-08-17 15:29:08 +00:00
protected:
V4L2READDeviceSource(V4L2DeviceParameters params) : V4L2Device(params) {};
2014-08-17 15:29:08 +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