diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-03-26 14:00:48 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-04-07 14:51:37 +0000 |
commit | e7f0294d646fc9022b7f76a54a5d62de1d6e72a5 (patch) | |
tree | 6a61b4ee62dca58d4635d9c1c8687febbee2fdc5 /src/multimedia/video/qvideotexturehelper.cpp | |
parent | e6710a5290fbac8ea0545755f411db58f42e3ee5 (diff) |
Add a dependency to Qt Shader Tools
And build our shaders at compile time.
Change-Id: I49db464826c51c6d9b3aba5d3f9551df9e6ba7dd
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/video/qvideotexturehelper.cpp')
-rw-r--r-- | src/multimedia/video/qvideotexturehelper.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/multimedia/video/qvideotexturehelper.cpp b/src/multimedia/video/qvideotexturehelper.cpp index 930456d7d..4465ae6f1 100644 --- a/src/multimedia/video/qvideotexturehelper.cpp +++ b/src/multimedia/video/qvideotexturehelper.cpp @@ -267,7 +267,7 @@ QString vertexShaderFileName(QVideoSurfaceFormat::PixelFormat format) return QString(); case QVideoSurfaceFormat::Format_AYUV444: case QVideoSurfaceFormat::Format_AYUV444_Premultiplied: - return QStringLiteral(":/qtmultimedia/shaders/yuv.vert.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/yuv.vert.qsb"); case QVideoSurfaceFormat::Format_ARGB32: case QVideoSurfaceFormat::Format_ARGB32_Premultiplied: case QVideoSurfaceFormat::Format_RGB32: @@ -275,7 +275,7 @@ QString vertexShaderFileName(QVideoSurfaceFormat::PixelFormat format) case QVideoSurfaceFormat::Format_BGRA32_Premultiplied: case QVideoSurfaceFormat::Format_ABGR32: case QVideoSurfaceFormat::Format_BGR32: - return QStringLiteral(":/qtmultimedia/shaders/rgba.vert.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/rgba.vert.qsb"); case QVideoSurfaceFormat::Format_YUV420P: case QVideoSurfaceFormat::Format_YUV422P: case QVideoSurfaceFormat::Format_YV12: @@ -287,7 +287,7 @@ QString vertexShaderFileName(QVideoSurfaceFormat::PixelFormat format) case QVideoSurfaceFormat::Format_P010BE: case QVideoSurfaceFormat::Format_P016LE: case QVideoSurfaceFormat::Format_P016BE: - return QStringLiteral(":/qtmultimedia/shaders/yuv.vert.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/yuv.vert.qsb"); } } @@ -318,7 +318,7 @@ QString fragmentShaderFileName(QVideoSurfaceFormat::PixelFormat format) return QString(); case QVideoSurfaceFormat::Format_AYUV444: case QVideoSurfaceFormat::Format_AYUV444_Premultiplied: - return QStringLiteral(":/qtmultimedia/shaders/ayuv.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/ayuv.frag.qsb"); case QVideoSurfaceFormat::Format_ARGB32: case QVideoSurfaceFormat::Format_ARGB32_Premultiplied: case QVideoSurfaceFormat::Format_RGB32: @@ -326,25 +326,25 @@ QString fragmentShaderFileName(QVideoSurfaceFormat::PixelFormat format) case QVideoSurfaceFormat::Format_BGRA32_Premultiplied: case QVideoSurfaceFormat::Format_ABGR32: case QVideoSurfaceFormat::Format_BGR32: - return QStringLiteral(":/qtmultimedia/shaders/rgba.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/rgba.frag.qsb"); case QVideoSurfaceFormat::Format_YUV420P: case QVideoSurfaceFormat::Format_YUV422P: case QVideoSurfaceFormat::Format_YV12: - return QStringLiteral(":/qtmultimedia/shaders/yuv_yv.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/yuv_yv.frag.qsb"); case QVideoSurfaceFormat::Format_UYVY: - return QStringLiteral(":/qtmultimedia/shaders/uyvy.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/uyvy.frag.qsb"); case QVideoSurfaceFormat::Format_YUYV: - return QStringLiteral(":/qtmultimedia/shaders/yuyv.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/yuyv.frag.qsb"); case QVideoSurfaceFormat::Format_NV12: - return QStringLiteral(":/qtmultimedia/shaders/nv12.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/nv12.frag.qsb"); case QVideoSurfaceFormat::Format_NV21: - return QStringLiteral(":/qtmultimedia/shaders/nv21.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/nv21.frag.qsb"); case QVideoSurfaceFormat::Format_P010LE: case QVideoSurfaceFormat::Format_P016LE: - return QStringLiteral(":/qtmultimedia/shaders/p010le.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/p010le.frag.qsb"); case QVideoSurfaceFormat::Format_P010BE: case QVideoSurfaceFormat::Format_P016BE: - return QStringLiteral(":/qtmultimedia/shaders/p010be.frag.qsb"); + return QStringLiteral(":/qt-project.org/multimedia/shaders/p010be.frag.qsb"); } } |