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