diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2011-11-01 12:46:48 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-02 02:38:02 +0100 |
commit | 7dfb883df639f8d80cec7bd2c51eb37561bc4522 (patch) | |
tree | 96fd66844a9733a354d7890bd3d71ba6c326fe23 /src/multimedia/video/qabstractvideobuffer.cpp | |
parent | 6a3a442ea6326ca5e94bd214ad4c88a9f9ec84f3 (diff) |
Declare more metatypes and debug operators.
Nearly all of the multimedia metatypes used in the auto tests are
now declared properly, and a large number of the types have debug
operators as well.
Removed the superfluous decls as well.
Change-Id: I42cfe37562db0c71d9811b4577fc326a3326ccc9
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'src/multimedia/video/qabstractvideobuffer.cpp')
-rw-r--r-- | src/multimedia/video/qabstractvideobuffer.cpp | 14 |
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 |