494 QPixelFormat::AlphaUsage alphaUsage,
495 QPixelFormat::AlphaPosition alphaPosition,
496 QPixelFormat::AlphaPremultiplied premultiplied,
497 QPixelFormat::TypeInterpretation typeInterpretation,
498 QPixelFormat::ByteOrder byteOrder)
500 uchar bits_per_pixel = 0;
502 case QPixelFormat::YUV444:
505 case QPixelFormat::YUV422:
508 case QPixelFormat::YUV411:
509 case QPixelFormat::YUV420P:
510 case QPixelFormat::YUV420SP:
511 case QPixelFormat::YV12:
514 case QPixelFormat::UYVY:
515 case QPixelFormat::YUYV:
518 case QPixelFormat::NV12:
519 case QPixelFormat::NV21:
522 case QPixelFormat::IMC1:
523 case QPixelFormat::IMC2:
524 case QPixelFormat::IMC3:
525 case QPixelFormat::IMC4:
528 case QPixelFormat::Y8:
531 case QPixelFormat::Y16:
536 return QPixelFormat(QPixelFormat::YUV,
QPixelFormat QPixelFormat_createYUV(QPixelFormat::YUVLayout yuvLayout, uchar alphaSize, QPixelFormat::AlphaUsage alphaUsage, QPixelFormat::AlphaPosition alphaPosition, QPixelFormat::AlphaPremultiplied premultiplied, QPixelFormat::TypeInterpretation typeInterpretation, QPixelFormat::ByteOrder byteOrder)