From f509a4b3abb65a7953c5b92db8dc5565385685af Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 13 Dec 2015 13:20:11 -0800 Subject: [PATCH] Don't use HEVC on the Shield Tablet by default (until further performance testing) --- .../com/limelight/binding/video/MediaCodecHelper.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java b/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java index 6617d230..085c6c6f 100644 --- a/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java +++ b/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java @@ -144,6 +144,15 @@ public class MediaCodecHelper { } public static boolean decoderIsWhitelistedForHevc(String decoderName) { + // NVIDIA does partial HEVC acceleration on the Shield Tablet. I don't know + // whether the performance is good enough to use for streaming, but they're + // using the same omx.nvidia.h265.decode name as the Shield TV which has a + // fully accelerated HEVC pipeline. AFAIK, the only K1 device with this + // partially accelerated HEVC decoder is the Shield Tablet, so I'll + // check for it here. + if (Build.DEVICE.equalsIgnoreCase("shieldtablet")) { + return false; + } return isDecoderInList(whitelistedHevcDecoders, decoderName); }