Simon Ser
8db0d82890
examples/dmabuf-capture: fix frame_number deprecated in FFmpeg 6.0
...
Fixes the following error:
../examples/dmabuf-capture.c:524:33: error: 'frame_number' is deprecated [-Werror=deprecated-declarations]
524 | ctx->avctx->frame_number, get_fifo_size(&ctx->vid_frames));
| ^~~
2023-02-28 11:57:07 +01:00
Keith Bowes
35b3d67e5f
Fixed compiling with FFmpeg 5.0
2022-02-21 15:51:17 +01:00
Simon Ser
6230f7be4f
examples/dmabuf-capture: stop using av_init_packet
...
It's deprecated in ffmpeg >= 4.4.
Closes: https://github.com/swaywm/wlroots/issues/2798
2021-03-22 17:15:06 +01:00
Simon Ser
2b418b4d88
examples/dmabuf-capture: add extra roundtrip for wl_output listener
...
This example was relying on wl_display_dispatch being enough to fetch
output information. This worked by chance.
Add an explicit wl_display_roundtrip.
Other examples don't setup wl_output listeners, so they should be fine.
Fixes: 297354f847
("Remove unnecessary wl_display_dispatch calls")
Closes: https://github.com/swaywm/wlroots/issues/2386
2020-08-31 08:43:54 -06:00
Simon Ser
297354f847
Remove unnecessary wl_display_dispatch calls
...
wl_display_roundtrip already takes care of dispatching the display.
2020-08-24 07:55:35 -06:00
Simon Ser
61d6408fdb
examples/dmabuf-capture: use getopt
...
This makes it a little bit less annoying to provide the right arguments.
All options have reasonable defaults.
2020-05-01 16:57:08 +02:00
Simon Ser
16e5e9541b
Add -Wmissing-prototypes
...
This requires functions without a prototype definition to be static.
This allows to detect dead code, export less symbols and put shared
functions in headers.
2019-11-20 02:05:03 +00:00
emersion
7309d8c9ac
Fix two issues found with Clang's static analyzer
2019-01-29 19:56:43 +01:00
emersion
2d0c5ec78e
Use _POSIX_C_SOURCE, use shm_open
2018-11-06 08:29:23 +01:00
Scott Anderson
7ca3bc1d6f
Fix libdrm includes
...
This removes any assumptions about how the libdrm headers are installed,
and uses the pkg-config include directories as we're "supposed to".
This only adds a partial dependency, since we don't actually need to
link against libdrm.
2018-10-15 11:39:35 +13:00
emersion
3df602a62d
export-dmabuf: disable hardware cursors if desired
...
Also make the frame resource inert when sending "ready".
2018-09-18 11:48:04 +02:00
Rostislav Pehlivanov
5707653e85
examples/dmabuf-capture: move encoding to a separate thread
...
Drop new frames if too slow. Speeds up encoding significantly, even with vaapi.
2018-06-25 06:41:59 +01:00
Rostislav Pehlivanov
ed7d5b0f53
Fix example
2018-06-17 15:19:17 +01:00
emersion
bd0c1b7949
export-dmabuf: update protocol
2018-06-17 14:19:45 +01:00
Rostislav Pehlivanov
9eddcbc376
Update example and protocol
2018-06-17 14:06:52 +01:00
emersion
70d324a0f9
examples/dmabuf-capture: simplify event loop and fix style
2018-05-29 18:47:20 +01:00
emersion
2198fd5eed
examples/dmabuf-capture: fix indentation
2018-05-29 18:47:20 +01:00
Rostislav Pehlivanov
f204a9127c
Command line parsing
2018-05-29 18:47:19 +01:00
Rostislav Pehlivanov
b9b397ef80
Add a demo client for dmabuf export
2018-05-29 18:47:19 +01:00