MCPcopy Create free account
hub / github.com/IENT/YUView / getTypesThatNeedLoading

Method getTypesThatNeedLoading

YUViewLib/src/statistics/StatisticsData.cpp:179–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179std::vector<int> StatisticsData::getTypesThatNeedLoading(int frameIndex) const
180{
181 std::vector<int> typesToLoad;
182 auto loadAll = this->frameIdx != frameIndex;
183 for (const auto &statsType : this->statsTypes)
184 {
185 if (statsType.render && (loadAll || this->frameCache.count(statsType.typeID) == 0))
186 typesToLoad.push_back(statsType.typeID);
187 }
188
189 DEBUG_STATDATA("StatisticsData::getTypesThatNeedLoading "
190 << QString::fromStdString(to_string(typesToLoad)));
191 return typesToLoad;
192}
193
194// return raw(!) value of front-most, active statistic item at given position
195// Info is always read from the current buffer. So these values are only valid if a draw event

Callers 3

loadFrameMethod · 0.80

Calls 1

to_stringFunction · 0.50

Tested by 2