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

Steve Lhomme robux4 at ycbcr.xyz
Fri Jan 25 17:06:49 CET 2019


As the API suggests we'll also need to tell what's the chroma and colorimetry of the display so the core can adapt. It may change dynamically when the source changes.

> On 25 Jan 2019, at 16:46, Steve Lhomme <robux4 at ycbcr.xyz> wrote:
> 
> 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



More information about the vlc-devel mailing list