summaryrefslogtreecommitdiffstats
path: root/pica-client/audiovideocallcontroller.h
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-10-03 22:12:26 +0400
committerAnton <anton@picapica.im>2026-10-03 22:12:26 +0400
commite7a468d008de86ddfdf62c7d4cb2888678402370 (patch)
tree80804d596b02f557eb9dd3a3cf02edb7ad32a329 /pica-client/audiovideocallcontroller.h
parent835b124bd871afecd88c1e5e9105e3af4d4c5b27 (diff)
downloadpica-pica-e7a468d008de86ddfdf62c7d4cb2888678402370.tar.gz
pica-pica-e7a468d008de86ddfdf62c7d4cb2888678402370.zip
pica-client: fix capture at requested fps
Diffstat (limited to 'pica-client/audiovideocallcontroller.h')
-rw-r--r--pica-client/audiovideocallcontroller.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pica-client/audiovideocallcontroller.h b/pica-client/audiovideocallcontroller.h
index 079ebc8..59d130b 100644
--- a/pica-client/audiovideocallcontroller.h
+++ b/pica-client/audiovideocallcontroller.h
@@ -95,6 +95,11 @@ private:
// Reassembly of incoming 0x77 fragments into whole encoded frames.
VideoFrameAssembler m_videoAssembler;
+ // The capture frame rate this call asked the camera for, so that
+ // video_capture_started() can say when the camera delivered less. Zero
+ // before the video pipeline has been started.
+ int m_requestedFrameRate;
+
void playEarpieceTone(void (TonePlayer::*tone)());
void playRingTone();
void stopTones();
@@ -117,7 +122,7 @@ private slots:
void capture_clipping(double pinnedPercent, double peakDb);
void incoming_audio_packet(QByteArray peer_id, quint16 seq_num, quint32 timestamp, QByteArray data);
- void video_capture_started(QString codec, int width, int height);
+ void video_capture_started(QString codec, int width, int height, double frameRate);
void send_video_packet(QByteArray data, bool is_last_fragment);
void incoming_video_params(QByteArray peer_id, QString codec, quint16 width, quint16 height);
void incoming_video_packet(QByteArray peer_id, quint16 seq_num, quint32 timestamp, QByteArray data);