qpixelformat.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qpixelformat.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static_assert(bool(sizeof(QPixelFormat) == sizeof(quint64)), "sizeof(QPixelFormat) == sizeof(quint64)");-
4-
5-
6namespace 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: case QPixelFormat::YUV444:
QPixelFormat::YUV444:
never executed: case QPixelFormat::YUV444:
0
18 bits_per_pixel = 24;-
19 break;
never executed: break;
0
20 case
never executed: case QPixelFormat::YUV422:
QPixelFormat::YUV422:
never executed: case QPixelFormat::YUV422:
0
21 bits_per_pixel = 16;-
22 break;
never executed: break;
0
23 case
never executed: case QPixelFormat::YUV411:
QPixelFormat::YUV411:
never executed: case QPixelFormat::YUV411:
0
24 case
never executed: case QPixelFormat::YUV420P:
QPixelFormat::YUV420P:
never executed: case QPixelFormat::YUV420P:
0
25 case
never executed: case QPixelFormat::YUV420SP:
QPixelFormat::YUV420SP:
never executed: case QPixelFormat::YUV420SP:
0
26 case
never executed: case QPixelFormat::YV12:
QPixelFormat::YV12:
never executed: case QPixelFormat::YV12:
0
27 bits_per_pixel = 12;-
28 break;
never executed: break;
0
29 case
never executed: case QPixelFormat::UYVY:
QPixelFormat::UYVY:
never executed: case QPixelFormat::UYVY:
0
30 case
never executed: case QPixelFormat::YUYV:
QPixelFormat::YUYV:
never executed: case QPixelFormat::YUYV:
0
31 bits_per_pixel = 16;-
32 break;
never executed: break;
0
33 case
never executed: case QPixelFormat::NV12:
QPixelFormat::NV12:
never executed: case QPixelFormat::NV12:
0
34 case
never executed: case QPixelFormat::NV21:
QPixelFormat::NV21:
never executed: case QPixelFormat::NV21:
0
35 bits_per_pixel = 12;-
36 break;
never executed: break;
0
37 case
never executed: case QPixelFormat::IMC1:
QPixelFormat::IMC1:
never executed: case QPixelFormat::IMC1:
0
38 case
never executed: case QPixelFormat::IMC2:
QPixelFormat::IMC2:
never executed: case QPixelFormat::IMC2:
0
39 case
never executed: case QPixelFormat::IMC3:
QPixelFormat::IMC3:
never executed: case QPixelFormat::IMC3:
0
40 case
never executed: case QPixelFormat::IMC4:
QPixelFormat::IMC4:
never executed: case QPixelFormat::IMC4:
0
41 bits_per_pixel = 12;-
42 break;
never executed: break;
0
43 case
never executed: case QPixelFormat::Y8:
QPixelFormat::Y8:
never executed: case QPixelFormat::Y8:
0
44 bits_per_pixel = 8;-
45 break;
never executed: break;
0
46 case
never executed: case QPixelFormat::Y16:
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: return QPixelFormat(QPixelFormat::YUV, 0, 0, 0, 0, bits_per_pixel, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, yuvLayout);
QPixelFormat(QPixelFormat::YUV,
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 codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9