1/* ---------------------------------------------------------------------------
2** This software is in the public domain, furnished "as is", without technical
3** support, and with no warranty, express or implied, as to its usefulness for
4** any purpose.
5**
6** V4l2ReadWriteDevice.h
7**
8** V4L2 source using read/write API
9**
10** -------------------------------------------------------------------------*/
11
12
13#ifndef V4L2_RW_DEVICE
14#define V4L2_RW_DEVICE
15
16#include "V4l2Device.h"
17
18
19class V4l2ReadWriteDevice : public V4l2Device
20{
21 protected:
22 virtual size_t writeInternal(char* buffer, size_t bufferSize);
23 virtual size_t readInternal(char* buffer, size_t bufferSize);
24
25 public:
26 V4l2ReadWriteDevice(const V4L2DeviceParameters& params, v4l2_buf_type deviceType);
27};
28
29
30#endif
31
32