Rename RangeDescriptor::bodySpot=>stimulusBufferSpot

This commit is contained in:
2025-11-28 14:57:53 -04:00
parent 0116523a66
commit 30f599cde3
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -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