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
31 lines
689 B
C++
31 lines
689 B
C++
#pragma once
|
|
|
|
#include <QFile>
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
class SampleLog final : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SampleLog(QObject *parent = nullptr);
|
|
QString filePath() const { return filePath_; }
|
|
bool fileAvailable() const { return file_.isOpen(); }
|
|
|
|
public slots:
|
|
void append(const QString &message);
|
|
void appendDiagnostic(const QString &message);
|
|
|
|
signals:
|
|
void lineReady(const QString &line);
|
|
|
|
private:
|
|
bool openPart();
|
|
void writeLine(const QString &line);
|
|
|
|
static constexpr qint64 kMaxFileBytes = 20ll * 1024ll * 1024ll;
|
|
QFile file_;
|
|
QString directoryPath_, filePath_, sessionStamp_;
|
|
int partIndex_ = 1;
|
|
};
|