You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
781 B
C++
32 lines
781 B
C++
/* ---------------------------------------------------------------------------
|
|
** 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.
|
|
**
|
|
** V4l2ReadWriteDevice.h
|
|
**
|
|
** V4L2 source using read/write API
|
|
**
|
|
** -------------------------------------------------------------------------*/
|
|
|
|
|
|
#ifndef V4L2_RW_DEVICE
|
|
#define V4L2_RW_DEVICE
|
|
|
|
#include "V4l2Device.h"
|
|
|
|
|
|
class V4l2ReadWriteDevice : public V4l2Device
|
|
{
|
|
protected:
|
|
virtual size_t writeInternal(char* buffer, size_t bufferSize);
|
|
virtual size_t readInternal(char* buffer, size_t bufferSize);
|
|
|
|
public:
|
|
V4l2ReadWriteDevice(const V4L2DeviceParameters& params, v4l2_buf_type deviceType);
|
|
};
|
|
|
|
|
|
#endif
|
|
|