Compared with f380a8a:
- Let CH0 and CH1 open, start, stop, and preview independently while sharing one device connection.
- Give each channel its own capture worker, preview window, frame ownership, runtime status, and failure reporting.
- Expose channel-indexed zero-copy selection to match the driver IOCTL contract and keep output format selection independent per channel.
- Prevent immediate timeout responses from hot-looping and flooding the Qt event queue.
- Align the CH0 and CH1 controls in equal-width channel panels and update the public and internal documentation.
Validation: Qt uic parsing and git diff --check passed; no build or hardware validation was run.
128 lines
5.4 KiB
XML
128 lines
5.4 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>
|
|
<item>
|
|
<widget class="QPushButton" name="openButton">
|
|
<property name="text">
|
|
<string>Open Device</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" 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>Requested CH0 capture 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></widget></item>
|
|
<item row="1" column="0" colspan="3">
|
|
<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="toolTip"><string>Requested CH1 capture 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="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="text"><string>Start</string></property></widget></item>
|
|
<item><widget class="QPushButton" name="ch1StopButton"><property name="text"><string>Stop</string></property></widget></item>
|
|
<item><widget class="QPushButton" name="ch1PreviewButton"><property name="text"><string>Open view</string></property></widget></item>
|
|
<item><widget class="QPushButton" name="ch1FullscreenButton"><property name="text"><string>Fullscreen</string></property></widget></item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="statusLabel">
|
|
<property name="text">
|
|
<string>Idle</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QPlainTextEdit" name="logEdit">
|
|
<property name="readOnly">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|