Update to handle new gsr --info output, remove general section from streaming

This commit is contained in:
dec05eba
2026-01-15 23:44:32 +01:00
parent fed47000ce
commit 61bbaf3728
6 changed files with 97 additions and 47 deletions

View File

@@ -25,9 +25,9 @@ namespace gsr {
bool png = false;
};
struct SupportedCameraPixelFormats {
bool yuyv = false;
bool mjpeg = false;
enum GsrCameraPixelFormat {
YUYV,
MJPEG
};
struct GsrMonitor {
@@ -35,10 +35,16 @@ namespace gsr {
mgl::vec2i size;
};
struct GsrCameraSetup {
mgl::vec2i resolution;
int fps;
//GsrCameraPixelFormat pixel_format;
};
struct GsrCamera {
std::string path;
mgl::vec2i size;
SupportedCameraPixelFormats supported_pixel_formats;
std::vector<GsrCameraSetup> yuyv_setups;
std::vector<GsrCameraSetup> mjpeg_setups;
};
struct GsrVersion {

View File

@@ -237,5 +237,6 @@ namespace gsr {
mgl::vec2f webcam_box_size_resize_start;
std::optional<GsrCamera> selected_camera;
std::optional<GsrCameraSetup> selected_camera_setup;
};
}