clang optimizations and cleanup
This commit is contained in:
@@ -18,7 +18,7 @@ class VideoViewerWidget : public QWidget
|
||||
|
||||
public:
|
||||
explicit VideoViewerWidget(QWidget *parent = nullptr);
|
||||
~VideoViewerWidget();
|
||||
~VideoViewerWidget() override;
|
||||
|
||||
signals:
|
||||
void newFrameAvailable(const QImage& frame);
|
||||
@@ -36,12 +36,12 @@ private:
|
||||
void cleanupGStreamer();
|
||||
void startPipeline();
|
||||
void stopPipeline();
|
||||
QString buildPipelineString();
|
||||
QString buildPipelineString() const;
|
||||
|
||||
static gboolean busCallback(GstBus* bus, GstMessage* msg, gpointer data);
|
||||
static GstFlowReturn newSampleCallback(GstAppSink* appsink, gpointer user_data);
|
||||
|
||||
// UI elements
|
||||
// UI elements (8-byte pointers)
|
||||
QScrollArea* m_scrollArea;
|
||||
QLabel* m_videoDisplay;
|
||||
QPushButton* m_startBtn;
|
||||
@@ -53,14 +53,18 @@ private:
|
||||
QSlider* m_zoomSlider;
|
||||
QLabel* m_zoomLabel;
|
||||
|
||||
// GStreamer elements
|
||||
// GStreamer elements (8-byte pointers)
|
||||
GstElement* m_pipeline;
|
||||
GstElement* m_appSink;
|
||||
|
||||
// Zoom factor (8-byte double)
|
||||
double m_zoomFactor;
|
||||
|
||||
// Bus watch ID (4-byte unsigned int)
|
||||
guint m_busWatchId;
|
||||
|
||||
// Video state
|
||||
// Video state (large object at end)
|
||||
QImage m_currentFrame;
|
||||
double m_zoomFactor;
|
||||
};
|
||||
|
||||
#endif // VIDEOVIEWERWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user