AI自我审查 第一次修改完成

This commit is contained in:
2026-07-30 23:13:31 +08:00
parent 13ca0f3141
commit 712c26a4f9
99 changed files with 664 additions and 2397 deletions
+11 -13
View File
@@ -9,17 +9,13 @@
#include "../Renderive/Axis/Axis.h"
#include "../Renderive/Axis/Frequency_Axis.h"
#include "../Renderive/Axis/Time_Axis.h"
#include "../Renderive/Axis/Time_Axis_p.h"
#include "../Renderive/plot/Latency_Eager_Plot.h"
#include "../Renderive/plot/Plot_p.h"
#include "../Renderive/architecture/Timeline_Stream.h"
#include "../Renderive/base/Memory.h"
#include "../Renderive/plottable/Audio_Frequency.h"
#include "../Renderive/plottable/Audio_Frequency_p.h"
#include "../Renderive/plottable/Planisphere.h"
#include "../Renderive/plottable/Planisphere_p.h"
#include "../Renderive/plottable/Waterfall.h"
#include "../Renderive/plottable/Waterfall_p.h"
#include "internal/Renderive_Private_Access.h"
namespace {
void process_events(int milliseconds) {
QElapsedTimer timer;
@@ -80,7 +76,7 @@ void stress_data_paths() {
auto i_axis = renderive::Axis::Builder(axis_node, Qt::Horizontal).set_pixel_size(700).set_coord_range({-2.0, 2.0}).build();
auto q_axis = renderive::Axis::Builder(axis_node, Qt::Vertical).set_pixel_size(400).set_coord_range({-2.0, 2.0}).build();
auto waterfall = renderive::Waterfall::Builder(data_node, frequency_axis, time_axis).set_frequency_range({0.0, 100.0}).set_power_range({-120.0, 0.0}).set_frequency_point_size(64).build();
auto audio = renderive::Audio_Frequency::Builder(data_node, time_axis, value_axis).set_time_point_size(32).set_key_range({-120.0, 0.0}).build();
auto audio = renderive::Audio_Frequency::Builder(data_node, time_axis, value_axis).set_time_point_size(32).build();
auto planisphere = renderive::Planisphere::Builder(data_node, i_axis, q_axis).set_i_range({-2.0, 2.0}).set_q_range({-2.0, 2.0}).set_continue_millisecond(500).build();
plot.show();
plot.start_render(240);
@@ -139,13 +135,15 @@ void stress_data_paths() {
previous_tick = tick;
}
auto* time_data = time_axis->d();
ASSERT_EQ(time_data->timeline_snapshot.time_point_size, time_sizes[stage]);
ASSERT_EQ(time_data->time_snapshot.size(), static_cast<std::size_t>(time_sizes[stage]));
ASSERT_NE(time_data->time_data_count, 0);
EXPECT_EQ(time_data->time_snapshot[time_data->time_data_count - 1], expected_time);
int lower = qMin(time_data->timeline_snapshot.lower, time_data->timeline_snapshot.upper());
int upper = qMax(time_data->timeline_snapshot.lower, time_data->timeline_snapshot.upper());
for (const renderive::Timeline_Tick& tick : time_data->data) {
ASSERT_TRUE(time_data->timeline_snapshot);
ASSERT_EQ(time_data->timeline_snapshot->time_point_size, time_sizes[stage]);
ASSERT_EQ(time_data->timeline_snapshot->times.size(), static_cast<std::size_t>(time_sizes[stage]));
ASSERT_FALSE(time_data->timeline_snapshot->times.empty());
EXPECT_EQ(time_data->timeline_snapshot->times.back(), expected_time);
int lower = qMin(time_data->timeline_snapshot->lower, time_data->timeline_snapshot->upper());
int upper = qMax(time_data->timeline_snapshot->lower, time_data->timeline_snapshot->upper());
ASSERT_EQ(time_data->ticks.size(), time_data->timeline_snapshot->ticks.size());
for (const renderive::Timeline_Tick& tick : time_data->timeline_snapshot->ticks) {
EXPECT_GE(tick.tick, lower);
EXPECT_LE(tick.tick, upper);
}