Romain Vimont
a90ccbdf3b
Add option to change the push target
...
A drag & drop always pushed the file to /sdcard/.
Add an option to customize the target directory.
Fixes <https://github.com/Genymobile/scrcpy/issues/659 >
5 years ago
beango1
8e65c10720
Add option --window-title
...
Add an option to set a custom window title.
Signed-off-by: Romain Vimont <rom@rom1v.com>
5 years ago
Romain Vimont
ebccb9f6cc
Add runtime option to render expired frames
...
Replace the compilation flag SKIP_FRAMES by a runtime flag to force
rendering of expired frames. By default, the expired frames are skipped.
5 years ago
Romain Vimont
8e66b33000
Add option to turn device screen off
...
In addition to the shortcut (Ctrl+o) to turn the device screen off, add
a command-line argument to turn it off on start.
5 years ago
Romain Vimont
c8a6783494
Use positive options names internally
...
For clarity, store the flag resulting of the command-line options
--no-control and --no-display into "control" and "display".
5 years ago
Romain Vimont
dfed1b250e
Replace SDL types by C99 standard types
...
Scrcpy is a C11 project. Use the C99 standard types instead of the
SDL-specific types:
SDL_bool -> bool
SintXX -> intXX_t
UintXX -> uintXX_t
6 years ago
Romain Vimont
8655ba7197
Add option to mirror in read-only
...
Add an option to disable device control: -n/--no-control.
6 years ago
Romain Vimont
163cd36ccc
Rename -n/--no-window to -N/--no-display
...
The description of scrcpy is "Display and control your Android device".
We want an option to disable display, another one to disable control.
For naming consistency, name it --no-display.
Also change the shortname to -N, so that we can use -n for --no-control
later.
6 years ago
Romain Vimont
aeda583a2c
Update code style
...
Limit source code to 80 chars, and declare functions return type and
modifiers on a separate line.
This allows to avoid very long lines, and all function names are
aligned.
(We do this on VLC, and I like it.)
6 years ago
CapsLock
421a1141e2
Add a new option: -n/--no-window
...
This option will allow scrcpy to record the stream without display.
Signed-off-by: Romain Vimont <rom@rom1v.com>
6 years ago
Romain Vimont
0ed2373952
Support recording to MKV
...
Implement recording to Matroska files.
The format to use is determined by the option -F/--record-format if set,
or by the file extension (".mp4" or ".mkv").
6 years ago
Yu-Chen Lin
eca82e09c3
app: add always_on_top
...
It is very convenient when I play mobile game and watch video at the
same time.
Tested on Linux mint Cinnamon as well as Windows 10.
Signed-off-by: Yu-Chen Lin <npes87184@gmail.com>
6 years ago
Romain Vimont
22bf0c19d6
Rename --output-file to --record
...
To record the screen to a local file:
scrcpy --record file.mp4
6 years ago
Ivan Gorinov
d706c5df39
Enable video output file, with pts set by server
6 years ago
Philipp Sandhaus
af9808cf02
Add option to start in fullscreen
...
Signed-off-by: Romain Vimont <rom@rom1v.com>
6 years ago
Romain Vimont
caa9e30004
Add crop feature
...
Add an option to crop the screen on the server. This allows to mirror
only part of the device screen.
6 years ago
Romain Vimont
66ec252893
Add an option to enable "show touches"
...
Add -t/--show-touches option to show physical touches while scrcpy is
running.
See <https://github.com/Genymobile/scrcpy/issues/96 >.
7 years ago
Romain Vimont
b13d25b9f4
Group scrcpy options into a struct
...
The scrcpy() function accepts as many parameters as there are options.
To simplify, group all options in a separate struct.
7 years ago
Romain Vimont
6c578b5caa
Move screen-related code to screen.c
...
The file scrcpy.c contains too many different things in addition to the
main logic, so move the screen code to a separate file, screen.c.
7 years ago
Romain Vimont
6b546a87ab
Add bit-rate command-line option
...
Add a command-line option (-b/--bit-rate) to customize the video
bit-rate.
7 years ago
Romain Vimont
ee93f3f23a
Rename maximum_size to max_size
...
The long option is --max-size, so for consistency, adapt the code
accordingly.
7 years ago
Romain Vimont
89f6a3cfe7
Handle resized video stream
...
Accept a parameter to limit the video size.
For instance, with "-m 960", the great side of the video will be scaled
down to 960 (if necessary), while the other side will be scaled down so
that the aspect ratio is preserved. Both dimensions must be a multiple
of 8, so black bands might be added, and the mouse positions must be
computed accordingly.
7 years ago
Romain Vimont
2c35220618
Rename screen -> scrcpy -> main
...
Rename scrcpy.c to main.c (this file handles the command line parsing),
and screen.c to scrcpy.c (it exposes the entry point scrcpy()).
7 years ago