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

Method formatValue

YUViewLib/src/parser/common/BitratePlotModel.cpp:165–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165QString BitratePlotModel::formatValue(Axis axis, double value) const
166{
167 if (axis == Axis::X)
168 {
169 // The value is a timestamp. We could convert this to a time but for now a total value will do
170 return QString("%1").arg(value);
171 }
172 else
173 // The value is bytes
174 return functions::formatDataSize(value, false);
175}
176
177void BitratePlotModel::addBitratePoint(int streamIndex, BitrateEntry &entry)
178{

Callers

nothing calls this directly

Calls 1

formatDataSizeFunction · 0.85

Tested by

no test coverage detected