Files
GVFG_Standalone/samples/gvfg_qt_preview/mainwindow.ui
T
Mark.lin 3f905d8a09 Add CH0 audio capture and customer runtime diagnostics
Extend the internal driver ABI and public GVFG API for combined CH0 video/audio capture, PCM format discovery, blocking copy-out reads, extra-frame wake events, and coordinated teardown of video and audio readers.

Update the Qt sample with optional CH0 audio playback on a dedicated thread, customer-visible copy/zero-copy timing telemetry, mutually exclusive CH0/CH1 Y210 selection, and a refresh-safe temporary hide for the unsupported CH1 panel.

Harden Win32 error text conversion, document the new stream and ownership contracts, and package giga_ioctl plus the VC143 runtime in customer Debug/Release bundles.

Validation: git diff --check passed before commit. No build, package execution, runtime, audio-device, or capture-hardware test was run.
2026-09-01 12:26:27 +08:00

261 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>
<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="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>
</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>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="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="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>