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.
34 lines
808 B
C++
34 lines
808 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.
|
|
**
|
|
** V4l2Capture.h
|
|
**
|
|
** V4L2 Capture wrapper
|
|
**
|
|
** -------------------------------------------------------------------------*/
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "V4l2Access.h"
|
|
|
|
// ---------------------------------
|
|
// V4L2 Capture
|
|
// ---------------------------------
|
|
class V4l2Capture : public V4l2Access
|
|
{
|
|
protected:
|
|
explicit V4l2Capture(V4l2Device* device);
|
|
|
|
public:
|
|
static V4l2Capture* create(const V4L2DeviceParameters & param);
|
|
virtual ~V4l2Capture();
|
|
|
|
size_t read(char* buffer, size_t bufferSize);
|
|
bool isReadable(timeval* tv);
|
|
};
|
|
|
|
|