Add independent dual-channel preview controls
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.
This commit is contained in:
@@ -52,103 +52,58 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="startButton">
|
||||
<property name="text">
|
||||
<string>Start</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="stopButton">
|
||||
<property name="text">
|
||||
<string>Stop</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showPreviewButton">
|
||||
<property name="toolTip">
|
||||
<string>Available after capture receives its first video frame</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open view window</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="fullscreenPreviewButton">
|
||||
<property name="toolTip">
|
||||
<string>Available after capture receives its first video frame</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Fullscreen window</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<layout class="QHBoxLayout" name="formatLayout">
|
||||
<layout class="QHBoxLayout" name="channelPanelsLayout" stretch="1,1">
|
||||
<item>
|
||||
<widget class="QLabel" name="outputFormatLabel">
|
||||
<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>Output format:</string>
|
||||
</property>
|
||||
<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="QComboBox" name="outputFormatCombo">
|
||||
<property name="toolTip">
|
||||
<string>Requested 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 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>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="zeroCopyCheckBox">
|
||||
<property name="toolTip">
|
||||
<string>Must be selected before opening the device</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Zero-copy</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="formatSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
|
||||
Reference in New Issue
Block a user