mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-22 16:26:41 +00:00
Remove specific RFI opt-in for Sabrina since it's supported out of the box in Android 12
This commit is contained in:
@@ -77,12 +77,6 @@ public class MediaCodecHelper {
|
|||||||
refFrameInvalidationHevcPrefixes.add("omx.exynos");
|
refFrameInvalidationHevcPrefixes.add("omx.exynos");
|
||||||
refFrameInvalidationHevcPrefixes.add("c2.exynos");
|
refFrameInvalidationHevcPrefixes.add("c2.exynos");
|
||||||
|
|
||||||
// The Chromecast with Google TV 4K works well with HEVC RFI since we also use the
|
|
||||||
// vendor.low-latency.enable option.
|
|
||||||
if (Build.DEVICE.equalsIgnoreCase("sabrina")) {
|
|
||||||
refFrameInvalidationHevcPrefixes.add("omx.amlogic");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Qualcomm and NVIDIA may be added at runtime
|
// Qualcomm and NVIDIA may be added at runtime
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,6 +177,9 @@ public class MediaCodecHelper {
|
|||||||
// vendor.low-latency.enable. We will still use HEVC if decoderCanMeetPerformancePointWithHevcAndNotAvc()
|
// vendor.low-latency.enable. We will still use HEVC if decoderCanMeetPerformancePointWithHevcAndNotAvc()
|
||||||
// determines it's the only way to meet the performance requirements.
|
// determines it's the only way to meet the performance requirements.
|
||||||
//
|
//
|
||||||
|
// With the Android 12 update, Sabrina now uses HEVC (with RFI) based upon FEATURE_LowLatency
|
||||||
|
// support, which provides equivalent latency to H.264 now.
|
||||||
|
//
|
||||||
// FIXME: Should we do this for all Amlogic S905X SoCs?
|
// FIXME: Should we do this for all Amlogic S905X SoCs?
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && !Build.DEVICE.equalsIgnoreCase("sabrina")) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && !Build.DEVICE.equalsIgnoreCase("sabrina")) {
|
||||||
whitelistedHevcDecoders.add("omx.amlogic");
|
whitelistedHevcDecoders.add("omx.amlogic");
|
||||||
|
|||||||
Reference in New Issue
Block a user