[vlc-devel] [PATCH 0/5 v2] libvlc surface resizing
Steve Lhomme
robux4 at ycbcr.xyz
Mon May 27 13:06:45 CEST 2019
Changes since v1:
- fix typo in report_size
- document that window_operations can only be set once per window
- the sample apps now use a CriticalSection to lock accesses to the
report_size callback. On cleanup the callback is reset to NULL.
- add the source width/height of the video in the surface setup callback
That's the only moment when the host can know the source video size has
changed. It may decide to resize its rendering area to match the source.
Steve Lhomme (5):
video_output: add a wextern window which doesn't let the core resize
it
libvlc: provide a callback to the host that it can call when its size
changes
doc: D3D11 callbacks: set the rendering size when the window size
changes
doc: D3D9 callbacks: set the rendering size when the window size
changes
libvlc: provide the source video dimensions when updating the surface
dimensions
doc/libvlc/d3d11_player.cpp | 51 ++++++++++++++++++++-
doc/libvlc/d3d9_player.c | 51 ++++++++++++++++++++-
include/vlc/libvlc_media_player.h | 11 +++++
include/vlc_vout_window.h | 5 ++-
lib/media_player.c | 2 +-
modules/video_output/Makefile.am | 2 +
modules/video_output/wextern.c | 60 +++++++++++++++++++++++++
modules/video_output/win32/direct3d11.c | 7 ++-
modules/video_output/win32/direct3d9.c | 7 ++-
9 files changed, 188 insertions(+), 8 deletions(-)
create mode 100644 modules/video_output/wextern.c
--
2.17.1
More information about the vlc-devel
mailing list