1011 Commits (2eb6fe7d81c15912a2252f229d317ae03f618a33)

Author SHA1 Message Date
Romain Vimont 4d8bcfc68a Extract current video_buffer to frame_buffer
5 years ago
Romain Vimont 336248df08 Rename video_buffer to sc_video_buffer
5 years ago
Romain Vimont 28bce48d47 Relax v4l2_sink lock constraints
5 years ago
Romain Vimont 32e692d5d2 Replace delay by deadline in timedwait()
5 years ago
Romain Vimont ec871dd3f5 Wrap tick API
5 years ago
Romain Vimont 5524f378c8 Add missing error log
5 years ago
Romain Vimont 4ed3aa3604 Move include fps_counter
5 years ago
Romain Vimont 40cea1f677 Remove obsolete comment
5 years ago
Romain Vimont 099cba07f0 Rename queue to sc_queue
5 years ago
Romain Vimont af8a21ed7c Fix manpage formatting
5 years ago
Romain Vimont 5938e862a1 Fix --lock-video-orientation syntax in help
5 years ago
Romain Vimont e9096e3e34 Remove unnecessary calls to av_packet_unref()
5 years ago
Romain Vimont 5caeab5f6d Fix v4l2 data race
5 years ago
Romain Vimont 33fbdc86c7 Initialize fields before starting a thread
5 years ago
Romain Vimont f33d37976c Fix assertion race condition in debug mode
5 years ago
Romain Vimont 7dca5078e7 Initialize controller even if there is no display
5 years ago
Wirtos_new a9d9cbf8b5 Replace VLA by dynamic allocation
5 years ago
Wirtos_new fda32928c1 Rename cmd to argv
5 years ago
Romain Vimont 710e80aa0d Return build_cmd() success via a boolean
5 years ago
Romain Vimont 77e96d745b Suggest --record-format instead of -F on error
5 years ago
Romain Vimont 1c95043478 Attempt to log message only in verbose mode
5 years ago
Romain Vimont 488991116b Expose function to get the current log level
5 years ago
Romain Vimont 5c95d18beb Move log level conversion to log API
5 years ago
Romain Vimont 1039f9b531 Workaround PRIu64 on Windows
5 years ago
Marti Raudsepp 19ca02cd8f Log control messages in verbose mode
5 years ago
Marti Raudsepp 937fa704a6 Add --verbosity=verbose log level
5 years ago
Romain Vimont 7db0189f23 Forward mouse motion only on main clicks
5 years ago
Romain Vimont 8b90e1d3f4 Remove extra ';' in #define
5 years ago
Romain Vimont df017160ed Replace strcpy() by memcpy()
5 years ago
Romain Vimont a1f2094787 Push to /sdcard/Download/ by default
5 years ago
Romain Vimont 9b89b7ab72 Center the window on resize-to-fit
5 years ago
Romain Vimont 7343b233e4 Render screen on window restored
5 years ago
Romain Vimont cd2894570d Allocate AVPacket for v4l2_sink
5 years ago
Romain Vimont 4af317d40d Allocate AVPacket for recorder
5 years ago
Romain Vimont 318b6a572e Allocate AVPacket for local stream packet
5 years ago
Romain Vimont e8b053ad2f Allocate AVPacket for stream->pending
5 years ago
Romain Vimont af228706f1 Fix compatibility with old FFmpeg
5 years ago
Romain Vimont f76fe2c0d4 Fix --lock-video-orientation syntax
5 years ago
Romain Vimont 506f918fb7 Group components into struct scrcpy
5 years ago
Romain Vimont 6fd7e89da1 Explicitly initialize decoder sink_count
5 years ago
Romain Vimont 4c31911df2 Pass serial within struct server_params
5 years ago
Romain Vimont 6adc97198b Provide device info directly on server connection
5 years ago
Romain Vimont 6a2cd089a1 Initialize input manager dynamically
5 years ago
Romain Vimont dcee7c0f7f Factorize screen_init() error management
5 years ago
Romain Vimont e604e8a752 Move fps_counter to screen
5 years ago
Romain Vimont f19c455110 Fix leak on error
5 years ago
Romain Vimont 83116fc199 Notify end-of-stream via callback
5 years ago
Romain Vimont 1e64f0f931 Use ARRAY_LEN() macro
5 years ago
Romain Vimont f062dfd30b Merge branch 'master' into dev
5 years ago
Romain Vimont 1b9dcce23c Fix double-free on error
5 years ago
Romain Vimont ae6ec7a194 Unref decoder AVFrame immediately
5 years ago
Romain Vimont 84f17fdeab Fix v4l2 AVPacket memory leak on error
5 years ago
Romain Vimont 1cde68a1fa Fix v4l2 AVFrame memory leak
5 years ago
Romain Vimont 45e7280148 Rename --v4l2_sink to --v4l2-sink
5 years ago
Marco Martinelli d39161f753 Add support for v4l2loopback
5 years ago
Romain Vimont 5af9d0ee0f Make --lock-video-orientation argument optional
5 years ago
Romain Vimont fd0dc6c0cd Add --lock-video-orientation=initial
5 years ago
Romain Vimont 151bc16644 Use strlist_contains() to find a muxer
5 years ago
Romain Vimont ffc00210e9 Add strlist_contains()
5 years ago
Romain Vimont 243854a408 Fix recorder comment
5 years ago
Romain Vimont 8b90dc61b9 Handle EAGAIN on send_packet in decoder
5 years ago
Romain Vimont 2a5dfc1c17 Handle errors using gotos in recorder_open()
5 years ago
Romain Vimont e3fccc5a5e Initialize recorder fields on open
5 years ago
Romain Vimont 0541f1bff2 Hide the window immediately on close
5 years ago
Romain Vimont 0272e6dc77 Assert screen closed on destroy
5 years ago
Romain Vimont 2a94a2b119 Remove video_buffer callbacks
5 years ago
Romain Vimont e91acdb0c4 Move video_buffer to screen
5 years ago
Romain Vimont 6f5ad21f57 Make decoder push frames to sinks
5 years ago
Romain Vimont 08b3086ffc Expose screen as frame sink
5 years ago
Romain Vimont deab7da761 Add frame sink trait
5 years ago
Romain Vimont f7a1b67d66 Make stream push packets to sinks
5 years ago
Romain Vimont cbed38799e Expose decoder as packet sink
5 years ago
Romain Vimont 5beb7d6c02 Reorder decoder functions
5 years ago
Romain Vimont 5980183a33 Expose recorder as packet sink
5 years ago
Romain Vimont fe8de893ca Privatize recorder threading
5 years ago
Romain Vimont a974483c15 Reorder recorder functions
5 years ago
Romain Vimont 1b072a24c4 Add packet sink trait
5 years ago
Romain Vimont 08f1fd46c8 Add container_of() macro
5 years ago
Romain Vimont 2ddf760c09 Make video_buffer more generic
5 years ago
Romain Vimont 5d9e96dc4e Remove compat with old FFmpeg codec params API
5 years ago
Romain Vimont de9b79ec2d Remove compat with old FFmpeg decoding API
5 years ago
Romain Vimont 55806e7d31 Remove option --render-expired-frames
5 years ago
Romain Vimont 21b590b766 Write trailer from recorder thread
5 years ago
brunoais b4ee9f27ce Add mouse shortcut to expand settings panel
5 years ago
brunoais 6fa63cf6f8 Add keyboard shortcut to expand settings panel
5 years ago
brunoais 50eecdab28 Add control message to expand settings panel
5 years ago
brunoais 9576283907 Count repeated identical key events
5 years ago
brunoais 66c581851f Rename control message type to COLLAPSE_PANELS
5 years ago
Frank Leon Rose aaf7875d92 Ensure get_server_path() retval is freeable
5 years ago
brunoais b9c3f65fd8 Provide actions for the extra mouse buttons
5 years ago
Romain Vimont d0739911a3 Forward DOWN and UP separately for right-click
5 years ago
Andrea Gelmini 498ad23e98 Fix typos
5 years ago
Romain Vimont 964b6d2243 Forward DOWN and UP separately for middle-click
5 years ago
Romain Vimont 8cc057c8f1 Prevent forwarding only "mouse released" events
5 years ago
Romain Vimont edee69d637 Fix options alphabetical order
5 years ago
Romain Vimont 8ef4c044fa Do not forward SDL_DROPFILE event
5 years ago
Romain Vimont c23c38f99d Move resizing workaround to screen.c
5 years ago
Romain Vimont 65c4f487b3 Set initial fullscreen from screen.c
5 years ago
Romain Vimont c6d7f5ee96 Make screen_show_window() static
5 years ago
Romain Vimont 28f6cbaea6 Destroy screen once stream is finished
5 years ago
Romain Vimont 08fc6694e1 Do not destroy uninitialized screen
5 years ago
Romain Vimont d0983db592 Make internal recorder function static
5 years ago
Romain Vimont fb7870500a Remove unused field from input_manager
5 years ago
Romain Vimont 33006561c7 Remove useless forward declaration from stream.h
5 years ago
Romain Vimont a09733d175 Remove useless includes from decoder.c
5 years ago
Romain Vimont 07a85b7c94 Fix typo in command-line help
5 years ago
Romain Vimont 6231f683af Fix compilation error for old decoding API
5 years ago
Romain Vimont 9826c5c4a4 Remove HiDPI compilation flag
5 years ago
Yu-Chen Lin 1d615a0d51 Support power off on close
5 years ago
Romain Vimont eb7e1070cf Release frame data as soon as possible
5 years ago
Romain Vimont 386f017ba9 Factorize frame swap
5 years ago
Romain Vimont cc48b24324 Simplify screen initialization
5 years ago
Romain Vimont 597c54f049 Group screen parameters into a struct
5 years ago
Romain Vimont 955da3b578 Remove screen static initializer
5 years ago
Romain Vimont cb9c42bdcb Use a callback to notify frame skip
5 years ago
Romain Vimont fb9f9848bd Use a callback to notify a new frame
5 years ago
Romain Vimont c50b958ee4 Initialize screen before starting the stream
5 years ago
Romain Vimont 441d3fb119 Make video buffer more generic
5 years ago
Romain Vimont cb197ee3a2 Move fps counter out of video buffer
5 years ago
yangfl 1863ca7ad1 Remove unnecessary escape characters in manpage
5 years ago
Romain Vimont b16b65a715 Simplify default values
5 years ago
Romain Vimont a3aa5ac95e Insert numerical values statically in usage string
5 years ago
Romain Vimont 0207e3df33 Remove unused no_window field
5 years ago
Romain Vimont 9cd1a7380d Enable NDEBUG via Meson built-in option
5 years ago
Romain Vimont 24b637b972 Handle im-related events from input_manager.c
5 years ago
Romain Vimont 76a3d9805b Inline window events handling
5 years ago
Romain Vimont 50b4a730e3 Handle screen-related events from screen.c
5 years ago
Romain Vimont ea2369f568 Reference video buffer from screen
5 years ago
Romain Vimont 0538e9645b Improve error handling in screen initialization
5 years ago
Romain Vimont 626094ad13 Handle window events only once visible
5 years ago
Romain Vimont a566635c43 Log mipmaps error only if mipmaps are enabled
5 years ago
Romain Vimont 862948b132 Make use_opengl local
5 years ago
Romain Vimont c0c4ba7009 Add intermediate frame in video buffer
5 years ago
Romain Vimont c53bd4d8b6 Assert non-recursive usage of mutexes
5 years ago
Romain Vimont 54f5c42d7b Add mutex assertions
5 years ago
Romain Vimont 21d206f360 Expose mutex assertions
5 years ago
Romain Vimont d2689fc168 Expose thread id
5 years ago
Romain Vimont f6320c7e31 Wrap SDL thread functions into scrcpy-specific API
5 years ago
Romain Vimont 30e619d37f Replace SDL_strdup() by strdup()
5 years ago
Romain Vimont c0dde0fade Provide strdup() compat
5 years ago
Romain Vimont ace438e52a Remove unused port_range field
5 years ago
Romain Vimont 8e83f3e8af Remove unused custom event
5 years ago
Romain Vimont 97b001e7c0 Fix undefined left shift
5 years ago
Romain Vimont d8e9ad20b0 Improve file handler error message
5 years ago
Romain Vimont b566700bfd Kill process with SIGKILL signal
5 years ago
Romain Vimont 7afd149f4b Fix file_handler process race condition
5 years ago
Romain Vimont 6a50231698 Expose a single process_wait()
5 years ago
Romain Vimont b8edcf52b0 Simplify process_wait()
5 years ago
Romain Vimont 94eff0a4bb Fix size_t incorrectly assigned to int
5 years ago
Romain Vimont 8dbb1676b7 Factorize meson compiler variable initialization
5 years ago
Romain Vimont ab912c23e7 Define feature test macros in common.h
5 years ago
Romain Vimont 59feb2a15c Group common includes into common.h
5 years ago
Romain Vimont 6385b8c162 Move common structs to coords.h
5 years ago
Romain Vimont 037be4af21 Fix compat missing include
5 years ago
Romain Vimont 1e215199dc Remove unused struct port_range
5 years ago
Romain Vimont d580ee30f1 Separate process wait and close
5 years ago
Romain Vimont 821c175730 Rename process_simple_wait to process_wait
5 years ago
Romain Vimont cc6f5020d8 Move conditional src files in meson.build
5 years ago
Romain Vimont 4bd9da4c93 Split command into process and adb
5 years ago
Romain Vimont aa8b571389 Increase display id range
5 years ago
Romain Vimont ed130e05d5 Fix possibly uninitialized value
5 years ago
Romain Vimont 10b749e27d Kill the server only after a small delay
5 years ago
Romain Vimont 05e8c1a3c5 Call CloseHandle() after wait on Windows
5 years ago
Romain Vimont 83910d3b9c Initialize server struct dynamically
5 years ago
Romain Vimont a46733906a Replace noconsole binary by a wrapper script
5 years ago
Romain Vimont a5f4f58295 Remove duplicate include
5 years ago
Romain Vimont 904d470579 Pause on error from a wrapper script
5 years ago
Romain Vimont d60ac65b32 Merge branch 'master' into dev
5 years ago
jianzhang4 d6078cf202 Fix build errors for macOS
5 years ago
Romain Vimont 868e762d71 Fix size_t format specifier for Windows
5 years ago
Romain Vimont 576814bcec Document --encoder option
5 years ago
Tzah Mazuz 76c2c6e69d Adding new option --encoder
5 years ago
Romain Vimont d5f059c7cb Add option to force legacy method for pasting
5 years ago
Romain Vimont adc547fa6e Add an option to forward all clicks
5 years ago
Romain Vimont ad5f567f07 Remove spurious space
5 years ago
Romain Vimont d50ecf40b6 Fix options order
5 years ago
Brinan Sjostrom 56d237f152 Fix "press Enter key" message
5 years ago
Romain Vimont acc65f8c9d Remove unused field
5 years ago
Romain Vimont a65ebceac1 Add missing mutex unlock on error
5 years ago
Romain Vimont bd9f656933 Fix feature test macro
5 years ago
Romain Vimont c243fd4c3f Fix more log format warning
5 years ago
Romain Vimont d02789ce21 List available shortcut keys on error
5 years ago
Romain Vimont 6cc22e1c5b Reference --shortcut-mod from shortcuts list
5 years ago
Romain Vimont 198346d148 Add pinch-to-zoom simulation
5 years ago
Romain Vimont 976761956f Fix uninitialized repeat count in key events
5 years ago
xeropresence 84f1d9e375 Add --no-key-repeat cli option
5 years ago
xeropresence 65d06a3663 Pass full options struct to static functions
5 years ago
Romain Vimont 74079ea5e4 Copy the options used in input manager init
5 years ago
Romain Vimont 7ad47dfaab Swap paste shortcuts
5 years ago
Romain Vimont 56a115b5c5 Add shortcuts for COPY and CUT
5 years ago
Romain Vimont 8f64a5984b Change "resize to fit" shortcut to MOD+w
5 years ago
Romain Vimont bccd12bf5c Remove "get clipboard" call
5 years ago
Romain Vimont 20d3925099 Set computer clipboard only if necessary
5 years ago
Romain Vimont 7683be8159 Synchronize clipboard on Ctrl+v
5 years ago
Romain Vimont d4ca85d6a8 Forward Shift to the device
5 years ago
Romain Vimont e6e528f228 Forward Ctrl to the device
5 years ago
Romain Vimont a5f8b577c5 Ignore text events for shortcuts
5 years ago
Romain Vimont e4bb7c1d1f Accept Super as shortcut modifier
5 years ago
Romain Vimont 1b76d9fd78 Customize shortcut modifier
5 years ago
Romain Vimont 63cb93d7d7 Use Ctrl for all shortcuts
5 years ago
Romain Vimont 9d9dd1f143 Make expression order consistent
6 years ago
Romain Vimont 199c74f62f Declare main() with argc/argv params in tests
6 years ago
Romain Vimont deea29f52a Send touch event without pressure on button up
6 years ago
Romain Vimont e8a565f9ea Fix touch events HiDPI-scaling
6 years ago
xeropresence 3c1ed5d86c Handle repeating keycodes
6 years ago
Romain Vimont 0ba74fbd9a Make scrcpy.h independant of other headers
6 years ago
Romain Vimont 29e5af76d4 Remove fprintf() call in tests
6 years ago
Ivan Keliukh dc7b60e619 Add option for disabling screensaver
6 years ago
Romain Vimont 1e4ee547b5 Make message buffer static
6 years ago
Romain Vimont 488d22d4e2 Increase clipboard size from 4k to 256k
6 years ago
Romain Vimont 00d292b2f5 Fix receiver on partial device messages
6 years ago
Romain Vimont 245999aec4 Serialize text size on 4 bytes
6 years ago
Romain Vimont d91c5dcfd5 Rename MSG_SERIALIZED_MAX_SIZE to MSG_MAX_SIZE
6 years ago
Romain Vimont d202d7b205 Add unit test for big clipboard device message
6 years ago
Romain Vimont 08c0c64af6 Rename test names from "event" to "msg"
6 years ago
Romain Vimont 8f314c74b0 Reorganize message size constants
6 years ago
Romain Vimont 6e1069a822 Configure log level for application only
6 years ago
Romain Vimont c4323df976 Fix incorrect log return value
6 years ago
Romain Vimont e4efd75766 Avoid repetition for some shortcuts
6 years ago
Romain Vimont 0e4a6f462b Mention stay awake limitation
6 years ago
Romain Vimont dcde578a50 Reactivate "turn device screen on" feature
6 years ago
Romain Vimont 2ca8318b9d Improve manpage formatting
6 years ago
Romain Vimont fc1dec0270 Paste on "set clipboard" if possible
6 years ago
Romain Vimont 274b591d18 Fix union typo
6 years ago
Romain Vimont 8f46e18426 Add --force-adb-forward
6 years ago
Romain Vimont ee3882f8be Fix typo in manpage
6 years ago
Romain Vimont a3ef461d73 Add cli option to set the verbosity level
6 years ago
Romain Vimont 3df63c579d Configure server verbosity from the client
6 years ago
Romain Vimont 56bff2f718 Avoid compiler warning
6 years ago
Tzah Mazuz 080a4ee365 Add --codec-options
6 years ago
Romain Vimont ac4c8b4a3f Increase LOD bias for mipmapping
6 years ago
Romain Vimont fae3f9eeab Remove warning when renderer is not OpenGL
6 years ago
Romain Vimont f5aeecbc62 Reset window size on initialization
6 years ago
Romain Vimont e40532a376 Manually position and scale the content
6 years ago
Romain Vimont d860ad48e6 Extract optimal window size detection
6 years ago
Romain Vimont ec047b501e Disable "resize to fit" in maximized state
6 years ago
Romain Vimont 4c2e10fd74 Workaround maximized+fullscreen on Windows
6 years ago
Romain Vimont 6b1da2fcff Simplify size changes in fullscreen or maximized
6 years ago
Romain Vimont 2608b1dc62 Factorize window resize
6 years ago
Romain Vimont a85848a541 Fix Windows Ctrl Handler declaration
6 years ago
Romain Vimont 28abd98f7f Properly handle Ctrl+C on Windows
6 years ago
Romain Vimont ead7ee4a03 Revert "Improve resizing workaround"
6 years ago
Romain Vimont c77024314d Add an option to keep the device awake
6 years ago
Romain Vimont 828327365a Reorder options in alphabetical order
6 years ago
Romain Vimont 4668638ee1 Handle "show touches" on the device-side
6 years ago
Romain Vimont a14840a515 Fix typo in comments
6 years ago
Romain Vimont 8581d6850b Stabilize auto-resize
6 years ago
Romain Vimont 92cb3a6661 Improve resizing workaround
6 years ago
Romain Vimont 3c9ae99dda Move rotation coordinates to screen
6 years ago
Romain Vimont 44f720e4a4 Log new size on auto-resize request
6 years ago
Romain Vimont 14ead499fd Fix touch coordinates on rotated display
6 years ago
Romain Vimont 11a61b2cb3 Add option --no-mipmaps
6 years ago
Romain Vimont bea7658807 Enable trilinear filtering for OpenGL
6 years ago
Romain Vimont 8a9b20b27e Add --render-driver command-line option
6 years ago
Romain Vimont 270d0bf639 Rename max length constant for text injection
6 years ago
Romain Vimont 95fa1a69e4 Workaround compiler warning
6 years ago
Romain Vimont ea46d3ab68 Add missing include string.h
6 years ago
Romain Vimont 7eb16ce364 Fix log format warning
6 years ago
Romain Vimont ab52b36895 Reorder options in alphabetical order
6 years ago
Romain Vimont 9f4735ede3 Fix double click on rotated display
6 years ago
Romain Vimont 6295c1a110 Remap event positions on rotated display
6 years ago
Romain Vimont f3fba3c4b9 Store rotated content size
6 years ago
Romain Vimont a8fd4aec9a Remove --fullscreen validation
6 years ago
Romain Vimont cbde7b964a Improve documentation for consistency
6 years ago
Romain Vimont 28c71c528f Add --rotation command-line option
6 years ago
Romain Vimont d48b375a1d Add shortcuts to rotate display
6 years ago
Romain Vimont fd63e7eb5a Format shortcut documentation
6 years ago
Romain Vimont 54ccccd883 Replace SDL_Atomic by stdatomic from C11
6 years ago
Romain Vimont 94e1696869 Do not warn on terminating the server
6 years ago
Romain Vimont a346bb80f4 Do not block on accept() if server died
6 years ago
Romain Vimont d421741a83 Wait server from a separate thread
6 years ago
Romain Vimont 64d5edce92 Refactor server_start() error handling
6 years ago
e_vigurskiy 4150eedcdf Add display id parameter
6 years ago
Romain Vimont e050cfdcd6 Fix static_assert() parameters
6 years ago
Romain Vimont dc7c677728 Accept negative window position
6 years ago
Romain Vimont 902b99174d Fix server debugger for Android >= 9
6 years ago
Jaafar Biyadi cd69eb4a4f Handle NumPad events when NumLock is disabled
6 years ago
yangfl d3281f4b67 Show a friendly hint for adb installation
6 years ago
George Stamoulis 1982bc439b Add option to lock video orientation
6 years ago
Romain Vimont c0f428eb05 Merge branch 'master' into dev
6 years ago
Romain Vimont 4794ca8ae7 Use linear filtering
6 years ago
Romain Vimont 0fb22c3e98 Happy new year 2020!
6 years ago
Romain Vimont dc7fcf3c7a Accept port range
6 years ago
Romain Vimont 2a3a9d4ea9 Add util function to parse a list of integers
6 years ago
Romain Vimont ca0031cbde Refactor server tunnel initialization
6 years ago
Romain Vimont d1a9a76cc6 Reorder functions
6 years ago
Romain Vimont a8ceaf5284 Fix include order
6 years ago
Romain Vimont 83d48267a7 Accept --max-fps before Android 10
6 years ago
Romain Vimont db6252e52b Simplify net.c
6 years ago
Yu-Chen Lin f9786e5034 Get env in windows correctly
6 years ago
Yu-Chen Lin 78a320a763 Fix utf-8 char path in windows
6 years ago
Romain Vimont 7d5845196e Fix memory leak on portable builds
6 years ago
Romain Vimont 6965d051ae Limit bitrate range to 31 bits integer
6 years ago
Romain Vimont e4cebc8d4c Do not build tests in release mode
6 years ago
Romain Vimont ba1b36758e Define SDL_MAIN_HANDLED in all tests
6 years ago
Romain Vimont ad92a192b5 Fix meson.build codestyle
6 years ago
Romain Vimont 242e57d69b Merge branch 'master' into dev
6 years ago
Romain Vimont 024c2f7e6b Configure log priority early
6 years ago
Romain Vimont 1eae139b6e Add missing consts
6 years ago
Romain Vimont 419c869c9c Use ARRAY_LEN() macro in tests
6 years ago