V4l2ReadWriteDevice.h 781 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef V4L2_RW_DEVICE
  12. #define V4L2_RW_DEVICE
  13. #include "V4l2Device.h"
  14. class V4l2ReadWriteDevice : public V4l2Device
  15. {
  16. protected:
  17. virtual size_t writeInternal(char* buffer, size_t bufferSize);
  18. virtual size_t readInternal(char* buffer, size_t bufferSize);
  19. public:
  20. V4l2ReadWriteDevice(const V4L2DeviceParameters& params, v4l2_buf_type deviceType);
  21. };
  22. #endif