Compared with d652f15:
- set the SDK release version to 1.0.0 for the new GigabyteLib backend and its required matching driver
- preserve GigabyteLib result codes and event names through the public SDK instead of translating vendor semantics
- expose cached Lib signal, SDI string fields, ErrorCount, and separate video/audio event counters for direct diagnostics
- serialize GigabyteLib capture calls and recover an active stream internally after a video input plugin event
- keep the SDK frame lifetime fence while following the current zero-copy contract without a vendor release call
- separate Sample logging and presentation counters from capture control, and report Lib-owned fields with explicit source names
- remove the manual Open Device control so Start lazily opens the selected device and revalidates VideoSignalLock once per request
- keep format selection side-effect free until Start opens the channel, then apply the selected output depth through GigabyteLib
- update the public API, diagnostics, architecture, error-handling, and build documentation for the simplified ownership model
42 lines
884 B
C++
42 lines
884 B
C++
#pragma once
|
|
|
|
#include <gvfg_capture.h>
|
|
|
|
#include <QWidget>
|
|
#include <array>
|
|
|
|
class CaptureController;
|
|
class QCloseEvent;
|
|
class PreviewWindow;
|
|
class SampleLog;
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainWindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow() override;
|
|
|
|
protected:
|
|
void closeEvent(QCloseEvent *event) override;
|
|
|
|
private:
|
|
void syncControllerOptions(int channel);
|
|
void showPreviewWindow(int channel, bool fullscreen);
|
|
void updateOutputFormatOptions(int changedChannel = -1);
|
|
void updateUiState();
|
|
void appendLogLine(const QString &line);
|
|
|
|
Ui::MainWindow *ui_ = nullptr;
|
|
CaptureController *controller_ = nullptr;
|
|
SampleLog *log_ = nullptr;
|
|
std::array<PreviewWindow *, 2> previewWindows_{};
|
|
};
|
|
|
|
QWidget *createMainWindow();
|