Commit Graph

502 Commits

Author SHA1 Message Date
Cameron Gutman
6d755e3678 Document the -port option 2025-11-30 16:37:41 -06:00
Cameron Gutman
64b5a33668 Fix swapped calloc() arguments 2025-11-28 17:01:04 -06:00
Cameron Gutman
b80cfce2ce Fix build with 64-bit time on 32-bit platforms 2025-11-28 16:51:18 -06:00
Cameron Gutman
a6bf7154a7 Reduce MAX_FRAMES for RK backend
See b1d111b5f7 (r146373202)
2024-09-08 00:32:30 -05:00
Mingjie Shen
274d3db34d fix unbounded write of sprintf
Buffer write operations that do not control the length of data written
may overflow. Fix by replacing sprintf() with snprintf().
2024-03-25 00:11:49 -05:00
Cameron Gutman
014af67397 Fix build warnings 2024-02-19 22:01:31 -06:00
Cameron Gutman
bac5360494 Provide better errors when RK renderer fails 2024-02-19 20:56:55 -06:00
Cameron Gutman
0e12282311 Remove a bunch of useless asserts 2024-02-19 20:49:25 -06:00
Cameron Gutman
883498d642 Replace SDL key handling with Moonlight Qt code
The existing code had a bunch of incorrectly mapped keys and was using
keysym instead of scancode which causes issues with non-US keyboards.
2024-02-19 16:16:02 -06:00
Cameron Gutman
454f67b0ed Move CPU detection code into a separate file 2024-02-19 15:56:49 -06:00
Cameron Gutman
2f03600bae Ignore CRCs in SDL mappings 2024-02-19 15:45:17 -06:00
Cameron Gutman
fc904d2dac Treat devices as gamepads if they have a hat instead of an analog stick
Fixes #880
2024-02-18 14:56:57 -06:00
Cameron Gutman
d6c9650a32 Add rotation support for Rockchip
Fixes #878
2024-02-18 14:48:13 -06:00
Cameron Gutman
a9d6f17d5e Replace ioctl() retry loops with drmIoctl() 2024-02-18 14:30:59 -06:00
Cameron Gutman
8125d2194b Fix __builtin_cpu_supports(aes) on GCC 9 and earlier 2024-02-17 13:23:06 -06:00
Cameron Gutman
9255f774f2 Add fast AES detection for RISC-V using hwprobe() syscall 2024-01-23 02:46:05 -06:00
amazingfate
5bd2799209 Support cursor plane on Rockchip platforms 2024-01-16 00:49:16 -06:00
Cameron Gutman
0712e05aab Opt in to video encryption on CPUs with good AES perf 2024-01-15 17:35:59 -06:00
armin-25689
810ef140cb style: make the code more prescriptive 2024-01-01 12:41:51 -06:00
armin-25689
a610eddd97 build: change <endian.h> header file and __s32 type for FreeBSD 2024-01-01 12:41:51 -06:00
armin-25689
3840b1409e feat: add oss audio callback for FreeBSD
OSS is the native sound system of the FreeBSD.It will be used on the x11_vaapi platform.It was added to reduce moonlight's dependency on FreeBSD.
2024-01-01 12:41:51 -06:00
Cameron Gutman
dc03235a62 Fix several build warnings 2023-10-29 19:56:18 +00:00
Cameron Gutman
19442743a6 Fix busy looping forever after an evdev device goes away 2023-09-01 18:07:25 -05:00
Cameron Gutman
74714e6fb1 Cleanup udev code a bit 2023-09-01 18:06:42 -05:00
Cameron Gutman
b1d111b5f7 Only use atomic API for HDR streams on RK backend 2023-08-31 21:32:12 -05:00
Cameron Gutman
eb46891f4c Add AV1 support for the AML backend 2023-08-31 19:39:53 -05:00
Cameron Gutman
c883b6786f Allow modesets to handle SDR/HDR transition 2023-08-31 18:51:32 -05:00
Cameron Gutman
861cdbc014 Set Colorspace connector property in RK backend 2023-08-31 18:15:25 -05:00
Cameron Gutman
41fddcf5ef Fix error check 2023-08-31 17:55:50 -05:00
Cameron Gutman
d1db1d5231 Add error handling for some RK init failures 2023-08-31 17:53:38 -05:00
Cameron Gutman
8ef8891969 Add AV1 support to Rockchip backend 2023-08-31 17:52:40 -05:00
Cameron Gutman
642b498aee Fix supportedVideoFormats value for HEVC/AV1 2023-08-31 17:51:51 -05:00
Cameron Gutman
68234081f8 Implement touch events for SDL backend 2023-08-30 00:03:49 -05:00
Cameron Gutman
3904c82ee9 Fix build with old SDL versions 2023-08-30 00:02:09 -05:00
Cameron Gutman
bf14d37cd5 Fix codec autoselection 2023-08-29 22:43:00 -05:00
Cameron Gutman
b1b3e274b3 Fix AVCodecContext leak 2023-08-29 22:37:18 -05:00
Cameron Gutman
93f5dc6cae Send controller arrival from SDL backend 2023-08-29 22:31:00 -05:00
Cameron Gutman
e15466e909 Send controller arrival from evdev backend 2023-08-29 21:45:55 -05:00
Cameron Gutman
859965a5a6 Support new controller features for SDL backend 2023-08-29 21:19:36 -05:00
Cameron Gutman
0deeb94655 Add support for extended Sunshine button flags 2023-08-29 20:47:31 -05:00
Cameron Gutman
c158833258 Try all decoders not just the first one that was compiled in 2023-08-29 20:47:09 -05:00
Cameron Gutman
ab53f149f2 Update moonlight-common-c with Sunshine extensions 2023-08-29 20:46:35 -05:00
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