examples/dmabuf-capture: move encoding to a separate thread

Drop new frames if too slow. Speeds up encoding significantly, even with vaapi.
This commit is contained in:
Rostislav Pehlivanov 2018-06-23 02:43:52 +01:00
parent e459fe0ec7
commit 5707653e85
2 changed files with 169 additions and 62 deletions

View file

@ -47,6 +47,7 @@ if libavutil.found() and libavcodec.found() and libavformat.found()
executable(
'dmabuf-capture',
'dmabuf-capture.c',
dependencies: [wayland_client, wlr_protos, libavutil, libavcodec, libavformat, wlroots]
dependencies: [wayland_client, wlr_protos, libavutil, libavcodec,
libavformat, wlroots, threads ]
)
endif