]> git.sesse.net Git - ffmpeg/commit
avdevice/sdl2: add option to set window position
authorDave Rice <dave@dericed.com>
Mon, 1 Oct 2018 21:17:24 +0000 (17:17 -0400)
committerMarton Balint <cus@passwd.hu>
Tue, 23 Oct 2018 17:42:32 +0000 (19:42 +0200)
commit110b4a491859e6e635f6513670785a9378c9551b
tree96c855fccaf437beefcba950433f3ea382217445
parent3f2103ec73c96d530b0516869363ad9ea730c909
avdevice/sdl2: add option to set window position

Allows arrangement of multiple windows such as:
ffmpeg -re -f lavfi -i mandelbrot -f sdl -window_x 1 -window_y 1 mandelbrot -vf waveform,format=yuv420p -f sdl -window_x 641 -window_y 1 waveform -vf vectorscope,format=yuv420p -f sdl -window_x 1 -window_y 481 vectorscop

Some changes by Marton Balint:
- allow negative position (partially or fully out-of-screen positions seem to
  be sanitized automatically by SDL (or my WM?), so no special handling is
  needed)
- only show window after the position is set
- do not use resizable and borderless flags at the same time, that caused
  issues in ffplay
- add docs

Signed-off-by: Marton Balint <cus@passwd.hu>
doc/outdevs.texi
libavdevice/sdl2.c
libavdevice/version.h