Commit Graph
100 Commits
Author SHA1 Message Date
Cameron Gutman 0169cedb27 Allow up to 16 gamepads with Sunshine hosts 2023-06-30 20:55:20 -05:00
Cameron Gutman 5bb47ce8b6 Update automatic bitrate logic to match Qt client 2023-03-12 16:23:33 -05:00
Cameron Gutman 0d0728f3c4 Set HDR metadata using legacy DRM API 2023-03-12 16:11:23 -05:00
Cameron Gutman a585072ff8 Just log if atomic commit fails 2023-03-12 16:04:12 -05:00
Cameron Gutman dc786e3033 Don't assert if the previous commit is still in progress 2023-03-12 14:50:05 -05:00
Cameron Gutman dede55c7f9 Allow modesets for HDR entry/exit 2023-03-12 14:46:19 -05:00
Cameron Gutman a328a53d59 Fix handling of 10-bit YUV buffers on newer RK devices 2023-03-12 14:20:32 -05:00
Cameron Gutman 6ea4a768e4 Support both NA12 and NV15 with runtime selection 2023-03-12 13:53:19 -05:00
Cameron Gutman 91022ea3bb Add HDR metadata struct for old libdrm headers 2023-03-12 13:44:30 -05:00
Cameron Gutman 6310edb0bd Set HDR metadata and HDMI ALLM for RK backend 2023-03-12 13:16:25 -05:00
Cameron Gutman c779c1970d Change RK backend to use DRM atomic API 2023-03-12 12:58:51 -05:00
Cameron Gutman 1caf24beab Only use HEVC by default for accelerated X11 platforms 2023-03-06 21:43:50 -06:00
Cameron Gutman f486c8e356 Only prefer SDL over unaccelerated X11 2023-03-06 21:43:02 -06:00
Cameron Gutman 5edf4d3dc7 Print FFmpeg decoder name 2023-03-06 21:26:18 -06:00
Cameron Gutman 0b80cc197a Try various other non-hwaccel FFmpeg decoders 2023-03-06 21:24:49 -06:00
Cameron Gutman 21eb932e52 Prefer SDL over X11 and enable HEVC for X11/SDL 2023-03-06 21:16:35 -06:00
Cameron Gutman db52ac901f Update SDL_GameControllerDB 2023-03-05 23:53:46 -06:00
Cameron Gutman 2e0a014496 Update moonlight-common-c 2023-03-05 23:49:05 -06:00
Cameron Gutman 6ab37d0036 Accept both primary and overlay planes on Rockchip platforms
Fixes #861
2023-03-05 23:48:10 -06:00
Cameron Gutman a9f8a77b66 Use upstreamed fourcc code for 10-bit NV12 on Rockchip 2023-03-05 23:46:34 -06:00
Cameron Gutman a8a4e8908e Fix copy-pasta 2023-03-04 12:41:08 -06:00
Cameron Gutman b8442bfa95 Remove GFE-specific references from readme 2023-03-04 12:38:54 -06:00
Cameron Gutman 4c58ac9f39 Update SDL_GameControllerDB 2023-02-21 23:46:57 -06:00
Cameron Gutman 8384a243b2 Modernize HTTPS launch/resume for Sunshine 2023-02-21 23:46:31 -06:00
Cameron Gutman 32ebb00292 Add horizontal scrolling support with Sunshine 2023-02-21 23:31:34 -06:00
Cameron Gutman 00c28f53d8 Further bugfixes and improvements for AML decoder 2022-12-04 14:49:35 -06:00
Cameron Gutman e7c611bb1e Update SDL_GameControllerDB 2022-11-29 19:21:40 -06:00
Cameron Gutman 62007b912e Fix ensure_buf_size() usage in RK backend 2022-11-20 20:53:56 -06:00
Cameron Gutman 1feeab9c71 Fix more warnings 2022-11-20 20:41:21 -06:00
Cameron Gutman c985b9ea0d Fix unchecked return value in aml 2022-11-20 19:56:04 -06:00
Cameron Gutman 66bc1b2904 Remove debug code in h264bitstream 2022-11-20 19:53:30 -06:00
Cameron Gutman 32e87994cd Consolidate and improve decode buffer handling 2022-11-20 19:48:36 -06:00
Cameron Gutman 098f53cd0b Fix several build warnings and minor bugs 2022-11-20 19:34:19 -06:00
Cameron Gutman 56f84ab662 Update moonlight-common-c with audio crash fix 2022-11-09 00:10:47 -06:00
Cameron Gutman c3325a8887 Don't print error if zero samples are decoded 2022-11-09 00:10:03 -06:00
Cameron Gutman f16dc469af Make blank_fb() into a more generic write_bool() function 2022-11-08 21:45:27 -06:00
Cameron Gutman b2192eda25 Spawn a display thread if amlvideo is in the pipeline 2022-11-08 21:14:21 -06:00
Cameron Gutman b26d747e95 Parse HDR option from moonlight.conf 2022-11-08 19:42:30 -06:00
Cameron Gutman c2f21b955d Implement foundation for HDR support
Likely not functional for any decoder yet
2022-11-08 19:40:03 -06:00
Cameron Gutman 28ace51874 Add missing errno.h 2022-11-01 01:42:46 -05:00
Cameron Gutman a9302d02f5 Fix handling of partial writes and EAGAIN in Amlogic decoder
Fixes spurious codec resets due to EAGAIN errors at 4K during complex scenes.
2022-11-01 00:35:25 -05:00
Cameron Gutman 30b563a2fc Tune ALSA parameters to avoid underruns
Fixes frequent underruns on Vero 4K
2022-11-01 00:11:08 -05:00
Cameron Gutman cb4b5d55b5 Improve ALSA underrun error recovery
Fixes lack of audio on Vero 4K
2022-10-31 22:19:34 -05:00
Cameron Gutman 58958ca32a Update moonlight-common-c with improved loss recovery 2022-10-31 00:04:26 -05:00
Cameron Gutman f021439d1b 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:28:30 -05:00
Cameron Gutman 13390594f5 Update SDL_GameControllerDB 2022-10-05 00:04:28 -05:00
Cameron Gutman 7ab48fb6d4 Use RFI for HEVC only
It is unstable on H.264 streams
2022-10-05 04:54:54 +00:00
Cameron Gutman 254f41686b Update moonlight-common-c with GFE 3.26 and HEVC RFI fixes 2022-10-05 04:53:01 +00:00
Cameron Gutman 758dc68958 Version 2.5.3 2022-09-23 22:59:19 -05:00
Cameron Gutman 0a9cadb729 Remove unused variable 2022-09-23 22:52:53 -05:00
Cameron Gutman 0325a3b88c Add support for custom ports with Sunshine 2022-09-23 22:48:43 -05:00
Cameron Gutman 3f00f25a39 Store port information in SERVER_DATA 2022-09-23 22:12:03 -05:00
Cameron Gutman 3859949b0f Fix amcodec detection on OSMC 2022-09-23 21:44:22 -05:00
Cameron Gutman 42980d09ee Remove semicolon from MIN_FRAME_BUFFER_COUNT definition 2022-09-23 21:31:52 -05:00
Cameron Gutman 60c4b514af Fix some grammatical errors 2022-09-23 21:30:44 -05:00
Cameron Gutman 9de64d25b9 Update SDL_GameControllerDB 2022-09-23 21:06:48 -05:00
Cameron Gutman 20a02acb07 Fix decoding errors on some devices when streaming from GFE 3.26 2022-09-22 23:30:21 -05:00
Cameron Gutman b7cf7a130b Fix mishandling of IDR frames with a SEI or AUD NAL 2022-09-12 00:02:50 -05:00
Cameron Gutman 1b95f027a2 Fix handling of 3 byte Annex B start sequences 2022-09-05 22:53:25 +00:00
Cameron Gutman 4ebd3fb8ba Update SDL_GameControllerDB 2022-08-10 19:33:36 -05:00
Cameron Gutman 543dc087fc Increase decode buffer size to match Pi/MMAL decoders 2022-06-26 14:22:54 -05:00
Cameron Gutman 5fe7b36b40 Reduce use of magic numbers 2022-04-21 23:31:04 -05:00
Cameron Gutman d74cc63038 Fix stack buffer overflow in pairing process 2022-04-21 23:06:31 -05:00
Cameron Gutman 039040e247 Replace usage of functions deprecated in OpenSSL 3.0 2022-04-21 23:04:23 -05:00
Cameron Gutman 22f75b74f9 Fix const warnings with FFmpeg 5.0 2022-04-21 22:13:21 -05:00
Cameron Gutman 6c215e47bf Update SDL_GameControllerDB 2022-03-15 23:19:54 -05:00
Cameron Gutman 44623c4a5e Update moonlight-common-c 2022-03-15 23:19:16 -05:00
Cameron Gutman f871b663b1 Add absolute mouse mode support when ungrabbed 2022-01-09 21:09:48 -06:00
Cameron Gutman 23e6854a84 Switch ungrab key combo to Ctrl+Alt+Shift+Z like Moonlight Qt 2022-01-09 19:57:52 -06:00
Cameron Gutman fe5dd11893 Add high resolution scrolling with SDL 2.0.18+ 2022-01-09 19:54:25 -06:00
Cameron Gutman fbf6a2e2f7 Use new rumble API on SDL 2.0.9+ 2022-01-09 19:50:48 -06:00
Cameron Gutman 5761f533ab Grab mouse only once streaming has started 2022-01-09 19:41:56 -06:00
Cameron Gutman bbdd7e5b24 Implement controller hotplugging for SDL 2022-01-09 19:41:35 -06:00
Cameron Gutman 634a0eee15 Fix finding libraries via pkg-config on Buster 2021-12-28 18:50:41 -06:00
Cameron Gutman 18fd1637a6 Prefer pkg-config for finding MMAL libraries 2021-12-28 18:07:16 -06:00
Cameron Gutman 807565de8b Version 2.5.2 2021-12-20 00:24:48 +00:00
Cameron Gutman 1d32f894f7 Update SDL_GameControllerDB 2021-12-19 16:24:01 -06:00
Cameron Gutman 89030f0701 Fix Raspbian CI build 2021-12-19 16:21:58 -06:00
Cameron Gutman ba8a23725d Fix build on Bullseye 2021-12-19 16:11:00 -06:00
Cameron Gutman 81322a2b91 Remove redundant match expression 2021-09-18 09:25:56 -05:00
Cameron Gutman 76b0de3566 Triggers should be unsigned types 2021-09-16 01:28:09 -05:00
Cameron Gutman bf7149e75d Fix type of halfaxis mapping values 2021-09-16 01:19:08 -05:00
Cameron Gutman 4164dc512f Version 2.5.1 2021-08-08 12:08:08 -05:00
Cameron Gutman 81a49e4564 Add parameter to disable gamepad mouse emulation 2021-08-08 12:03:56 -05:00
Cameron Gutman 3611f1dd89 Fix null termination issue if /proc/cpuinfo was over 4KB 2021-08-08 11:47:03 -05:00
Cameron Gutman 4b41692fd8 Fix handling of buttons outside the normal joystick range
See https://github.com/libsdl-org/SDL/commit/aa03b9d7afedefddda4e7f1575d87865ee5f3d93

