40 void init(uint16_t numcomps)
44 for(uint16_t i = 0; i < numcomps; ++i)
74 while(val < cur && !
minimumSlope_.compare_exchange_weak(cur, val, std::memory_order_relaxed))
82 while(val > cur && !
maximumSlope_.compare_exchange_weak(cur, val, std::memory_order_relaxed))
89 auto cur =
minRDSlope_.load(std::memory_order_relaxed);
90 while(val < cur && !
minRDSlope_.compare_exchange_weak(cur, val, std::memory_order_relaxed))
97 auto cur =
maxRDSlope_.load(std::memory_order_relaxed);
98 while(val > cur && !
maxRDSlope_.compare_exchange_weak(cur, val, std::memory_order_relaxed))
ResWindow.
Definition CompressedChunkCache.h:36
uint16_t numcomps_
Definition RateControlStats.h:55
std::unique_ptr< std::atomic< uint64_t >[]> numpixByComponent_
Definition RateControlStats.h:58
std::atomic< uint64_t > numCodeBlocks_
Definition RateControlStats.h:61
std::atomic< double > maxRDSlope_
Definition RateControlStats.h:69
void updateMinSlope(uint16_t val)
Definition RateControlStats.h:71
std::atomic< double > minRDSlope_
Definition RateControlStats.h:68
void updateMinRDSlope(double val)
Definition RateControlStats.h:87
void init(uint16_t numcomps)
Definition RateControlStats.h:40
std::atomic< uint16_t > maximumSlope_
Definition RateControlStats.h:65
void updateMaxSlope(uint16_t val)
Definition RateControlStats.h:79
void updateMaxRDSlope(double val)
Definition RateControlStats.h:95
RateControlStats()
Definition RateControlStats.h:38
std::atomic< uint16_t > minimumSlope_
Definition RateControlStats.h:64