Pin call actions to the bottom and add a separate diagnostics toggle
This commit is contained in:
1 parent
264a13705f
commit
b82e9cc98e
3 files changed
+45
-16
No files matched your search
@@ -404,8 +404,9 @@ void CallVideoEngine::transmit() {
|
||||
}
|
||||
format = next; appliedRevision = revision; forceKey = true; request = 0;
|
||||
if (call_video_port_format(m->id, &format, encoder.bitrate()) < 0) break;
|
||||
m->report(QString("%1 · %2×%3 · %4 fps · %5 kbit/s").arg(format.codec == 2 ? "H.265" : "H.264")
|
||||
.arg(width).arg(height).arg(format.fps).arg(encoder.bitrate() / 1000));
|
||||
DEBUG_INFO(DEBUG_CATEGORY_CALL, "call video format applied codec=%u size=%ux%u fps=%u bitrate_bps=%u",
|
||||
format.codec, format.width, format.height, format.fps, encoder.bitrate());
|
||||
m->report({});
|
||||
}
|
||||
if (state.configured_generation != format.generation) { idle(); continue; }
|
||||
if (state.key_serial != keySerial) { keySerial = state.key_serial; forceKey = true; }
|
||||
@@ -428,8 +429,8 @@ void CallVideoEngine::transmit() {
|
||||
encodeMax = std::max(encodeMax, nowUs() - encodeStarted);
|
||||
if (completion.request) {
|
||||
call_video_port_applied(m->id, completion.generation, completion.request, completion.bitrate);
|
||||
m->report(QString("%1 · %2×%3 · %4 fps · %5 kbit/s").arg(format.codec == 2 ? "H.265" : "H.264")
|
||||
.arg(format.width).arg(format.height).arg(format.fps).arg(encoder.bitrate() / 1000));
|
||||
DEBUG_DEBUG(DEBUG_CATEGORY_CALL, "call video bitrate applied generation=%u request=%llu bitrate_bps=%u",
|
||||
completion.generation, (unsigned long long)completion.request, encoder.bitrate());
|
||||
}
|
||||
if (!encoded) {
|
||||
m->report(encoder.error());
|
||||
|
||||
Reference in new issue
Block a user