diff options
| author | Anton <anton@picapica.im> | 2026-11-29 23:38:25 +0400 |
|---|---|---|
| committer | Anton <anton@picapica.im> | 2026-11-29 23:38:25 +0400 |
| commit | 56863d74399c8d7354a00bc8ddc87b924ef870ab (patch) | |
| tree | bd9e44c438f974f80aa6cfef59fe842d3e128ee7 /pica-client/callsettings.h | |
| parent | d6ce3a2226bda81cce96c61f0a73fb1516adbd0b (diff) | |
| download | pica-pica-call_quality_presets.tar.gz pica-pica-call_quality_presets.zip | |
pica-client: new presets tab, call quality presetscall_quality_presets
Diffstat (limited to 'pica-client/callsettings.h')
| -rw-r--r-- | pica-client/callsettings.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pica-client/callsettings.h b/pica-client/callsettings.h index fab19c3..38f8681 100644 --- a/pica-client/callsettings.h +++ b/pica-client/callsettings.h @@ -102,8 +102,34 @@ enum IncomingVideoLimit extern const QSize kIncomingVideoLimitSizes[]; extern const int kIncomingVideoLimitSizeCount; +// "Call quality" on the "Presets" tab: what decides the codecs, bitrates, +// picture size, frame rate and hardware encoder a call is made with. All but +// CallQualityCustom work these out when the call starts, from what the camera +// offers, what the peer asked for in its 0x70/0x71 and which hardware encoders +// turn out to work on this machine - see callquality.h. +enum CallQualityPreset +{ + // The largest picture and frame rate there is, at the bitrate it needs. + CallQualityMax, + // Starts in the middle and follows the peer's 0x79 reception reports: + // bitrate and picture size go down on loss or a growing delay, and back + // up to what CallQualityMax would use while the connection keeps up. + CallQualityAdaptive, + // Small picture, low frame rate and bitrate, the hardware encoder that + // costs the CPU least. + CallQualityEconomy, + // The codec, bitrate, picture size, frame rate and acceleration settings + // of the "Call Settings" and "Video Devices" tabs, as they are. + CallQualityCustom +}; + struct CallSettings { + // Everything below except the incoming video limit and the decoding + // acceleration only applies as it stands to CallQualityCustom; the other + // presets put values of their own in place of it at the start of a call. + CallQualityPreset qualityPreset; + // FFmpeg codec names, e.g. "h264" and "opus". QString videoCodec; QString audioCodec; |
