Enable HEVC on Realtek SoCs

This commit is contained in:
Cameron Gutman 2021-05-16 20:39:00 -05:00
parent ea98d64184
commit bb4b5838e3

View File

@ -168,6 +168,12 @@ public class MediaCodecHelper {
whitelistedHevcDecoders.add("omx.amlogic");
}
// Realtek SoCs are used inside many Android TV devices and can only do 4K60 with HEVC.
// We'll enable those HEVC decoders by default and see if anything breaks.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
whitelistedHevcDecoders.add("omx.realtek");
}
// These theoretically have good HEVC decoding capabilities (potentially better than
// their AVC decoders), but haven't been tested enough
//whitelistedHevcDecoders.add("omx.rk");