整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
23
video/v4l2/ReadWriteDevice.cpp
Executable file
23
video/v4l2/ReadWriteDevice.cpp
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "ReadWriteDevice.h"
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace V4L2
|
||||
{
|
||||
ReadWriteDevice::ReadWriteDevice(const DeviceParameters& params, v4l2_buf_type deviceType): Device(params, deviceType)
|
||||
{
|
||||
}
|
||||
|
||||
size_t ReadWriteDevice::writeInternal(char* buffer, size_t bufferSize)
|
||||
{
|
||||
return ::write(m_fd, buffer, bufferSize);
|
||||
}
|
||||
|
||||
size_t ReadWriteDevice::readInternal(char* buffer, size_t bufferSize)
|
||||
{
|
||||
return ::read(m_fd, buffer, bufferSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue