[vlc-devel] [PATCH v2 00/19] Move picture placement in the core

Steve Lhomme robux4 at ycbcr.xyz
Tue Aug 25 16:20:13 CEST 2020


Changes since v1:
- integrated the patch to pass the alignment origin to vout_display_PlacePicture()
- the origin is passed as an enum
- the display config is no longer modifiable by the display modules
- OpenGL module compute their local (inverted) placement using the new simplified
  vout_display_PlacePicture API
- fix MMAL resolution reporting/placement

Steve Lhomme (19):
  display: specify if vout_display_PlacePicture() alignment is
    top/bottom-left
  vout: win32: add a flag tell if the alignment is relative to the
    bottom-left
  display: use vd->cfg directly in
    VOUT_DISPLAY_CHANGE_xxx/RESET_PICTURES
  vout: win32: remove unused parameters
  vout: fix warning on unused va_list
  display: don't pass an unused const vout_display_cfg_t* to
    VOUT_DISPLAY controls
  opengl: compute the picture placement when we are using it
  display: keep the placed picture on open and after changing display
    settings
  xcb/x11: use the picture placement from the core on open
  vdpau/display: use the picture placement from the core on open
  vdpau/display: use the picture placement from the core
  wayland/shm: use the picture placement from the core
  kva: use the placed picture dimensions from the core
  xcb: use the placed picture dimensions from the core
  vout: vulkan: use the placed picture dimensions from the core
  vout: win32: use the placed picture dimensions from the core
  display: log when the source or picture placement changes
  vout: win32: simplify setting the placement as changed
  mmal: vout: simplify the code to update the display resolution

 include/vlc_vout_display.h              | 53 +++++++++-----
 modules/hw/mmal/vout.c                  | 84 +++++++---------------
 modules/hw/vdpau/display.c              | 39 +++++------
 modules/video_output/Makefile.am        |  3 -
 modules/video_output/android/display.c  |  7 +-
 modules/video_output/caopengllayer.m    | 12 +---
 modules/video_output/ios.m              |  9 +--
 modules/video_output/kva.c              | 22 +++---
 modules/video_output/macosx.m           | 21 ++----
 modules/video_output/opengl/display.c   | 32 ++-------
 modules/video_output/vulkan/display.c   | 12 ++--
 modules/video_output/wayland/shm.c      | 26 +++----
 modules/video_output/win32/common.c     | 55 ++++-----------
 modules/video_output/win32/common.h     | 13 ++--
 modules/video_output/win32/direct3d11.c | 48 ++++++-------
 modules/video_output/win32/direct3d9.c  | 34 ++++-----
 modules/video_output/win32/glwin32.c    | 12 ++--
 modules/video_output/win32/wingdi.c     | 22 +++---
 modules/video_output/xcb/render.c       | 25 +++----
 modules/video_output/xcb/x11.c          | 29 ++++----
 src/video_output/display.c              | 92 +++++++++++++++++--------
 src/video_output/video_output.c         |  9 ++-
 22 files changed, 286 insertions(+), 373 deletions(-)

-- 
2.26.2



More information about the vlc-devel mailing list