mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
examples: Create source and sink with fixation on format negotiation
This commit uses the video-src-alloc and video-play-reneg templates to create examples for manual fixation at the format negotiation phase. These clients simulate modifier negotiation done by clients handling DmaBufs. Note: Neither client is capable of proper DmaBuf handling! video-play-fixate can be used to test if a producer is capable to fallback to shm buffer transport, while video-src-fixate can only be used with the former example!
This commit is contained in:
parent
0568958856
commit
9f34885174
4 changed files with 1107 additions and 0 deletions
|
|
@ -16,6 +16,14 @@ executable('video-src-reneg',
|
|||
install_dir : installed_tests_execdir / 'examples',
|
||||
dependencies : [pipewire_dep, mathlib],
|
||||
)
|
||||
if drm_dep.found()
|
||||
executable('video-src-fixate',
|
||||
'video-src-fixate.c',
|
||||
install : installed_tests_enabled,
|
||||
install_dir : installed_tests_execdir / 'examples',
|
||||
dependencies : [pipewire_dep, drm_dep, mathlib],
|
||||
)
|
||||
endif
|
||||
executable('audio-src',
|
||||
'audio-src.c',
|
||||
install : installed_tests_enabled,
|
||||
|
|
@ -76,6 +84,14 @@ if sdl_dep.found()
|
|||
install_dir : installed_tests_execdir / 'examples',
|
||||
dependencies : [pipewire_dep, sdl_dep, mathlib],
|
||||
)
|
||||
if drm_dep.found()
|
||||
executable('video-play-fixate',
|
||||
'video-play-fixate.c',
|
||||
install : installed_tests_enabled,
|
||||
install_dir : installed_tests_execdir / 'examples',
|
||||
dependencies : [pipewire_dep, sdl_dep, drm_dep, mathlib],
|
||||
)
|
||||
endif
|
||||
executable('video-play-pull',
|
||||
'video-play-pull.c',
|
||||
install : installed_tests_enabled,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue