587 Commits (5dcfc0ebab563e7bfdcf4d28025fa1996a79c214)

Author SHA1 Message Date
Romain Vimont e2ac996183 Use Cmd instead of Ctrl on macOS when possible
6 years ago
Romain Vimont 5e4ccfd832 Use generic FIFO queue for recording
6 years ago
Romain Vimont 53b6ee2cf4 Add generic intrusive FIFO queue
6 years ago
Romain Vimont 26213f1031 Fix cbuf documentation
6 years ago
Romain Vimont 96b5067cbf Remove unnecessary backslash in cbuf
6 years ago
Romain Vimont 6abb4902c6 Log recording failure
6 years ago
Romain Vimont d4ed8b6f26 Log scrcpy version and URL on start
6 years ago
Romain Vimont 35d9185f6c Record asynchronously
6 years ago
Romain Vimont 63af7fbafe Reduce latency by 1 frame
6 years ago
Romain Vimont a90ccbdf3b Add option to change the push target
6 years ago
Romain Vimont ca970e8aa6 Merge branch 'master' into dev
6 years ago
Romain Vimont 3c55d0c69b Fix double-free on error
7 years ago
Romain Vimont 4961256123 Close decoder on stream ended
7 years ago
beango1 8e65c10720 Add option --window-title
7 years ago
Romain Vimont 056e47e752 Replace "cannot" by "could not"
7 years ago
Romain Vimont 91ecb4f218 Close socket on error
7 years ago
Romain Vimont bfb3f0842f Prevent to turn screen off if no control
7 years ago
Romain Vimont b91ecf5225 Fix --serial help
7 years ago
zzndb bcd0a876f7 Fix a spell mistake
7 years ago
Romain Vimont 2755bfc255 Improve portable builds
7 years ago
Romain Vimont 3b17ff7c86 Add functions to convert wide char to UTF-8
7 years ago
Romain Vimont 4eb6b26c93 Extract "scrcpy-server.jar" string
7 years ago
Romain Vimont eb34098add Simplify portable build configuration
7 years ago
Romain Vimont b777760bca Simplify scrcpy-server path configuration
7 years ago
Romain Vimont 72bdfbc7a6 Never return 0 for stream protocol
7 years ago
Romain Vimont 5d11339259 Inline lock_util functions
7 years ago
Romain Vimont e2a272bf99 Improve framerate counting
7 years ago
Romain Vimont d104d3bda9 Add cond_wait_timeout()
7 years ago
Romain Vimont eda44b6068 Fix controller cleanup
7 years ago
Romain Vimont ebccb9f6cc Add runtime option to render expired frames
7 years ago
Romain Vimont a143b8b07a Indent command-line options
7 years ago
Romain Vimont 8e66b33000 Add option to turn device screen off
7 years ago
Romain Vimont 7f07b13446 Indent command-line options
7 years ago
Romain Vimont acc4dcd520 Disable server controller if --no-control
7 years ago
Romain Vimont ca767ba364 Group server params in a struct
7 years ago
Romain Vimont c8a6783494 Use positive options names internally
7 years ago
Romain Vimont 5b56900e2b Rename unused field
7 years ago
Romain Vimont 8c8649cfcd Remove "turn device screen on" feature
7 years ago
Romain Vimont 41225c3e41 Improve key processing readability
7 years ago
Romain Vimont 296047d82a Use net_close() to close sockets
7 years ago
Romain Vimont 12a3bb25d3 Implement device screen off while mirroring
7 years ago
Romain Vimont 3ee9560ece Fix comment style
7 years ago
Yu-Chen Lin a56045dd80 Prevent socket leak on error
7 years ago
Yu-Chen Lin fcf225049d Use consistent variable names
7 years ago
Romain Vimont 6537c2ef01 Add clipboard logs
7 years ago
Romain Vimont 9712cb8123 Do not minimize on focus loss
7 years ago
Romain Vimont 28980bbc90 Rename "event" to "message"
7 years ago
Yu-Chen Lin 2a8a3e6ed5 Correct return value type in handle_event
7 years ago
Romain Vimont c13a24389c Implement computer-to-device clipboard copy
7 years ago
Romain Vimont 63c078ee6c Implement device-to-computer clipboard copy
7 years ago
Romain Vimont 6112095e75 Add device event receiver
7 years ago
Romain Vimont f9d2d99166 Add GET_CLIPBOARD device event
7 years ago
Romain Vimont ec71a3f66a Use two sockets for video and control
7 years ago
Romain Vimont 69360c7407 Extract control event string serialization
7 years ago
Romain Vimont 6ec2ddd2d1 Truncate UTF-8 properly
7 years ago
Romain Vimont 0a7fe7ad57 Add helpers to truncate UTF-8 at code points
7 years ago
Romain Vimont 3aa5426cad Add unit tests for control events serialization
7 years ago
Romain Vimont 63207d9cd5 Fix wrong comment in unit test
7 years ago
Romain Vimont 63909fd10d Merge commands with other control events
7 years ago
Romain Vimont 3b4366e5bf Stop stream immediately on quit
7 years ago
Romain Vimont 47f1003200 Close server socket before killing process
7 years ago
Romain Vimont bfb86ca2c2 Simplify cleanup
7 years ago
Romain Vimont 0dee9b04b2 Use net_recv() to read only one byte
7 years ago
Romain Vimont 8fc58bde75 Simplify server_connect_to()
7 years ago
Romain Vimont 5a431cdf9b Make server_connect_to() return a bool
7 years ago
Romain Vimont 6edb1294f0 Add missing return 0 in unit test
7 years ago
Romain Vimont 073181b294 Use cbuf for file handler request queue
7 years ago
Romain Vimont 241a3dcba5 Use cbuf for control event queue
7 years ago
Romain Vimont b38292cd69 Add generic circular buffer
7 years ago
Romain Vimont 7475550ae8 Add buffer_read16be()
7 years ago
Romain Vimont 7fc8793d5b Make buffer util functions accept const buffers
7 years ago
Romain Vimont bf5e54b2e9 Make control_event_serialize() return size_t
7 years ago
Romain Vimont 507b0bcccf Fix memory leak on error
7 years ago
Romain Vimont e1afd9f8b0 Fix event ownership comment
7 years ago
Romain Vimont b08dada6c1 Prefix control event constants by namespace
7 years ago
Romain Vimont 999c964689 Make macro expansion-safe
7 years ago
Romain Vimont befe455e44 Remove unused includes
7 years ago
Romain Vimont d2504f974c Fix indentation
7 years ago
Romain Vimont 0fbab42f8c Format meson.build for readability
7 years ago
Romain Vimont 08f506b24f Replace SDL_bool by bool in tests
7 years ago
Romain Vimont 3bc1c51b91 Always use SDL_malloc() and SDL_free()
7 years ago
Romain Vimont 5d473efeb5 Bind Home key to MOVE_HOME
7 years ago
Romain Vimont a41dd6c79f Make owned filename a pointer-to-non-const
7 years ago
Romain Vimont c3779d8513 Make owned serial a pointer-to-non-const
7 years ago
Romain Vimont b3bd5f1b80 Remove useless casts to (void *)
7 years ago
Romain Vimont 3133d5d1c7 Continue on icon loading failure
7 years ago
Romain Vimont 2dc1a59471 Check surface returned for icon
7 years ago
Romain Vimont e443518ed9 Print adb command on error
7 years ago
Romain Vimont eeb8e8420f Use size_t for command length
7 years ago
Sebastian Krzyszkowiak b941854c73 Disable X11 compositor bypass
7 years ago
Sebastian Krzyszkowiak 068253a3a2 Fix mouse focus clickthrough
7 years ago
Gerdal ffa8c66979 Fix link error on Windows Subsystem for Linux
7 years ago
Romain Vimont e2ef39fae5 Fix overflow in test
7 years ago
Romain Vimont 50dac2eaee Log "new texture" at INFO level
7 years ago
Romain Vimont a7b3901c31 Add more consts
7 years ago
Romain Vimont f7efafd846 Explicitly pass control flag to input manager
7 years ago
Romain Vimont 6baed8a06f Do not init SDL video subsystem if no display
7 years ago
Romain Vimont 8595862005 Use explicit output parameter for skipped frame
7 years ago
Romain Vimont 9ef345fdd0 Make owned serial a pointer-to-non-const
7 years ago
Romain Vimont dfed1b250e Replace SDL types by C99 standard types
7 years ago
Romain Vimont 8655ba7197 Add option to mirror in read-only
7 years ago
Romain Vimont 163cd36ccc Rename -n/--no-window to -N/--no-display
7 years ago
Romain Vimont db6644f1f9 Add missing no_window initialization
7 years ago
Romain Vimont 36191b7eec Avoid unnecessary call if display is disabled
7 years ago
Romain Vimont 33ccb1368f Extract event processing out of event_loop()
7 years ago
Romain Vimont aeda583a2c Update code style
7 years ago
Romain Vimont b2fe005498 Replace uint64_t by Uint64 for consistency
7 years ago
Romain Vimont 89812e4eee Implement the --no-window flag
7 years ago
CapsLock 421a1141e2 Add a new option: -n/--no-window
7 years ago
Romain Vimont e6e011baaf Add stream layer
7 years ago
Romain Vimont e7b7b083aa Store the recording request in a local bool
7 years ago
Romain Vimont 8aeb5c0e3c Fix cleanup order
7 years ago
Romain Vimont bcd4090d51 Fix recording with old decoding/encoding API
7 years ago
Romain Vimont 84270e2d18 Rename "stop" to "interrupt"
7 years ago
Romain Vimont fff87095d9 Rename "frames" to "video_buffer"
7 years ago
Romain Vimont aacb09a3d6 Remove unused mutex field in decoder
7 years ago
Romain Vimont 7d10ec2b5a Add shortcut to expand/collapse notification panel
7 years ago
Romain Vimont 1c1fe5ec53 Use "always on top" only for SDL >= 2.0.5
7 years ago
Romain Vimont 751600a7f9 Move all compat ifdefs definitions to compat.h
7 years ago
Romain Vimont f5f4e6b1c5 Allocate extradata with av_malloc()
7 years ago
Romain Vimont 6c40dbd27d Regroup Windows-ifdefs in command.h
7 years ago
Romain Vimont 477c0a2cab Create process with wide chars on Windows
7 years ago
Romain Vimont c0b65b14df Merge branch 'master' into dev
7 years ago
Romain Vimont b23cacfc1a Add recording logs
7 years ago
Romain Vimont 0ed2373952 Support recording to MKV
7 years ago
Romain Vimont 1aaad6ba35 Rescale packet timestamp to container time base
7 years ago
Romain Vimont c8f0805b89 Write header file with correct extradata
7 years ago
Romain Vimont ee3cba57a8 Forward FFmpeg logs
7 years ago
Romain Vimont c11905b860 Add log verbose macro
7 years ago
Romain Vimont 1a5ba59504 Fix memory leak on close
7 years ago
Yu-Chen Lin eca82e09c3 app: add always_on_top
7 years ago
Yu-Chen Lin 4d30fa93ba tests: fix test_control_event_serialize
7 years ago
Romain Vimont 7764a836f1 Fix incorrect comment
7 years ago
Romain Vimont d71e036f3a Do not disable screensaver
7 years ago
Yu-Chen Lin c5ec1a194c input_manager: don't ignore double click event when clicking inside device
7 years ago
Romain Vimont 39c5e71605 Make the server unlink itself
7 years ago
Romain Vimont fefb9816a9 Handle mouse events outside device screen
7 years ago
Romain Vimont 7830859c21 Merge branch 'master' into dev
7 years ago
Romain Vimont a7fe9ad779 Ignore mouse events outside device screen
7 years ago
Romain Vimont 1e22ebcac2 Always use non-empty arguments
7 years ago
Romain Vimont 2876463d39 Fix read_packet() return value on error or EOF
7 years ago
Romain Vimont 6dc6ec05d5 Configure version at meson project level
7 years ago
Pierre Gordon a17f1116ce Bump version to 1.5
7 years ago
Romain Vimont 22ff03f2f7 Do not queue invalid PTS
7 years ago
Romain Vimont 60afb46c8d Store queue of PTS for pending frames
7 years ago
Romain Vimont 345f8858d3 Send frame meta only if recording is enabled
7 years ago
Romain Vimont 22bf0c19d6 Rename --output-file to --record
7 years ago
Romain Vimont 70579dc709 Wrap receiver state into separate struct
7 years ago
Romain Vimont e562837c0b Avoid partial header reads
7 years ago
Romain Vimont ebe998cf78 Move buffer reader functions to buffer_util.h
7 years ago
Romain Vimont b98eb7d0fa Support AVStream.codec for old FFmpeg versions
7 years ago
yuchenlin e361b49b4a recorder: use av_oformat_next to support older FFmpeg
7 years ago
Romain Vimont d0e090e1f9 Reenable custom SDL signal handlers
7 years ago
Romain Vimont 475912a39c Do not transmit MediaCodec flags
7 years ago
Romain Vimont 27e8a9a79d Assign PTS to the right frame
7 years ago
Romain Vimont 61db575861 Decode and push frame before recording
7 years ago
Romain Vimont 2cd99e7205 Only set valid PTS/DTS
7 years ago
Romain Vimont 27686e9361 Add recorder
7 years ago
Ivan Gorinov d706c5df39 Enable video output file, with pts set by server
7 years ago
Romain Vimont cb3cf801c8 Extract bit operations to buffer_util.h
7 years ago
Romain Vimont 9160d465ec Add feature test macro to declare kill()
7 years ago
Romain Vimont 5c739874a4 Fix memory leak on error
7 years ago
Romain Vimont d061c30965 Replace Ctrl by Meta for volume shortcuts on MacOS
7 years ago
Romain Vimont 5bf1261364 Refactor to support Meta in shortcuts
7 years ago
yuchenlin 96056e3213 input_manager: fix potential memory leak on text
7 years ago
Romain Vimont 0b92b93358 Capture Alt and Meta keys
7 years ago
Romain Vimont c20245630e Factorize Windows command building
7 years ago
Romain Vimont 8875955921 Support paths containing spaces on Windows
7 years ago
Romain Vimont ff4430b2a3 Declare fun(void) functions with no parameters
7 years ago
Romain Vimont 24d107d017 Bump version to 1.4
7 years ago
Romain Vimont 411aa4fcfd Handle alpha and space chars as raw events
7 years ago
yuchenlin 140b1ef6a5 prevent closing console right after process error in windows
7 years ago
Romain Vimont eca99d5af7 Fix header guard name
7 years ago
yuchenlin 27bed948d4 Use specific error for missing binary on Windows
7 years ago
Philipp Sandhaus af9808cf02 Add option to start in fullscreen
7 years ago
Romain Vimont 55d33ddd5f Do not handle system-specific values in command.c
7 years ago
yuchenlin 6d2d803003 Notify adb missing
7 years ago
Romain Vimont 89e0203682 Add missing include for lock_util.h
7 years ago
Romain Vimont 536b31829a Separate multi-words filenames by '_'
7 years ago
Romain Vimont 6581f9feb9 Make request_queue functions static
7 years ago
Romain Vimont 359685b1db Simplify SDL_assert() calls
7 years ago
Romain Vimont 4527be4cde Add missing include config.h
7 years ago
npes87184 66f45f9dae Support drag&drop a file to transfer it to device
7 years ago
npes87184 aa97eed24b installer -> file_handler
7 years ago
Romain Vimont 2daeb1fd5f Reset current installer process
7 years ago
Grief cde0b3d248 Return non-zero value on connection loss
7 years ago
Romain Vimont 6fa209fa82 Remove AINPUT_SOURCE_ANY value
7 years ago
Romain Vimont b37c0f6cd6 Replace Uint32 by int to fix warnings in tinyxpm
7 years ago
npes87184 a3ab92226d Destroy mutex if strdup failed
7 years ago
npes87184 f8ef4f1cf7 remove redundant semicolon
7 years ago
Romain Vimont 7e42358a7b Bump version to 1.3
7 years ago
Romain Vimont caa9e30004 Add crop feature
7 years ago
Romain Vimont 8793c104ee Increase "adb forward" connection attempts
7 years ago
Romain Vimont fca806e095 Do not call deprecated av_register_all()
7 years ago
Romain Vimont 49b2e63d13 Forward repeated volume events
8 years ago
Romain Vimont c12c64ed41 Send separate DOWN/UP key events
8 years ago
Romain Vimont 2f66acd75d Improve English comment
8 years ago
Romain Vimont 1846d2f078 Prevent killing unexpected process
8 years ago
Romain Vimont 1a0139321b Fix missing installer initialization
8 years ago
Romain Vimont f705a73149 Use a meson option to crossbuild for Windows
8 years ago
Romain Vimont 8106bb8215 Bump version to 1.2
8 years ago
Romain Vimont a63dd47f2d Make CreateProcess() flags depend on "noconsole"
8 years ago
Romain Vimont aedc2c2da9 Also build "noconsole" binary for Windows
8 years ago
Romain Vimont 106b87a4d2 Add cross-compilation scripts for Windows
8 years ago
Romain Vimont 6274cc3767 Document APK drag & drop
8 years ago
Romain Vimont 9c6f9b24f9 Quote apk path on Windows
8 years ago
Adonis Najimi e2a2973990 Drag and drop to install apk files from computer
8 years ago
Romain Vimont 41419a2e77 Fix net_send_all() warning
8 years ago
Romain Vimont e3d0a59c80 Fix proc_show_touches warning
8 years ago
Romain Vimont bb3a7f05ac Release controller lock while processing events
8 years ago
Romain Vimont ec02823045 Fix leak on server start error
8 years ago
Romain Vimont 435a7fe314 Add missing includes
8 years ago
Romain Vimont 78da66f126 Merge branch 'master' into dev
8 years ago
Romain Vimont 9aa88b6fc3 Map numpad ENTER key
8 years ago
Romain Vimont 0871bca9c7 Avoid pointer arithmetic on "void *"
8 years ago
Romain Vimont b2b5404883 Use const pointers when possible
8 years ago
Romain Vimont 1bddb80b5f Change volume shortcuts
8 years ago
Romain Vimont 71f50fb697 Merge branch 'master' into dev
8 years ago
Romain Vimont 82efff34e8 Factorize texture creation
8 years ago
Romain Vimont 860006e082 Forward double-click events
8 years ago
Romain Vimont 57eaf05289 Improve startup time when show_touches is enabled
8 years ago
Romain Vimont dd2a5c1ecf Disable "show touches" once window is closed
8 years ago
Romain Vimont 66ec252893 Add an option to enable "show touches"
8 years ago
Romain Vimont b13d25b9f4 Group scrcpy options into a struct
8 years ago
Romain Vimont b449c09442 Merge branch 'master' into dev
8 years ago
Romain Vimont 35298bb0c6 Process the last video frame
8 years ago
Romain Vimont 73c332e3e4 Unref last packet on exit
8 years ago
Romain Vimont 29b5c5b8f4 Merge branch 'arich/addShake' into dev (#85)
8 years ago
Romain Vimont 88ee6bc928 Swap MENU and APP_SWITCH shortcuts
8 years ago
Romain Vimont 35e9a64c34 Rename "shake" to "menu"
8 years ago
Andy Rich 301c52b603 Add support for CTRL+S to send hardware "shake" to device w/readme
8 years ago
Romain Vimont f00c6c5b13 Disable custom SDL signal handlers
8 years ago
Romain Vimont 3b3803da0d Remove useless blocks in switch/case
8 years ago
Romain Vimont f5cf6c1b2c Include source root directory
8 years ago
Romain Vimont c65cb36d3b Increase the number of connection attempts
8 years ago
Romain Vimont 821ec9843c Fix win32 build
8 years ago
Romain Vimont f16bd88802 Remove useless cast
8 years ago
Romain Vimont f3e8834a3c Fix warning message
8 years ago
Romain Vimont 080df5eb5d Fix switch/case code style
8 years ago
Romain Vimont d744837f13 Bump version to 1.1
8 years ago
Romain Vimont f7bc0bd5b5 Merge branch 'dev' into release
8 years ago
Romain Vimont 8a3c6a3ae7 Remove useless argument
8 years ago
Romain Vimont 0b1e59186f Workaround continuous resizing on Windows/MacOS
8 years ago
Romain Vimont e69f6f710d Disable stdout/stderr buffering on Windows
8 years ago
Romain Vimont b858204786 Remove black borders on double-click
8 years ago
Romain Vimont 1038bad385 Make it work over tcpip
8 years ago
Romain Vimont 2b3ed5bcdb Store serial in server instance
8 years ago
Romain Vimont 9e328ef98b Always use the best render scale quality available
8 years ago
Romain Vimont f9a63ec272 Reverse horizontal scrolling behavior
8 years ago
Romain Vimont c87d94ee27 Map middle-click to HOME
8 years ago