Erster Teststream absolviert. Positives Ergebnis
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
class VideoWidget;
|
||||
class CaptureThread;
|
||||
class AudioThread;
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAction;
|
||||
class QLabel;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
@@ -15,6 +19,11 @@ public:
|
||||
MainWindow(const QString& videoDevice,
|
||||
const QString& audioDevice,
|
||||
int targetFps,
|
||||
bool smoothModeEnabled = true,
|
||||
bool retroModeEnabled = false,
|
||||
float brightness = 1.0f,
|
||||
float sharpenAmount = 0.0f,
|
||||
float lastSharpenAmount = 2.5f,
|
||||
QWidget* parent = nullptr);
|
||||
~MainWindow() override;
|
||||
|
||||
@@ -27,17 +36,37 @@ protected:
|
||||
private slots:
|
||||
void onError(const QString& msg);
|
||||
void onCaptureInfo(int width, int height, int fps, const QString& format);
|
||||
void onFrameDumped(const QString& path);
|
||||
void onHardwareControlChanged(const QString& label, int value, int minVal, int maxVal);
|
||||
void showAbout();
|
||||
void toggleSmoothMode();
|
||||
void toggleRetroMode();
|
||||
void toggleSharpen();
|
||||
void increaseSharpen();
|
||||
void decreaseSharpen();
|
||||
void increaseBrightness();
|
||||
void decreaseBrightness();
|
||||
void toggleRaw();
|
||||
void toggleCompare();
|
||||
void saveScreenshot();
|
||||
|
||||
private:
|
||||
void setupMenuBar();
|
||||
void toggleFullscreen();
|
||||
void stopAll();
|
||||
void updateStatusBar();
|
||||
void applyBrightness(float value);
|
||||
void applySharpen(float value);
|
||||
void showOverlayMessage(const QString& text);
|
||||
|
||||
VideoWidget* m_video = nullptr;
|
||||
CaptureThread* m_capture = nullptr;
|
||||
AudioThread* m_audio = nullptr;
|
||||
VideoWidget* m_video = nullptr;
|
||||
CaptureThread* m_capture = nullptr;
|
||||
AudioThread* m_audio = nullptr;
|
||||
QAction* m_smoothAction = nullptr;
|
||||
QAction* m_retroAction = nullptr;
|
||||
QAction* m_sharpenAction = nullptr;
|
||||
QLabel* m_overlayLabel = nullptr;
|
||||
float m_lastSharpenAmount = 2.5f; // für Taste X: Wert vorm letzten Ausschalten
|
||||
|
||||
QString m_videoDevice;
|
||||
QString m_audioDevice;
|
||||
|
||||
Reference in New Issue
Block a user