Enable RTC mode in Google HW AV1 encoder
Bug: b/274179852 Change-Id: Id987fa8b73468532304f856bc97d40238f93b266 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/302180 Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39921}
This commit is contained in:
parent
a736f30a5f
commit
0421294df0
@ -267,6 +267,11 @@ class HardwareVideoEncoder implements VideoEncoder {
|
||||
}
|
||||
}
|
||||
|
||||
if (codecName.equals("c2.google.av1.encoder")) {
|
||||
// Enable RTC mode in AV1 HW encoder.
|
||||
format.setInteger("vendor.google-av1enc.encoding-preset.int32.value", 1);
|
||||
}
|
||||
|
||||
if (isEncodingStatisticsSupported()) {
|
||||
format.setInteger(MediaFormat.KEY_VIDEO_ENCODING_STATISTICS_LEVEL,
|
||||
MediaFormat.VIDEO_ENCODING_STATISTICS_LEVEL_1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user