Qt 4.8
Classes | Functions
qvideosurfaceformat.h File Reference
#include <QtCore/qlist.h>
#include <QtCore/qpair.h>
#include <QtCore/qshareddata.h>
#include <QtCore/qsize.h>
#include <QtGui/qimage.h>
#include <QtMultimedia/qvideoframe.h>

Go to the source code of this file.

Classes

class  QVideoSurfaceFormat
 The QVideoSurfaceFormat class specifies the stream format of a video presentation surface. More...
 

Functions

Q_MULTIMEDIA_EXPORT QDebug operator<< (QDebug, const QVideoSurfaceFormat &)
 

Function Documentation

◆ operator<<()

Q_MULTIMEDIA_EXPORT QDebug operator<< ( QDebug  ,
const QVideoSurfaceFormat  
)

Definition at line 609 of file qvideosurfaceformat.cpp.

610 {
612  switch (f.pixelFormat()) {
614  typeName = QLatin1String("Format_Invalid");
615  break;
617  typeName = QLatin1String("Format_ARGB32");
618  break;
620  typeName = QLatin1String("Format_ARGB32_Premultiplied");
621  break;
623  typeName = QLatin1String("Format_RGB32");
624  break;
626  typeName = QLatin1String("Format_RGB24");
627  break;
629  typeName = QLatin1String("Format_RGB565");
630  break;
632  typeName = QLatin1String("Format_RGB555");
633  break;
635  typeName = QLatin1String("Format_ARGB8565_Premultiplied");
636  break;
638  typeName = QLatin1String("Format_BGRA32");
639  break;
641  typeName = QLatin1String("Format_BGRA32_Premultiplied");
642  break;
644  typeName = QLatin1String("Format_BGR32");
645  break;
647  typeName = QLatin1String("Format_BGR24");
648  break;
650  typeName = QLatin1String("Format_BGR565");
651  break;
653  typeName = QLatin1String("Format_BGR555");
654  break;
656  typeName = QLatin1String("Format_BGRA5658_Premultiplied");
657  break;
659  typeName = QLatin1String("Format_AYUV444");
660  break;
662  typeName = QLatin1String("Format_AYUV444_Premultiplied");
663  break;
665  typeName = QLatin1String("Format_YUV444");
666  break;
668  typeName = QLatin1String("Format_YUV420P");
669  break;
671  typeName = QLatin1String("Format_YV12");
672  break;
674  typeName = QLatin1String("Format_UYVY");
675  break;
677  typeName = QLatin1String("Format_YUYV");
678  break;
680  typeName = QLatin1String("Format_NV12");
681  break;
683  typeName = QLatin1String("Format_NV21");
684  break;
686  typeName = QLatin1String("Format_IMC1");
687  break;
689  typeName = QLatin1String("Format_IMC2");
690  break;
692  typeName = QLatin1String("Format_IMC3");
693  break;
695  typeName = QLatin1String("Format_IMC4");
696  break;
698  typeName = QLatin1String("Format_Y8");
699  break;
701  typeName = QLatin1String("Format_Y16");
702  default:
703  typeName = QString(QLatin1String("UserType(%1)" )).arg(int(f.pixelFormat()));
704  }
705 
706  dbg.nospace() << "QVideoSurfaceFormat(" << typeName;
707  dbg.nospace() << ", " << f.frameSize();
708  dbg.nospace() << ", viewport=" << f.viewport();
709  dbg.nospace() << ", pixelAspectRatio=" << f.pixelAspectRatio();
710  dbg.nospace() << ")";
711 
712  foreach(const QByteArray& propertyName, f.propertyNames())
713  dbg << "\n " << propertyName.data() << " = " << f.property(propertyName.data());
714 
715  return dbg.space();
716 }
char * data()
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:429
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
Definition: qstring.h:83
const char * typeName
Definition: qmetatype.cpp:239
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Definition: qstring.cpp:7186