From ad95ec8759777c4b8df0dcd66fd8200d24e912b1 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 14 Aug 2026 01:29:59 +0400 Subject: pica-client: VAAPI hardware acceleration --- pica-client/callwindow.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pica-client/callwindow.h') diff --git a/pica-client/callwindow.h b/pica-client/callwindow.h index 9b9869e..b517cd4 100644 --- a/pica-client/callwindow.h +++ b/pica-client/callwindow.h @@ -23,6 +23,9 @@ #include #include #include +#ifdef HAVE_VAAPI +#include "vaapivideowidget.h" +#endif class CallWindow : public QWidget { @@ -44,6 +47,11 @@ private: // Displays the remote side's video. Stays hidden until the first frame // arrives, so an audio-only call keeps the compact window it had before. QLabel *lbVideo; +#ifdef HAVE_VAAPI + // Used instead of lbVideo when frames arrive still living in GPU memory; + // only one of the two is ever visible. + VaapiVideoWidget *videoGpu; +#endif QTimer *callTimer; int callElapsedSeconds; @@ -53,6 +61,9 @@ public slots: void call_started(); void call_ended(); void showRemoteFrame(QImage frame); +#ifdef HAVE_VAAPI + void showRemoteHwFrame(AVFramePtr frame); +#endif private slots: void call(); void accept(); -- cgit v1.2.1