- 12 6月, 2019 10 次提交
-
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
This fixes a lint warning.
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Now that scrcpy-server.jar is found in the same directory as the scrcpy executable, using SCRCPY_SERVER_PATH is not particularly useful on Windows anymore
-
由 Romain Vimont 提交于
Issue 9 was about stdout/stderr not printed in Windows console. This is solved since the Windows version is cross-compiled from Linux.
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Include the latest version of adb in Windows releases.
-
由 Romain Vimont 提交于
Revert "Update SDL (2.0.9) for Windows" Several users experienced freezes with SDL 2.0.9. This reverts commit a5787dcc. See: - <https://github.com/Genymobile/scrcpy/issues/425> - <https://discourse.libsdl.org/t/unstable-frame-rate-unexpectedly/25783>
-
由 Romain Vimont 提交于
Include the latest version of FFmpeg in Windows releases.
-
- 11 6月, 2019 6 次提交
-
-
由 Romain Vimont 提交于
In portable builds, scrcpy-server.jar was supposed to be present in the current directory, so in practice it worked only if scrcpy was launched from its own directory. Instead, find the absolute path of the executable and build a suitable path to use scrcpy-server.jar from the same directory.
-
由 Romain Vimont 提交于
There was already utf8_to_wide_char(), used to correctly execute commands on Windows. Add the reverse converter: utf8_from_wide_char(). We will need it to build the scrcpy-server path based on the executable directory.
-
由 Romain Vimont 提交于
The filename is used at several places.
-
由 Romain Vimont 提交于
To create a portable build (with scrcpy-server.jar accessible from the scrcpy directory), replace OVERRIDE_SERVER_PATH by a simple compilation flag: PORTABLE. This paves the way to use more complex rules to determine the path of scrcpy-server.jar in portable builds.
-
由 Romain Vimont 提交于
The full path of scrcpy-server.jar was partially configured from meson.build then concatenated by C code. Instead, directly write the path in C.
-
由 Romain Vimont 提交于
On socket disconnection, on Linux, recv() returns -1 and errno is set. But on Windows, errno is 0. In that case, AVERROR(errno) == 0, leading to the warning: > Invalid return value 0 for stream protocol To avoid the problem, if errno is 0, return AVERROR_EOF. Ref: commit 2876463d
-
- 07 6月, 2019 5 次提交
-
-
由 Romain Vimont 提交于
Just in case.
-
由 Romain Vimont 提交于
They are just tiny wrappers.
-
由 Romain Vimont 提交于
The FPS counter was called only on new frames, so it could not print values regularly, especially when there are very few FPS (when the device surface does not change). To the extreme, it was never able to display 0 fps. Add a separate thread to print framerate every second.
-
由 Romain Vimont 提交于
Add a "timed out" version of cond_wait().
-
由 Romain Vimont 提交于
After commit bfb86ca2, the controller was not stopped and destroyed on quit.
-
- 06 6月, 2019 3 次提交
-
-
由 Romain Vimont 提交于
Replace the compilation flag SKIP_FRAMES by a runtime flag to force rendering of expired frames. By default, the expired frames are skipped.
-
由 Romain Vimont 提交于
Prepare indentation for --render-expired-frames.
-
由 Romain Vimont 提交于
-
- 05 6月, 2019 6 次提交
-
-
由 Romain Vimont 提交于
In addition to the shortcut (Ctrl+o) to turn the device screen off, add a command-line argument to turn it off on start.
-
由 Romain Vimont 提交于
Preparse indentation for --turn-screen-off.
-
由 Romain Vimont 提交于
If --no-control is disabled, there is no need for a controller. It also avoids to power on the device on start if control is disabled.
-
由 Romain Vimont 提交于
Starting the server requires more and more parameters. For clarity, group them in a struct.
-
由 Romain Vimont 提交于
For clarity, store the flag resulting of the command-line options --no-control and --no-display into "control" and "display".
-
由 Romain Vimont 提交于
The flag is used only in the server_start() implementation, there is no need to store it in the structure.
-
- 03 6月, 2019 2 次提交
-
-
由 Romain Vimont 提交于
Only keep "turn device screen off" and POWER button. After we turn the device screen off (with Ctrl+o), turning it back on does not always work, and leaves the device in a weird state, where even the power button may not be sufficient: <https://github.com/Genymobile/scrcpy/issues/175#issuecomment-497946596> This is not an acceptable behavior, so disable the shortcut to turn the physical device screen on. We can use the POWER button (or Ctrl+p) instead.
-
由 Romain Vimont 提交于
This will reduce confusion between "power on" when the device is off and "turn device screen off" while mirroring.
-
- 01 6月, 2019 7 次提交
-
-
由 Romain Vimont 提交于
The condition "event->type == SDL_KEYDOWN" and the variable input_manager->controller are used many times. Replace them by local variables to reduce verbosity.
-
由 Romain Vimont 提交于
So that it also works on Windows.
-
由 Romain Vimont 提交于
Introduced by the previous commit.
-
由 Romain Vimont 提交于
Add two shortcuts: - Ctrl+o to turn the device screen off while mirroring - Ctrl+Shift+o to turn it back on On power on (either via the POWER key or BACK while screen is off), both the device screen and the mirror are turned on. <https://github.com/Genymobile/scrcpy/issues/175>
-
由 Romain Vimont 提交于
For consistency.
-
由 Yu-Chen Lin 提交于
Signed-off-by: NYu-Chen Lin <npes87184@gmail.com> Signed-off-by: NRomain Vimont <rom@rom1v.com>
-
由 Yu-Chen Lin 提交于
Use the same variable name in functions declaration and definition. Signed-off-by: NYu-Chen Lin <npes87184@gmail.com> Signed-off-by: NRomain Vimont <rom@rom1v.com>
-
- 31 5月, 2019 1 次提交
-
-
由 Romain Vimont 提交于
Synchronizing local and device clipboards in invisible. Add INFO logs on success.
-