summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qabstractvideobuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimedia/video/qabstractvideobuffer.cpp')
-rw-r--r--src/multimedia/video/qabstractvideobuffer.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/multimedia/video/qabstractvideobuffer.cpp b/src/multimedia/video/qabstractvideobuffer.cpp
index d0f07ab01..ea946a6a5 100644
--- a/src/multimedia/video/qabstractvideobuffer.cpp
+++ b/src/multimedia/video/qabstractvideobuffer.cpp
@@ -219,6 +219,20 @@ QDebug operator<<(QDebug dbg, QAbstractVideoBuffer::HandleType type)
return dbg.nospace() << QString(QLatin1String("UserHandle(%1)")).arg(int(type)).toAscii().constData();
}
}
+
+QDebug operator<<(QDebug dbg, QAbstractVideoBuffer::MapMode mode)
+{
+ switch (mode) {
+ case QAbstractVideoBuffer::ReadOnly:
+ return dbg.nospace() << "ReadOnly";
+ case QAbstractVideoBuffer::ReadWrite:
+ return dbg.nospace() << "ReadWrite";
+ case QAbstractVideoBuffer::WriteOnly:
+ return dbg.nospace() << "WriteOnly";
+ default:
+ return dbg.nospace() << "NotMapped";
+ }
+}
#endif
QT_END_NAMESPACE