615 QDebugStateSaver saver(dbg);
620 dbg <<
"QPixelFormat(" << f.colorModel();
621 if (f.colorModel() == QPixelFormat::YUV)
622 dbg <<
"," << f.yuvLayout();
624 dbg <<
",bpp=" << f.bitsPerPixel()
625 <<
"," << f.typeInterpretation();
627 if (f.typeInterpretation() != QPixelFormat::UnsignedByte || f.bitsPerPixel() > 8)
628 dbg <<
"," << f.byteOrder();
630 if (f.colorModel() != QPixelFormat::YUV) {
631 dbg <<
",ch=" << f.channelCount() <<
"[";
632 const int alphaSize = f.alphaSize();
633 const int colorChannels = f.channelCount() - (f.alphaSize() ? 1 : 0);
634 if (alphaSize && f.alphaPosition() == QPixelFormat::AtBeginning)
635 dbg << alphaSize <<
"-";
636 if (colorChannels >= 1)
637 dbg << f.get(QPixelFormat::FirstField, QPixelFormat::FirstFieldWidth);
638 if (colorChannels >= 2)
639 dbg <<
"-" << f.get(QPixelFormat::SecondField, QPixelFormat::SecondFieldWidth);
640 if (colorChannels >= 3)
641 dbg <<
"-" << f.get(QPixelFormat::ThirdField, QPixelFormat::ThirdFieldWidth);
642 if (colorChannels >= 4)
643 dbg <<
"-" << f.get(QPixelFormat::FourthField, QPixelFormat::FourthFieldWidth);
644 if (colorChannels >= 5)
645 dbg <<
"-" << f.get(QPixelFormat::FifthField, QPixelFormat::FifthFieldWidth);
646 if (alphaSize && f.alphaPosition() == QPixelFormat::AtEnd)
647 dbg <<
"-" << alphaSize;
651 if (f.alphaSize() > 0) {
652 dbg <<
"," << f.alphaUsage()
653 <<
"=" << f.alphaSize()
654 <<
"," << f.alphaPosition();
655 if (f.alphaUsage() == QPixelFormat::UsesAlpha)
656 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)