| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopenglpixeltransferoptions.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | class QOpenGLPixelTransferOptionsData : public QSharedData | - | ||||||
| 4 | { | - | ||||||
| 5 | public: | - | ||||||
| 6 | QOpenGLPixelTransferOptionsData() | - | ||||||
| 7 | : alignment(4) | - | ||||||
| 8 | , skipImages(0) | - | ||||||
| 9 | , skipRows(0) | - | ||||||
| 10 | , skipPixels(0) | - | ||||||
| 11 | , imageHeight(0) | - | ||||||
| 12 | , rowLength(0) | - | ||||||
| 13 | , lsbFirst(false) | - | ||||||
| 14 | , swapBytes(false) | - | ||||||
| 15 | {} never executed: end of block | 0 | ||||||
| 16 | - | |||||||
| 17 | int alignment; | - | ||||||
| 18 | int skipImages; | - | ||||||
| 19 | int skipRows; | - | ||||||
| 20 | int skipPixels; | - | ||||||
| 21 | int imageHeight; | - | ||||||
| 22 | int rowLength; | - | ||||||
| 23 | bool lsbFirst; | - | ||||||
| 24 | bool swapBytes; | - | ||||||
| 25 | }; | - | ||||||
| 26 | - | |||||||
| 27 | - | |||||||
| 28 | - | |||||||
| 29 | - | |||||||
| 30 | QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions() | - | ||||||
| 31 | : data(new QOpenGLPixelTransferOptionsData) | - | ||||||
| 32 | { | - | ||||||
| 33 | } never executed: end of block | 0 | ||||||
| 34 | - | |||||||
| 35 | - | |||||||
| 36 | - | |||||||
| 37 | - | |||||||
| 38 | QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions(const QOpenGLPixelTransferOptions &rhs) | - | ||||||
| 39 | : data(rhs.data) | - | ||||||
| 40 | { | - | ||||||
| 41 | } never executed: end of block | 0 | ||||||
| 42 | - | |||||||
| 43 | - | |||||||
| 44 | - | |||||||
| 45 | - | |||||||
| 46 | QOpenGLPixelTransferOptions &QOpenGLPixelTransferOptions::operator=(const QOpenGLPixelTransferOptions &rhs) | - | ||||||
| 47 | { | - | ||||||
| 48 | if (this != &rhs
| 0 | ||||||
| 49 | data.operator=(rhs.data); never executed: data.operator=(rhs.data); | 0 | ||||||
| 50 | return never executed: *this;return *this;never executed: return *this; | 0 | ||||||
| 51 | } | - | ||||||
| 52 | - | |||||||
| 53 | - | |||||||
| 54 | - | |||||||
| 55 | - | |||||||
| 56 | QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions() | - | ||||||
| 57 | { | - | ||||||
| 58 | } | - | ||||||
| 59 | - | |||||||
| 60 | - | |||||||
| 61 | - | |||||||
| 62 | - | |||||||
| 63 | - | |||||||
| 64 | void QOpenGLPixelTransferOptions::setAlignment(int alignment) | - | ||||||
| 65 | { | - | ||||||
| 66 | data->alignment = alignment; | - | ||||||
| 67 | } never executed: end of block | 0 | ||||||
| 68 | - | |||||||
| 69 | - | |||||||
| 70 | - | |||||||
| 71 | - | |||||||
| 72 | int QOpenGLPixelTransferOptions::alignment() const | - | ||||||
| 73 | { | - | ||||||
| 74 | return never executed: data->alignment;return data->alignment;never executed: return data->alignment; | 0 | ||||||
| 75 | } | - | ||||||
| 76 | - | |||||||
| 77 | - | |||||||
| 78 | - | |||||||
| 79 | - | |||||||
| 80 | - | |||||||
| 81 | - | |||||||
| 82 | void QOpenGLPixelTransferOptions::setSkipImages(int skipImages) | - | ||||||
| 83 | { | - | ||||||
| 84 | data->skipImages = skipImages; | - | ||||||
| 85 | } never executed: end of block | 0 | ||||||
| 86 | - | |||||||
| 87 | - | |||||||
| 88 | - | |||||||
| 89 | - | |||||||
| 90 | int QOpenGLPixelTransferOptions::skipImages() const | - | ||||||
| 91 | { | - | ||||||
| 92 | return never executed: data->skipImages;return data->skipImages;never executed: return data->skipImages; | 0 | ||||||
| 93 | } | - | ||||||
| 94 | - | |||||||
| 95 | - | |||||||
| 96 | - | |||||||
| 97 | - | |||||||
| 98 | - | |||||||
| 99 | - | |||||||
| 100 | void QOpenGLPixelTransferOptions::setSkipRows(int skipRows) | - | ||||||
| 101 | { | - | ||||||
| 102 | data->skipRows = skipRows; | - | ||||||
| 103 | } never executed: end of block | 0 | ||||||
| 104 | - | |||||||
| 105 | - | |||||||
| 106 | - | |||||||
| 107 | - | |||||||
| 108 | int QOpenGLPixelTransferOptions::skipRows() const | - | ||||||
| 109 | { | - | ||||||
| 110 | return never executed: data->skipRows;return data->skipRows;never executed: return data->skipRows; | 0 | ||||||
| 111 | } | - | ||||||
| 112 | - | |||||||
| 113 | - | |||||||
| 114 | - | |||||||
| 115 | - | |||||||
| 116 | - | |||||||
| 117 | - | |||||||
| 118 | void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels) | - | ||||||
| 119 | { | - | ||||||
| 120 | data->skipPixels = skipPixels; | - | ||||||
| 121 | } never executed: end of block | 0 | ||||||
| 122 | - | |||||||
| 123 | - | |||||||
| 124 | - | |||||||
| 125 | - | |||||||
| 126 | int QOpenGLPixelTransferOptions::skipPixels() const | - | ||||||
| 127 | { | - | ||||||
| 128 | return never executed: data->skipPixels;return data->skipPixels;never executed: return data->skipPixels; | 0 | ||||||
| 129 | } | - | ||||||
| 130 | - | |||||||
| 131 | - | |||||||
| 132 | - | |||||||
| 133 | - | |||||||
| 134 | - | |||||||
| 135 | - | |||||||
| 136 | void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight) | - | ||||||
| 137 | { | - | ||||||
| 138 | data->imageHeight = imageHeight; | - | ||||||
| 139 | } never executed: end of block | 0 | ||||||
| 140 | - | |||||||
| 141 | - | |||||||
| 142 | - | |||||||
| 143 | - | |||||||
| 144 | int QOpenGLPixelTransferOptions::imageHeight() const | - | ||||||
| 145 | { | - | ||||||
| 146 | return never executed: data->imageHeight;return data->imageHeight;never executed: return data->imageHeight; | 0 | ||||||
| 147 | } | - | ||||||
| 148 | - | |||||||
| 149 | - | |||||||
| 150 | - | |||||||
| 151 | - | |||||||
| 152 | - | |||||||
| 153 | - | |||||||
| 154 | void QOpenGLPixelTransferOptions::setRowLength(int rowLength) | - | ||||||
| 155 | { | - | ||||||
| 156 | data->rowLength = rowLength; | - | ||||||
| 157 | } never executed: end of block | 0 | ||||||
| 158 | - | |||||||
| 159 | - | |||||||
| 160 | - | |||||||
| 161 | - | |||||||
| 162 | int QOpenGLPixelTransferOptions::rowLength() const | - | ||||||
| 163 | { | - | ||||||
| 164 | return never executed: data->rowLength;return data->rowLength;never executed: return data->rowLength; | 0 | ||||||
| 165 | } | - | ||||||
| 166 | - | |||||||
| 167 | - | |||||||
| 168 | - | |||||||
| 169 | - | |||||||
| 170 | - | |||||||
| 171 | - | |||||||
| 172 | - | |||||||
| 173 | void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst) | - | ||||||
| 174 | { | - | ||||||
| 175 | data->lsbFirst = lsbFirst; | - | ||||||
| 176 | } never executed: end of block | 0 | ||||||
| 177 | - | |||||||
| 178 | - | |||||||
| 179 | - | |||||||
| 180 | - | |||||||
| 181 | bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const | - | ||||||
| 182 | { | - | ||||||
| 183 | return never executed: data->lsbFirst;return data->lsbFirst;never executed: return data->lsbFirst; | 0 | ||||||
| 184 | } | - | ||||||
| 185 | - | |||||||
| 186 | - | |||||||
| 187 | - | |||||||
| 188 | - | |||||||
| 189 | - | |||||||
| 190 | - | |||||||
| 191 | void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes) | - | ||||||
| 192 | { | - | ||||||
| 193 | data->swapBytes = swapBytes; | - | ||||||
| 194 | } never executed: end of block | 0 | ||||||
| 195 | - | |||||||
| 196 | - | |||||||
| 197 | - | |||||||
| 198 | - | |||||||
| 199 | bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const | - | ||||||
| 200 | { | - | ||||||
| 201 | return never executed: data->swapBytes;return data->swapBytes;never executed: return data->swapBytes; | 0 | ||||||
| 202 | } | - | ||||||
| 203 | - | |||||||
| 204 | - | |||||||
| Switch to Source code | Preprocessed file |