Steve Lhomme
eca4944d6d
qt/CompositorDComp: avoid using GetAddressOf with ComPtr
It's better not to use it when reference counting is not involved. Otherwise
operator& and ReleaseAndGetAddressOf() are better.
And use ComPtr::As() rather than interface::QueryInterface() to avoid using
GetAddressOf.
4 years ago
Prince Gupta
35e9aa9dce
qt/DirectCompositor: always insert external visual below all siblings
it seems the code assumed that null m_videoVisual means that video
visual is not in the visual tree but that assumption is wrong, this
caused the addition of acrylic visual to fail just after the video is
played and stopped. In that case the videoVisual will not be null but
also will not be in visual tree
Always insert acrylic visual below all siblings.
probably fixes #26279
4 years ago
Benjamin Arnaud
c8b9045445
qt/compositor(s): Add activeFocusItem getter
4 years ago
Pierre Lamot
cea5406265
qt: rename MainInterface to MainCtx
MainInterface was the actual QWidget interface in VLC 3.0, now it's the
application context
only rename classes and files, no functional changes
4 years ago
Prince Gupta
44db1d71c8
qt: directly take required args in DCompositionAcrylicSurface
4 years ago
Pierre Lamot
66e297e7cb
qt: factorize interface construction across compositor
5 years ago
Pierre Lamot
12676dcb85
qt: factorize vout window callbacks
5 years ago
Pierre Lamot
df7d632545
qt: move MainInterface instantiation outside of the compositor
5 years ago
Prince Gupta
2e3f71cd70
qt/DCompositor: show window after initialization
fixes blank window visible at startup
ref #26104
5 years ago
Prince Gupta
c6afb90ae4
qt/compositor_dcomp: implement acrylicsurface
5 years ago
Prince Gupta
606d8cfa92
qt/compositor_dcomp: allow adding visual from outside
5 years ago
Pierre Lamot
71c7f79d60
qt: delete explicitly the InterfaceWindowHandler before destroying the interface
using Qt parenting auto deletion leads to using the window in
InterfaceWindowHandler destructor while it's partially destroyed
5 years ago
Pierre Lamot
de8fb517c1
qt: bind maximization request from the interface window handler
5 years ago
Pierre Lamot
121d07d217
qt: expose main window in Compositor
5 years ago
Pierre Lamot
c51c3f1464
qt: don't use MainInterface as the root window in DComp compositor
fixes : #25865
5 years ago
Pierre Lamot
7ac06259d0
qt: perform sanity checks before initialising dcomp compositor
ensure that the platform is able to use direct composition and can use
shared textures before initialising it.
fix : #24847
6 years ago
Pierre Lamot
6725dc70e1
qt: initialize compositor in two phases
some compositor requires to set Qt Attributes before Qt application
is started such as selecting the right graphical backend (ie: dcomp needs to set
OpenGLES). And some compositor needs know wich QPA is in use (ie: x11 vs
wayland), this can only be known after QApp is started.
Co-authored-by: Guillaume Nicolussi Castellan <nullgemm@videolabs.io>
6 years ago
Pierre Lamot
b60ad66fdb
qt: allow to partially unload the interface
this allows to unload the GUI part of the interface without destroying the
windows that may still be used by the vout window part.
5 years ago
Pierre Lamot
ec1a167076
qt: allow passing a global vout close callback to the compositor
5 years ago
Pierre Lamot
4044fe3bdf
qt: alias intf_thread_t as qt_intf_t
This is a preparatory commit
5 years ago
Prince Gupta
d118f1d0fc
qt: expose type of compositor through its interface
5 years ago
Pierre Lamot
048df9d205
qt: implement PIP for DComp
6 years ago
Pierre Lamot
5e8452d7d0
qt: distinguish enabled from video embed in video surface
6 years ago
Pierre Lamot
061abdfd2d
qt: release order in DComp compositor
6 years ago
Pierre Lamot
e3ead9cbdd
qml: add support for client side decoration
6 years ago
Pierre Lamot
37f0ca029f
qt: change interface scale on Ctrl+Wheel events
6 years ago
Pierre Lamot
2465539ae6
qt: extract interface window handling from MainInterface
6 years ago
Pierre Lamot
e2a67fb834
qt: separate Taskbar buttons creation from MainInterfaceWin32
6 years ago
Pierre Lamot
12ddc77724
qt: use video window handler in DirectComposition compositor
6 years ago
Pierre Lamot
deb7c732ea
qt: don't load DComp backend when the device doesn't support D3D11 features
6 years ago
Pierre Lamot
3d6013c5e1
qt: add DirectCompositor compositor
6 years ago