Revert "Avoid Amlogic HEVC decoders until the latency issue is understood"

This reverts commit 3600e704c48e58cf82cb81207fff89b6dbdd2f99.
This commit is contained in:
Cameron Gutman 2021-04-19 23:08:20 -05:00
parent 3600e704c4
commit 823593ddae

View File

@ -165,12 +165,7 @@ public class MediaCodecHelper {
// since GFE added support for maxNumReferenceFrames, we'll just enable all Amlogic SoCs
// running Android 9 or later. HEVC is much lower latency than H.264 on Sabrina (S905X2).
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
// This broke at some point and now latency is like 10 frames and completely unplayable.
//whitelistedHevcDecoders.add("omx.amlogic");
// It looks like the OMX.amlogic.hevc.decoder.awesome2 in the ADT-3/Google TV Chromecast
// doesn't suffer from the latency problem that the ADT-2 has with OMX.amlogic.hevc.decoder.awesome
whitelistedHevcDecoders.add("OMX.amlogic.hevc.decoder.awesome2");
whitelistedHevcDecoders.add("omx.amlogic");
}
// These theoretically have good HEVC decoding capabilities (potentially better than