612 QDebugStateSaver saver(dbg);
617 dbg <<
"QPixelFormat(" << f.colorModel();
618 if (f.colorModel() == QPixelFormat::YUV)
619 dbg <<
"," << f.yuvLayout();
621 dbg <<
",bpp=" << f.bitsPerPixel()
622 <<
"," << f.typeInterpretation();
624 if (f.typeInterpretation() != QPixelFormat::UnsignedByte || f.bitsPerPixel() > 8)
625 dbg <<
"," << f.byteOrder();
627 if (f.colorModel() != QPixelFormat::YUV) {
628 dbg <<
",ch=" << f.channelCount() <<
"[";
629 const int alphaSize = f.alphaSize();
630 const int colorChannels = f.channelCount() - (f.alphaSize() ? 1 : 0);
631 if (alphaSize && f.alphaPosition() == QPixelFormat::AtBeginning)
632 dbg << alphaSize <<
"-";
633 if (colorChannels >= 1)
634 dbg << f.get(QPixelFormat::FirstField, QPixelFormat::FirstFieldWidth);
635 if (colorChannels >= 2)
636 dbg <<
"-" << f.get(QPixelFormat::SecondField, QPixelFormat::SecondFieldWidth);
637 if (colorChannels >= 3)
638 dbg <<
"-" << f.get(QPixelFormat::ThirdField, QPixelFormat::ThirdFieldWidth);
639 if (colorChannels >= 4)
640 dbg <<
"-" << f.get(QPixelFormat::FourthField, QPixelFormat::FourthFieldWidth);
641 if (colorChannels >= 5)
642 dbg <<
"-" << f.get(QPixelFormat::FifthField, QPixelFormat::FifthFieldWidth);
643 if (alphaSize && f.alphaPosition() == QPixelFormat::AtEnd)
644 dbg <<
"-" << alphaSize;
648 if (f.alphaSize() > 0) {
649 dbg <<
"," << f.alphaUsage()
650 <<
"=" << f.alphaSize()
651 <<
"," << f.alphaPosition();
652 if (f.alphaUsage() == QPixelFormat::UsesAlpha)
653 dbg <<
"," << f.premultiplied();
QPixelFormat QPixelFormat_createYUV(QPixelFormat::YUVLayout yuvLayout, uchar alphaSize, QPixelFormat::AlphaUsage alphaUsage, QPixelFormat::AlphaPosition alphaPosition, QPixelFormat::AlphaPremultiplied premultiplied, QPixelFormat::TypeInterpretation typeInterpretation, QPixelFormat::ByteOrder byteOrder)