Use verified Android encoder levels and expose negotiated frame rate
This commit is contained in:
1 parent
3037c5fa87
commit
521dce5528
3 files changed
+12
-6
No files matched your search
@@ -370,7 +370,8 @@ 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 kbit/s").arg(format.codec == 2 ? "H.265" : "H.264").arg(width).arg(height).arg(encoder.bitrate() / 1000));
|
||||
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));
|
||||
}
|
||||
if (state.configured_generation != format.generation) { idle(); continue; }
|
||||
if (state.key_serial != keySerial) { keySerial = state.key_serial; forceKey = true; }
|
||||
@@ -393,8 +394,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 kbit/s").arg(format.codec == 2 ? "H.265" : "H.264")
|
||||
.arg(format.width).arg(format.height).arg(encoder.bitrate() / 1000));
|
||||
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));
|
||||
}
|
||||
if (!encoded) {
|
||||
m->report(encoder.error());
|
||||
|
||||
Reference in new issue
Block a user