Rename RangeDescriptor::bodySpot=>stimulusBufferSpot
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
struct RangeDescriptor
|
struct RangeDescriptor
|
||||||
{
|
{
|
||||||
uint32_t bodySpot;
|
uint32_t stimulusBufferSpot;
|
||||||
size_t nContiguousSpots;
|
size_t nContiguousSpots;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ namespace stim_buff {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* LG1PcloudAmbienceStencil represents Livox Gen1-specific stencils for
|
* LG1PcloudAmbienceStencil represents Livox Gen1-specific stencils for
|
||||||
* ambience data. It holds a single RangeDescriptor with bodySpot=0 and
|
* ambience data. It holds a single RangeDescriptor with stimulusBufferSpot=0
|
||||||
* nContiguousSpots=1.
|
* and nContiguousSpots=1.
|
||||||
*/
|
*/
|
||||||
class LG1PcloudAmbienceStencil
|
class LG1PcloudAmbienceStencil
|
||||||
: public PcloudAmbienceStencil
|
: public PcloudAmbienceStencil
|
||||||
@@ -37,8 +37,9 @@ public:
|
|||||||
|
|
||||||
bool isRelevant(size_t offset) const override
|
bool isRelevant(size_t offset) const override
|
||||||
{
|
{
|
||||||
return (offset >= rangeDescriptor.bodySpot &&
|
return (offset >= rangeDescriptor.stimulusBufferSpot &&
|
||||||
offset < rangeDescriptor.bodySpot + rangeDescriptor.nContiguousSpots);
|
offset < (rangeDescriptor.stimulusBufferSpot
|
||||||
|
+ rangeDescriptor.nContiguousSpots));
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t getNRangeDescriptors() const override
|
size_t getNRangeDescriptors() const override
|
||||||
|
|||||||
Reference in New Issue
Block a user