Files
video-shader-toys/src/app/AppConfig.h
Aiden f0f8b080ca
All checks were successful
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 2m22s
CI / Windows Release Package (push) Has been skipped
UYVY backend
2026-05-30 19:16:16 +10:00

62 lines
1.7 KiB
C++

#pragma once
#include "../control/http/HttpControlServer.h"
#include "../logging/Logger.h"
#include "../preview/PreviewConfig.h"
#include "../telemetry/TelemetryHealthMonitor.h"
#include "VideoIOEdges.h"
#include "VideoOutputThread.h"
#include <chrono>
#include <cstddef>
#include <string>
namespace RenderCadenceCompositor
{
struct VideoInputAppConfig
{
std::string backend = "decklink";
std::string device = "default";
std::string resolution = "1080p";
std::string frameRate = "59.94";
};
struct VideoOutputAppConfig
{
std::string backend = "decklink";
std::string device = "default";
std::string resolution = "1080p";
std::string frameRate = "59.94";
std::string pixelFormat = "auto";
bool externalKeyingEnabled = false;
bool outputAlphaRequired = false;
VideoIOPixelFormat systemFramePixelFormat = VideoIOPixelFormat::Bgra8;
VideoFormat videoMode;
};
struct AppConfig
{
VideoInputAppConfig input;
VideoOutputAppConfig output;
VideoOutputThreadConfig outputThread;
TelemetryHealthMonitorConfig telemetry;
LoggerConfig logging;
HttpControlServerConfig http;
std::string shaderLibrary = "shaders";
std::string oscBindAddress = "0.0.0.0";
unsigned short oscPort = 9000;
double oscSmoothing = 0.18;
bool autoReload = true;
std::size_t maxTemporalHistoryFrames = 12;
bool previewEnabled = false;
double previewFps = kDefaultPreviewFps;
std::size_t warmupCompletedFrames = 4;
std::chrono::milliseconds warmupTimeout = std::chrono::seconds(3);
std::chrono::milliseconds prerollTimeout = std::chrono::seconds(3);
std::chrono::milliseconds prerollPoll = std::chrono::milliseconds(2);
std::string runtimeShaderId = "happy-accident";
};
AppConfig DefaultAppConfig();
}