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 1230149fdd Use delay buffer as a frame source/sink
The components needing delayed frames (sc_screen and sc_v4l2_sink)
managed a sc_video_buffer instance, which itself embedded a
sc_frame_buffer instance (to keep only the most recent frame).

In theory, these components should not be aware of delaying: they should
just receive AVFrames later, and only handle a sc_frame_buffer.

Therefore, refactor sc_delay_buffer as a frame source (it consumes)
frames) and a frame sink (it produces frames, after some delay), and
plug an instance in the pipeline only when a delay is requested.

This also removes the need for a specific sc_video_buffer.

PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757>
1 year ago
..
adb Use random name for device socket 1 year ago
android Fix typos 3 years ago
sys Use /dev/null instead of closing fds 2 years ago
trait Introduce frame source trait 1 year ago
usb Use VecDeque in aoa_hid 1 year ago
util Remove sc_queue 1 year ago
cli.c Add --require-audio 1 year ago
cli.h Move scrcpy option structs to options.h 3 years ago
clock.c Replace '%g' by '%f' as printf format 2 years ago
clock.h Fix typo in clock comments 3 years ago
common.h Fix MIN/MAX macros 1 year ago
compat.c Add compat for reallocarray() 1 year ago
compat.h Add compat for reallocarray() 1 year ago
control_msg.c Forward action button to device 1 year ago
control_msg.h Forward action button to device 1 year ago
controller.c Use VecDeque in controller 1 year ago
controller.h Use VecDeque in controller 1 year ago
coords.h Use sc_ prefix for size, position and point 3 years ago
decoder.c Use delay buffer as a frame source/sink 1 year ago
decoder.h Use frame source trait in decoder 1 year ago
delay_buffer.c Use delay buffer as a frame source/sink 1 year ago
delay_buffer.h Use delay buffer as a frame source/sink 1 year ago
demuxer.c Use packet source trait in demuxer 1 year ago
demuxer.h Use packet source trait in demuxer 1 year ago
device_msg.c Rename buffer_util.h to binary.h 2 years ago
device_msg.h Add missing SC_ prefix to header guards 2 years ago
events.h Report recorder errors 1 year ago
file_pusher.c Use VecDeque in file_pusher 1 year ago
file_pusher.h Use VecDeque in file_pusher 1 year ago
fps_counter.c Move FPS counter start/stop logs 2 years ago
fps_counter.h Add missing SC_ prefix to header guards 2 years ago
frame_buffer.c Fix code style 2 years ago
frame_buffer.h Extract current video_buffer to frame_buffer 3 years ago
icon.c Fix error message on icon loading failure 1 year ago
icon.h Add missing SC_ prefix to header guards 2 years ago
input_events.h Force mouse source when --forward-all-clicks 2 years ago
input_manager.c Forward action button to device 1 year ago
input_manager.h Add missing SC_ prefix to header guards 2 years ago
keyboard_inject.c Use sc_ prefix for control_msg enums 2 years ago
keyboard_inject.h Use sc_ prefix for controller 3 years ago
main.c Move FFmpeg callback initialization 1 year ago
mouse_inject.c Forward action button to device 1 year ago
mouse_inject.h Use sc_ prefix for controller 3 years ago
opengl.c Fix OpenGL ES prefix skip 2 years ago
opengl.h Define feature test macros in common.h 4 years ago
options.c Add --require-audio 1 year ago
options.h Add --require-audio 1 year ago
packet_merger.c Extract packet merging 1 year ago
packet_merger.h Extract packet merging 1 year ago
receiver.c Prefix receiver by sc_ 1 year ago
receiver.h Prefix receiver by sc_ 1 year ago
recorder.c Use VecDeque in recorder 1 year ago
recorder.h Use VecDeque in recorder 1 year ago
scrcpy.c Use delay buffer as a frame source/sink 1 year ago
scrcpy.h Add specific exit code for device disconnection 2 years ago
screen.c Use delay buffer as a frame source/sink 1 year ago
screen.h Use delay buffer as a frame source/sink 1 year ago
server.c Add --list-displays 1 year ago
server.h Add --list-displays 1 year ago
v4l2_sink.c Use delay buffer as a frame source/sink 1 year ago
v4l2_sink.h Use delay buffer as a frame source/sink 1 year ago
version.c Print libusb version on --version 2 years ago
version.h Move version handling to a separate file 2 years ago