| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qpixelformat.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | static_assert(bool(sizeof(QPixelFormat) == sizeof(quint64)), "sizeof(QPixelFormat) == sizeof(quint64)"); | - |
| 4 | - | |
| 5 | - | |
| 6 | namespace QtPrivate { | - |
| 7 | QPixelFormat QPixelFormat_createYUV(QPixelFormat::YUVLayout yuvLayout, | - |
| 8 | uchar alphaSize, | - |
| 9 | QPixelFormat::AlphaUsage alphaUsage, | - |
| 10 | QPixelFormat::AlphaPosition alphaPosition, | - |
| 11 | QPixelFormat::AlphaPremultiplied premultiplied, | - |
| 12 | QPixelFormat::TypeInterpretation typeInterpretation, | - |
| 13 | QPixelFormat::ByteOrder byteOrder) | - |
| 14 | { | - |
| 15 | uchar bits_per_pixel = 0; | - |
| 16 | switch (yuvLayout) { | - |
| 17 | case never executed: QPixelFormat::YUV444:case QPixelFormat::YUV444:never executed: case QPixelFormat::YUV444: | 0 |
| 18 | bits_per_pixel = 24; | - |
| 19 | break; never executed: break; | 0 |
| 20 | case never executed: QPixelFormat::YUV422:case QPixelFormat::YUV422:never executed: case QPixelFormat::YUV422: | 0 |
| 21 | bits_per_pixel = 16; | - |
| 22 | break; never executed: break; | 0 |
| 23 | case never executed: QPixelFormat::YUV411:case QPixelFormat::YUV411:never executed: case QPixelFormat::YUV411: | 0 |
| 24 | case never executed: QPixelFormat::YUV420P:case QPixelFormat::YUV420P:never executed: case QPixelFormat::YUV420P: | 0 |
| 25 | case never executed: QPixelFormat::YUV420SP:case QPixelFormat::YUV420SP:never executed: case QPixelFormat::YUV420SP: | 0 |
| 26 | case never executed: QPixelFormat::YV12:case QPixelFormat::YV12:never executed: case QPixelFormat::YV12: | 0 |
| 27 | bits_per_pixel = 12; | - |
| 28 | break; never executed: break; | 0 |
| 29 | case never executed: QPixelFormat::UYVY:case QPixelFormat::UYVY:never executed: case QPixelFormat::UYVY: | 0 |
| 30 | case never executed: QPixelFormat::YUYV:case QPixelFormat::YUYV:never executed: case QPixelFormat::YUYV: | 0 |
| 31 | bits_per_pixel = 16; | - |
| 32 | break; never executed: break; | 0 |
| 33 | case never executed: QPixelFormat::NV12:case QPixelFormat::NV12:never executed: case QPixelFormat::NV12: | 0 |
| 34 | case never executed: QPixelFormat::NV21:case QPixelFormat::NV21:never executed: case QPixelFormat::NV21: | 0 |
| 35 | bits_per_pixel = 12; | - |
| 36 | break; never executed: break; | 0 |
| 37 | case never executed: QPixelFormat::IMC1:case QPixelFormat::IMC1:never executed: case QPixelFormat::IMC1: | 0 |
| 38 | case never executed: QPixelFormat::IMC2:case QPixelFormat::IMC2:never executed: case QPixelFormat::IMC2: | 0 |
| 39 | case never executed: QPixelFormat::IMC3:case QPixelFormat::IMC3:never executed: case QPixelFormat::IMC3: | 0 |
| 40 | case never executed: QPixelFormat::IMC4:case QPixelFormat::IMC4:never executed: case QPixelFormat::IMC4: | 0 |
| 41 | bits_per_pixel = 12; | - |
| 42 | break; never executed: break; | 0 |
| 43 | case never executed: QPixelFormat::Y8:case QPixelFormat::Y8:never executed: case QPixelFormat::Y8: | 0 |
| 44 | bits_per_pixel = 8; | - |
| 45 | break; never executed: break; | 0 |
| 46 | case never executed: QPixelFormat::Y16:case QPixelFormat::Y16:never executed: case QPixelFormat::Y16: | 0 |
| 47 | bits_per_pixel = 16; | - |
| 48 | break; never executed: break; | 0 |
| 49 | } | - |
| 50 | - | |
| 51 | return never executed: QPixelFormat(QPixelFormat::YUV,return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout);never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 52 | 0, 0, 0, 0, never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 53 | bits_per_pixel, never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 54 | alphaSize, never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 55 | alphaUsage, never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 56 | alphaPosition, never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 57 | premultiplied, never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 58 | typeInterpretation, never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 59 | byteOrder, never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 60 | yuvLayout); never executed: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout); | 0 |
| 61 | } | - |
| 62 | } | - |
| 63 | - | |
| 64 | - | |
| Switch to Source code | Preprocessed file |