Skip to content

Add MJPEG live mode dispatch, make --replay optional - #12

Merged
Konstantysz merged 1 commit into
devfrom
feature/camera-factory-dispatch
Mar 9, 2026
Merged

Add MJPEG live mode dispatch, make --replay optional#12
Konstantysz merged 1 commit into
devfrom
feature/camera-factory-dispatch

Conversation

@Konstantysz

Copy link
Copy Markdown
Owner

Summary

  • --replay is now optional in Sh3DSAppGUI.cpp — omitting it triggers live camera mode
  • BuildPipeline() has three-way dispatch:
    • --replay non-empty → existing FileFrameSource / VideoFrameSource (seeker set)
    • camera.type == "mjpeg"MjpegFrameSource, seeker = nullptr (live mode sentinel)
    • Unknown type → LOG_ERROR + std::runtime_error
  • Window title updated to "SH-3DS Debug — LIVE" or "SH-3DS Debug — Replay" based on seeker

Test plan

  • All 169 tests pass (no regressions)
  • --replay path → identical behavior to v0.1.0 (FileFrameSource / VideoFrameSource)
  • camera.type: "mjpeg" without --replay → MjpegFrameSource created, seeker == nullptr
  • Unknown camera.type → readable error + clean exception

Closes #6

@Konstantysz
Konstantysz merged commit 7006f09 into dev Mar 9, 2026
1 check failed
@Konstantysz
Konstantysz deleted the feature/camera-factory-dispatch branch March 9, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant