41b8385cb2
We now allocate all the stimFrames for a StimBuffer using a single StagingBuffer. This gives us all the benefits we're looking for (pinning, alignment, etc).
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#ifndef _LIVOX_GEN1_PCLOUD_INTENSITY_STIMULUS_BUFFER_H
|
|
#define _LIVOX_GEN1_PCLOUD_INTENSITY_STIMULUS_BUFFER_H
|
|
|
|
#include <memory>
|
|
#include <user/stimulusBuffer.h>
|
|
#include <user/stagingBuffer.h>
|
|
|
|
namespace smo {
|
|
namespace stim_buff {
|
|
|
|
// Forward declaration
|
|
class StimulusProducer;
|
|
|
|
/**
|
|
* PcloudIntensityStimulusBuffer is a specialized StimulusBuffer for intensity point cloud data.
|
|
*/
|
|
class PcloudIntensityStimulusBuffer
|
|
: public StimulusBuffer
|
|
{
|
|
public:
|
|
explicit PcloudIntensityStimulusBuffer(
|
|
StimulusProducer& parent,
|
|
const std::shared_ptr<device::DeviceAttachmentSpec>
|
|
&deviceAttachmentSpec,
|
|
int histbuffMs,
|
|
const StagingBuffer::IOEngineConstraints& inputEngineConstraints,
|
|
const StagingBuffer::IOEngineConstraints& outputEngineConstraints)
|
|
: StimulusBuffer(
|
|
parent, deviceAttachmentSpec, histbuffMs,
|
|
inputEngineConstraints, outputEngineConstraints)
|
|
{}
|
|
|
|
~PcloudIntensityStimulusBuffer() = default;
|
|
|
|
// Non-copyable, movable
|
|
PcloudIntensityStimulusBuffer(
|
|
const PcloudIntensityStimulusBuffer&) = delete;
|
|
PcloudIntensityStimulusBuffer& operator=(
|
|
const PcloudIntensityStimulusBuffer&) = delete;
|
|
PcloudIntensityStimulusBuffer(
|
|
PcloudIntensityStimulusBuffer&&) = default;
|
|
PcloudIntensityStimulusBuffer& operator=(
|
|
PcloudIntensityStimulusBuffer&&) = default;
|
|
};
|
|
|
|
} // namespace stim_buff
|
|
} // namespace smo
|
|
|
|
#endif // _LIVOX_GEN1_PCLOUD_INTENSITY_STIMULUS_BUFFER_H
|