Add support for v4l2loopback

It allows to send the video stream to /dev/videoN, so that it can be
captured (like a webcam) by any v4l2-capable tool.

PR #2232 <https://github.com/Genymobile/scrcpy/pull/2232>
PR #2233 <https://github.com/Genymobile/scrcpy/pull/2233>
PR #2268 <https://github.com/Genymobile/scrcpy/pull/2268>

Co-authored-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
Marco Martinelli
2021-04-04 00:10:44 +02:00
committed by Romain Vimont
parent 5af9d0ee0f
commit d39161f753
9 changed files with 480 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
#include <stdbool.h>
#include <libavformat/avformat.h>
#define DECODER_MAX_SINKS 1
#define DECODER_MAX_SINKS 2
struct decoder {
struct sc_packet_sink packet_sink; // packet sink trait