Files
GVFG_Standalone/GVFG_Qt_Sample/mainwindow.ui
T
Mark.lin 350e8e519c Streamline GigabyteLib capture control and diagnostics
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
2026-09-15 16:52:19 +08:00

244 lines
7.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QWidget" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>960</width>
<height>640</height>
</rect>
</property>
<property name="windowTitle">
<string>GVFG Qt Preview Sample</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QHBoxLayout" name="topLayout">
<item>
<widget class="QLabel" name="deviceLabel">
<property name="minimumSize">
<size>
<width>86</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>86</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Device:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="deviceCombo"/>
</item>
<item>
<widget class="QPushButton" name="refreshButton">
<property name="text">
<string>Refresh</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="sdiInfoLabel">
<property name="text">
<string>SDI Info: --</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="channelPanelsLayout" stretch="1,1">
<item>
<widget class="QGroupBox" name="channel0GroupBox">
<property name="title">
<string>CH0</string>
</property>
<layout class="QGridLayout" name="channel0GridLayout">
<item row="0" column="0">
<widget class="QLabel" name="channel0FormatLabel">
<property name="text"><string>Output format:</string></property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="ch0OutputFormatCombo">
<property name="toolTip"><string>GigabyteLib extension: requested CH0 output format</string></property>
<item><property name="text"><string>YUY2 (8-bit 4:2:2)</string></property></item>
<item><property name="text"><string>Y210 (10-bit 4:2:2)</string></property></item>
</widget>
</item>
<item row="0" column="2">
<widget class="QCheckBox" name="ch0ZeroCopyCheckBox">
<property name="toolTip">
<string>Must be selected before opening CH0</string>
</property>
<property name="text">
<string>Zero-copy</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QCheckBox" name="ch0AudioCheckBox">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>Capture and play CH0 PCM audio together with video</string>
</property>
<property name="text">
<string>Audio</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="4">
<layout class="QHBoxLayout" name="channel0ButtonLayout">
<item>
<widget class="QPushButton" name="ch0StartButton">
<property name="text">
<string>Start</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ch0StopButton">
<property name="text">
<string>Stop</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ch0PreviewButton">
<property name="text">
<string>Open view</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ch0FullscreenButton">
<property name="text">
<string>Fullscreen</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="channel1GroupBox">
<property name="title">
<string>CH1</string>
</property>
<layout class="QGridLayout" name="channel1GridLayout">
<item row="0" column="0">
<widget class="QLabel" name="channel1FormatLabel">
<property name="text"><string>Output format:</string></property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="ch1OutputFormatCombo">
<property name="enabled"><bool>false</bool></property>
<property name="toolTip"><string>GigabyteLib extension: requested CH1 output format</string></property>
<item><property name="text"><string>YUY2 (8-bit 4:2:2)</string></property></item>
<item><property name="text"><string>Y210 (10-bit 4:2:2)</string></property></item>
</widget>
</item>
<item row="0" column="2">
<widget class="QCheckBox" name="ch1ZeroCopyCheckBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Must be selected before opening CH1</string>
</property>
<property name="text">
<string>Zero-copy</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<layout class="QHBoxLayout" name="channel1ButtonLayout">
<item>
<widget class="QPushButton" name="ch1StartButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Start</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ch1StopButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Stop</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ch1PreviewButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Open view</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ch1FullscreenButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Fullscreen</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="statusLabel">
<property name="text">
<string>Idle</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QPlainTextEdit" name="logEdit">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>