RustDesk
bf862b13f6
Update libs/scrap/build.rs
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-04 09:40:50 +08:00
Jonathan Gilbert
90228b6b04
Switched syntax for the rustc-check-cfg directive emitted by build.rs in the scrap crate to use syntax compatible with Rust toolchain version 1.75. The double-colon syntax requires 1.77 or newer, but the older single-colon syntax works fine on newer versions for this directive.
2025-11-02 09:21:56 -06:00
Jonathan Gilbert
bdd883f900
Added lifetime annotations to methods in common/hwcodec.rs and common/vram.rs.
2025-11-02 01:05:14 -05:00
Jonathan Gilbert
c769bbc8be
Updated build.rs to tell RustC that dxgi, quartz and x11 are expected configurations.
...
Added lifetime annotations to various methods in common/aom.rs and common/vpxcodec.rs.
Updated common/vpx.rs to allow unused_imports in the generated bindings.
Updated dxgi/mag.rs to allow non_snake_case identifiers like "dwFilterMode".
2025-11-01 10:37:31 -05:00
21pages
7c8329c5c6
fix mac hwcodec check ( #13320 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2025-10-28 16:29:42 +08:00
21pages
c9940957f0
fix camera large error log ( #13227 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2025-10-20 13:23:41 +08:00
Nathan Saslavsky
eacb07988d
Add Wayland multi-monitor screen capture functionality ( #12900 )
...
* Add Wayland multi-monitor screen capture functionality
* fix wayland capture issues by reverting to CapturerPtr, the problem was that calling Display::all in get_capturer_for_display was dropping the pipewire capturer and causing the video to freeze.
* If running as AppImage or flatpak, ignore the 'multiple' argument
* Comment out warning log with unclear purpose Comment out warning log with unclear purpose
---------
Co-authored-by: fufesou <13586388+fufesou@users.noreply.github.com >
2025-09-22 21:53:14 +08:00
IwantHappiness
15d471e520
Remove needless macros format! ( #11456 )
2025-09-03 22:17:11 +08:00
fufesou
a22f2108c6
refact: suppress warns on macos ( #12449 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-08-18 15:09:11 +08:00
21pages
69af5f2fa6
update hwcodec ( #12303 )
...
* Test necessary codecs in single thread
* Terminate test process with parent process
Signed-off-by: 21pages <sunboeasy@gmail.com >
2025-07-15 18:49:45 +08:00
fufesou
fd4e0146e1
fix: replace sh with CMD_SH ( #12173 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-06-26 15:54:16 +08:00
fufesou
a5a3352655
fix: linux, nokhwa, camera index ( #12045 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-06-14 13:19:59 +08:00
lichon
05a812247a
fix: use default camera, first element in query result might not be a camera ( #12010 )
2025-06-12 13:35:42 +08:00
fufesou
c626c2414d
feat: take screenshot ( #11591 )
...
* feat: take screenshot
Signed-off-by: fufesou <linlong1266@gmail.com >
* screenshot, vram temp switch capturer
Signed-off-by: fufesou <linlong1266@gmail.com >
* fix: misspelling
Signed-off-by: fufesou <linlong1266@gmail.com >
* screenshot, taking
Signed-off-by: fufesou <linlong1266@gmail.com >
* screenshot, rgba stride
Signed-off-by: fufesou <linlong1266@gmail.com >
* Bumps 1.4.0
Signed-off-by: fufesou <linlong1266@gmail.com >
---------
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-04-30 17:23:35 +08:00
21pages
d1c8b331c5
Option allow-d3d-render and fix ios ci ( #11107 )
...
* option `allow-d3d-render`, default false
Add this option because it fails on some machines
Signed-off-by: 21pages <sunboeasy@gmail.com >
* only add nokhwa to windows and linux dependencies
Signed-off-by: 21pages <sunboeasy@gmail.com >
---------
Signed-off-by: 21pages <sunboeasy@gmail.com >
2025-03-13 09:34:13 +08:00
21pages
f0f999dc27
view camera ( #11040 )
...
* view camera
Signed-off-by: 21pages <sunboeasy@gmail.com >
* `No cameras` prompt if no cameras available, `peerGetSessionsCount` use
connType as parameter
Signed-off-by: 21pages <sunboeasy@gmail.com >
* fix, use video_service_name rather than display_idx as key in qos,etc
Signed-off-by: 21pages <sunboeasy@gmail.com >
---------
Signed-off-by: 21pages <sunboeasy@gmail.com >
Co-authored-by: Adwin White <adwinw01@gmail.com >
Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com >
2025-03-10 21:06:53 +08:00
zuiyu
561bc18f49
Fix unused import with dxgiformat ( #11032 )
2025-03-06 09:49:04 +08:00
fufesou
f08cb0412d
fix: windows, dll, pre-loading attack ( #10608 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-01-26 19:39:38 +08:00
21pages
5fa8c25e65
opt qos ( #10459 )
...
* Adjust bitrate and fps based on TestDelay messages.
* Bitrate is adjusted every 3 seconds, fps is adjusted every second and when receiving test lag.
* Latency optimized at high resolutions. However, when the network is poor, the delay when just connecting or sliding static pages is still obvious.
Signed-off-by: 21pages <sunboeasy@gmail.com >
2025-01-20 17:59:36 +08:00
Xiaobo Liu
8f329ebc1a
scrap: style ( #10445 )
2025-01-07 11:21:43 +08:00
Xiaobo Liu
4a3c11e711
scrap: fixed build warnning ( #10442 )
...
```shell
warning: elided lifetime has a name
--> src/common/mod.rs:192:21
|
187 | pub fn to<'a>(
| -- lifetime `'a` declared here
...
192 | ) -> ResultType<EncodeInput> {
| ^^^^^^^^^^^ this elided lifetime gets resolved as `'a`
|
= note: `#[warn(elided_named_lifetimes)]` on by default
```
2025-01-07 11:14:20 +08:00
21pages
40999c3211
fix ffmpeg videotoolbox wrong log ( #10413 )
...
* Fix ffmpeg videotoolbox wrong log when changing bitrate
* Let qsv support abr, and it's safe for qsv to changing bitrate.
Signed-off-by: 21pages <sunboeasy@gmail.com >
2025-01-02 22:19:30 +08:00
21pages
e163b75407
update hwcodec ( #10304 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-12-17 12:07:34 +08:00
fufesou
3c838e7a92
fix: Android, try sync clipboard on connecting ( #10218 )
...
* fix: Android, try sync clipboard on connecting
Signed-off-by: fufesou <linlong1266@gmail.com >
* Android, clipboard, more clear skip check
Signed-off-by: fufesou <linlong1266@gmail.com >
* comments
Signed-off-by: fufesou <linlong1266@gmail.com >
* comment todo: Android clipboard listener, callback twice
Signed-off-by: fufesou <linlong1266@gmail.com >
* Android, clipboard, remove listner
Signed-off-by: fufesou <linlong1266@gmail.com >
---------
Signed-off-by: fufesou <linlong1266@gmail.com >
2024-12-07 15:12:15 +08:00
21pages
d60b5a6ca0
videotoolbox/mediacodec support changing bitrate dynamically ( #10117 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-30 11:44:51 +08:00
fufesou
d61c99b105
fix: Android 29, crash on restart and reconn ( #10054 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2024-11-25 21:49:09 +08:00
21pages
34b93c6f83
fix aom pts ( #10042 )
...
the old pts/duration is wrong, use timebase 1/1000 like other codecs, not found any differences.
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-25 11:09:17 +08:00
21pages
02b046bdbf
fix hwcodec ram quality change not work ( #10024 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-23 16:36:13 +08:00
21pages
28d38cd71d
avoid invalid recording files and fix removing little recording file ( #10012 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-22 17:19:22 +08:00
KAYUII
608d7d55d5
add env VCPKG_INSTALLED_ROOT ( #9985 )
2024-11-20 19:41:30 +08:00
21pages
c5426b0fbc
Fix hevc decode error "Could not find ref with POC" ( #9960 )
...
1. Dropping frames can cause this error, reset encoder when this
happens.
2. There are some logic error for clear video queue, because video queue
message is not cleared. This need to be fixed.
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-18 23:03:27 +08:00
fufesou
8b710f62c8
feat: android clipboard, multi-formats ( #9950 )
...
* feat: android clipboard, multi-formats
Signed-off-by: fufesou <linlong1266@gmail.com >
* Chore
Signed-off-by: fufesou <linlong1266@gmail.com >
* Remove unused code
Signed-off-by: fufesou <linlong1266@gmail.com >
---------
Signed-off-by: fufesou <linlong1266@gmail.com >
2024-11-18 15:43:41 +08:00
21pages
0707e791e8
opt av1 test data ( #9954 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-18 15:05:23 +08:00
21pages
304e0e465d
if av1 is not slow in test, av1 takes precedence over vp9 ( #9938 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-16 22:31:28 +08:00
21pages
06c7bc137f
linux android use cpal ( #9914 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-14 21:01:41 +08:00
21pages
740c5358ab
rotate ID3D11Texture2D ( #9772 )
...
* Rotate ID3D11Texture2D after duplication with d3d11 video processor.
* If display is not rotated, nothing will be created; If the rotation
fails, it will use the old fallback logic
TODO:
* If changing from Landscape to Landscape(flipped) during capture, the resolution is
not changed, video service fallback to gdi directly.
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-11-08 12:12:10 +08:00
21pages
e8187588c1
auto record outgoing ( #9711 )
...
* Add option auto record outgoing session
* In the same connection, all displays and all windows share the same
recording state.
todo:
Android check external storage permission
Known issue:
* Sciter old issue, stop the process directly without stop record, the record file can't play.
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-10-21 14:34:06 +08:00
fufesou
8c8a643cce
fix: workaround physical display rotation ( #9696 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2024-10-19 10:57:42 +08:00
fufesou
21bcfd173d
fix: wayland, rdp input, mouse, scale ( #9402 )
...
* fix: wayland, rdp input, mouse, scale
Signed-off-by: fufesou <linlong1266@gmail.com >
* fix: rdp input, mouse, scale, check 0
Signed-off-by: fufesou <linlong1266@gmail.com >
---------
Signed-off-by: fufesou <linlong1266@gmail.com >
2024-09-20 11:15:19 +08:00
21pages
40af9dc78b
not run window focus service on wayland ( #9354 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-09-14 09:59:14 +08:00
fufesou
9380f33d7c
Refact/options ( #9318 )
...
* refact options
Signed-off-by: fufesou <linlong1266@gmail.com >
* Remove unused msg
Signed-off-by: fufesou <linlong1266@gmail.com >
* web, toggle virtual display
Signed-off-by: fufesou <linlong1266@gmail.com >
---------
Signed-off-by: fufesou <linlong1266@gmail.com >
2024-09-10 23:54:59 +08:00
21pages
39e713838f
Use fallback codec if first frame fails ( #9242 )
...
* Both encoding and decoding use fallback if first frame fails
* More aggresive max fail counter
* Update hwcodec, add judgement when length of the encoded data is zero, https://github.com/rustdesk/rustdesk-server-pro/discussions/382#discussioncomment-10525997
* Fix serde hwcodec config toml fails when the non-first vec![] is empty, https://github.com/toml-rs/toml-rs/issues/384 , the config file is used for cache, when check process is not finished, the cache is used.
* Allow cm not start for pro user
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-09-03 18:48:17 +08:00
Vasyl Gello
2fd53f9825
Pass JVM to ffmpeg ( #8985 )
...
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com >
2024-08-08 11:53:49 +08:00
21pages
4fec8abad4
update repo to rustdesk-org ( #8905 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-07-31 17:25:10 +08:00
rustdesk
cba8aaa410
tooltip for https://github.com/rustdesk/rustdesk/issues/8600 , and change
...
dialog error to richtext with link support
2024-07-30 14:42:21 +08:00
Vasyl Gello
a72a8906b0
vcpkg deps ( #8764 )
...
* Revert "Revert vcpkg ffmpeg (#8751 )"
This reverts commit 5c16a8302e .
* vcpkg: Reland ffmpeg and try to fix sciter build
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com >
* vcpkg: Detect AVX2 by requiring __m256i
(ubuntu18.04 sciter)
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com >
* Install nasm from debian buster and python3.7
... from ubuntu universe
[Skip CI]
* vcpkg: Add libyuv port with fix for windows
From
abc59feabf
Found by @deep-soft
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com >
* Bump vcpkg baseline to 2024.07.12
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com >
* Fix F-Droid version action
I thought the latest release will be updated by the time hook starts
but it is not the case. Get tag from GITHUB_REF instead if GITHUB_REF_TYPE
is "tag".
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com >
---------
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com >
2024-07-23 23:31:36 +08:00
21pages
5c16a8302e
Revert vcpkg ffmpeg ( #8751 )
...
* Revert "fix linux ffmpeg link, still link ffmpeg in hwcodec (#8747 )"
This reverts commit 48464835f5 .
* Revert "fix linux armv7 ffmpeg arch, linux x64 sciter add hwcodec feature (#8744 )"
This reverts commit b68d7a3054 .
* Revert "arm linux remove cuda-llvm option (#8735 )"
This reverts commit bc672b3367 .
* Reapply "try fix arm64 linux ci and publish error log (#8730 )" (#8732 )
This reverts commit e283d33f28 .
* Revert "try fix arm64 linux ci and publish error log (#8730 )"
This reverts commit a4565bf0da .
* Revert "F-Droid: enable hwcodec for future builds (#8726 )"
This reverts commit 188f85b042 .
* Revert "remove unused vcpkg ffmpeg code (#8725 )"
This reverts commit 72c96f22b6 .
* Revert "install ffmpeg lib with vcpkg (#8724 )"
This reverts commit 0143eaf601 .
* update hwcodec to reverted
Signed-off-by: 21pages <sunboeasy@gmail.com >
---------
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-07-18 22:28:35 +08:00
21pages
48464835f5
fix linux ffmpeg link, still link ffmpeg in hwcodec ( #8747 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-07-18 13:18:21 +08:00
21pages
b68d7a3054
fix linux armv7 ffmpeg arch, linux x64 sciter add hwcodec feature ( #8744 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-07-17 22:37:05 +08:00
21pages
bc672b3367
arm linux remove cuda-llvm option ( #8735 )
...
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-07-17 17:19:21 +08:00