feat: skip two-way copy for cuda devices when decoding video wallpapers + cache wallpapers as blobs in new database

This commit is contained in:
2026-10-29 17:44:19 +01:00
parent c0744b29b6
commit 76f5a23c2a
20 changed files with 2739 additions and 330 deletions
+18
View File
@@ -22,11 +22,13 @@ qml_module(ZShell-internal
linearindicatormanager.hpp linearindicatormanager.cpp
strokecanvasitem.hpp strokecanvasitem.cpp
strokecanvasrenderer.hpp strokecanvasrenderer.cpp
videoplayer.hpp videoplayer.cpp
cursor.hpp
LIBRARIES
Qt::Gui
Qt::Quick
Qt::Concurrent
Qt::Sql
Qt::Core
Qt::Network
Qt::DBus
@@ -40,4 +42,20 @@ qml_module(ZShell-internal
PkgConfig::WAYLAND_EGL
PkgConfig::GL
PkgConfig::MPV
PkgConfig::AVCODEC
PkgConfig::AVFORMAT
PkgConfig::AVUTIL
)
qt_add_resources(ZShell-internal "wallpaper_shaders"
PREFIX "/"
FILES
shaders/wallpaper.vert
shaders/wallpaper.frag
shaders/wallpaper_video.frag
)
if(CUDAToolkit_FOUND)
target_link_libraries(ZShell-internal PRIVATE CUDA::cuda_driver)
target_compile_definitions(ZShell-internal PRIVATE ZHAVE_VIDEO=1)
endif()