OpenCoverage

qcompositionfunctions.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/painting/qcompositionfunctions.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3void comp_func_solid_Clear(uint *dest, int length, uint, uint const_alpha)-
4{-
5 { if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) { qt_memfill<quint32>(dest, 0, length);; }
never executed: end of block
else { int ialpha = 255 - const_alpha; for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) { dest[i] = BYTE_MUL(dest[i], ialpha); }
never executed: end of block
}
never executed: end of block
}
;
0
6}-
7-
8void comp_func_solid_Clear_rgb64(QRgba64 *dest, int length, QRgba64, uint const_alpha)-
9{-
10 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
11 qt_memfill64((quint64*)dest, 0, length);
never executed: qt_memfill64((quint64*)dest, 0, length);
0
12 else {-
13 int ialpha = 255 - const_alpha;-
14 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
15 dest[i] = multiplyAlpha255(dest[i], ialpha);-
16 }
never executed: end of block
0
17 }
never executed: end of block
0
18}-
19-
20void comp_func_Clear(uint *dest, const uint *, int length, uint const_alpha)-
21{-
22 { if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) { qt_memfill<quint32>(dest, 0, length);; }
never executed: end of block
else { int ialpha = 255 - const_alpha; for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) { dest[i] = BYTE_MUL(dest[i], ialpha); }
never executed: end of block
}
never executed: end of block
}
;
0
23}-
24-
25void comp_func_Clear_rgb64(QRgba64 *dest, const QRgba64 *, int length, uint const_alpha)-
26{-
27 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
28 qt_memfill64((quint64*)dest, 0, length);
never executed: qt_memfill64((quint64*)dest, 0, length);
0
29 else {-
30 int ialpha = 255 - const_alpha;-
31 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
32 dest[i] = multiplyAlpha255(dest[i], ialpha);-
33 }
never executed: end of block
0
34 }
never executed: end of block
0
35}-
36-
37-
38-
39-
40-
41void comp_func_solid_Source(uint *dest, int length, uint color, uint const_alpha)-
42{-
43 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
44 qt_memfill<quint32>(dest, color, length);;-
45 }
never executed: end of block
else {
0
46 int ialpha = 255 - const_alpha;-
47 color = BYTE_MUL(color, const_alpha);-
48 -
49 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
50 -
51 dest[i] = color + BYTE_MUL(dest[i], ialpha);-
52 }
never executed: end of block
0
53 }
never executed: end of block
0
54}-
55-
56void comp_func_solid_Source_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
57{-
58 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
59 qt_memfill64((quint64*)dest, color, length);
never executed: qt_memfill64((quint64*)dest, color, length);
0
60 else {-
61 int ialpha = 255 - const_alpha;-
62 color = multiplyAlpha255(color, const_alpha);-
63 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
64 dest[i] = color + multiplyAlpha255(dest[i], ialpha);-
65 }
never executed: end of block
0
66 }
never executed: end of block
0
67}-
68-
69void comp_func_Source(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
70{-
71 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
72 ::memcpy(dest, src, length * sizeof(uint));-
73 }
never executed: end of block
else {
0
74 int ialpha = 255 - const_alpha;-
75 -
76 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
77 -
78 dest[i] = INTERPOLATE_PIXEL_255(src[i], const_alpha, dest[i], ialpha);-
79 }
never executed: end of block
0
80 }
never executed: end of block
0
81}-
82-
83void comp_func_Source_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
84{-
85 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
86 ::
never executed: ::memcpy(dest, src, length * sizeof(quint64));
memcpy(dest, src, length * sizeof(quint64));
never executed: ::memcpy(dest, src, length * sizeof(quint64));
0
87 else {-
88 int ialpha = 255 - const_alpha;-
89 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
90 dest[i] = interpolate255(src[i], const_alpha, dest[i], ialpha);-
91 }
never executed: end of block
0
92 }
never executed: end of block
0
93}-
94-
95void comp_func_solid_Destination(uint *, int, uint, uint)-
96{-
97}-
98-
99void comp_func_solid_Destination_rgb64(QRgba64 *, int, QRgba64, uint)-
100{-
101}-
102-
103void comp_func_Destination(uint *, const uint *, int, uint)-
104{-
105}-
106-
107void comp_func_Destination_rgb64(QRgba64 *, const QRgba64 *, int, uint)-
108{-
109}-
110-
111-
112-
113-
114-
115-
116-
117void comp_func_solid_SourceOver(uint *dest, int length, uint color, uint const_alpha)-
118{-
119 if ((
(const_alpha &...color)) == 255Description
TRUEnever evaluated
FALSEnever evaluated
const_alpha & qAlpha(color)) == 255
(const_alpha &...color)) == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
120 qt_memfill<quint32>(dest, color, length);;-
121 }
never executed: end of block
else {
0
122 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
123 color = BYTE_MUL(color, const_alpha);
never executed: color = BYTE_MUL(color, const_alpha);
0
124 -
125 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
126 -
127 dest[i] = color + BYTE_MUL(dest[i], qAlpha(~color));-
128 }
never executed: end of block
0
129 }
never executed: end of block
0
130}-
131-
132void comp_func_solid_SourceOver_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
133{-
134 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
&& color.isOpaque()
color.isOpaque()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
135 qt_memfill64((quint64*)dest, color, length);-
136 }
never executed: end of block
else {
0
137 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
138 color = multiplyAlpha255(color, const_alpha);
never executed: color = multiplyAlpha255(color, const_alpha);
0
139 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
140 dest[i] = color + multiplyAlpha65535(dest[i], 65535 - color.alpha());-
141 }
never executed: end of block
0
142 }
never executed: end of block
0
143}-
144-
145void comp_func_SourceOver(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
146{-
147 -
148 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
149 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
150 -
151 uint s = src[i];-
152 if (s >= 0xff000000
s >= 0xff000000Description
TRUEnever evaluated
FALSEnever evaluated
)
0
153 dest[i] = s;
never executed: dest[i] = s;
0
154 else if (s != 0
s != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
155 dest[i] = s + BYTE_MUL(dest[i], qAlpha(~s));
never executed: dest[i] = s + BYTE_MUL(dest[i], qAlpha(~s));
0
156 }
never executed: end of block
0
157 }
never executed: end of block
else {
0
158 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
159 -
160 uint s = BYTE_MUL(src[i], const_alpha);-
161 dest[i] = s + BYTE_MUL(dest[i], qAlpha(~s));-
162 }
never executed: end of block
0
163 }
never executed: end of block
0
164}-
165-
166void comp_func_SourceOver_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
167{-
168 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
169 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
170 QRgba64 s = src[i];-
171 if (s.isOpaque()
s.isOpaque()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
172 dest[i] = s;
never executed: dest[i] = s;
0
173 else if (!s.isTransparent()
!s.isTransparent()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
174 dest[i] = s + multiplyAlpha65535(dest[i], 65535 - s.alpha());
never executed: dest[i] = s + multiplyAlpha65535(dest[i], 65535 - s.alpha());
0
175 }
never executed: end of block
0
176 }
never executed: end of block
else {
0
177 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
178 QRgba64 s = multiplyAlpha255(src[i], const_alpha);-
179 dest[i] = s + multiplyAlpha65535(dest[i], 65535 - s.alpha());-
180 }
never executed: end of block
0
181 }
never executed: end of block
0
182}-
183-
184-
185-
186-
187-
188-
189void comp_func_solid_DestinationOver(uint *dest, int length, uint color, uint const_alpha)-
190{-
191 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
192 color = BYTE_MUL(color, const_alpha);
never executed: color = BYTE_MUL(color, const_alpha);
0
193 -
194 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
195 -
196 uint d = dest[i];-
197 dest[i] = d + BYTE_MUL(color, qAlpha(~d));-
198 }
never executed: end of block
0
199}
never executed: end of block
0
200-
201void comp_func_solid_DestinationOver_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
202{-
203 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
204 color = multiplyAlpha255(color, const_alpha);
never executed: color = multiplyAlpha255(color, const_alpha);
0
205 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
206 QRgba64 d = dest[i];-
207 dest[i] = d + multiplyAlpha65535(color, 65535 - d.alpha());-
208 }
never executed: end of block
0
209}
never executed: end of block
0
210-
211void comp_func_DestinationOver(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
212{-
213 -
214 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
215 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
216 -
217 uint d = dest[i];-
218 dest[i] = d + BYTE_MUL(src[i], qAlpha(~d));-
219 }
never executed: end of block
0
220 }
never executed: end of block
else {
0
221 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
222 -
223 uint d = dest[i];-
224 uint s = BYTE_MUL(src[i], const_alpha);-
225 dest[i] = d + BYTE_MUL(s, qAlpha(~d));-
226 }
never executed: end of block
0
227 }
never executed: end of block
0
228}-
229-
230void comp_func_DestinationOver_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
231{-
232 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
233 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
234 QRgba64 d = dest[i];-
235 dest[i] = d + multiplyAlpha65535(src[i], 65535 - d.alpha());-
236 }
never executed: end of block
0
237 }
never executed: end of block
else {
0
238 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
239 QRgba64 d = dest[i];-
240 QRgba64 s = multiplyAlpha255(src[i], const_alpha);-
241 dest[i] = d + multiplyAlpha65535(s, 65535 - d.alpha());-
242 }
never executed: end of block
0
243 }
never executed: end of block
0
244}-
245-
246-
247-
248-
249-
250void comp_func_solid_SourceIn(uint *dest, int length, uint color, uint const_alpha)-
251{-
252 -
253 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
254 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
255 -
256 dest[i] = BYTE_MUL(color, qAlpha(dest[i]));-
257 }
never executed: end of block
0
258 }
never executed: end of block
else {
0
259 color = BYTE_MUL(color, const_alpha);-
260 uint cia = 255 - const_alpha;-
261 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
262 -
263 uint d = dest[i];-
264 dest[i] = INTERPOLATE_PIXEL_255(color, qAlpha(d), d, cia);-
265 }
never executed: end of block
0
266 }
never executed: end of block
0
267}-
268-
269void comp_func_solid_SourceIn_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
270{-
271 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
272 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
273 dest[i] = multiplyAlpha65535(color, dest[i].alpha());-
274 }
never executed: end of block
0
275 }
never executed: end of block
else {
0
276 uint ca = const_alpha * 257;-
277 uint cia = 65535 - ca;-
278 color = multiplyAlpha65535(color, ca);-
279 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
280 QRgba64 d = dest[i];-
281 dest[i] = interpolate65535(color, d.alpha(), d, cia);-
282 }
never executed: end of block
0
283 }
never executed: end of block
0
284}-
285-
286void comp_func_SourceIn(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
287{-
288 -
289 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
290 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
291 -
292 dest[i] = BYTE_MUL(src[i], qAlpha(dest[i]));-
293 }
never executed: end of block
0
294 }
never executed: end of block
else {
0
295 uint cia = 255 - const_alpha;-
296 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
297 -
298 uint d = dest[i];-
299 uint s = BYTE_MUL(src[i], const_alpha);-
300 dest[i] = INTERPOLATE_PIXEL_255(s, qAlpha(d), d, cia);-
301 }
never executed: end of block
0
302 }
never executed: end of block
0
303}-
304-
305void comp_func_SourceIn_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
306{-
307 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
308 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
309 dest[i] = multiplyAlpha65535(src[i], dest[i].alpha());-
310 }
never executed: end of block
0
311 }
never executed: end of block
else {
0
312 uint ca = const_alpha * 257;-
313 uint cia = 65535 - ca;-
314 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
315 QRgba64 d = dest[i];-
316 QRgba64 s = multiplyAlpha65535(src[i], ca);-
317 dest[i] = interpolate65535(s, d.alpha(), d, cia);-
318 }
never executed: end of block
0
319 }
never executed: end of block
0
320}-
321-
322-
323-
324-
325-
326-
327void comp_func_solid_DestinationIn(uint *dest, int length, uint color, uint const_alpha)-
328{-
329 uint a = qAlpha(color);-
330 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
331 a = BYTE_MUL(a, const_alpha) + 255 - const_alpha;-
332 }
never executed: end of block
0
333 -
334 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
335 -
336 dest[i] = BYTE_MUL(dest[i], a);-
337 }
never executed: end of block
0
338}
never executed: end of block
0
339-
340void comp_func_solid_DestinationIn_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
341{-
342 uint a = color.alpha();-
343 uint ca64k = const_alpha * 257;-
344 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
345 a = qt_div_65535(a * ca64k) + 65535 - ca64k;
never executed: a = qt_div_65535(a * ca64k) + 65535 - ca64k;
0
346 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
347 dest[i] = multiplyAlpha65535(dest[i], a);-
348 }
never executed: end of block
0
349}
never executed: end of block
0
350-
351void comp_func_DestinationIn(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
352{-
353 -
354 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
355 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
356 -
357 dest[i] = BYTE_MUL(dest[i], qAlpha(src[i]));-
358 }
never executed: end of block
0
359 }
never executed: end of block
else {
0
360 int cia = 255 - const_alpha;-
361 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
362 -
363 uint a = BYTE_MUL(qAlpha(src[i]), const_alpha) + cia;-
364 dest[i] = BYTE_MUL(dest[i], a);-
365 }
never executed: end of block
0
366 }
never executed: end of block
0
367}-
368-
369void comp_func_DestinationIn_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
370{-
371 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
372 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
373 dest[i] = multiplyAlpha65535(dest[i], src[i].alpha());-
374 }
never executed: end of block
0
375 }
never executed: end of block
else {
0
376 uint ca = const_alpha * 257;-
377 uint cia = 65535 - ca;-
378 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
379 uint a = qt_div_65535(src[i].alpha() * ca) + cia;-
380 dest[i] = multiplyAlpha65535(dest[i], a);-
381 }
never executed: end of block
0
382 }
never executed: end of block
0
383}-
384-
385-
386-
387-
388-
389-
390void comp_func_solid_SourceOut(uint *dest, int length, uint color, uint const_alpha)-
391{-
392 -
393 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
394 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
395 -
396 dest[i] = BYTE_MUL(color, qAlpha(~dest[i]));-
397 }
never executed: end of block
0
398 }
never executed: end of block
else {
0
399 color = BYTE_MUL(color, const_alpha);-
400 int cia = 255 - const_alpha;-
401 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
402 -
403 uint d = dest[i];-
404 dest[i] = INTERPOLATE_PIXEL_255(color, qAlpha(~d), d, cia);-
405 }
never executed: end of block
0
406 }
never executed: end of block
0
407}-
408-
409void comp_func_solid_SourceOut_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
410{-
411 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
412 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
413 dest[i] = multiplyAlpha65535(color, 65535 - dest[i].alpha());-
414 }
never executed: end of block
0
415 }
never executed: end of block
else {
0
416 uint ca = const_alpha * 257;-
417 uint cia = 65535 - ca;-
418 color = multiplyAlpha65535(color, ca);-
419 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
420 QRgba64 d = dest[i];-
421 dest[i] = interpolate65535(color, 65535 - d.alpha(), d, cia);-
422 }
never executed: end of block
0
423 }
never executed: end of block
0
424}-
425-
426void comp_func_SourceOut(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
427{-
428 -
429 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
430 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
431 -
432 dest[i] = BYTE_MUL(src[i], qAlpha(~dest[i]));-
433 }
never executed: end of block
0
434 }
never executed: end of block
else {
0
435 int cia = 255 - const_alpha;-
436 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
437 -
438 uint s = BYTE_MUL(src[i], const_alpha);-
439 uint d = dest[i];-
440 dest[i] = INTERPOLATE_PIXEL_255(s, qAlpha(~d), d, cia);-
441 }
never executed: end of block
0
442 }
never executed: end of block
0
443}-
444-
445void comp_func_SourceOut_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
446{-
447 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
448 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
449 dest[i] = multiplyAlpha65535(src[i], 65535 - dest[i].alpha());-
450 }
never executed: end of block
0
451 }
never executed: end of block
else {
0
452 uint ca = const_alpha * 257;-
453 uint cia = 65535 - ca;-
454 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
455 QRgba64 d = dest[i];-
456 QRgba64 s = multiplyAlpha65535(src[i], ca);-
457 dest[i] = interpolate65535(s, 65535 - d.alpha(), d, cia);-
458 }
never executed: end of block
0
459 }
never executed: end of block
0
460}-
461-
462-
463-
464-
465-
466-
467void comp_func_solid_DestinationOut(uint *dest, int length, uint color, uint const_alpha)-
468{-
469 uint a = qAlpha(~color);-
470 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
471 a = BYTE_MUL(a, const_alpha) + 255 - const_alpha;
never executed: a = BYTE_MUL(a, const_alpha) + 255 - const_alpha;
0
472 -
473 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
474 -
475 dest[i] = BYTE_MUL(dest[i], a);-
476 }
never executed: end of block
0
477}
never executed: end of block
0
478-
479void comp_func_solid_DestinationOut_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
480{-
481 uint a = 65535 - color.alpha();-
482 uint ca64k = const_alpha * 257;-
483 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
484 a = qt_div_65535(a * ca64k) + 65535 - ca64k;
never executed: a = qt_div_65535(a * ca64k) + 65535 - ca64k;
0
485 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
486 dest[i] = multiplyAlpha65535(dest[i], a);-
487 }
never executed: end of block
0
488}
never executed: end of block
0
489-
490void comp_func_DestinationOut(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
491{-
492 -
493 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
494 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
495 -
496 dest[i] = BYTE_MUL(dest[i], qAlpha(~src[i]));-
497 }
never executed: end of block
0
498 }
never executed: end of block
else {
0
499 int cia = 255 - const_alpha;-
500 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
501 -
502 uint sia = BYTE_MUL(qAlpha(~src[i]), const_alpha) + cia;-
503 dest[i] = BYTE_MUL(dest[i], sia);-
504 }
never executed: end of block
0
505 }
never executed: end of block
0
506}-
507-
508void comp_func_DestinationOut_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
509{-
510 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
511 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
512 dest[i] = multiplyAlpha65535(dest[i], 65535 - src[i].alpha());-
513 }
never executed: end of block
0
514 }
never executed: end of block
else {
0
515 uint ca = const_alpha * 257;-
516 uint cia = 65535 - ca;-
517 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
518 uint a = qt_div_65535((65535 - src[i].alpha()) * ca) + cia;-
519 dest[i] = multiplyAlpha65535(dest[i], a);-
520 }
never executed: end of block
0
521 }
never executed: end of block
0
522}-
523-
524-
525-
526-
527-
528-
529-
530void comp_func_solid_SourceAtop(uint *dest, int length, uint color, uint const_alpha)-
531{-
532 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
533 color = BYTE_MUL(color, const_alpha);-
534 }
never executed: end of block
0
535 uint sia = qAlpha(~color);-
536 -
537 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
538 -
539 dest[i] = INTERPOLATE_PIXEL_255(color, qAlpha(dest[i]), dest[i], sia);-
540 }
never executed: end of block
0
541}
never executed: end of block
0
542-
543void comp_func_solid_SourceAtop_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
544{-
545 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
546 color = multiplyAlpha255(color, const_alpha);
never executed: color = multiplyAlpha255(color, const_alpha);
0
547 uint sia = 65535 - color.alpha();-
548 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
549 dest[i] = interpolate65535(color, dest[i].alpha(), dest[i], sia);-
550 }
never executed: end of block
0
551}
never executed: end of block
0
552-
553void comp_func_SourceAtop(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
554{-
555 -
556 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
557 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
558 -
559 uint s = src[i];-
560 uint d = dest[i];-
561 dest[i] = INTERPOLATE_PIXEL_255(s, qAlpha(d), d, qAlpha(~s));-
562 }
never executed: end of block
0
563 }
never executed: end of block
else {
0
564 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
565 -
566 uint s = BYTE_MUL(src[i], const_alpha);-
567 uint d = dest[i];-
568 dest[i] = INTERPOLATE_PIXEL_255(s, qAlpha(d), d, qAlpha(~s));-
569 }
never executed: end of block
0
570 }
never executed: end of block
0
571}-
572-
573void comp_func_SourceAtop_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
574{-
575 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
576 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
577 QRgba64 s = src[i];-
578 QRgba64 d = dest[i];-
579 dest[i] = interpolate65535(s, d.alpha(), d, 65535 - s.alpha());-
580 }
never executed: end of block
0
581 }
never executed: end of block
else {
0
582 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
583 QRgba64 s = multiplyAlpha255(src[i], const_alpha);-
584 QRgba64 d = dest[i];-
585 dest[i] = interpolate65535(s, d.alpha(), d, 65535 - s.alpha());-
586 }
never executed: end of block
0
587 }
never executed: end of block
0
588}-
589-
590-
591-
592-
593-
594-
595void comp_func_solid_DestinationAtop(uint *dest, int length, uint color, uint const_alpha)-
596{-
597 uint a = qAlpha(color);-
598 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
599 color = BYTE_MUL(color, const_alpha);-
600 a = qAlpha(color) + 255 - const_alpha;-
601 }
never executed: end of block
0
602 -
603 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
604 -
605 uint d = dest[i];-
606 dest[i] = INTERPOLATE_PIXEL_255(d, a, color, qAlpha(~d));-
607 }
never executed: end of block
0
608}
never executed: end of block
0
609-
610void comp_func_solid_DestinationAtop_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
611{-
612 uint a = color.alpha();-
613 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
614 color = multiplyAlpha255(color, const_alpha);-
615 a = color.alpha() + 65535 - (const_alpha * 257);-
616 }
never executed: end of block
0
617 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
618 QRgba64 d = dest[i];-
619 dest[i] = interpolate65535(d, a, color, 65535 - d.alpha());-
620 }
never executed: end of block
0
621}
never executed: end of block
0
622-
623void comp_func_DestinationAtop(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
624{-
625 -
626 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
627 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
628 -
629 uint s = src[i];-
630 uint d = dest[i];-
631 dest[i] = INTERPOLATE_PIXEL_255(d, qAlpha(s), s, qAlpha(~d));-
632 }
never executed: end of block
0
633 }
never executed: end of block
else {
0
634 int cia = 255 - const_alpha;-
635 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
636 -
637 uint s = BYTE_MUL(src[i], const_alpha);-
638 uint d = dest[i];-
639 uint a = qAlpha(s) + cia;-
640 dest[i] = INTERPOLATE_PIXEL_255(d, a, s, qAlpha(~d));-
641 }
never executed: end of block
0
642 }
never executed: end of block
0
643}-
644-
645void comp_func_DestinationAtop_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
646{-
647 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
648 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
649 QRgba64 s = src[i];-
650 QRgba64 d = dest[i];-
651 dest[i] = interpolate65535(d, s.alpha(), s, 65535 - d.alpha());-
652 }
never executed: end of block
0
653 }
never executed: end of block
else {
0
654 int ca = const_alpha * 257;-
655 int cia = 65535 - ca;-
656 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
657 QRgba64 s = multiplyAlpha65535(src[i], ca);-
658 QRgba64 d = dest[i];-
659 uint a = s.alpha() + cia;-
660 dest[i] = interpolate65535(d, a, s, 65535 - d.alpha());-
661 }
never executed: end of block
0
662 }
never executed: end of block
0
663}-
664-
665-
666-
667-
668-
669-
670-
671void comp_func_solid_XOR(uint *dest, int length, uint color, uint const_alpha)-
672{-
673 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
674 color = BYTE_MUL(color, const_alpha);
never executed: color = BYTE_MUL(color, const_alpha);
0
675 uint sia = qAlpha(~color);-
676-
677 -
678 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
679 -
680 uint d = dest[i];-
681 dest[i] = INTERPOLATE_PIXEL_255(color, qAlpha(~d), d, sia);-
682 }
never executed: end of block
0
683}
never executed: end of block
0
684-
685void comp_func_solid_XOR_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
686{-
687 if (const_alpha != 255
const_alpha != 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
688 color = multiplyAlpha255(color, const_alpha);
never executed: color = multiplyAlpha255(color, const_alpha);
0
689 uint sia = 65535 - color.alpha();-
690 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
691 QRgba64 d = dest[i];-
692 dest[i] = interpolate65535(color, 65535 - d.alpha(), d, sia);-
693 }
never executed: end of block
0
694}
never executed: end of block
0
695-
696void comp_func_XOR(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
697{-
698 -
699 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
700 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
701 -
702 uint d = dest[i];-
703 uint s = src[i];-
704 dest[i] = INTERPOLATE_PIXEL_255(s, qAlpha(~d), d, qAlpha(~s));-
705 }
never executed: end of block
0
706 }
never executed: end of block
else {
0
707 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
708 -
709 uint d = dest[i];-
710 uint s = BYTE_MUL(src[i], const_alpha);-
711 dest[i] = INTERPOLATE_PIXEL_255(s, qAlpha(~d), d, qAlpha(~s));-
712 }
never executed: end of block
0
713 }
never executed: end of block
0
714}-
715-
716void comp_func_XOR_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
717{-
718 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
719 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
720 QRgba64 d = dest[i];-
721 QRgba64 s = src[i];-
722 dest[i] = interpolate65535(s, 65535 - d.alpha(), d, 65535 - s.alpha());-
723 }
never executed: end of block
0
724 }
never executed: end of block
else {
0
725 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
726 QRgba64 d = dest[i];-
727 QRgba64 s = multiplyAlpha255(src[i], const_alpha);-
728 dest[i] = interpolate65535(s, 65535 - d.alpha(), d, 65535 - s.alpha());-
729 }
never executed: end of block
0
730 }
never executed: end of block
0
731}-
732-
733struct QFullCoverage {-
734 inline void store(uint *dest, const uint src) const-
735 {-
736 *dest = src;-
737 }
never executed: end of block
0
738};-
739-
740struct QPartialCoverage {-
741 inline QPartialCoverage(uint const_alpha)-
742 : ca(const_alpha)-
743 , ica(255 - const_alpha)-
744 {-
745 }
never executed: end of block
0
746-
747 inline void store(uint *dest, const uint src) const-
748 {-
749 *dest = INTERPOLATE_PIXEL_255(src, ca, *dest, ica);-
750 }
never executed: end of block
0
751-
752private:-
753 const uint ca;-
754 const uint ica;-
755};-
756-
757static inline int mix_alpha(int da, int sa)-
758{-
759 return
never executed: return 255 - ((255 - sa) * (255 - da) >> 8);
255 - ((255 - sa) * (255 - da) >> 8);
never executed: return 255 - ((255 - sa) * (255 - da) >> 8);
0
760}-
761-
762-
763-
764-
765-
766template <typename T>-
767static inline void comp_func_solid_Plus_impl(uint *dest, int length, uint color, const T &coverage)-
768{-
769 uint s = color;-
770-
771 -
772 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
773 -
774 uint d = dest[i];-
775 d = comp_func_Plus_one_pixel(d, s);-
776 coverage.store(&dest[i], d);-
777 }
never executed: end of block
0
778}
never executed: end of block
0
779-
780template <typename T>-
781static inline void comp_func_solid_Plus_impl_rgb64(QRgba64 *dest, int length, QRgba64 color, const T &coverage)-
782{-
783 QRgba64 s = color;-
784 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
785 QRgba64 d = dest[i];-
786 d = comp_func_Plus_one_pixel(d, s);-
787 coverage.store(&dest[i], d);-
788 }
never executed: end of block
0
789}
never executed: end of block
0
790-
791void comp_func_solid_Plus(uint *dest, int length, uint color, uint const_alpha)-
792{-
793 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
794 comp_func_solid_Plus_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_Plus_impl(dest, length, color, QFullCoverage());
0
795 else-
796 comp_func_solid_Plus_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_Plus_impl(dest, length, color, QPartialCoverage(const_alpha));
0
797}-
798-
799void comp_func_solid_Plus_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)-
800{-
801 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
802 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
803 dest[i] = addWithSaturation(dest[i], color);-
804 }
never executed: end of block
0
805 }
never executed: end of block
else {
0
806 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
807 QRgba64 d = addWithSaturation(dest[i], color);-
808 dest[i] = interpolate255(d, const_alpha, dest[i], 255 - const_alpha);-
809 }
never executed: end of block
0
810 }
never executed: end of block
0
811}-
812-
813template <typename T>-
814static inline void comp_func_Plus_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
815{-
816 -
817 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
818 -
819 uint d = dest[i];-
820 uint s = src[i];-
821-
822 d = comp_func_Plus_one_pixel(d, s);-
823-
824 coverage.store(&dest[i], d);-
825 }
never executed: end of block
0
826}
never executed: end of block
0
827-
828void comp_func_Plus(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
829{-
830 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
831 comp_func_Plus_impl(dest, src, length, QFullCoverage());
never executed: comp_func_Plus_impl(dest, src, length, QFullCoverage());
0
832 else-
833 comp_func_Plus_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_Plus_impl(dest, src, length, QPartialCoverage(const_alpha));
0
834}-
835-
836void comp_func_Plus_rgb64(QRgba64 *__restrict__ dest, const QRgba64 *__restrict__ src, int length, uint const_alpha)-
837{-
838 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
839 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
840 dest[i] = addWithSaturation(dest[i], src[i]);-
841 }
never executed: end of block
0
842 }
never executed: end of block
else {
0
843 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
844 QRgba64 d = addWithSaturation(dest[i], src[i]);-
845 dest[i] = interpolate255(d, const_alpha, dest[i], 255 - const_alpha);-
846 }
never executed: end of block
0
847 }
never executed: end of block
0
848}-
849-
850-
851-
852-
853static inline int multiply_op(int dst, int src, int da, int sa)-
854{-
855 return
never executed: return qt_div_255(src * dst + src * (255 - da) + dst * (255 - sa));
qt_div_255(src * dst + src * (255 - da) + dst * (255 - sa));
never executed: return qt_div_255(src * dst + src * (255 - da) + dst * (255 - sa));
0
856}-
857-
858template <typename T>-
859static inline void comp_func_solid_Multiply_impl(uint *dest, int length, uint color, const T &coverage)-
860{-
861 int sa = qAlpha(color);-
862 int sr = qRed(color);-
863 int sg = qGreen(color);-
864 int sb = qBlue(color);-
865-
866 -
867 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
868 -
869 uint d = dest[i];-
870 int da = qAlpha(d);-
871-
872-
873 int r = multiply_op(qRed(d), sr, da, sa);-
874 int b = multiply_op(qBlue(d), sb, da, sa);-
875 int g = multiply_op(qGreen(d), sg, da, sa);-
876 int a = mix_alpha(da, sa);-
877-
878-
879 coverage.store(&dest[i], qRgba(r, g, b, a));-
880 }
never executed: end of block
0
881}
never executed: end of block
0
882-
883void comp_func_solid_Multiply(uint *dest, int length, uint color, uint const_alpha)-
884{-
885 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
886 comp_func_solid_Multiply_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_Multiply_impl(dest, length, color, QFullCoverage());
0
887 else-
888 comp_func_solid_Multiply_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_Multiply_impl(dest, length, color, QPartialCoverage(const_alpha));
0
889}-
890-
891template <typename T>-
892static inline void comp_func_Multiply_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
893{-
894 -
895 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
896 -
897 uint d = dest[i];-
898 uint s = src[i];-
899-
900 int da = qAlpha(d);-
901 int sa = qAlpha(s);-
902-
903-
904 int r = multiply_op(qRed(d), qRed(s), da, sa);-
905 int b = multiply_op(qBlue(d), qBlue(s), da, sa);-
906 int g = multiply_op(qGreen(d), qGreen(s), da, sa);-
907 int a = mix_alpha(da, sa);-
908-
909-
910 coverage.store(&dest[i], qRgba(r, g, b, a));-
911 }
never executed: end of block
0
912}
never executed: end of block
0
913-
914void comp_func_Multiply(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
915{-
916 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
917 comp_func_Multiply_impl(dest, src, length, QFullCoverage());
never executed: comp_func_Multiply_impl(dest, src, length, QFullCoverage());
0
918 else-
919 comp_func_Multiply_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_Multiply_impl(dest, src, length, QPartialCoverage(const_alpha));
0
920}-
921-
922-
923-
924-
925-
926template <typename T>-
927static inline void comp_func_solid_Screen_impl(uint *dest, int length, uint color, const T &coverage)-
928{-
929 int sa = qAlpha(color);-
930 int sr = qRed(color);-
931 int sg = qGreen(color);-
932 int sb = qBlue(color);-
933-
934 -
935 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
936 -
937 uint d = dest[i];-
938 int da = qAlpha(d);-
939-
940-
941 int r = 255 - qt_div_255((255-qRed(d)) * (255-sr));-
942 int b = 255 - qt_div_255((255-qBlue(d)) * (255-sb));-
943 int g = 255 - qt_div_255((255-qGreen(d)) * (255-sg));-
944 int a = mix_alpha(da, sa);-
945-
946-
947 coverage.store(&dest[i], qRgba(r, g, b, a));-
948 }
never executed: end of block
0
949}
never executed: end of block
0
950-
951void comp_func_solid_Screen(uint *dest, int length, uint color, uint const_alpha)-
952{-
953 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
954 comp_func_solid_Screen_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_Screen_impl(dest, length, color, QFullCoverage());
0
955 else-
956 comp_func_solid_Screen_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_Screen_impl(dest, length, color, QPartialCoverage(const_alpha));
0
957}-
958-
959template <typename T>-
960static inline void comp_func_Screen_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
961{-
962 -
963 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
964 -
965 uint d = dest[i];-
966 uint s = src[i];-
967-
968 int da = qAlpha(d);-
969 int sa = qAlpha(s);-
970-
971-
972 int r = 255 - (((255-qRed(d)) * (255-qRed(s))) >> 8);-
973 int b = 255 - (((255-qBlue(d)) * (255-qBlue(s))) >> 8);-
974 int g = 255 - (((255-qGreen(d)) * (255-qGreen(s))) >> 8);-
975 int a = mix_alpha(da, sa);-
976-
977-
978 coverage.store(&dest[i], qRgba(r, g, b, a));-
979 }
never executed: end of block
0
980}
never executed: end of block
0
981-
982void comp_func_Screen(uint *dest, const uint *src, int length, uint const_alpha)-
983{-
984 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
985 comp_func_Screen_impl(dest, src, length, QFullCoverage());
never executed: comp_func_Screen_impl(dest, src, length, QFullCoverage());
0
986 else-
987 comp_func_Screen_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_Screen_impl(dest, src, length, QPartialCoverage(const_alpha));
0
988}-
989-
990-
991-
992-
993-
994-
995-
996static inline int overlay_op(int dst, int src, int da, int sa)-
997{-
998 const int temp = src * (255 - da) + dst * (255 - sa);-
999 if (2 * dst < da
2 * dst < daDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1000 return
never executed: return qt_div_255(2 * src * dst + temp);
qt_div_255(2 * src * dst + temp);
never executed: return qt_div_255(2 * src * dst + temp);
0
1001 else-
1002 return
never executed: return qt_div_255(sa * da - 2 * (da - dst) * (sa - src) + temp);
qt_div_255(sa * da - 2 * (da - dst) * (sa - src) + temp);
never executed: return qt_div_255(sa * da - 2 * (da - dst) * (sa - src) + temp);
0
1003}-
1004-
1005template <typename T>-
1006static inline void comp_func_solid_Overlay_impl(uint *dest, int length, uint color, const T &coverage)-
1007{-
1008 int sa = qAlpha(color);-
1009 int sr = qRed(color);-
1010 int sg = qGreen(color);-
1011 int sb = qBlue(color);-
1012-
1013 -
1014 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1015 -
1016 uint d = dest[i];-
1017 int da = qAlpha(d);-
1018-
1019-
1020 int r = overlay_op(qRed(d), sr, da, sa);-
1021 int b = overlay_op(qBlue(d), sb, da, sa);-
1022 int g = overlay_op(qGreen(d), sg, da, sa);-
1023 int a = mix_alpha(da, sa);-
1024-
1025-
1026 coverage.store(&dest[i], qRgba(r, g, b, a));-
1027 }
never executed: end of block
0
1028}
never executed: end of block
0
1029-
1030void comp_func_solid_Overlay(uint *dest, int length, uint color, uint const_alpha)-
1031{-
1032 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1033 comp_func_solid_Overlay_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_Overlay_impl(dest, length, color, QFullCoverage());
0
1034 else-
1035 comp_func_solid_Overlay_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_Overlay_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1036}-
1037-
1038template <typename T>-
1039static inline void comp_func_Overlay_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1040{-
1041 -
1042 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1043 -
1044 uint d = dest[i];-
1045 uint s = src[i];-
1046-
1047 int da = qAlpha(d);-
1048 int sa = qAlpha(s);-
1049-
1050-
1051 int r = overlay_op(qRed(d), qRed(s), da, sa);-
1052 int b = overlay_op(qBlue(d), qBlue(s), da, sa);-
1053 int g = overlay_op(qGreen(d), qGreen(s), da, sa);-
1054 int a = mix_alpha(da, sa);-
1055-
1056-
1057 coverage.store(&dest[i], qRgba(r, g, b, a));-
1058 }
never executed: end of block
0
1059}
never executed: end of block
0
1060-
1061void comp_func_Overlay(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1062{-
1063 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1064 comp_func_Overlay_impl(dest, src, length, QFullCoverage());
never executed: comp_func_Overlay_impl(dest, src, length, QFullCoverage());
0
1065 else-
1066 comp_func_Overlay_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_Overlay_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1067}-
1068-
1069-
1070-
1071-
1072-
1073static inline int darken_op(int dst, int src, int da, int sa)-
1074{-
1075 return
never executed: return qt_div_255(qMin(src * da, dst * sa) + src * (255 - da) + dst * (255 - sa));
qt_div_255(qMin(src * da, dst * sa) + src * (255 - da) + dst * (255 - sa));
never executed: return qt_div_255(qMin(src * da, dst * sa) + src * (255 - da) + dst * (255 - sa));
0
1076}-
1077-
1078template <typename T>-
1079static inline void comp_func_solid_Darken_impl(uint *dest, int length, uint color, const T &coverage)-
1080{-
1081 int sa = qAlpha(color);-
1082 int sr = qRed(color);-
1083 int sg = qGreen(color);-
1084 int sb = qBlue(color);-
1085-
1086 -
1087 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1088 -
1089 uint d = dest[i];-
1090 int da = qAlpha(d);-
1091-
1092-
1093 int r = darken_op(qRed(d), sr, da, sa);-
1094 int b = darken_op(qBlue(d), sb, da, sa);-
1095 int g = darken_op(qGreen(d), sg, da, sa);-
1096 int a = mix_alpha(da, sa);-
1097-
1098-
1099 coverage.store(&dest[i], qRgba(r, g, b, a));-
1100 }
never executed: end of block
0
1101}
never executed: end of block
0
1102-
1103void comp_func_solid_Darken(uint *dest, int length, uint color, uint const_alpha)-
1104{-
1105 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1106 comp_func_solid_Darken_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_Darken_impl(dest, length, color, QFullCoverage());
0
1107 else-
1108 comp_func_solid_Darken_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_Darken_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1109}-
1110-
1111template <typename T>-
1112static inline void comp_func_Darken_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1113{-
1114 -
1115 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1116 -
1117 uint d = dest[i];-
1118 uint s = src[i];-
1119-
1120 int da = qAlpha(d);-
1121 int sa = qAlpha(s);-
1122-
1123-
1124 int r = darken_op(qRed(d), qRed(s), da, sa);-
1125 int b = darken_op(qBlue(d), qBlue(s), da, sa);-
1126 int g = darken_op(qGreen(d), qGreen(s), da, sa);-
1127 int a = mix_alpha(da, sa);-
1128-
1129-
1130 coverage.store(&dest[i], qRgba(r, g, b, a));-
1131 }
never executed: end of block
0
1132}
never executed: end of block
0
1133-
1134void comp_func_Darken(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1135{-
1136 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1137 comp_func_Darken_impl(dest, src, length, QFullCoverage());
never executed: comp_func_Darken_impl(dest, src, length, QFullCoverage());
0
1138 else-
1139 comp_func_Darken_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_Darken_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1140}-
1141-
1142-
1143-
1144-
1145-
1146static inline int lighten_op(int dst, int src, int da, int sa)-
1147{-
1148 return
never executed: return qt_div_255(qMax(src * da, dst * sa) + src * (255 - da) + dst * (255 - sa));
qt_div_255(qMax(src * da, dst * sa) + src * (255 - da) + dst * (255 - sa));
never executed: return qt_div_255(qMax(src * da, dst * sa) + src * (255 - da) + dst * (255 - sa));
0
1149}-
1150-
1151template <typename T>-
1152static inline void comp_func_solid_Lighten_impl(uint *dest, int length, uint color, const T &coverage)-
1153{-
1154 int sa = qAlpha(color);-
1155 int sr = qRed(color);-
1156 int sg = qGreen(color);-
1157 int sb = qBlue(color);-
1158-
1159 -
1160 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1161 -
1162 uint d = dest[i];-
1163 int da = qAlpha(d);-
1164-
1165-
1166 int r = lighten_op(qRed(d), sr, da, sa);-
1167 int b = lighten_op(qBlue(d), sb, da, sa);-
1168 int g = lighten_op(qGreen(d), sg, da, sa);-
1169 int a = mix_alpha(da, sa);-
1170-
1171-
1172 coverage.store(&dest[i], qRgba(r, g, b, a));-
1173 }
never executed: end of block
0
1174}
never executed: end of block
0
1175-
1176void comp_func_solid_Lighten(uint *dest, int length, uint color, uint const_alpha)-
1177{-
1178 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1179 comp_func_solid_Lighten_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_Lighten_impl(dest, length, color, QFullCoverage());
0
1180 else-
1181 comp_func_solid_Lighten_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_Lighten_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1182}-
1183-
1184template <typename T>-
1185static inline void comp_func_Lighten_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1186{-
1187 -
1188 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1189 -
1190 uint d = dest[i];-
1191 uint s = src[i];-
1192-
1193 int da = qAlpha(d);-
1194 int sa = qAlpha(s);-
1195-
1196-
1197 int r = lighten_op(qRed(d), qRed(s), da, sa);-
1198 int b = lighten_op(qBlue(d), qBlue(s), da, sa);-
1199 int g = lighten_op(qGreen(d), qGreen(s), da, sa);-
1200 int a = mix_alpha(da, sa);-
1201-
1202-
1203 coverage.store(&dest[i], qRgba(r, g, b, a));-
1204 }
never executed: end of block
0
1205}
never executed: end of block
0
1206-
1207void comp_func_Lighten(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1208{-
1209 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1210 comp_func_Lighten_impl(dest, src, length, QFullCoverage());
never executed: comp_func_Lighten_impl(dest, src, length, QFullCoverage());
0
1211 else-
1212 comp_func_Lighten_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_Lighten_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1213}-
1214-
1215-
1216-
1217-
1218-
1219-
1220-
1221static inline int color_dodge_op(int dst, int src, int da, int sa)-
1222{-
1223 const int sa_da = sa * da;-
1224 const int dst_sa = dst * sa;-
1225 const int src_da = src * da;-
1226-
1227 const int temp = src * (255 - da) + dst * (255 - sa);-
1228 if (src_da + dst_sa >= sa_da
src_da + dst_sa >= sa_daDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1229 return
never executed: return qt_div_255(sa_da + temp);
qt_div_255(sa_da + temp);
never executed: return qt_div_255(sa_da + temp);
0
1230 else-
1231 return
never executed: return qt_div_255(255 * dst_sa / (255 - 255 * src / sa) + temp);
qt_div_255(255 * dst_sa / (255 - 255 * src / sa) + temp);
never executed: return qt_div_255(255 * dst_sa / (255 - 255 * src / sa) + temp);
0
1232}-
1233-
1234template <typename T>-
1235static inline void comp_func_solid_ColorDodge_impl(uint *dest, int length, uint color, const T &coverage)-
1236{-
1237 int sa = qAlpha(color);-
1238 int sr = qRed(color);-
1239 int sg = qGreen(color);-
1240 int sb = qBlue(color);-
1241-
1242 -
1243 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1244 -
1245 uint d = dest[i];-
1246 int da = qAlpha(d);-
1247-
1248-
1249 int r = color_dodge_op(qRed(d), sr, da, sa);-
1250 int b = color_dodge_op(qBlue(d), sb, da, sa);-
1251 int g = color_dodge_op(qGreen(d), sg, da, sa);-
1252 int a = mix_alpha(da, sa);-
1253-
1254-
1255 coverage.store(&dest[i], qRgba(r, g, b, a));-
1256 }
never executed: end of block
0
1257}
never executed: end of block
0
1258-
1259void comp_func_solid_ColorDodge(uint *dest, int length, uint color, uint const_alpha)-
1260{-
1261 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1262 comp_func_solid_ColorDodge_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_ColorDodge_impl(dest, length, color, QFullCoverage());
0
1263 else-
1264 comp_func_solid_ColorDodge_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_ColorDodge_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1265}-
1266-
1267template <typename T>-
1268static inline void comp_func_ColorDodge_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1269{-
1270 -
1271 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1272 -
1273 uint d = dest[i];-
1274 uint s = src[i];-
1275-
1276 int da = qAlpha(d);-
1277 int sa = qAlpha(s);-
1278-
1279-
1280 int r = color_dodge_op(qRed(d), qRed(s), da, sa);-
1281 int b = color_dodge_op(qBlue(d), qBlue(s), da, sa);-
1282 int g = color_dodge_op(qGreen(d), qGreen(s), da, sa);-
1283 int a = mix_alpha(da, sa);-
1284-
1285-
1286 coverage.store(&dest[i], qRgba(r, g, b, a));-
1287 }
never executed: end of block
0
1288}
never executed: end of block
0
1289-
1290void comp_func_ColorDodge(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1291{-
1292 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1293 comp_func_ColorDodge_impl(dest, src, length, QFullCoverage());
never executed: comp_func_ColorDodge_impl(dest, src, length, QFullCoverage());
0
1294 else-
1295 comp_func_ColorDodge_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_ColorDodge_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1296}-
1297-
1298-
1299-
1300-
1301-
1302-
1303-
1304static inline int color_burn_op(int dst, int src, int da, int sa)-
1305{-
1306 const int src_da = src * da;-
1307 const int dst_sa = dst * sa;-
1308 const int sa_da = sa * da;-
1309-
1310 const int temp = src * (255 - da) + dst * (255 - sa);-
1311-
1312 if (src == 0
src == 0Description
TRUEnever evaluated
FALSEnever evaluated
|| src_da + dst_sa <= sa_da
src_da + dst_sa <= sa_daDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1313 return
never executed: return qt_div_255(temp);
qt_div_255(temp);
never executed: return qt_div_255(temp);
0
1314 return
never executed: return qt_div_255(sa * (src_da + dst_sa - sa_da) / src + temp);
qt_div_255(sa * (src_da + dst_sa - sa_da) / src + temp);
never executed: return qt_div_255(sa * (src_da + dst_sa - sa_da) / src + temp);
0
1315}-
1316-
1317template <typename T>-
1318static inline void comp_func_solid_ColorBurn_impl(uint *dest, int length, uint color, const T &coverage)-
1319{-
1320 int sa = qAlpha(color);-
1321 int sr = qRed(color);-
1322 int sg = qGreen(color);-
1323 int sb = qBlue(color);-
1324-
1325 -
1326 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1327 -
1328 uint d = dest[i];-
1329 int da = qAlpha(d);-
1330-
1331-
1332 int r = color_burn_op(qRed(d), sr, da, sa);-
1333 int b = color_burn_op(qBlue(d), sb, da, sa);-
1334 int g = color_burn_op(qGreen(d), sg, da, sa);-
1335 int a = mix_alpha(da, sa);-
1336-
1337-
1338 coverage.store(&dest[i], qRgba(r, g, b, a));-
1339 }
never executed: end of block
0
1340}
never executed: end of block
0
1341-
1342void comp_func_solid_ColorBurn(uint *dest, int length, uint color, uint const_alpha)-
1343{-
1344 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1345 comp_func_solid_ColorBurn_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_ColorBurn_impl(dest, length, color, QFullCoverage());
0
1346 else-
1347 comp_func_solid_ColorBurn_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_ColorBurn_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1348}-
1349-
1350template <typename T>-
1351static inline void comp_func_ColorBurn_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1352{-
1353 -
1354 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1355 -
1356 uint d = dest[i];-
1357 uint s = src[i];-
1358-
1359 int da = qAlpha(d);-
1360 int sa = qAlpha(s);-
1361-
1362-
1363 int r = color_burn_op(qRed(d), qRed(s), da, sa);-
1364 int b = color_burn_op(qBlue(d), qBlue(s), da, sa);-
1365 int g = color_burn_op(qGreen(d), qGreen(s), da, sa);-
1366 int a = mix_alpha(da, sa);-
1367-
1368-
1369 coverage.store(&dest[i], qRgba(r, g, b, a));-
1370 }
never executed: end of block
0
1371}
never executed: end of block
0
1372-
1373void comp_func_ColorBurn(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1374{-
1375 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1376 comp_func_ColorBurn_impl(dest, src, length, QFullCoverage());
never executed: comp_func_ColorBurn_impl(dest, src, length, QFullCoverage());
0
1377 else-
1378 comp_func_ColorBurn_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_ColorBurn_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1379}-
1380-
1381-
1382-
1383-
1384-
1385-
1386-
1387static inline uint hardlight_op(int dst, int src, int da, int sa)-
1388{-
1389 const uint temp = src * (255 - da) + dst * (255 - sa);-
1390-
1391 if (2 * src < sa
2 * src < saDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1392 return
never executed: return qt_div_255(2 * src * dst + temp);
qt_div_255(2 * src * dst + temp);
never executed: return qt_div_255(2 * src * dst + temp);
0
1393 else-
1394 return
never executed: return qt_div_255(sa * da - 2 * (da - dst) * (sa - src) + temp);
qt_div_255(sa * da - 2 * (da - dst) * (sa - src) + temp);
never executed: return qt_div_255(sa * da - 2 * (da - dst) * (sa - src) + temp);
0
1395}-
1396-
1397template <typename T>-
1398static inline void comp_func_solid_HardLight_impl(uint *dest, int length, uint color, const T &coverage)-
1399{-
1400 int sa = qAlpha(color);-
1401 int sr = qRed(color);-
1402 int sg = qGreen(color);-
1403 int sb = qBlue(color);-
1404-
1405 -
1406 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1407 -
1408 uint d = dest[i];-
1409 int da = qAlpha(d);-
1410-
1411-
1412 int r = hardlight_op(qRed(d), sr, da, sa);-
1413 int b = hardlight_op(qBlue(d), sb, da, sa);-
1414 int g = hardlight_op(qGreen(d), sg, da, sa);-
1415 int a = mix_alpha(da, sa);-
1416-
1417-
1418 coverage.store(&dest[i], qRgba(r, g, b, a));-
1419 }
never executed: end of block
0
1420}
never executed: end of block
0
1421-
1422void comp_func_solid_HardLight(uint *dest, int length, uint color, uint const_alpha)-
1423{-
1424 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1425 comp_func_solid_HardLight_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_HardLight_impl(dest, length, color, QFullCoverage());
0
1426 else-
1427 comp_func_solid_HardLight_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_HardLight_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1428}-
1429-
1430template <typename T>-
1431static inline void comp_func_HardLight_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1432{-
1433 -
1434 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1435 -
1436 uint d = dest[i];-
1437 uint s = src[i];-
1438-
1439 int da = qAlpha(d);-
1440 int sa = qAlpha(s);-
1441-
1442-
1443 int r = hardlight_op(qRed(d), qRed(s), da, sa);-
1444 int b = hardlight_op(qBlue(d), qBlue(s), da, sa);-
1445 int g = hardlight_op(qGreen(d), qGreen(s), da, sa);-
1446 int a = mix_alpha(da, sa);-
1447-
1448-
1449 coverage.store(&dest[i], qRgba(r, g, b, a));-
1450 }
never executed: end of block
0
1451}
never executed: end of block
0
1452-
1453void comp_func_HardLight(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1454{-
1455 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1456 comp_func_HardLight_impl(dest, src, length, QFullCoverage());
never executed: comp_func_HardLight_impl(dest, src, length, QFullCoverage());
0
1457 else-
1458 comp_func_HardLight_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_HardLight_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1459}-
1460static inline int soft_light_op(int dst, int src, int da, int sa)-
1461{-
1462 const int src2 = src << 1;-
1463 const int dst_np = da != 0
da != 0Description
TRUEnever evaluated
FALSEnever evaluated
? (255 * dst) / da : 0;
0
1464 const int temp = (src * (255 - da) + dst * (255 - sa)) * 255;-
1465-
1466 if (src2 < sa
src2 < saDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1467 return
never executed: return (dst * (sa * 255 + (src2 - sa) * (255 - dst_np)) + temp) / 65025;
(dst * (sa * 255 + (src2 - sa) * (255 - dst_np)) + temp) / 65025;
never executed: return (dst * (sa * 255 + (src2 - sa) * (255 - dst_np)) + temp) / 65025;
0
1468 else if (4 * dst <= da
4 * dst <= daDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1469 return
never executed: return (dst * sa * 255 + da * (src2 - sa) * ((((16 * dst_np - 12 * 255) * dst_np + 3 * 65025) * dst_np) / 65025) + temp) / 65025;
(dst * sa * 255 + da * (src2 - sa) * ((((16 * dst_np - 12 * 255) * dst_np + 3 * 65025) * dst_np) / 65025) + temp) / 65025;
never executed: return (dst * sa * 255 + da * (src2 - sa) * ((((16 * dst_np - 12 * 255) * dst_np + 3 * 65025) * dst_np) / 65025) + temp) / 65025;
0
1470 else {-
1471 return
never executed: return (dst * sa * 255 + da * (src2 - sa) * (int(qSqrt(qreal(dst_np * 255))) - dst_np) + temp) / 65025;
(dst * sa * 255 + da * (src2 - sa) * (int(qSqrt(qreal(dst_np * 255))) - dst_np) + temp) / 65025;
never executed: return (dst * sa * 255 + da * (src2 - sa) * (int(qSqrt(qreal(dst_np * 255))) - dst_np) + temp) / 65025;
0
1472 }-
1473}-
1474-
1475template <typename T>-
1476static inline void comp_func_solid_SoftLight_impl(uint *dest, int length, uint color, const T &coverage)-
1477{-
1478 int sa = qAlpha(color);-
1479 int sr = qRed(color);-
1480 int sg = qGreen(color);-
1481 int sb = qBlue(color);-
1482-
1483 -
1484 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1485 -
1486 uint d = dest[i];-
1487 int da = qAlpha(d);-
1488-
1489-
1490 int r = soft_light_op(qRed(d), sr, da, sa);-
1491 int b = soft_light_op(qBlue(d), sb, da, sa);-
1492 int g = soft_light_op(qGreen(d), sg, da, sa);-
1493 int a = mix_alpha(da, sa);-
1494-
1495-
1496 coverage.store(&dest[i], qRgba(r, g, b, a));-
1497 }
never executed: end of block
0
1498}
never executed: end of block
0
1499-
1500void comp_func_solid_SoftLight(uint *dest, int length, uint color, uint const_alpha)-
1501{-
1502 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1503 comp_func_solid_SoftLight_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_SoftLight_impl(dest, length, color, QFullCoverage());
0
1504 else-
1505 comp_func_solid_SoftLight_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_SoftLight_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1506}-
1507-
1508template <typename T>-
1509static inline void comp_func_SoftLight_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1510{-
1511 -
1512 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1513 -
1514 uint d = dest[i];-
1515 uint s = src[i];-
1516-
1517 int da = qAlpha(d);-
1518 int sa = qAlpha(s);-
1519-
1520-
1521 int r = soft_light_op(qRed(d), qRed(s), da, sa);-
1522 int b = soft_light_op(qBlue(d), qBlue(s), da, sa);-
1523 int g = soft_light_op(qGreen(d), qGreen(s), da, sa);-
1524 int a = mix_alpha(da, sa);-
1525-
1526-
1527 coverage.store(&dest[i], qRgba(r, g, b, a));-
1528 }
never executed: end of block
0
1529}
never executed: end of block
0
1530-
1531void comp_func_SoftLight(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1532{-
1533 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1534 comp_func_SoftLight_impl(dest, src, length, QFullCoverage());
never executed: comp_func_SoftLight_impl(dest, src, length, QFullCoverage());
0
1535 else-
1536 comp_func_SoftLight_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_SoftLight_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1537}-
1538-
1539-
1540-
1541-
1542-
1543static inline int difference_op(int dst, int src, int da, int sa)-
1544{-
1545 return
never executed: return src + dst - qt_div_255(2 * qMin(src * da, dst * sa));
src + dst - qt_div_255(2 * qMin(src * da, dst * sa));
never executed: return src + dst - qt_div_255(2 * qMin(src * da, dst * sa));
0
1546}-
1547-
1548template <typename T>-
1549static inline void comp_func_solid_Difference_impl(uint *dest, int length, uint color, const T &coverage)-
1550{-
1551 int sa = qAlpha(color);-
1552 int sr = qRed(color);-
1553 int sg = qGreen(color);-
1554 int sb = qBlue(color);-
1555-
1556 -
1557 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1558 -
1559 uint d = dest[i];-
1560 int da = qAlpha(d);-
1561-
1562-
1563 int r = difference_op(qRed(d), sr, da, sa);-
1564 int b = difference_op(qBlue(d), sb, da, sa);-
1565 int g = difference_op(qGreen(d), sg, da, sa);-
1566 int a = mix_alpha(da, sa);-
1567-
1568-
1569 coverage.store(&dest[i], qRgba(r, g, b, a));-
1570 }
never executed: end of block
0
1571}
never executed: end of block
0
1572-
1573void comp_func_solid_Difference(uint *dest, int length, uint color, uint const_alpha)-
1574{-
1575 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1576 comp_func_solid_Difference_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_Difference_impl(dest, length, color, QFullCoverage());
0
1577 else-
1578 comp_func_solid_Difference_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_Difference_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1579}-
1580-
1581template <typename T>-
1582static inline void comp_func_Difference_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1583{-
1584 -
1585 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1586 -
1587 uint d = dest[i];-
1588 uint s = src[i];-
1589-
1590 int da = qAlpha(d);-
1591 int sa = qAlpha(s);-
1592-
1593-
1594 int r = difference_op(qRed(d), qRed(s), da, sa);-
1595 int b = difference_op(qBlue(d), qBlue(s), da, sa);-
1596 int g = difference_op(qGreen(d), qGreen(s), da, sa);-
1597 int a = mix_alpha(da, sa);-
1598-
1599-
1600 coverage.store(&dest[i], qRgba(r, g, b, a));-
1601 }
never executed: end of block
0
1602}
never executed: end of block
0
1603-
1604void comp_func_Difference(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1605{-
1606 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1607 comp_func_Difference_impl(dest, src, length, QFullCoverage());
never executed: comp_func_Difference_impl(dest, src, length, QFullCoverage());
0
1608 else-
1609 comp_func_Difference_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_Difference_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1610}-
1611-
1612-
1613-
1614-
1615template <typename T>-
1616static inline void comp_func_solid_Exclusion_impl(uint *dest, int length, uint color, const T &coverage)-
1617{-
1618 int sa = qAlpha(color);-
1619 int sr = qRed(color);-
1620 int sg = qGreen(color);-
1621 int sb = qBlue(color);-
1622-
1623 -
1624 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1625 -
1626 uint d = dest[i];-
1627 int da = qAlpha(d);-
1628-
1629-
1630 int r = (qRed(d) + sr - qt_div_255(2*(qRed(d)*sr)));-
1631 int b = (qBlue(d) + sb - qt_div_255(2*(qBlue(d)*sb)));-
1632 int g = (qGreen(d) + sg - qt_div_255(2*(qGreen(d)*sg)));-
1633 int a = mix_alpha(da, sa);-
1634-
1635-
1636 coverage.store(&dest[i], qRgba(r, g, b, a));-
1637 }
never executed: end of block
0
1638}
never executed: end of block
0
1639-
1640void comp_func_solid_Exclusion(uint *dest, int length, uint color, uint const_alpha)-
1641{-
1642 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1643 comp_func_solid_Exclusion_impl(dest, length, color, QFullCoverage());
never executed: comp_func_solid_Exclusion_impl(dest, length, color, QFullCoverage());
0
1644 else-
1645 comp_func_solid_Exclusion_impl(dest, length, color, QPartialCoverage(const_alpha));
never executed: comp_func_solid_Exclusion_impl(dest, length, color, QPartialCoverage(const_alpha));
0
1646}-
1647-
1648template <typename T>-
1649static inline void comp_func_Exclusion_impl(uint *__restrict__ dest, const uint *__restrict__ src, int length, const T &coverage)-
1650{-
1651 -
1652 for (int i = 0; i < length
i < lengthDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1653 -
1654 uint d = dest[i];-
1655 uint s = src[i];-
1656-
1657 int da = qAlpha(d);-
1658 int sa = qAlpha(s);-
1659-
1660-
1661 int r = (qRed(d) + qRed(s) - ((qRed(d)*qRed(s)) >> 7));-
1662 int b = (qBlue(d) + qBlue(s) - ((qBlue(d)*qBlue(s)) >> 7));-
1663 int g = (qGreen(d) + qGreen(s) - ((qGreen(d)*qGreen(s)) >> 7));-
1664 int a = mix_alpha(da, sa);-
1665-
1666-
1667 coverage.store(&dest[i], qRgba(r, g, b, a));-
1668 }
never executed: end of block
0
1669}
never executed: end of block
0
1670-
1671void comp_func_Exclusion(uint *__restrict__ dest, const uint *__restrict__ src, int length, uint const_alpha)-
1672{-
1673 if (const_alpha == 255
const_alpha == 255Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1674 comp_func_Exclusion_impl(dest, src, length, QFullCoverage());
never executed: comp_func_Exclusion_impl(dest, src, length, QFullCoverage());
0
1675 else-
1676 comp_func_Exclusion_impl(dest, src, length, QPartialCoverage(const_alpha));
never executed: comp_func_Exclusion_impl(dest, src, length, QPartialCoverage(const_alpha));
0
1677}-
1678-
1679void rasterop_solid_SourceOrDestination(uint *dest,-
1680 int length,-
1681 uint color,-
1682 uint const_alpha)-
1683{-
1684 (void)const_alpha;;-
1685 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1686 *
never executed: *dest++ |= color;
dest++ |= color;
never executed: *dest++ |= color;
0
1687}
never executed: end of block
0
1688-
1689void rasterop_SourceOrDestination(uint *__restrict__ dest,-
1690 const uint *__restrict__ src,-
1691 int length,-
1692 uint const_alpha)-
1693{-
1694 (void)const_alpha;;-
1695 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1696 *
never executed: *dest++ |= *src++;
dest++ |= *src++;
never executed: *dest++ |= *src++;
0
1697}
never executed: end of block
0
1698-
1699void rasterop_solid_SourceAndDestination(uint *dest,-
1700 int length,-
1701 uint color,-
1702 uint const_alpha)-
1703{-
1704 (void)const_alpha;;-
1705 color |= 0xff000000;-
1706 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1707 *
never executed: *dest++ &= color;
dest++ &= color;
never executed: *dest++ &= color;
0
1708}
never executed: end of block
0
1709-
1710void rasterop_SourceAndDestination(uint *__restrict__ dest,-
1711 const uint *__restrict__ src,-
1712 int length,-
1713 uint const_alpha)-
1714{-
1715 (void)const_alpha;;-
1716 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1717 *dest = (*src & *dest) | 0xff000000;-
1718 ++dest; ++src;-
1719 }
never executed: end of block
0
1720}
never executed: end of block
0
1721-
1722void rasterop_solid_SourceXorDestination(uint *dest,-
1723 int length,-
1724 uint color,-
1725 uint const_alpha)-
1726{-
1727 (void)const_alpha;;-
1728 color &= 0x00ffffff;-
1729 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1730 *
never executed: *dest++ ^= color;
dest++ ^= color;
never executed: *dest++ ^= color;
0
1731}
never executed: end of block
0
1732-
1733void rasterop_SourceXorDestination(uint *__restrict__ dest,-
1734 const uint *__restrict__ src,-
1735 int length,-
1736 uint const_alpha)-
1737{-
1738 (void)const_alpha;;-
1739 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1740 *dest = (*src ^ *dest) | 0xff000000;-
1741 ++dest; ++src;-
1742 }
never executed: end of block
0
1743}
never executed: end of block
0
1744-
1745void rasterop_solid_NotSourceAndNotDestination(uint *dest,-
1746 int length,-
1747 uint color,-
1748 uint const_alpha)-
1749{-
1750 (void)const_alpha;;-
1751 color = ~color;-
1752 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1753 *dest = (color & ~(*dest)) | 0xff000000;-
1754 ++dest;-
1755 }
never executed: end of block
0
1756}
never executed: end of block
0
1757-
1758void rasterop_NotSourceAndNotDestination(uint *__restrict__ dest,-
1759 const uint *__restrict__ src,-
1760 int length,-
1761 uint const_alpha)-
1762{-
1763 (void)const_alpha;;-
1764 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1765 *dest = (~(*src) & ~(*dest)) | 0xff000000;-
1766 ++dest; ++src;-
1767 }
never executed: end of block
0
1768}
never executed: end of block
0
1769-
1770void rasterop_solid_NotSourceOrNotDestination(uint *dest,-
1771 int length,-
1772 uint color,-
1773 uint const_alpha)-
1774{-
1775 (void)const_alpha;;-
1776 color = ~color | 0xff000000;-
1777 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1778 *dest = color | ~(*dest);-
1779 ++dest;-
1780 }
never executed: end of block
0
1781}
never executed: end of block
0
1782-
1783void rasterop_NotSourceOrNotDestination(uint *__restrict__ dest,-
1784 const uint *__restrict__ src,-
1785 int length,-
1786 uint const_alpha)-
1787{-
1788 (void)const_alpha;;-
1789 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1790 *dest = ~(*src) | ~(*dest) | 0xff000000;-
1791 ++dest; ++src;-
1792 }
never executed: end of block
0
1793}
never executed: end of block
0
1794-
1795void rasterop_solid_NotSourceXorDestination(uint *dest,-
1796 int length,-
1797 uint color,-
1798 uint const_alpha)-
1799{-
1800 (void)const_alpha;;-
1801 color = ~color & 0x00ffffff;-
1802 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1803 *dest = color ^ (*dest);-
1804 ++dest;-
1805 }
never executed: end of block
0
1806}
never executed: end of block
0
1807-
1808void rasterop_NotSourceXorDestination(uint *__restrict__ dest,-
1809 const uint *__restrict__ src,-
1810 int length,-
1811 uint const_alpha)-
1812{-
1813 (void)const_alpha;;-
1814 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1815 *dest = ((~(*src)) ^ (*dest)) | 0xff000000;-
1816 ++dest; ++src;-
1817 }
never executed: end of block
0
1818}
never executed: end of block
0
1819-
1820void rasterop_solid_NotSource(uint *dest, int length,-
1821 uint color, uint const_alpha)-
1822{-
1823 (void)const_alpha;;-
1824 qt_memfill(dest, ~color | 0xff000000, length);-
1825}
never executed: end of block
0
1826-
1827void rasterop_NotSource(uint *__restrict__ dest, const uint *__restrict__ src,-
1828 int length, uint const_alpha)-
1829{-
1830 (void)const_alpha;;-
1831 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1832 *
never executed: *dest++ = ~(*src++) | 0xff000000;
dest++ = ~(*src++) | 0xff000000;
never executed: *dest++ = ~(*src++) | 0xff000000;
0
1833}
never executed: end of block
0
1834-
1835void rasterop_solid_NotSourceAndDestination(uint *dest,-
1836 int length,-
1837 uint color,-
1838 uint const_alpha)-
1839{-
1840 (void)const_alpha;;-
1841 color = ~color | 0xff000000;-
1842 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1843 *dest = color & *dest;-
1844 ++dest;-
1845 }
never executed: end of block
0
1846}
never executed: end of block
0
1847-
1848void rasterop_NotSourceAndDestination(uint *__restrict__ dest,-
1849 const uint *__restrict__ src,-
1850 int length,-
1851 uint const_alpha)-
1852{-
1853 (void)const_alpha;;-
1854 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1855 *dest = (~(*src) & *dest) | 0xff000000;-
1856 ++dest; ++src;-
1857 }
never executed: end of block
0
1858}
never executed: end of block
0
1859-
1860void rasterop_solid_SourceAndNotDestination(uint *dest,-
1861 int length,-
1862 uint color,-
1863 uint const_alpha)-
1864{-
1865 (void)const_alpha;;-
1866 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1867 *dest = (color & ~(*dest)) | 0xff000000;-
1868 ++dest;-
1869 }
never executed: end of block
0
1870}
never executed: end of block
0
1871-
1872void rasterop_SourceAndNotDestination(uint *__restrict__ dest,-
1873 const uint *__restrict__ src,-
1874 int length,-
1875 uint const_alpha)-
1876{-
1877 (void)const_alpha;;-
1878 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1879 *dest = (*src & ~(*dest)) | 0xff000000;-
1880 ++dest; ++src;-
1881 }
never executed: end of block
0
1882}
never executed: end of block
0
1883-
1884void rasterop_NotSourceOrDestination(uint *__restrict__ dest,-
1885 const uint *__restrict__ src,-
1886 int length,-
1887 uint const_alpha)-
1888{-
1889 (void)const_alpha;;-
1890 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1891 *dest = (~(*src) | *dest) | 0xff000000;-
1892 ++dest; ++src;-
1893 }
never executed: end of block
0
1894}
never executed: end of block
0
1895-
1896void rasterop_solid_NotSourceOrDestination(uint *__restrict__ dest,-
1897 int length,-
1898 uint color,-
1899 uint const_alpha)-
1900{-
1901 (void)const_alpha;;-
1902 color = ~color | 0xff000000;-
1903 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1904 *
never executed: *dest++ |= color;
dest++ |= color;
never executed: *dest++ |= color;
0
1905}
never executed: end of block
0
1906-
1907void rasterop_SourceOrNotDestination(uint *__restrict__ dest,-
1908 const uint *__restrict__ src,-
1909 int length,-
1910 uint const_alpha)-
1911{-
1912 (void)const_alpha;;-
1913 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1914 *dest = (*src | ~(*dest)) | 0xff000000;-
1915 ++dest; ++src;-
1916 }
never executed: end of block
0
1917}
never executed: end of block
0
1918-
1919void rasterop_solid_SourceOrNotDestination(uint *__restrict__ dest,-
1920 int length,-
1921 uint color,-
1922 uint const_alpha)-
1923{-
1924 (void)const_alpha;;-
1925 while (length--
length--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1926 *dest = (color | ~(*dest)) | 0xff000000;-
1927 ++dest;-
1928 }
never executed: end of block
0
1929}
never executed: end of block
0
1930-
1931void rasterop_ClearDestination(uint *__restrict__ dest,-
1932 const uint *__restrict__ src,-
1933 int length,-
1934 uint const_alpha)-
1935{-
1936 (void)src;;-
1937 comp_func_solid_SourceOver (dest, length, 0xff000000, const_alpha);-
1938}
never executed: end of block
0
1939-
1940void rasterop_solid_ClearDestination(uint *__restrict__ dest,-
1941 int length,-
1942 uint color,-
1943 uint const_alpha)-
1944{-
1945 (void)color;;-
1946 comp_func_solid_SourceOver (dest, length, 0xff000000, const_alpha);-
1947}
never executed: end of block
0
1948-
1949void rasterop_SetDestination(uint *__restrict__ dest,-
1950 const uint *__restrict__ src,-
1951 int length,-
1952 uint const_alpha)-
1953{-
1954 (void)src;;-
1955 comp_func_solid_SourceOver (dest, length, 0xffffffff, const_alpha);-
1956}
never executed: end of block
0
1957-
1958void rasterop_solid_SetDestination(uint *__restrict__ dest,-
1959 int length,-
1960 uint color,-
1961 uint const_alpha)-
1962{-
1963 (void)color;;-
1964 comp_func_solid_SourceOver (dest, length, 0xffffffff, const_alpha);-
1965}
never executed: end of block
0
1966-
1967void rasterop_NotDestination(uint *__restrict__ dest,-
1968 const uint *__restrict__ src,-
1969 int length,-
1970 uint const_alpha)-
1971{-
1972 (void)src;;-
1973 rasterop_solid_SourceXorDestination (dest, length, 0x00ffffff, const_alpha);-
1974}
never executed: end of block
0
1975-
1976void rasterop_solid_NotDestination(uint *__restrict__ dest,-
1977 int length,-
1978 uint color,-
1979 uint const_alpha)-
1980{-
1981 (void)color;;-
1982 rasterop_solid_SourceXorDestination (dest, length, 0x00ffffff, const_alpha);-
1983}
never executed: end of block
0
1984-
1985CompositionFunctionSolid qt_functionForModeSolid_C[] = {-
1986 comp_func_solid_SourceOver,-
1987 comp_func_solid_DestinationOver,-
1988 comp_func_solid_Clear,-
1989 comp_func_solid_Source,-
1990 comp_func_solid_Destination,-
1991 comp_func_solid_SourceIn,-
1992 comp_func_solid_DestinationIn,-
1993 comp_func_solid_SourceOut,-
1994 comp_func_solid_DestinationOut,-
1995 comp_func_solid_SourceAtop,-
1996 comp_func_solid_DestinationAtop,-
1997 comp_func_solid_XOR,-
1998 comp_func_solid_Plus,-
1999 comp_func_solid_Multiply,-
2000 comp_func_solid_Screen,-
2001 comp_func_solid_Overlay,-
2002 comp_func_solid_Darken,-
2003 comp_func_solid_Lighten,-
2004 comp_func_solid_ColorDodge,-
2005 comp_func_solid_ColorBurn,-
2006 comp_func_solid_HardLight,-
2007 comp_func_solid_SoftLight,-
2008 comp_func_solid_Difference,-
2009 comp_func_solid_Exclusion,-
2010 rasterop_solid_SourceOrDestination,-
2011 rasterop_solid_SourceAndDestination,-
2012 rasterop_solid_SourceXorDestination,-
2013 rasterop_solid_NotSourceAndNotDestination,-
2014 rasterop_solid_NotSourceOrNotDestination,-
2015 rasterop_solid_NotSourceXorDestination,-
2016 rasterop_solid_NotSource,-
2017 rasterop_solid_NotSourceAndDestination,-
2018 rasterop_solid_SourceAndNotDestination,-
2019 rasterop_solid_NotSourceOrDestination,-
2020 rasterop_solid_SourceOrNotDestination,-
2021 rasterop_solid_ClearDestination,-
2022 rasterop_solid_SetDestination,-
2023 rasterop_solid_NotDestination-
2024};-
2025-
2026CompositionFunctionSolid64 qt_functionForModeSolid64_C[] = {-
2027 comp_func_solid_SourceOver_rgb64,-
2028 comp_func_solid_DestinationOver_rgb64,-
2029 comp_func_solid_Clear_rgb64,-
2030 comp_func_solid_Source_rgb64,-
2031 comp_func_solid_Destination_rgb64,-
2032 comp_func_solid_SourceIn_rgb64,-
2033 comp_func_solid_DestinationIn_rgb64,-
2034 comp_func_solid_SourceOut_rgb64,-
2035 comp_func_solid_DestinationOut_rgb64,-
2036 comp_func_solid_SourceAtop_rgb64,-
2037 comp_func_solid_DestinationAtop_rgb64,-
2038 comp_func_solid_XOR_rgb64,-
2039 comp_func_solid_Plus_rgb64,-
2040 0, 0, 0, 0, 0,-
2041 0, 0, 0, 0, 0, 0,-
2042 0, 0, 0, 0, 0, 0,-
2043 0, 0, 0, 0, 0, 0, 0, 0-
2044};-
2045-
2046CompositionFunction qt_functionForMode_C[] = {-
2047 comp_func_SourceOver,-
2048 comp_func_DestinationOver,-
2049 comp_func_Clear,-
2050 comp_func_Source,-
2051 comp_func_Destination,-
2052 comp_func_SourceIn,-
2053 comp_func_DestinationIn,-
2054 comp_func_SourceOut,-
2055 comp_func_DestinationOut,-
2056 comp_func_SourceAtop,-
2057 comp_func_DestinationAtop,-
2058 comp_func_XOR,-
2059 comp_func_Plus,-
2060 comp_func_Multiply,-
2061 comp_func_Screen,-
2062 comp_func_Overlay,-
2063 comp_func_Darken,-
2064 comp_func_Lighten,-
2065 comp_func_ColorDodge,-
2066 comp_func_ColorBurn,-
2067 comp_func_HardLight,-
2068 comp_func_SoftLight,-
2069 comp_func_Difference,-
2070 comp_func_Exclusion,-
2071 rasterop_SourceOrDestination,-
2072 rasterop_SourceAndDestination,-
2073 rasterop_SourceXorDestination,-
2074 rasterop_NotSourceAndNotDestination,-
2075 rasterop_NotSourceOrNotDestination,-
2076 rasterop_NotSourceXorDestination,-
2077 rasterop_NotSource,-
2078 rasterop_NotSourceAndDestination,-
2079 rasterop_SourceAndNotDestination,-
2080 rasterop_NotSourceOrDestination,-
2081 rasterop_SourceOrNotDestination,-
2082 rasterop_ClearDestination,-
2083 rasterop_SetDestination,-
2084 rasterop_NotDestination-
2085};-
2086-
2087CompositionFunction64 qt_functionForMode64_C[] = {-
2088 comp_func_SourceOver_rgb64,-
2089 comp_func_DestinationOver_rgb64,-
2090 comp_func_Clear_rgb64,-
2091 comp_func_Source_rgb64,-
2092 comp_func_Destination_rgb64,-
2093 comp_func_SourceIn_rgb64,-
2094 comp_func_DestinationIn_rgb64,-
2095 comp_func_SourceOut_rgb64,-
2096 comp_func_DestinationOut_rgb64,-
2097 comp_func_SourceAtop_rgb64,-
2098 comp_func_DestinationAtop_rgb64,-
2099 comp_func_XOR_rgb64,-
2100 comp_func_Plus_rgb64,-
2101 0, 0, 0, 0, 0,-
2102 0, 0, 0, 0, 0, 0,-
2103 0, 0, 0, 0, 0, 0,-
2104 0, 0, 0, 0, 0, 0, 0, 0-
2105};-
2106-
2107-
Switch to Source codePreprocessed file

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