append_payload_to_mipmap();
}
-void LogicSnapshot::reallocate_mip_map(MipMapLevel &m)
+void LogicSnapshot::reallocate_mipmap_level(MipMapLevel &m)
{
const uint64_t new_data_length = ((m.length + MipMapDataUnit - 1) /
MipMapDataUnit) * MipMapDataUnit;
if (m0.length == prev_length)
return;
- reallocate_mip_map(m0);
+ reallocate_mipmap_level(m0);
dest_ptr = (uint8_t*)m0.data + prev_length * _unit_size;
// Iterate through the samples to populate the first level mipmap
- accumulator = 0;
- diff_counter = MipMapScaleFactor;
- const uint8_t *end_src_ptr = (uint8_t*)_data +
+ const uint8_t *const end_src_ptr = (uint8_t*)_data +
m0.length * _unit_size * MipMapScaleFactor;
for (src_ptr = (uint8_t*)_data +
prev_length * _unit_size * MipMapScaleFactor;
if (m.length == prev_length)
break;
- reallocate_mip_map(m);
+ reallocate_mipmap_level(m);
// Subsample the level lower level
src_ptr = (uint8_t*)ml.data +
_unit_size * prev_length * MipMapScaleFactor;
- const uint8_t *end_dest_ptr =
+ const uint8_t *const end_dest_ptr =
(uint8_t*)m.data + _unit_size * m.length;
for (dest_ptr = (uint8_t*)m.data +
_unit_size * prev_length;
#include <vector>
namespace LogicSnapshotTest {
- class Pow2;
- class Basic;
- class LargeData;
- class Pulses;
- class LongPulses;
+class Pow2;
+class Basic;
+class LargeData;
+class Pulses;
+class LongPulses;
}
namespace pv {
void append_payload(const sr_datafeed_logic &logic);
private:
- void reallocate_mip_map(MipMapLevel &m);
+ void reallocate_mipmap_level(MipMapLevel &m);
void append_payload_to_mipmap();