mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Disable HEVC on NVIDIA hardware until the 16 frame buffering problem can be solved
This commit is contained in:
parent
d6a8db97d8
commit
0e0352fdd6
@ -79,7 +79,7 @@ public class MediaCodecHelper {
|
|||||||
|
|
||||||
whitelistedHevcDecoders = new LinkedList<>();
|
whitelistedHevcDecoders = new LinkedList<>();
|
||||||
whitelistedHevcDecoders.add("omx.exynos");
|
whitelistedHevcDecoders.add("omx.exynos");
|
||||||
whitelistedHevcDecoders.add("omx.nvidia");
|
// whitelistedHevcDecoders.add("omx.nvidia"); TODO: This needs a similar fixup to the Tegra 3
|
||||||
whitelistedHevcDecoders.add("omx.mtk");
|
whitelistedHevcDecoders.add("omx.mtk");
|
||||||
whitelistedHevcDecoders.add("omx.amlogic");
|
whitelistedHevcDecoders.add("omx.amlogic");
|
||||||
whitelistedHevcDecoders.add("omx.rk");
|
whitelistedHevcDecoders.add("omx.rk");
|
||||||
@ -169,15 +169,19 @@ public class MediaCodecHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean decoderIsWhitelistedForHevc(String decoderName) {
|
public static boolean decoderIsWhitelistedForHevc(String decoderName) {
|
||||||
|
// TODO: Shield Tablet K1/LTE?
|
||||||
|
//
|
||||||
// NVIDIA does partial HEVC acceleration on the Shield Tablet. I don't know
|
// 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
|
// 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
|
// 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
|
// fully accelerated HEVC pipeline. AFAIK, the only K1 device with this
|
||||||
// partially accelerated HEVC decoder is the Shield Tablet, so I'll
|
// partially accelerated HEVC decoder is the Shield Tablet, so I'll
|
||||||
// check for it here.
|
// check for it here.
|
||||||
if (Build.DEVICE.equalsIgnoreCase("shieldtablet")) {
|
//
|
||||||
|
// TODO: Temporarily disabled with NVIDIA HEVC support
|
||||||
|
/*if (Build.DEVICE.equalsIgnoreCase("shieldtablet")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// Google didn't have official support for HEVC (or more importantly, a CTS test) until
|
// Google didn't have official support for HEVC (or more importantly, a CTS test) until
|
||||||
// Lollipop. I've seen some MediaTek devices on 4.4 crash when attempting to use HEVC,
|
// Lollipop. I've seen some MediaTek devices on 4.4 crash when attempting to use HEVC,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user