1025 Commits (1f65b1bf87d835bdd96475b27c1712cd7c63b00b)

Author SHA1 Message Date
Romain Vimont 3f51a2ab43 Generate getopt params from option structures
4 years ago
Romain Vimont 74ab0a4df8 Structure shortcuts help
4 years ago
Romain Vimont f59e9e3cb0 Structure command line options help
4 years ago
Romain Vimont 9ec3406568 Add line wrapper
4 years ago
Romain Vimont 6dba1922c1 Add string buffer util
4 years ago
Romain Vimont 570a003c39 Remove deprecated -T option
4 years ago
Romain Vimont b62df7ee91 Remove deprecated -c option
4 years ago
Romain Vimont 30d40f4e78 Document --power-off-on-close
4 years ago
Romain Vimont f489f7fcad Mention drag & drop for non-APK files in help
4 years ago
Romain Vimont f65c3fde69 Fix typos in help
4 years ago
Romain Vimont 48fcfa96ab Add missing include "common.h"
4 years ago
Romain Vimont 676fa73d2c Wrap device name and size in a struct
4 years ago
Romain Vimont 58ea238fb2 Remove unnecessary variable
4 years ago
Romain Vimont 13c4aa1a3b Disable synthetic mouse events from touch events
4 years ago
Romain Vimont caf594c90e Split SDL initialization
4 years ago
Romain Vimont 688477ff65 Move SDL initialization
4 years ago
Romain Vimont ac539e1312 Set SDL hints before initialization
4 years ago
Romain Vimont a57c7d3a2b Extract SDL hints
4 years ago
Romain Vimont d2d18466d4 Factorize SDL event push
4 years ago
Romain Vimont dae091e3ab Handle SDL_PushEvent() errors
4 years ago
Romain Vimont 4c4381de4c Use sc_ prefix for size, position and point
4 years ago
Romain Vimont 06131ef634 Fix typo in clock comments
4 years ago
Romain Vimont 34eb10ea0b Define v4l2 option field only if HAVE_V4L2
4 years ago
Romain Vimont 27fa23846d Define default options as const struct
4 years ago
Romain Vimont e4d5c1ce36 Move scrcpy option structs to options.h
4 years ago
Romain Vimont ac23bec144 Expose socket interruption
4 years ago
Romain Vimont e5ea13770b Add socket wrapper
4 years ago
Romain Vimont 3eac212af1 Use net_send() from net_send_all()
4 years ago
Romain Vimont 3adff37c2d Use sc_ prefix for sockets
4 years ago
Romain Vimont eb6afe7669 Move net_init() and net_cleanup() upwards
4 years ago
Romain Vimont e4163321f0 Delay HID events on Ctrl+v
4 years ago
Romain Vimont c96874b257 Synchronize HID keyboard state on first event
4 years ago
Romain Vimont 511356710d Retrieve device serial for AOA
4 years ago
Romain Vimont d55015e4cf Expose function to get the device serial
4 years ago
Romain Vimont 0681480809 Add read_pipe_all()
4 years ago
Romain Vimont 96b18dabaa Expose adb execution with redirection
4 years ago
Romain Vimont eaf4afaad9 Add command execution with redirection
4 years ago
Alynx Zhou 207082977a Add support for USB HID keyboard over AOAv2
4 years ago
Romain Vimont f7d1efdf1d Extract mouse processor trait
4 years ago
Romain Vimont bcf5a9750f Extract keyboard processor trait
4 years ago
Romain Vimont 056d36ce4a Fix trait header guards
4 years ago
Romain Vimont 1e340caf76 Remove legacy scrcpy icon
4 years ago
Romain Vimont 6004f0b6b0 Use a new scrcpy icon
4 years ago
Romain Vimont 12ed2f2402 Add support for palette icon formats
4 years ago
Romain Vimont 0e4564da03 Add icon loader
4 years ago
Romain Vimont 156d958e77 Move common instruction out of ifdef
4 years ago
Romain Vimont 7229e3cce0 Extract util function to build a local file path
4 years ago
Romain Vimont a7e41b0f85 Fix code style
4 years ago
zhongkaizhu 46d3e35c30 Fix "Could not find v4l2 muxer"
4 years ago
Romain Vimont 07d75eb336 Simplify net_send_all()
4 years ago
Romain Vimont 31131039bb Add missing includes
4 years ago
Romain Vimont 1d1c9f36f4 Retrieve correct error messages on Windows
4 years ago
Romain Vimont 4d6dd9d281 Compute scrcpy directory manually
4 years ago
a1346054 b5e98db635 Fix typo in manpage
4 years ago
Romain Vimont 3761f56c28 Declare callbacks static
4 years ago
Romain Vimont f78608ab29 Fix type for assignment
5 years ago
Romain Vimont 6f03022646 Fix net_send_all()
5 years ago
Romain Vimont daf90d33d5 Fix code style
5 years ago
Romain Vimont 0ae10f2b39 Improve slope estimation on start
5 years ago
Romain Vimont 4c4d02295c Add buffering debugging tools
5 years ago
Romain Vimont 2f03141e9f Add clock tests
5 years ago
Romain Vimont 3397720330 Add buffering command line options
5 years ago
Romain Vimont 79278961b9 Implement buffering
5 years ago
Romain Vimont 408a301201 Notify new frames via callbacks
5 years ago
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