Skip to content

Commit c5d7b1c

Browse files
author
J. Cappelletto
committed
chore: remove dead GUI placeholder
1 parent 28941fd commit c5d7b1c

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

tests/test_core_smoke.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ static fs::path make_tmp_dir(const std::string& name) {
2424
return base;
2525
}
2626

27-
28-
// static fs::path make_tmp_dir(const std::string& name) {
29-
// auto base = fs::temp_directory_path() / ("vs_" + name + "_" + std::to_string(::getpid()));
30-
// fs::create_directories(base);
31-
// return base;
32-
// }
33-
3427
TEST_CASE("core: synthetic video to images + CSV + YAML", "[core][smoke]") {
3528
// --- 1) Make synthetic video (20 frames @ 10 fps) ---
3629
const int W=320, H=240, FPS=10, N=20;

videostrip_gui/videostrip-gui.cpp

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -39,49 +39,6 @@ using namespace vs;
3939

4040
int main(int argc, char *argv[])
4141
{
42-
vs::vsGui gui;
43-
vs::VideoFile video;
4442

45-
int retval = gui.Init();; // OpenGL context setup
46-
if (retval) {
47-
vs::logc.error("main", "OpenGL + imgui context setup failed");
48-
return retval;
49-
}
50-
51-
// Our state
52-
ImGui::SetNextWindowSize(ImVec2(750,400));
53-
// Main loop
54-
55-
// let's populate with some data for testing purposes
56-
if (video.peekFile("/home/cappelletto/Videos/fran01.mp4") == -1) {
57-
vs::logc.error("main", "Video file peek failed");
58-
return -1;
59-
}
60-
else{
61-
vs::logc.info("main", "Video file peek success");
62-
}
63-
64-
static bool window_flag = true;
65-
while (!gui.ShouldClose() && window_flag)
66-
{
67-
// Poll and handle events (inputs, window resize, etc.)
68-
// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs.
69-
// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application.
70-
// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application.
71-
// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags.
72-
glfwPollEvents();
73-
gui.NewFrame();
74-
75-
int r = drawWindowInput(video);
76-
// now we call to the drawWindowInfo function
77-
drawWindowInfo(video); // read-only, could be const &
78-
79-
// Rendering
80-
gui.Render();
81-
}
82-
83-
// Cleanup
84-
gui.Destroy();
85-
vs::logc.info("main", "Exiting");
8643
return 0;
8744
}

0 commit comments

Comments
 (0)