Cameron Gutman
2433ce8d24
Fix crashes on Fire OS 8
2022-11-03 23:17:15 -05:00
Cameron Gutman
99fcd3c669
Improve LAN/WAN detection for IPv6 and cellular connections
2022-11-03 22:19:48 -05:00
Cameron Gutman
0ddd8df272
Use HEVC by default if the decoder supports FEATURE_LowLatency or the media performance class is 12+
2022-10-31 01:05:01 -05:00
TacoTheDank
a96e508ffb
Use try-with-resources
2022-10-31 00:33:09 -05:00
Cameron Gutman
51594e00b8
Revert "Use Rec 2020 colorspace for WCG support even if HDR is off on the host"
...
Rec 2020 conversion causes colors to be blown out in SDR
This reverts commit 6c85f5f8c3 .
2022-10-13 01:18:26 -05:00
Cameron Gutman
6c85f5f8c3
Use Rec 2020 colorspace for WCG support even if HDR is off on the host
2022-10-13 00:52:45 -05:00
Cameron Gutman
d0432de981
Plumb colorspace and color range into MediaCodecDecoderRenderer
2022-10-13 00:51:15 -05:00
Cameron Gutman
2cbc94e51d
Allow a pairing attempt even if the PC is busy
...
Pairing while busy doesn't work with GFE but works with Sunshine
2022-10-12 22:15:41 -05:00
Cameron Gutman
3ea2aa1f74
Enable HEVC RFI on Fire TV and Chromecast devices
2022-10-12 21:50:40 -05:00
Cameron Gutman
1076b516d6
Enable HEVC RFI for decoders that support low latency options
2022-10-12 21:25:48 -05:00
Cameron Gutman
aa6c32968b
Add a special termination message for ML_ERROR_FRAME_CONVERSION
2022-10-04 19:51:49 -05:00
Alexandru-Marian Buza
41cedfa6ec
Fix requestMetaKeyEvent for Samsung devices with android 10+ ( #1134 )
...
Co-authored-by: Alexandru Buza <abuza@iqnox.com >
2022-10-03 22:50:04 -05:00
Cameron Gutman
d46fab33b3
Enable HEVC RFI for Exynos decoders
2022-10-03 22:23:59 -05:00
Cameron Gutman
585dc45595
Enable RFI for HEVC on Qualcomm and Nvidia decoders
2022-10-03 21:33:05 -05:00
Cameron Gutman
9c792d3272
Adjust RendererException text to attempt to parse correctly in Google Play App Vitals
2022-10-03 21:28:37 -05:00
Cameron Gutman
23bc4daf9f
Refactor input event handling in the Game activity
2022-10-03 21:25:43 -05:00
Cameron Gutman
539daf5789
Don't adjust maxBytesPerPicDenom and maxBitsPerMbDenom on newer devices
2022-09-23 21:27:27 -05:00
Cameron Gutman
9c1a618b4a
Fix stuck analog stick when a touch event is cancelled
...
This can happen if a stylus hover event is received while touching an OSC element
2022-09-21 01:11:45 -05:00
Cameron Gutman
ac0e784417
Make StreamView transparent to touch events and handle everything in the background view
...
This is much simpler than trying to play games with touch handling between 2 views
2022-09-21 01:07:49 -05:00
Cameron Gutman
48cab6b203
Allow multi-finger gestures and absolute motion to pass seamlessly between the StreamView and background view
2022-09-21 00:21:43 -05:00
Cameron Gutman
e1c0472069
Properly split touch events between regions outside the StreamView and the OSC
...
This restores the ability to use area outside the StreamView for the virtual trackpad and adds the ability to use OSC and the non-StreamView region for input at the same time.
Fixes #1129
2022-09-20 22:29:54 -05:00
Cameron Gutman
2c498ce707
Throw a RendererException instead of a bare IllegalStateException upon codec recovery failure
2022-09-20 21:43:35 -05:00
Cameron Gutman
bc483edb29
Interrupt codec recovery when stopping the decoder
2022-09-18 18:53:37 -05:00
Cameron Gutman
9762f4c412
Only throw the codec exception on the last configuration attempt
2022-09-18 18:47:01 -05:00
Cameron Gutman
5bfce88fc5
Fix recovery timeout if no output frames are being received
2022-09-18 18:37:33 -05:00
Cameron Gutman
94ef66994d
Trigger the decoder crash dialog if all recovery attempts fail
2022-09-18 18:29:45 -05:00
Cameron Gutman
257c29daca
Improve handling of concurrent recoverable and non-recoverable errors and surface loss
2022-09-18 18:25:29 -05:00
Cameron Gutman
173483eb84
Only catch IllegalStateException or subclasses
2022-09-18 17:42:37 -05:00
Cameron Gutman
06099b2663
Only try to recover from CodecExceptions or IllegalStateExceptions
2022-09-18 00:20:41 -05:00
Cameron Gutman
33c1f0a71c
Fix decoding crash if encoder didn't send VUI parameters
2022-09-18 00:04:29 -05:00
Cameron Gutman
c573d213f8
Allow FFmpeg decoder on Waydroid
2022-09-17 14:51:03 -05:00
Cameron Gutman
c72707aef9
Don't begin codec recovery if stopping
2022-09-17 13:52:22 -05:00
Cameron Gutman
313ef06c86
Only exclude touch events from non-view processing
...
Mouse events that go out of the StreamView area are okay
2022-09-17 13:36:44 -05:00
Cameron Gutman
6b79340c15
Don't handle motion events outside of Views to avoid spurious stream input while using OSC
2022-09-17 13:34:14 -05:00
Cameron Gutman
d9a5b29372
Fix OSC handling of touches outside the StreamView
2022-09-17 13:32:40 -05:00
Cameron Gutman
d2b0e093fc
Reduce power by avoiding resends when OSC state is not changing
2022-09-17 13:07:52 -05:00
Cameron Gutman
945e563912
Switch to a Handler for gamepad mouse emulation
2022-09-17 12:55:15 -05:00
Cameron Gutman
a7efa379eb
Switch to a Handler for OSC retransmission
2022-09-16 18:21:56 -05:00
Cameron Gutman
d04df4ebe5
Fix D-Pad buttons not releasing until all D-Pad input has ceased
2022-09-16 17:41:52 -05:00
Cameron Gutman
2a2c84ef3a
Implement fallbacks for a failed codec restart or reset
2022-09-16 03:48:49 -05:00
Cameron Gutman
bc97db893a
Allow recovery of IllegalStateExceptions for older versions of Android
2022-09-16 03:28:57 -05:00
Cameron Gutman
f216834df7
Limit the number of codec recovery attempts
2022-09-16 03:27:22 -05:00
Cameron Gutman
be25a7d594
Fix a number of bugs in new codec recovery code
2022-09-16 03:19:36 -05:00
Cameron Gutman
10f43e8024
Try to adjust decoder exception to comply with Google Play crash message filtering
2022-09-16 00:32:34 -05:00
Cameron Gutman
bbb3e8d071
Only catch RuntimeExceptions for decoders to avoid eating important exceptions
2022-09-16 00:26:02 -05:00
Cameron Gutman
8656228014
Break out of wait on InterruptedException
2022-09-16 00:09:09 -05:00
Cameron Gutman
03f9ea8435
Use Handlers instead of Timers for one-shot events
2022-09-16 00:08:48 -05:00
Cameron Gutman
9cf27d8fb1
Don't throw exceptions during codec recovery
2022-09-15 02:16:24 -05:00
Cameron Gutman
d1b24ea6af
Consolidate touch tracking timers
2022-09-15 02:05:40 -05:00
Cameron Gutman
b07ffbde29
Consolidate OSC timers
2022-09-15 01:59:29 -05:00