mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-22 16:26:41 +00:00
Catch potential older NVIDIA devices that use partial HEVC acceleration
This commit is contained in:
@@ -146,8 +146,10 @@ public class MediaCodecHelper {
|
|||||||
// 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. Since there are 2 models of Shield Tablet (possibly
|
||||||
if (!Build.DEVICE.equalsIgnoreCase("shieldtablet")) {
|
// more with LTE), I will also exclude pre-Oreo OSes since only Shield ATV
|
||||||
|
// got an Oreo update.
|
||||||
|
if (!Build.DEVICE.equalsIgnoreCase("shieldtablet") && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
whitelistedHevcDecoders.add("omx.nvidia");
|
whitelistedHevcDecoders.add("omx.nvidia");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user