24 lines
708 B
C++
24 lines
708 B
C++
#include <opts.h>
|
|
#include <algorithm>
|
|
#include <componentThread.h>
|
|
#include "pcloudStimulusBuffer.h"
|
|
|
|
namespace smo {
|
|
namespace stim_buff {
|
|
|
|
PcloudStimulusBuffer::PcloudStimulusBuffer(
|
|
const device::DeviceAttachmentSpec& deviceAttachmentSpec,
|
|
std::shared_ptr<livoxProto1::Device> &device,
|
|
const PcloudFormatDesc& formatDesc,
|
|
size_t nDgramsPerStagingBufferFrame)
|
|
: StimulusBuffer(deviceAttachmentSpec, device->componentThread->getIoService()),
|
|
deviceAttachmentSpec(deviceAttachmentSpec), device(device),
|
|
formatDesc(formatDesc), stagingBuffer(
|
|
StagingBuffer::InputEngineConstraints::ioUringConstraints,
|
|
OpenClConstraints(), nDgramsPerStagingBufferFrame)
|
|
{
|
|
}
|
|
|
|
} // namespace stim_buff
|
|
} // namespace smo
|