v4l2启用

This commit is contained in:
flower
2026-01-21 13:44:29 +08:00
parent adc8f0569a
commit 9b5abe0877
1480 changed files with 35290 additions and 9564 deletions

View File

@@ -17,6 +17,8 @@
#include <QUdpSocket>
#include <QTimer>
#include <QImage>
#include "DeviceInfo.h"
#include "DeviceInfoReceiver.h"
#include <memory>
class GroundReceiver;
@@ -67,6 +69,11 @@ private slots:
*/
void on_settings_clicked();
/**
* @brief 收到设备信息
*/
void on_device_info_received(const DeviceInfo& info);
private:
// ========================================================================
// UI 组件
@@ -75,6 +82,7 @@ private:
QLabel* video_label_; ///< 视频显示标签
QLabel* stats_label_; ///< 统计信息标签
QLabel* gps_label_; ///< GPS 信息标签
QLabel* device_info_label_; ///< 设备信息标签
QPushButton* save_frame_btn_; ///< 保存帧按钮
QPushButton* record_btn_; ///< 录制按钮
@@ -85,6 +93,7 @@ private:
// ========================================================================
std::shared_ptr<GroundReceiver> receiver_; ///< UDP 接收器
std::shared_ptr<DeviceInfoReceiver> device_info_receiver_; ///< 设备信息接收器
std::shared_ptr<DataLogger> logger_; ///< 数据记录器
// ========================================================================