- 03 3月, 2019 15 次提交
-
-
由 Romain Vimont 提交于
Add an option to disable device control: -n/--no-control.
-
由 Romain Vimont 提交于
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.
-
由 Romain Vimont 提交于
Initialize the field no_window in "struct args"
-
由 Romain Vimont 提交于
If --no-window is passed, there is no need to register an event watcher.
-
由 Romain Vimont 提交于
To avoid too many levels of nested blocks, move the event handling logic in a separate function.
-
由 Romain Vimont 提交于
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.)
-
由 Romain Vimont 提交于
The field pts is declared Uint64 in struct frame_meta.
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Disable decoder, screen (display), file_handler and controller when --no-window is requested. <https://github.com/Genymobile/scrcpy/pull/418>
-
由 CapsLock 提交于
This option will allow scrcpy to record the stream without display. Signed-off-by: NRomain Vimont <rom@rom1v.com>
-
由 Romain Vimont 提交于
The decoder initially read from the socket, decoded the video and sent the decoded frames to the screen: +---------+ +----------+ socket ---> | decoder | ---> | screen | +---------+ +----------+ The design was simple, but the decoder had several responsabilities. Then we added the recording feature, so we added a recorder, which reused the packets received from the socket managed by the decoder: +----------+ ---> | screen | +---------+ / +----------+ socket ---> | decoder | ---- +---------+ \ +----------+ ---> | recorder | +----------+ This lack of separation of concerns now have concrete implications: we could not (properly) disable the decoder/display to only record the video. Therefore, split the decoder to extract the stream: +----------+ +----------+ ---> | decoder | ---> | screen | +---------+ / +----------+ +----------+ socket ---> | stream | ---- +---------+ \ +----------+ ---> | recorder | +----------+ This will allow to record the stream without decoding the video.
-
由 Romain Vimont 提交于
This avoids to test explicitly whether options->record_filename is NULL.
-
由 Romain Vimont 提交于
The order of cleanup was not the reverse as the initialization order. As a consequence, recorder_destroy() could theoretically be called even if recorder_init() failed.
-
由 Romain Vimont 提交于
The deprecated avcodec_decode_video2() should always the whole packet, so there is no need to loop (cf doc/examples/demuxing_decoding.c in FFmpeg). This hack changed the packet size and data pointer. This broke recording which used the same packet.
-
由 Romain Vimont 提交于
The purpose of video_buffer_stop() is to interrupt any blocking call, so rename it to video_buffer_interrupt().
-
- 02 3月, 2019 2 次提交
-
-
由 Romain Vimont 提交于
It better describes the purpose of the structure.
-
由 Romain Vimont 提交于
-
- 27 2月, 2019 1 次提交
-
-
由 Romain Vimont 提交于
Use Ctrl+n to expand, Ctrl+Shift+n to collapse. Fixes <https://github.com/Genymobile/scrcpy/issues/392>
-
- 16 2月, 2019 5 次提交
-
-
由 Romain Vimont 提交于
The flag SDL_WINDOW_ALWAYS_ON_TOP is available since SDL 2.0.5. Do not use it if SDL is older, to fix compilation failure. Fixes <https://github.com/Genymobile/scrcpy/issues/432>
-
由 Romain Vimont 提交于
This allows to give a proper name to features requirements.
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
The extradata buffer is owned by libav, so it must be allocated with av_malloc(), not SDL_malloc(). This fixes a crash on Windows during avformat_free_context().
-
- 10 2月, 2019 4 次提交
-
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Windows does not support UTF-8, so pushing a file with non-ASCII characters failed. Convert the UTF-8 command line to a wide characters string and call CreateProcessW(). Fixes <https://github.com/Genymobile/scrcpy/issues/422>
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Log when recording is started and stopped.
-
- 09 2月, 2019 6 次提交
-
-
由 Romain Vimont 提交于
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").
-
由 Romain Vimont 提交于
Some containers force their own time base. For example, matroska overwrite time_base to (AVRational) {1, 1000}. Therefore, rescale our packet timestamps to the output stream time base. Suggested-by: NSteve Lhomme <robux4@ycbcr.xyz>
-
由 Romain Vimont 提交于
When recording, the header must be written with extradata set to the content of the very first packet. Suggested-by: NSteve Lhomme <robux4@ycbcr.xyz> Fixes <https://github.com/Genymobile/scrcpy/issues/351> Fixes <https://github.com/Genymobile/scrcpy/issues/416>
-
由 Romain Vimont 提交于
FFmpeg logs can be useful to understand the cause of issues.
-
由 Romain Vimont 提交于
This was the only log priority missing.
-
由 Romain Vimont 提交于
The buffer associated to the AVIOContext must be freed.
-
- 27 1月, 2019 2 次提交
-
-
由 Romain Vimont 提交于
app: add always_on_top
-
由 Yu-Chen Lin 提交于
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: NYu-Chen Lin <npes87184@gmail.com>
-
- 26 1月, 2019 3 次提交
-
-
由 Romain Vimont 提交于
Add a script to generate the whole release properly. It first builds locally in release mode, then execute tests. Then it builds archives for Windows. Finally, it puts all release files (Windows archives, prebuilt server and checksums) in a separate release directory.
-
由 Romain Vimont 提交于
tests: fix test_control_event_serialize
-
由 Yu-Chen Lin 提交于
commit fefb9816 changed the protocol, fix the related testing case. Signed-off-by: NYu-Chen Lin <npes87184@gmail.com>
-
- 22 1月, 2019 2 次提交
-
-
由 Romain Vimont 提交于
Commit fefb9816 modified mouse events serialization. The server-side parsing was updated to correctly read the position, but the expected size of these events was not updated. As a result, the server might try to parse incomplete events, leading to BufferUnderflowException. Fixes <https://github.com/Genymobile/scrcpy/issues/350#issuecomment-456298816>.
-
由 Romain Vimont 提交于
Comment had not been updated along with the code.
-