You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scrcpy/app/src
Romain Vimont 79278961b9 Implement buffering
To minimize latency (at the cost of jitter), scrcpy always displays a
frame as soon as it available, without waiting.

However, when recording (--record), it still writes the captured
timestamps to the output file, so that the recorded file can be played
correctly without jitter.

Some real-time use cases might benefit from adding a small latency to
compensate for jitter too. For example, few tens of seconds of latency
for live-streaming are not important, but jitter is noticeable.

Therefore, implement a buffering mechanism (disabled by default) to add
a configurable latency delay.

PR #2417 <https://github.com/Genymobile/scrcpy/issues/2417>
3 years ago
..
android Fix typos 3 years ago
sys Replace VLA by dynamic allocation 3 years ago
trait Add frame sink trait 3 years ago
util Replace delay by deadline in timedwait() 3 years ago
adb.c Replace VLA by dynamic allocation 3 years ago
adb.h Define feature test macros in common.h 4 years ago
cli.c Fix --lock-video-orientation syntax in help 3 years ago
cli.h Define feature test macros in common.h 4 years ago
clock.c Implement buffering 3 years ago
clock.h Implement buffering 3 years ago
common.h Add container_of() macro 3 years ago
compat.c Provide strdup() compat 3 years ago
compat.h Fix compatibility with old FFmpeg 3 years ago
control_msg.c Workaround PRIu64 on Windows 3 years ago
control_msg.h Log control messages in verbose mode 3 years ago
controller.c Attempt to log message only in verbose mode 3 years ago
controller.h Wrap SDL thread functions into scrcpy-specific API 3 years ago
coords.h Move common structs to coords.h 4 years ago
decoder.c Explicitly initialize decoder sink_count 3 years ago
decoder.h Add support for v4l2loopback 3 years ago
device_msg.c Replace SDL_strdup() by strdup() 3 years ago
device_msg.h Replace SDL_strdup() by strdup() 3 years ago
event_converter.c Merge branch 'master' into dev 3 years ago
event_converter.h Define feature test macros in common.h 4 years ago
events.h Remove unused custom event 3 years ago
file_handler.c Push to /sdcard/Download/ by default 3 years ago
file_handler.h Wrap SDL thread functions into scrcpy-specific API 3 years ago
fps_counter.c Replace delay by deadline in timedwait() 3 years ago
fps_counter.h Wrap tick API 3 years ago
frame_buffer.c Extract current video_buffer to frame_buffer 3 years ago
frame_buffer.h Extract current video_buffer to frame_buffer 3 years ago
icon.xpm Add window icon 6 years ago
input_manager.c Forward mouse motion only on main clicks 3 years ago
input_manager.h Initialize input manager dynamically 3 years ago
main.c Move log level conversion to log API 3 years ago
opengl.c Enable trilinear filtering for OpenGL 4 years ago
opengl.h Define feature test macros in common.h 4 years ago
receiver.c Wrap SDL thread functions into scrcpy-specific API 3 years ago
receiver.h Wrap SDL thread functions into scrcpy-specific API 3 years ago
recorder.c Rename queue to sc_queue 3 years ago
recorder.h Rename queue to sc_queue 3 years ago
scrcpy.c Initialize controller even if there is no display 3 years ago
scrcpy.h Add --verbosity=verbose log level 3 years ago
screen.c Implement buffering 3 years ago
screen.h Rename video_buffer to sc_video_buffer 3 years ago
server.c Replace delay by deadline in timedwait() 3 years ago
server.h Pass serial within struct server_params 3 years ago
stream.c Remove unnecessary calls to av_packet_unref() 3 years ago
stream.h Allocate AVPacket for stream->pending 3 years ago
tiny_xpm.c Group common includes into common.h 4 years ago
tiny_xpm.h Define feature test macros in common.h 4 years ago
v4l2_sink.c Implement buffering 3 years ago
v4l2_sink.h Rename video_buffer to sc_video_buffer 3 years ago
video_buffer.c Implement buffering 3 years ago
video_buffer.h Implement buffering 3 years ago