[vlc-devel] [PATCH 0/6] WIP libvlc surface rendering size update

Rémi Denis-Courmont remi at remlab.net
Fri Jan 25 17:26:36 CET 2019


This is either incorrect or misleading. VLC always renders both SPU and video in window resolution, whether that's with software or hardware scaling.

LibVLC apps should be able to select their surface size (as they are able to select their embedded window size). But there are no reasons why that would be SPU-specific.

Le 25 janvier 2019 17:46:59 GMT+02:00, Steve Lhomme <robux4 at ycbcr.xyz> a écrit :
>When rendering in VLC the window size affects the rendering as SPU may
>need to
>be rendered bigger than the video. A host app should get the same
>quality. If
>it's playing a small video the SPU should still have a correct size
>when displayed
>large.
>
>So we need an API to tell libvlc the rendering area size. These patches
>add this
>feature by setting the value in the vout (or in a variable if it's not
>created
>yet).
>
>It may be possible to add callbacks to "wdummy" to do the same in a
>more regular
>way.
>
>There's also a Qt sample app that renders into OpenGL.
>
>Steve Lhomme (6):
>  libvlc: rename libvlc_video_set_output_callbacks
>  doc: add a Qt app to showcase the OpenGL surface callbacks
>  libvlc: add structures to describe the display configuration
>  WIP video_output: make vout_ControlChangeDisplaySize() public
>  libvlc: add an API to set the display configuration
>  WIP qtqlvlc: update the rendering size when changing the window size
>
> doc/libvlc/QtGL/main.cpp          |  40 ++++
> doc/libvlc/QtGL/qtvlcwidget.cpp   | 332 ++++++++++++++++++++++++++++++
> doc/libvlc/QtGL/qtvlcwidget.h     |  47 +++++
> doc/libvlc/sdl_opengl_player.cpp  |   4 +-
> include/vlc/libvlc_media_player.h |  89 +++++++-
> include/vlc_vout.h                |   4 +
> lib/libvlc.sym                    |   3 +-
> lib/media_player.c                |   5 +-
> lib/video.c                       |  17 ++
> src/libvlccore.sym                |   1 +
> src/video_output/vout_internal.h  |   2 -
> 11 files changed, 530 insertions(+), 14 deletions(-)
> create mode 100644 doc/libvlc/QtGL/main.cpp
> create mode 100644 doc/libvlc/QtGL/qtvlcwidget.cpp
> create mode 100644 doc/libvlc/QtGL/qtvlcwidget.h
>
>-- 
>2.17.1
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190125/7962cf58/attachment.html>


More information about the vlc-devel mailing list