Fixes #788
Fixes #696
Fixes #675
Fixes #693
Fixes #642
2021-08-08 11:26:07 -05:00
Cameron Gutman d45567b5ee Revert "Fix pressing unmapped buttons causing unexpected inputs"
Instead, we should not exclude certain buttons from mappings.

This reverts commit 21b6af3493.
2021-08-08 11:16:57 -05:00
Cameron Gutman 21b6af3493 Fix pressing unmapped buttons causing unexpected inputs 2021-08-08 11:07:13 -05:00
Cameron Gutman 6f15b257d7 Add DRM_FORMAT_NV12_10 definition for RK backend
Fixes #742
2021-08-08 10:05:43 -05:00
Cameron Gutman 3b51b40178 Update SDL_GameControllerDB 2021-08-08 09:34:56 -05:00
Cameron Gutman 7ff0bcd8fd Fix initialization of mapping structs 2021-08-07 18:08:55 -05:00
Cameron Gutman 3a63466fe2 Version 2.5.0 2021-07-25 19:15:53 -05:00
Cameron Gutman cd2f1bb012 Add a verbose print when a device is ignored as an accelerometer 2021-07-25 19:13:40 -05:00
Cameron Gutman 663e4b4b7a Avoid mapping PS4 trackpad as a gamepad 2021-07-25 19:10:01 -05:00
Cameron Gutman 836e61b7c3 Remove gamepad from host when removed from client 2021-07-25 18:54:39 -05:00
Cameron Gutman 12efeda8e1 Ignore accelerometers and improve debugging of player numbers 2021-07-25 18:49:11 -05:00
Cameron Gutman 4dd6ab97df Fix over-counting of evdev gamepads on stream start 2021-07-25 18:33:52 -05:00
Cameron Gutman 45c1a504e9 Avoid stuck keys on disconnect and remove useless sleep 2021-07-25 18:03:07 -05:00
Cameron Gutman 781afc7c66 Fix surround channel mappings on PulseAudio 2021-07-25 17:51:22 -05:00
Cameron Gutman 0698e8b43f Fix PulseAudio when manually specifying the audio device 2021-07-25 17:30:46 -05:00