From 8ce27b7e15f0fc65c8ee78950c7501660b936178 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 15:14:25 +0100 Subject: style: Apply clang-format to codebase --- tools/seq_compiler.cc | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'tools/seq_compiler.cc') diff --git a/tools/seq_compiler.cc b/tools/seq_compiler.cc index 2448a3b..5804031 100644 --- a/tools/seq_compiler.cc +++ b/tools/seq_compiler.cc @@ -63,17 +63,10 @@ parse_parameters(const std::string& args) { bool is_post_process_effect(const std::string& class_name) { // List of known post-process effects static const std::vector post_process_effects = { - "FadeEffect", - "FlashEffect", - "GaussianBlurEffect", - "SolarizeEffect", - "VignetteEffect", - "ChromaAberrationEffect", - "DistortEffect", - "ThemeModulationEffect", - "CNNEffect", - "PassthroughEffect", - "CircleMaskEffect"}; + "FadeEffect", "FlashEffect", "GaussianBlurEffect", + "SolarizeEffect", "VignetteEffect", "ChromaAberrationEffect", + "DistortEffect", "ThemeModulationEffect", "CNNEffect", + "PassthroughEffect", "CircleMaskEffect"}; return std::find(post_process_effects.begin(), post_process_effects.end(), class_name) != post_process_effects.end(); } @@ -112,7 +105,7 @@ float get_sequence_end(const SequenceEntry& seq) { // Analyze timeline: find max time and sort sequences by start time TimelineMetrics analyze_timeline(const std::vector& sequences, - const std::string& demo_end_time) { + const std::string& demo_end_time) { float max_time = demo_end_time.empty() ? 0.0f : std::stof(demo_end_time); for (const auto& seq : sequences) { float seq_start = std::stof(seq.start_time); @@ -343,7 +336,8 @@ void generate_gantt_chart(const std::string& output_file, out << "\n\n"; // Draw sequences and effects - for (size_t seq_idx = 0; seq_idx < metrics.sorted_sequences.size(); ++seq_idx) { + for (size_t seq_idx = 0; seq_idx < metrics.sorted_sequences.size(); + ++seq_idx) { const auto& seq = metrics.sorted_sequences[seq_idx]; float seq_start = std::stof(seq.start_time); float seq_end = get_sequence_end(seq); @@ -510,7 +504,8 @@ void generate_gantt_html(const std::string& output_file, // Draw sequences and effects int y_offset = margin_top; - for (size_t seq_idx = 0; seq_idx < metrics.sorted_sequences.size(); ++seq_idx) { + for (size_t seq_idx = 0; seq_idx < metrics.sorted_sequences.size(); + ++seq_idx) { const auto& seq = metrics.sorted_sequences[seq_idx]; float seq_start = std::stof(seq.start_time); float seq_end = get_sequence_end(seq); @@ -903,7 +898,8 @@ int main(int argc, char* argv[]) { } } - // Validate: detect cross-sequence priority collisions for concurrent sequences + // Validate: detect cross-sequence priority collisions for concurrent + // sequences std::map> time_groups; for (size_t i = 0; i < sequences.size(); ++i) { time_groups[sequences[i].start_time].push_back(i); @@ -912,7 +908,8 @@ int main(int argc, char* argv[]) { for (const auto& [start_time, seq_indices] : time_groups) { if (seq_indices.size() > 1) { // Multiple sequences start at the same time - std::map>> cross_priority_map; + std::map>> + cross_priority_map; for (size_t seq_idx : seq_indices) { const auto& seq = sequences[seq_idx]; @@ -933,12 +930,14 @@ int main(int argc, char* argv[]) { "priority " << prio << ":\n"; for (const auto& [effect, seq_idx] : effects) { - std::cerr << " - " << effect << " (sequence #" << seq_idx << ")\n"; + std::cerr << " - " << effect << " (sequence #" << seq_idx + << ")\n"; } std::cerr << " Post-process effects from different sequences at the " "same time will be\n"; - std::cerr << " merged into a single render chain. Consider adjusting " - "priorities to clarify order.\n"; + std::cerr + << " merged into a single render chain. Consider adjusting " + "priorities to clarify order.\n"; } } } -- cgit v1.2.3