Line | Branch | Exec | Source |
---|---|---|---|
1 | /* | ||
2 | * Copyright (C) 2001-2011 Michael Niedermayer <michaelni@gmx.at> | ||
3 | * | ||
4 | * This file is part of FFmpeg. | ||
5 | * | ||
6 | * FFmpeg is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU Lesser General Public | ||
8 | * License as published by the Free Software Foundation; either | ||
9 | * version 2.1 of the License, or (at your option) any later version. | ||
10 | * | ||
11 | * FFmpeg is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * Lesser General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU Lesser General Public | ||
17 | * License along with FFmpeg; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | |||
21 | #include <inttypes.h> | ||
22 | #include "config.h" | ||
23 | #include "libswscale/swscale.h" | ||
24 | #include "libswscale/swscale_internal.h" | ||
25 | #include "libavutil/attributes.h" | ||
26 | #include "libavutil/avassert.h" | ||
27 | #include "libavutil/intreadwrite.h" | ||
28 | #include "libavutil/x86/cpu.h" | ||
29 | #include "libavutil/cpu.h" | ||
30 | #include "libavutil/mem_internal.h" | ||
31 | #include "libavutil/pixdesc.h" | ||
32 | |||
33 | const DECLARE_ALIGNED(8, uint64_t, ff_dither4)[2] = { | ||
34 | 0x0103010301030103LL, | ||
35 | 0x0200020002000200LL,}; | ||
36 | |||
37 | const DECLARE_ALIGNED(8, uint64_t, ff_dither8)[2] = { | ||
38 | 0x0602060206020602LL, | ||
39 | 0x0004000400040004LL,}; | ||
40 | |||
41 | #if HAVE_INLINE_ASM | ||
42 | |||
43 | #define DITHER1XBPP | ||
44 | |||
45 | DECLARE_ASM_CONST(8, uint64_t, bF8)= 0xF8F8F8F8F8F8F8F8LL; | ||
46 | DECLARE_ASM_CONST(8, uint64_t, bFC)= 0xFCFCFCFCFCFCFCFCLL; | ||
47 | |||
48 | DECLARE_ASM_ALIGNED(8, const uint64_t, ff_M24A) = 0x00FF0000FF0000FFLL; | ||
49 | DECLARE_ASM_ALIGNED(8, const uint64_t, ff_M24B) = 0xFF0000FF0000FF00LL; | ||
50 | DECLARE_ASM_ALIGNED(8, const uint64_t, ff_M24C) = 0x0000FF0000FF0000LL; | ||
51 | |||
52 | DECLARE_ASM_ALIGNED(8, const uint64_t, ff_bgr2YOffset) = 0x1010101010101010ULL; | ||
53 | DECLARE_ASM_ALIGNED(8, const uint64_t, ff_bgr2UVOffset) = 0x8080808080808080ULL; | ||
54 | DECLARE_ASM_ALIGNED(8, const uint64_t, ff_w1111) = 0x0001000100010001ULL; | ||
55 | |||
56 | |||
57 | // MMXEXT versions | ||
58 | #if HAVE_MMXEXT_INLINE | ||
59 | #undef RENAME | ||
60 | #undef COMPILE_TEMPLATE_MMXEXT | ||
61 | #define COMPILE_TEMPLATE_MMXEXT 1 | ||
62 | #define RENAME(a) a ## _mmxext | ||
63 | #include "swscale_template.c" | ||
64 | #endif | ||
65 | |||
66 | 11355463 | void ff_updateMMXDitherTables(SwsContext *c, int dstY) | |
67 | { | ||
68 | 11355463 | const int dstH= c->dstH; | |
69 | 11355463 | const int flags= c->flags; | |
70 | |||
71 | 11355463 | SwsPlane *lumPlane = &c->slice[c->numSlice-2].plane[0]; | |
72 | 11355463 | SwsPlane *chrUPlane = &c->slice[c->numSlice-2].plane[1]; | |
73 | 11355463 | SwsPlane *alpPlane = &c->slice[c->numSlice-2].plane[3]; | |
74 | |||
75 | 11355463 | int hasAlpha = c->needAlpha; | |
76 | 11355463 | int32_t *vLumFilterPos= c->vLumFilterPos; | |
77 | 11355463 | int32_t *vChrFilterPos= c->vChrFilterPos; | |
78 | 11355463 | int16_t *vLumFilter= c->vLumFilter; | |
79 | 11355463 | int16_t *vChrFilter= c->vChrFilter; | |
80 | 11355463 | int32_t *lumMmxFilter= c->lumMmxFilter; | |
81 | 11355463 | int32_t *chrMmxFilter= c->chrMmxFilter; | |
82 | 11355463 | int32_t av_unused *alpMmxFilter= c->alpMmxFilter; | |
83 | 11355463 | const int vLumFilterSize= c->vLumFilterSize; | |
84 | 11355463 | const int vChrFilterSize= c->vChrFilterSize; | |
85 | 11355463 | const int chrDstY= dstY>>c->chrDstVSubSample; | |
86 | 11355463 | const int firstLumSrcY= vLumFilterPos[dstY]; //First line needed as input | |
87 | 11355463 | const int firstChrSrcY= vChrFilterPos[chrDstY]; //First line needed as input | |
88 | |||
89 | 11355463 | c->blueDither= ff_dither8[dstY&1]; | |
90 |
4/4✓ Branch 0 taken 11217179 times.
✓ Branch 1 taken 138284 times.
✓ Branch 2 taken 49608 times.
✓ Branch 3 taken 11167571 times.
|
11355463 | if (c->dstFormat == AV_PIX_FMT_RGB555 || c->dstFormat == AV_PIX_FMT_BGR555) |
91 | 187892 | c->greenDither= ff_dither8[dstY&1]; | |
92 | else | ||
93 | 11167571 | c->greenDither= ff_dither4[dstY&1]; | |
94 | 11355463 | c->redDither= ff_dither8[(dstY+1)&1]; | |
95 |
2/2✓ Branch 0 taken 11284519 times.
✓ Branch 1 taken 70944 times.
|
11355463 | if (dstY < dstH - 2) { |
96 | 11284519 | const int16_t **lumSrcPtr = (const int16_t **)(void*) lumPlane->line + firstLumSrcY - lumPlane->sliceY; | |
97 | 11284519 | const int16_t **chrUSrcPtr = (const int16_t **)(void*) chrUPlane->line + firstChrSrcY - chrUPlane->sliceY; | |
98 |
2/2✓ Branch 0 taken 98743 times.
✓ Branch 1 taken 11185776 times.
|
11284519 | const int16_t **alpSrcPtr = (CONFIG_SWSCALE_ALPHA && hasAlpha) ? (const int16_t **)(void*) alpPlane->line + firstLumSrcY - alpPlane->sliceY : NULL; |
99 | |||
100 | int i; | ||
101 |
2/4✓ Branch 0 taken 11284519 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 11284519 times.
|
11284519 | if (firstLumSrcY < 0 || firstLumSrcY + vLumFilterSize > c->srcH) { |
102 | ✗ | const int16_t **tmpY = (const int16_t **) lumPlane->tmp; | |
103 | |||
104 | ✗ | int neg = -firstLumSrcY, i, end = FFMIN(c->srcH - firstLumSrcY, vLumFilterSize); | |
105 | ✗ | for (i = 0; i < neg; i++) | |
106 | ✗ | tmpY[i] = lumSrcPtr[neg]; | |
107 | ✗ | for ( ; i < end; i++) | |
108 | ✗ | tmpY[i] = lumSrcPtr[i]; | |
109 | ✗ | for ( ; i < vLumFilterSize; i++) | |
110 | ✗ | tmpY[i] = tmpY[i-1]; | |
111 | ✗ | lumSrcPtr = tmpY; | |
112 | |||
113 | ✗ | if (alpSrcPtr) { | |
114 | ✗ | const int16_t **tmpA = (const int16_t **) alpPlane->tmp; | |
115 | ✗ | for (i = 0; i < neg; i++) | |
116 | ✗ | tmpA[i] = alpSrcPtr[neg]; | |
117 | ✗ | for ( ; i < end; i++) | |
118 | ✗ | tmpA[i] = alpSrcPtr[i]; | |
119 | ✗ | for ( ; i < vLumFilterSize; i++) | |
120 | ✗ | tmpA[i] = tmpA[i - 1]; | |
121 | ✗ | alpSrcPtr = tmpA; | |
122 | } | ||
123 | } | ||
124 |
2/4✓ Branch 0 taken 11284519 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 11284519 times.
|
11284519 | if (firstChrSrcY < 0 || firstChrSrcY + vChrFilterSize > c->chrSrcH) { |
125 | ✗ | const int16_t **tmpU = (const int16_t **) chrUPlane->tmp; | |
126 | ✗ | int neg = -firstChrSrcY, i, end = FFMIN(c->chrSrcH - firstChrSrcY, vChrFilterSize); | |
127 | ✗ | for (i = 0; i < neg; i++) { | |
128 | ✗ | tmpU[i] = chrUSrcPtr[neg]; | |
129 | } | ||
130 | ✗ | for ( ; i < end; i++) { | |
131 | ✗ | tmpU[i] = chrUSrcPtr[i]; | |
132 | } | ||
133 | ✗ | for ( ; i < vChrFilterSize; i++) { | |
134 | ✗ | tmpU[i] = tmpU[i - 1]; | |
135 | } | ||
136 | ✗ | chrUSrcPtr = tmpU; | |
137 | } | ||
138 | |||
139 |
2/2✓ Branch 0 taken 10794046 times.
✓ Branch 1 taken 490473 times.
|
11284519 | if (flags & SWS_ACCURATE_RND) { |
140 | 10794046 | int s= APCK_SIZE / 8; | |
141 |
2/2✓ Branch 0 taken 12352240 times.
✓ Branch 1 taken 10794046 times.
|
23146286 | for (i=0; i<vLumFilterSize; i+=2) { |
142 | 12352240 | *(const void**)&lumMmxFilter[s*i ]= lumSrcPtr[i ]; | |
143 | 12352240 | *(const void**)&lumMmxFilter[s*i+APCK_PTR2/4 ]= lumSrcPtr[i+(vLumFilterSize>1)]; | |
144 | 12352240 | lumMmxFilter[s*i+APCK_COEF/4 ]= | |
145 | 24704480 | lumMmxFilter[s*i+APCK_COEF/4+1]= vLumFilter[dstY*vLumFilterSize + i ] | |
146 |
2/2✓ Branch 0 taken 4763452 times.
✓ Branch 1 taken 7588788 times.
|
12352240 | + (vLumFilterSize>1 ? vLumFilter[dstY*vLumFilterSize + i + 1] * (1 << 16) : 0); |
147 |
2/2✓ Branch 0 taken 117032 times.
✓ Branch 1 taken 12235208 times.
|
12352240 | if (CONFIG_SWSCALE_ALPHA && hasAlpha) { |
148 | 117032 | *(const void**)&alpMmxFilter[s*i ]= alpSrcPtr[i ]; | |
149 | 117032 | *(const void**)&alpMmxFilter[s*i+APCK_PTR2/4 ]= alpSrcPtr[i+(vLumFilterSize>1)]; | |
150 | 117032 | alpMmxFilter[s*i+APCK_COEF/4 ]= | |
151 | 117032 | alpMmxFilter[s*i+APCK_COEF/4+1]= lumMmxFilter[s*i+APCK_COEF/4 ]; | |
152 | } | ||
153 | } | ||
154 |
2/2✓ Branch 0 taken 21320226 times.
✓ Branch 1 taken 10794046 times.
|
32114272 | for (i=0; i<vChrFilterSize; i+=2) { |
155 | 21320226 | *(const void**)&chrMmxFilter[s*i ]= chrUSrcPtr[i ]; | |
156 | 21320226 | *(const void**)&chrMmxFilter[s*i+APCK_PTR2/4 ]= chrUSrcPtr[i+(vChrFilterSize>1)]; | |
157 | 21320226 | chrMmxFilter[s*i+APCK_COEF/4 ]= | |
158 | 42640452 | chrMmxFilter[s*i+APCK_COEF/4+1]= vChrFilter[chrDstY*vChrFilterSize + i ] | |
159 |
2/2✓ Branch 0 taken 18920274 times.
✓ Branch 1 taken 2399952 times.
|
21320226 | + (vChrFilterSize>1 ? vChrFilter[chrDstY*vChrFilterSize + i + 1] * (1 << 16) : 0); |
160 | } | ||
161 | } else { | ||
162 |
2/2✓ Branch 0 taken 1370402 times.
✓ Branch 1 taken 490473 times.
|
1860875 | for (i=0; i<vLumFilterSize; i++) { |
163 | 1370402 | *(const void**)&lumMmxFilter[4*i+0]= lumSrcPtr[i]; | |
164 | 1370402 | lumMmxFilter[4*i+2]= | |
165 | 1370402 | lumMmxFilter[4*i+3]= | |
166 | 1370402 | ((uint16_t)vLumFilter[dstY*vLumFilterSize + i])*0x10001U; | |
167 |
2/2✓ Branch 0 taken 27436 times.
✓ Branch 1 taken 1342966 times.
|
1370402 | if (CONFIG_SWSCALE_ALPHA && hasAlpha) { |
168 | 27436 | *(const void**)&alpMmxFilter[4*i+0]= alpSrcPtr[i]; | |
169 | 27436 | alpMmxFilter[4*i+2]= | |
170 | 27436 | alpMmxFilter[4*i+3]= lumMmxFilter[4*i+2]; | |
171 | } | ||
172 | } | ||
173 |
2/2✓ Branch 0 taken 1928504 times.
✓ Branch 1 taken 490473 times.
|
2418977 | for (i=0; i<vChrFilterSize; i++) { |
174 | 1928504 | *(const void**)&chrMmxFilter[4*i+0]= chrUSrcPtr[i]; | |
175 | 1928504 | chrMmxFilter[4*i+2]= | |
176 | 1928504 | chrMmxFilter[4*i+3]= | |
177 | 1928504 | ((uint16_t)vChrFilter[chrDstY*vChrFilterSize + i])*0x10001U; | |
178 | } | ||
179 | } | ||
180 | } | ||
181 | 11355463 | } | |
182 | #endif /* HAVE_INLINE_ASM */ | ||
183 | |||
184 | #define YUV2YUVX_FUNC_MMX(opt, step) \ | ||
185 | void ff_yuv2yuvX_ ##opt(const int16_t *filter, int filterSize, int srcOffset, \ | ||
186 | uint8_t *dest, int dstW, \ | ||
187 | const uint8_t *dither, int offset); \ | ||
188 | static void yuv2yuvX_ ##opt(const int16_t *filter, int filterSize, \ | ||
189 | const int16_t **src, uint8_t *dest, int dstW, \ | ||
190 | const uint8_t *dither, int offset) \ | ||
191 | { \ | ||
192 | if(dstW > 0) \ | ||
193 | ff_yuv2yuvX_ ##opt(filter, filterSize - 1, 0, dest - offset, dstW + offset, dither, offset); \ | ||
194 | return; \ | ||
195 | } | ||
196 | |||
197 | #define YUV2YUVX_FUNC(opt, step) \ | ||
198 | void ff_yuv2yuvX_ ##opt(const int16_t *filter, int filterSize, int srcOffset, \ | ||
199 | uint8_t *dest, int dstW, \ | ||
200 | const uint8_t *dither, int offset); \ | ||
201 | static void yuv2yuvX_ ##opt(const int16_t *filter, int filterSize, \ | ||
202 | const int16_t **src, uint8_t *dest, int dstW, \ | ||
203 | const uint8_t *dither, int offset) \ | ||
204 | { \ | ||
205 | int remainder = (dstW % step); \ | ||
206 | int pixelsProcessed = dstW - remainder; \ | ||
207 | if(((uintptr_t)dest) & 15){ \ | ||
208 | yuv2yuvX_mmxext(filter, filterSize, src, dest, dstW, dither, offset); \ | ||
209 | return; \ | ||
210 | } \ | ||
211 | if(pixelsProcessed > 0) \ | ||
212 | ff_yuv2yuvX_ ##opt(filter, filterSize - 1, 0, dest - offset, pixelsProcessed + offset, dither, offset); \ | ||
213 | if(remainder > 0){ \ | ||
214 | ff_yuv2yuvX_mmxext(filter, filterSize - 1, pixelsProcessed, dest - offset, pixelsProcessed + remainder + offset, dither, offset); \ | ||
215 | } \ | ||
216 | return; \ | ||
217 | } | ||
218 | |||
219 | #if HAVE_MMXEXT_EXTERNAL | ||
220 |
1/2✓ Branch 0 taken 76 times.
✗ Branch 1 not taken.
|
76 | YUV2YUVX_FUNC_MMX(mmxext, 16) |
221 | #endif | ||
222 | #if HAVE_SSE3_EXTERNAL | ||
223 |
5/6✗ Branch 0 not taken.
✓ Branch 1 taken 76 times.
✓ Branch 3 taken 64 times.
✓ Branch 4 taken 12 times.
✓ Branch 6 taken 44 times.
✓ Branch 7 taken 32 times.
|
76 | YUV2YUVX_FUNC(sse3, 32) |
224 | #endif | ||
225 | #if HAVE_AVX2_EXTERNAL | ||
226 |
5/6✗ Branch 0 not taken.
✓ Branch 1 taken 76 times.
✓ Branch 3 taken 64 times.
✓ Branch 4 taken 12 times.
✓ Branch 6 taken 60 times.
✓ Branch 7 taken 16 times.
|
76 | YUV2YUVX_FUNC(avx2, 64) |
227 | #endif | ||
228 | |||
229 | #define SCALE_FUNC(filter_n, from_bpc, to_bpc, opt) \ | ||
230 | void ff_hscale ## from_bpc ## to ## to_bpc ## _ ## filter_n ## _ ## opt( \ | ||
231 | SwsContext *c, int16_t *data, \ | ||
232 | int dstW, const uint8_t *src, \ | ||
233 | const int16_t *filter, \ | ||
234 | const int32_t *filterPos, int filterSize) | ||
235 | |||
236 | #define SCALE_FUNCS(filter_n, opt) \ | ||
237 | SCALE_FUNC(filter_n, 8, 15, opt); \ | ||
238 | SCALE_FUNC(filter_n, 9, 15, opt); \ | ||
239 | SCALE_FUNC(filter_n, 10, 15, opt); \ | ||
240 | SCALE_FUNC(filter_n, 12, 15, opt); \ | ||
241 | SCALE_FUNC(filter_n, 14, 15, opt); \ | ||
242 | SCALE_FUNC(filter_n, 16, 15, opt); \ | ||
243 | SCALE_FUNC(filter_n, 8, 19, opt); \ | ||
244 | SCALE_FUNC(filter_n, 9, 19, opt); \ | ||
245 | SCALE_FUNC(filter_n, 10, 19, opt); \ | ||
246 | SCALE_FUNC(filter_n, 12, 19, opt); \ | ||
247 | SCALE_FUNC(filter_n, 14, 19, opt); \ | ||
248 | SCALE_FUNC(filter_n, 16, 19, opt) | ||
249 | |||
250 | #define SCALE_FUNCS_MMX(opt) \ | ||
251 | SCALE_FUNCS(4, opt); \ | ||
252 | SCALE_FUNCS(8, opt); \ | ||
253 | SCALE_FUNCS(X, opt) | ||
254 | |||
255 | #define SCALE_FUNCS_SSE(opt) \ | ||
256 | SCALE_FUNCS(4, opt); \ | ||
257 | SCALE_FUNCS(8, opt); \ | ||
258 | SCALE_FUNCS(X4, opt); \ | ||
259 | SCALE_FUNCS(X8, opt) | ||
260 | |||
261 | SCALE_FUNCS_SSE(sse2); | ||
262 | SCALE_FUNCS_SSE(ssse3); | ||
263 | SCALE_FUNCS_SSE(sse4); | ||
264 | |||
265 | SCALE_FUNC(4, 8, 15, avx2); | ||
266 | SCALE_FUNC(X4, 8, 15, avx2); | ||
267 | |||
268 | #define VSCALEX_FUNC(size, opt) \ | ||
269 | void ff_yuv2planeX_ ## size ## _ ## opt(const int16_t *filter, int filterSize, \ | ||
270 | const int16_t **src, uint8_t *dest, int dstW, \ | ||
271 | const uint8_t *dither, int offset) | ||
272 | #define VSCALEX_FUNCS(opt) \ | ||
273 | VSCALEX_FUNC(8, opt); \ | ||
274 | VSCALEX_FUNC(9, opt); \ | ||
275 | VSCALEX_FUNC(10, opt) | ||
276 | |||
277 | VSCALEX_FUNC(8, mmxext); | ||
278 | VSCALEX_FUNCS(sse2); | ||
279 | VSCALEX_FUNCS(sse4); | ||
280 | VSCALEX_FUNC(16, sse4); | ||
281 | VSCALEX_FUNCS(avx); | ||
282 | |||
283 | #define VSCALE_FUNC(size, opt) \ | ||
284 | void ff_yuv2plane1_ ## size ## _ ## opt(const int16_t *src, uint8_t *dst, int dstW, \ | ||
285 | const uint8_t *dither, int offset) | ||
286 | #define VSCALE_FUNCS(opt1, opt2) \ | ||
287 | VSCALE_FUNC(8, opt1); \ | ||
288 | VSCALE_FUNC(9, opt2); \ | ||
289 | VSCALE_FUNC(10, opt2); \ | ||
290 | VSCALE_FUNC(16, opt1) | ||
291 | |||
292 | VSCALE_FUNCS(sse2, sse2); | ||
293 | VSCALE_FUNC(16, sse4); | ||
294 | VSCALE_FUNCS(avx, avx); | ||
295 | |||
296 | #define INPUT_Y_FUNC(fmt, opt) \ | ||
297 | void ff_ ## fmt ## ToY_ ## opt(uint8_t *dst, const uint8_t *src, \ | ||
298 | const uint8_t *unused1, const uint8_t *unused2, \ | ||
299 | int w, uint32_t *unused, void *opq) | ||
300 | #define INPUT_UV_FUNC(fmt, opt) \ | ||
301 | void ff_ ## fmt ## ToUV_ ## opt(uint8_t *dstU, uint8_t *dstV, \ | ||
302 | const uint8_t *unused0, \ | ||
303 | const uint8_t *src1, \ | ||
304 | const uint8_t *src2, \ | ||
305 | int w, uint32_t *unused, void *opq) | ||
306 | #define INPUT_FUNC(fmt, opt) \ | ||
307 | INPUT_Y_FUNC(fmt, opt); \ | ||
308 | INPUT_UV_FUNC(fmt, opt) | ||
309 | #define INPUT_FUNCS(opt) \ | ||
310 | INPUT_FUNC(uyvy, opt); \ | ||
311 | INPUT_FUNC(yuyv, opt); \ | ||
312 | INPUT_UV_FUNC(nv12, opt); \ | ||
313 | INPUT_UV_FUNC(nv21, opt); \ | ||
314 | INPUT_FUNC(rgba, opt); \ | ||
315 | INPUT_FUNC(bgra, opt); \ | ||
316 | INPUT_FUNC(argb, opt); \ | ||
317 | INPUT_FUNC(abgr, opt); \ | ||
318 | INPUT_FUNC(rgb24, opt); \ | ||
319 | INPUT_FUNC(bgr24, opt) | ||
320 | |||
321 | INPUT_FUNCS(sse2); | ||
322 | INPUT_FUNCS(ssse3); | ||
323 | INPUT_FUNCS(avx); | ||
324 | |||
325 | #if ARCH_X86_64 | ||
326 | #define YUV2NV_DECL(fmt, opt) \ | ||
327 | void ff_yuv2 ## fmt ## cX_ ## opt(enum AVPixelFormat format, const uint8_t *dither, \ | ||
328 | const int16_t *filter, int filterSize, \ | ||
329 | const int16_t **u, const int16_t **v, \ | ||
330 | uint8_t *dst, int dstWidth) | ||
331 | |||
332 | YUV2NV_DECL(nv12, avx2); | ||
333 | YUV2NV_DECL(nv21, avx2); | ||
334 | |||
335 | #define YUV2GBRP_FN_DECL(fmt, opt) \ | ||
336 | void ff_yuv2##fmt##_full_X_ ##opt(SwsContext *c, const int16_t *lumFilter, \ | ||
337 | const int16_t **lumSrcx, int lumFilterSize, \ | ||
338 | const int16_t *chrFilter, const int16_t **chrUSrcx, \ | ||
339 | const int16_t **chrVSrcx, int chrFilterSize, \ | ||
340 | const int16_t **alpSrcx, uint8_t **dest, \ | ||
341 | int dstW, int y) | ||
342 | |||
343 | #define YUV2GBRP_DECL(opt) \ | ||
344 | YUV2GBRP_FN_DECL(gbrp, opt); \ | ||
345 | YUV2GBRP_FN_DECL(gbrap, opt); \ | ||
346 | YUV2GBRP_FN_DECL(gbrp9le, opt); \ | ||
347 | YUV2GBRP_FN_DECL(gbrp10le, opt); \ | ||
348 | YUV2GBRP_FN_DECL(gbrap10le, opt); \ | ||
349 | YUV2GBRP_FN_DECL(gbrp12le, opt); \ | ||
350 | YUV2GBRP_FN_DECL(gbrap12le, opt); \ | ||
351 | YUV2GBRP_FN_DECL(gbrp14le, opt); \ | ||
352 | YUV2GBRP_FN_DECL(gbrp16le, opt); \ | ||
353 | YUV2GBRP_FN_DECL(gbrap16le, opt); \ | ||
354 | YUV2GBRP_FN_DECL(gbrpf32le, opt); \ | ||
355 | YUV2GBRP_FN_DECL(gbrapf32le, opt); \ | ||
356 | YUV2GBRP_FN_DECL(gbrp9be, opt); \ | ||
357 | YUV2GBRP_FN_DECL(gbrp10be, opt); \ | ||
358 | YUV2GBRP_FN_DECL(gbrap10be, opt); \ | ||
359 | YUV2GBRP_FN_DECL(gbrp12be, opt); \ | ||
360 | YUV2GBRP_FN_DECL(gbrap12be, opt); \ | ||
361 | YUV2GBRP_FN_DECL(gbrp14be, opt); \ | ||
362 | YUV2GBRP_FN_DECL(gbrp16be, opt); \ | ||
363 | YUV2GBRP_FN_DECL(gbrap16be, opt); \ | ||
364 | YUV2GBRP_FN_DECL(gbrpf32be, opt); \ | ||
365 | YUV2GBRP_FN_DECL(gbrapf32be, opt) | ||
366 | |||
367 | YUV2GBRP_DECL(sse2); | ||
368 | YUV2GBRP_DECL(sse4); | ||
369 | YUV2GBRP_DECL(avx2); | ||
370 | |||
371 | #define INPUT_PLANAR_RGB_Y_FN_DECL(fmt, opt) \ | ||
372 | void ff_planar_##fmt##_to_y_##opt(uint8_t *dst, \ | ||
373 | const uint8_t *src[4], int w, int32_t *rgb2yuv, \ | ||
374 | void *opq) | ||
375 | |||
376 | #define INPUT_PLANAR_RGB_UV_FN_DECL(fmt, opt) \ | ||
377 | void ff_planar_##fmt##_to_uv_##opt(uint8_t *dstU, uint8_t *dstV, \ | ||
378 | const uint8_t *src[4], int w, int32_t *rgb2yuv, \ | ||
379 | void *opq) | ||
380 | |||
381 | #define INPUT_PLANAR_RGB_A_FN_DECL(fmt, opt) \ | ||
382 | void ff_planar_##fmt##_to_a_##opt(uint8_t *dst, \ | ||
383 | const uint8_t *src[4], int w, int32_t *rgb2yuv, \ | ||
384 | void *opq) | ||
385 | |||
386 | |||
387 | #define INPUT_PLANAR_RGBXX_A_DECL(fmt, opt) \ | ||
388 | INPUT_PLANAR_RGB_A_FN_DECL(fmt##le, opt); \ | ||
389 | INPUT_PLANAR_RGB_A_FN_DECL(fmt##be, opt) | ||
390 | |||
391 | #define INPUT_PLANAR_RGBXX_Y_DECL(fmt, opt) \ | ||
392 | INPUT_PLANAR_RGB_Y_FN_DECL(fmt##le, opt); \ | ||
393 | INPUT_PLANAR_RGB_Y_FN_DECL(fmt##be, opt) | ||
394 | |||
395 | #define INPUT_PLANAR_RGBXX_UV_DECL(fmt, opt) \ | ||
396 | INPUT_PLANAR_RGB_UV_FN_DECL(fmt##le, opt); \ | ||
397 | INPUT_PLANAR_RGB_UV_FN_DECL(fmt##be, opt) | ||
398 | |||
399 | #define INPUT_PLANAR_RGBXX_YUVA_DECL(fmt, opt) \ | ||
400 | INPUT_PLANAR_RGBXX_Y_DECL(fmt, opt); \ | ||
401 | INPUT_PLANAR_RGBXX_UV_DECL(fmt, opt); \ | ||
402 | INPUT_PLANAR_RGBXX_A_DECL(fmt, opt) | ||
403 | |||
404 | #define INPUT_PLANAR_RGBXX_YUV_DECL(fmt, opt) \ | ||
405 | INPUT_PLANAR_RGBXX_Y_DECL(fmt, opt); \ | ||
406 | INPUT_PLANAR_RGBXX_UV_DECL(fmt, opt) | ||
407 | |||
408 | #define INPUT_PLANAR_RGBXX_UVA_DECL(fmt, opt) \ | ||
409 | INPUT_PLANAR_RGBXX_UV_DECL(fmt, opt); \ | ||
410 | INPUT_PLANAR_RGBXX_A_DECL(fmt, opt) | ||
411 | |||
412 | #define INPUT_PLANAR_RGB_A_ALL_DECL(opt) \ | ||
413 | INPUT_PLANAR_RGB_A_FN_DECL(rgb, opt); \ | ||
414 | INPUT_PLANAR_RGBXX_A_DECL(rgb10, opt); \ | ||
415 | INPUT_PLANAR_RGBXX_A_DECL(rgb12, opt); \ | ||
416 | INPUT_PLANAR_RGBXX_A_DECL(rgb16, opt); \ | ||
417 | INPUT_PLANAR_RGBXX_A_DECL(rgbf32, opt) | ||
418 | |||
419 | #define INPUT_PLANAR_RGB_Y_ALL_DECL(opt) \ | ||
420 | INPUT_PLANAR_RGB_Y_FN_DECL(rgb, opt); \ | ||
421 | INPUT_PLANAR_RGBXX_Y_DECL(rgb9, opt); \ | ||
422 | INPUT_PLANAR_RGBXX_Y_DECL(rgb10, opt); \ | ||
423 | INPUT_PLANAR_RGBXX_Y_DECL(rgb12, opt); \ | ||
424 | INPUT_PLANAR_RGBXX_Y_DECL(rgb14, opt); \ | ||
425 | INPUT_PLANAR_RGBXX_Y_DECL(rgb16, opt); \ | ||
426 | INPUT_PLANAR_RGBXX_Y_DECL(rgbf32, opt) | ||
427 | |||
428 | #define INPUT_PLANAR_RGB_UV_ALL_DECL(opt) \ | ||
429 | INPUT_PLANAR_RGB_UV_FN_DECL(rgb, opt); \ | ||
430 | INPUT_PLANAR_RGBXX_UV_DECL(rgb9, opt); \ | ||
431 | INPUT_PLANAR_RGBXX_UV_DECL(rgb10, opt); \ | ||
432 | INPUT_PLANAR_RGBXX_UV_DECL(rgb12, opt); \ | ||
433 | INPUT_PLANAR_RGBXX_UV_DECL(rgb14, opt); \ | ||
434 | INPUT_PLANAR_RGBXX_UV_DECL(rgb16, opt); \ | ||
435 | INPUT_PLANAR_RGBXX_UV_DECL(rgbf32, opt) | ||
436 | |||
437 | INPUT_PLANAR_RGBXX_Y_DECL(rgbf32, sse2); | ||
438 | INPUT_PLANAR_RGB_UV_ALL_DECL(sse2); | ||
439 | INPUT_PLANAR_RGB_A_ALL_DECL(sse2); | ||
440 | |||
441 | INPUT_PLANAR_RGB_Y_ALL_DECL(sse4); | ||
442 | INPUT_PLANAR_RGB_UV_ALL_DECL(sse4); | ||
443 | INPUT_PLANAR_RGBXX_A_DECL(rgbf32, sse4); | ||
444 | |||
445 | INPUT_PLANAR_RGB_Y_ALL_DECL(avx2); | ||
446 | INPUT_PLANAR_RGB_UV_ALL_DECL(avx2); | ||
447 | INPUT_PLANAR_RGB_A_ALL_DECL(avx2); | ||
448 | #endif | ||
449 | |||
450 | 16731 | av_cold void ff_sws_init_swscale_x86(SwsContext *c) | |
451 | { | ||
452 | 16731 | int cpu_flags = av_get_cpu_flags(); | |
453 | |||
454 | #if HAVE_MMXEXT_INLINE | ||
455 |
2/2✓ Branch 0 taken 10213 times.
✓ Branch 1 taken 6518 times.
|
16731 | if (INLINE_MMXEXT(cpu_flags)) |
456 | 10213 | sws_init_swscale_mmxext(c); | |
457 | #endif | ||
458 |
3/4✓ Branch 0 taken 2450 times.
✓ Branch 1 taken 14281 times.
✓ Branch 2 taken 2450 times.
✗ Branch 3 not taken.
|
16731 | if(c->use_mmx_vfilter && !(c->flags & SWS_ACCURATE_RND)) { |
459 | #if HAVE_MMXEXT_EXTERNAL | ||
460 |
1/2✓ Branch 0 taken 2450 times.
✗ Branch 1 not taken.
|
2450 | if (EXTERNAL_MMXEXT(cpu_flags)) |
461 | 2450 | c->yuv2planeX = yuv2yuvX_mmxext; | |
462 | #endif | ||
463 | #if HAVE_SSE3_EXTERNAL | ||
464 |
2/2✓ Branch 0 taken 1796 times.
✓ Branch 1 taken 654 times.
|
2450 | if (EXTERNAL_SSE3(cpu_flags)) |
465 | 1796 | c->yuv2planeX = yuv2yuvX_sse3; | |
466 | #endif | ||
467 | #if HAVE_AVX2_EXTERNAL | ||
468 |
3/4✓ Branch 0 taken 270 times.
✓ Branch 1 taken 2180 times.
✓ Branch 2 taken 270 times.
✗ Branch 3 not taken.
|
2450 | if (EXTERNAL_AVX2_FAST(cpu_flags)) |
469 | 270 | c->yuv2planeX = yuv2yuvX_avx2; | |
470 | #endif | ||
471 | } | ||
472 | #if ARCH_X86_32 && !HAVE_ALIGNED_STACK | ||
473 | // The better yuv2planeX_8 functions need aligned stack on x86-32, | ||
474 | // so we use MMXEXT in this case if they are not available. | ||
475 | if (EXTERNAL_MMXEXT(cpu_flags)) { | ||
476 | if (c->dstBpc == 8 && !c->use_mmx_vfilter) | ||
477 | c->yuv2planeX = ff_yuv2planeX_8_mmxext; | ||
478 | } | ||
479 | #endif /* ARCH_X86_32 && !HAVE_ALIGNED_STACK */ | ||
480 | |||
481 | #define ASSIGN_SCALE_FUNC2(hscalefn, filtersize, opt1, opt2) do { \ | ||
482 | if (c->srcBpc == 8) { \ | ||
483 | hscalefn = c->dstBpc <= 14 ? ff_hscale8to15_ ## filtersize ## _ ## opt2 : \ | ||
484 | ff_hscale8to19_ ## filtersize ## _ ## opt1; \ | ||
485 | } else if (c->srcBpc == 9) { \ | ||
486 | hscalefn = c->dstBpc <= 14 ? ff_hscale9to15_ ## filtersize ## _ ## opt2 : \ | ||
487 | ff_hscale9to19_ ## filtersize ## _ ## opt1; \ | ||
488 | } else if (c->srcBpc == 10) { \ | ||
489 | hscalefn = c->dstBpc <= 14 ? ff_hscale10to15_ ## filtersize ## _ ## opt2 : \ | ||
490 | ff_hscale10to19_ ## filtersize ## _ ## opt1; \ | ||
491 | } else if (c->srcBpc == 12) { \ | ||
492 | hscalefn = c->dstBpc <= 14 ? ff_hscale12to15_ ## filtersize ## _ ## opt2 : \ | ||
493 | ff_hscale12to19_ ## filtersize ## _ ## opt1; \ | ||
494 | } else if (c->srcBpc == 14 || ((c->srcFormat==AV_PIX_FMT_PAL8||isAnyRGB(c->srcFormat)) && av_pix_fmt_desc_get(c->srcFormat)->comp[0].depth<16)) { \ | ||
495 | hscalefn = c->dstBpc <= 14 ? ff_hscale14to15_ ## filtersize ## _ ## opt2 : \ | ||
496 | ff_hscale14to19_ ## filtersize ## _ ## opt1; \ | ||
497 | } else { /* c->srcBpc == 16 */ \ | ||
498 | av_assert0(c->srcBpc == 16);\ | ||
499 | hscalefn = c->dstBpc <= 14 ? ff_hscale16to15_ ## filtersize ## _ ## opt2 : \ | ||
500 | ff_hscale16to19_ ## filtersize ## _ ## opt1; \ | ||
501 | } \ | ||
502 | } while (0) | ||
503 | #define ASSIGN_VSCALEX_FUNC(vscalefn, opt, do_16_case, condition_8bit) \ | ||
504 | switch(c->dstBpc){ \ | ||
505 | case 16: do_16_case; break; \ | ||
506 | case 10: if (!isBE(c->dstFormat) && !isSemiPlanarYUV(c->dstFormat)) vscalefn = ff_yuv2planeX_10_ ## opt; break; \ | ||
507 | case 9: if (!isBE(c->dstFormat)) vscalefn = ff_yuv2planeX_9_ ## opt; break; \ | ||
508 | case 8: if ((condition_8bit) && !c->use_mmx_vfilter) vscalefn = ff_yuv2planeX_8_ ## opt; break; \ | ||
509 | } | ||
510 | #define ASSIGN_VSCALE_FUNC(vscalefn, opt) \ | ||
511 | switch(c->dstBpc){ \ | ||
512 | case 16: if (!isBE(c->dstFormat)) vscalefn = ff_yuv2plane1_16_ ## opt; break; \ | ||
513 | case 10: if (!isBE(c->dstFormat) && !isSemiPlanarYUV(c->dstFormat)) vscalefn = ff_yuv2plane1_10_ ## opt; break; \ | ||
514 | case 9: if (!isBE(c->dstFormat)) vscalefn = ff_yuv2plane1_9_ ## opt; break; \ | ||
515 | case 8: vscalefn = ff_yuv2plane1_8_ ## opt; break; \ | ||
516 | default: av_assert0(c->dstBpc>8); \ | ||
517 | } | ||
518 | #define case_rgb(x, X, opt) \ | ||
519 | case AV_PIX_FMT_ ## X: \ | ||
520 | c->lumToYV12 = ff_ ## x ## ToY_ ## opt; \ | ||
521 | if (!c->chrSrcHSubSample) \ | ||
522 | c->chrToYV12 = ff_ ## x ## ToUV_ ## opt; \ | ||
523 | break | ||
524 | #define ASSIGN_SSE_SCALE_FUNC(hscalefn, filtersize, opt1, opt2) \ | ||
525 | switch (filtersize) { \ | ||
526 | case 4: ASSIGN_SCALE_FUNC2(hscalefn, 4, opt1, opt2); break; \ | ||
527 | case 8: ASSIGN_SCALE_FUNC2(hscalefn, 8, opt1, opt2); break; \ | ||
528 | default: if (filtersize & 4) ASSIGN_SCALE_FUNC2(hscalefn, X4, opt1, opt2); \ | ||
529 | else ASSIGN_SCALE_FUNC2(hscalefn, X8, opt1, opt2); \ | ||
530 | break; \ | ||
531 | } | ||
532 |
2/2✓ Branch 0 taken 8369 times.
✓ Branch 1 taken 8362 times.
|
16731 | if (EXTERNAL_SSE2(cpu_flags)) { |
533 |
53/125✓ Branch 0 taken 177 times.
✓ Branch 1 taken 109 times.
✓ Branch 2 taken 8083 times.
✓ Branch 3 taken 109 times.
✓ Branch 4 taken 68 times.
✓ Branch 5 taken 54 times.
✓ Branch 6 taken 55 times.
✓ Branch 7 taken 1 times.
✓ Branch 8 taken 67 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 1 times.
✓ Branch 12 taken 66 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 times.
✓ Branch 15 taken 1 times.
✓ Branch 16 taken 65 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✓ Branch 19 taken 64 times.
✓ Branch 20 taken 1 times.
✓ Branch 21 taken 64 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 63 times.
✓ Branch 25 taken 1 times.
✓ Branch 27 taken 27 times.
✓ Branch 28 taken 36 times.
✓ Branch 29 taken 9 times.
✓ Branch 30 taken 19 times.
✗ Branch 31 not taken.
✓ Branch 32 taken 37 times.
✓ Branch 35 taken 23 times.
✓ Branch 36 taken 14 times.
✓ Branch 37 taken 108 times.
✓ Branch 38 taken 1 times.
✓ Branch 39 taken 54 times.
✓ Branch 40 taken 54 times.
✗ Branch 41 not taken.
✓ Branch 42 taken 1 times.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✓ Branch 71 taken 108 times.
✓ Branch 72 taken 7975 times.
✓ Branch 73 taken 108 times.
✗ Branch 74 not taken.
✓ Branch 75 taken 54 times.
✓ Branch 76 taken 54 times.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✓ Branch 107 taken 7974 times.
✓ Branch 108 taken 1 times.
✓ Branch 109 taken 7812 times.
✓ Branch 110 taken 162 times.
✗ Branch 111 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✓ Branch 116 taken 1 times.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✓ Branch 120 taken 1 times.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✓ Branch 123 taken 1 times.
✗ Branch 124 not taken.
✓ Branch 125 taken 1 times.
✗ Branch 126 not taken.
✓ Branch 128 taken 1 times.
✗ Branch 129 not taken.
✓ Branch 131 taken 1 times.
✗ Branch 132 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
|
8477 | ASSIGN_SSE_SCALE_FUNC(c->hyScale, c->hLumFilterSize, sse2, sse2); |
534 |
53/125✓ Branch 0 taken 177 times.
✓ Branch 1 taken 109 times.
✓ Branch 2 taken 8083 times.
✓ Branch 3 taken 109 times.
✓ Branch 4 taken 68 times.
✓ Branch 5 taken 54 times.
✓ Branch 6 taken 55 times.
✓ Branch 7 taken 1 times.
✓ Branch 8 taken 67 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 1 times.
✓ Branch 12 taken 66 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 times.
✓ Branch 15 taken 1 times.
✓ Branch 16 taken 65 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✓ Branch 19 taken 64 times.
✓ Branch 20 taken 1 times.
✓ Branch 21 taken 64 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 63 times.
✓ Branch 25 taken 1 times.
✓ Branch 27 taken 27 times.
✓ Branch 28 taken 36 times.
✓ Branch 29 taken 9 times.
✓ Branch 30 taken 19 times.
✗ Branch 31 not taken.
✓ Branch 32 taken 37 times.
✓ Branch 35 taken 23 times.
✓ Branch 36 taken 14 times.
✓ Branch 37 taken 108 times.
✓ Branch 38 taken 1 times.
✓ Branch 39 taken 54 times.
✓ Branch 40 taken 54 times.
✗ Branch 41 not taken.
✓ Branch 42 taken 1 times.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✓ Branch 71 taken 108 times.
✓ Branch 72 taken 7975 times.
✓ Branch 73 taken 108 times.
✗ Branch 74 not taken.
✓ Branch 75 taken 54 times.
✓ Branch 76 taken 54 times.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✓ Branch 107 taken 7974 times.
✓ Branch 108 taken 1 times.
✓ Branch 109 taken 7812 times.
✓ Branch 110 taken 162 times.
✗ Branch 111 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✓ Branch 116 taken 1 times.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✓ Branch 120 taken 1 times.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✓ Branch 123 taken 1 times.
✗ Branch 124 not taken.
✓ Branch 125 taken 1 times.
✗ Branch 126 not taken.
✓ Branch 128 taken 1 times.
✗ Branch 129 not taken.
✓ Branch 131 taken 1 times.
✗ Branch 132 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
|
8477 | ASSIGN_SSE_SCALE_FUNC(c->hcScale, c->hChrFilterSize, sse2, sse2); |
535 |
10/13✓ Branch 0 taken 8 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 7673 times.
✓ Branch 4 taken 683 times.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 2 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 6337 times.
✓ Branch 15 taken 1336 times.
|
8369 | ASSIGN_VSCALEX_FUNC(c->yuv2planeX, sse2, , |
536 | HAVE_ALIGNED_STACK || ARCH_X86_64); | ||
537 |
2/2✓ Branch 0 taken 8351 times.
✓ Branch 1 taken 18 times.
|
8369 | if (!(c->flags & SWS_ACCURATE_RND)) |
538 |
10/15✓ Branch 0 taken 8 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 7655 times.
✓ Branch 4 taken 683 times.
✓ Branch 6 taken 8 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 3 times.
✗ Branch 13 not taken.
✓ Branch 15 taken 2 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✓ Branch 18 taken 683 times.
|
8351 | ASSIGN_VSCALE_FUNC(c->yuv2plane1, sse2); |
539 | |||
540 |
7/12✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 7 taken 12 times.
✓ Branch 8 taken 2 times.
✓ Branch 9 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 8349 times.
|
8369 | switch (c->srcFormat) { |
541 | ✗ | case AV_PIX_FMT_YA8: | |
542 | ✗ | c->lumToYV12 = ff_yuyvToY_sse2; | |
543 | ✗ | if (c->needAlpha) | |
544 | ✗ | c->alpToYV12 = ff_uyvyToY_sse2; | |
545 | ✗ | break; | |
546 | ✗ | case AV_PIX_FMT_YUYV422: | |
547 | ✗ | c->lumToYV12 = ff_yuyvToY_sse2; | |
548 | ✗ | c->chrToYV12 = ff_yuyvToUV_sse2; | |
549 | ✗ | break; | |
550 | ✗ | case AV_PIX_FMT_UYVY422: | |
551 | ✗ | c->lumToYV12 = ff_uyvyToY_sse2; | |
552 | ✗ | c->chrToYV12 = ff_uyvyToUV_sse2; | |
553 | ✗ | break; | |
554 | ✗ | case AV_PIX_FMT_NV12: | |
555 | ✗ | c->chrToYV12 = ff_nv12ToUV_sse2; | |
556 | ✗ | break; | |
557 | ✗ | case AV_PIX_FMT_NV21: | |
558 | ✗ | c->chrToYV12 = ff_nv21ToUV_sse2; | |
559 | ✗ | break; | |
560 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | case_rgb(rgb24, RGB24, sse2); |
561 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | case_rgb(bgr24, BGR24, sse2); |
562 |
2/2✓ Branch 0 taken 11 times.
✓ Branch 1 taken 1 times.
|
12 | case_rgb(bgra, BGRA, sse2); |
563 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | case_rgb(rgba, RGBA, sse2); |
564 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | case_rgb(abgr, ABGR, sse2); |
565 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | case_rgb(argb, ARGB, sse2); |
566 | 8349 | default: | |
567 | 8349 | break; | |
568 | } | ||
569 | } | ||
570 |
2/2✓ Branch 0 taken 6525 times.
✓ Branch 1 taken 10206 times.
|
16731 | if (EXTERNAL_SSSE3(cpu_flags)) { |
571 |
53/125✓ Branch 0 taken 153 times.
✓ Branch 1 taken 85 times.
✓ Branch 2 taken 6287 times.
✓ Branch 3 taken 85 times.
✓ Branch 4 taken 68 times.
✓ Branch 5 taken 42 times.
✓ Branch 6 taken 43 times.
✓ Branch 7 taken 1 times.
✓ Branch 8 taken 67 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 1 times.
✓ Branch 12 taken 66 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 times.
✓ Branch 15 taken 1 times.
✓ Branch 16 taken 65 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✓ Branch 19 taken 64 times.
✓ Branch 20 taken 1 times.
✓ Branch 21 taken 64 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 63 times.
✓ Branch 25 taken 1 times.
✓ Branch 27 taken 27 times.
✓ Branch 28 taken 36 times.
✓ Branch 29 taken 9 times.
✓ Branch 30 taken 19 times.
✗ Branch 31 not taken.
✓ Branch 32 taken 37 times.
✓ Branch 35 taken 23 times.
✓ Branch 36 taken 14 times.
✓ Branch 37 taken 84 times.
✓ Branch 38 taken 1 times.
✓ Branch 39 taken 42 times.
✓ Branch 40 taken 42 times.
✗ Branch 41 not taken.
✓ Branch 42 taken 1 times.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✓ Branch 71 taken 84 times.
✓ Branch 72 taken 6203 times.
✓ Branch 73 taken 84 times.
✗ Branch 74 not taken.
✓ Branch 75 taken 42 times.
✓ Branch 76 taken 42 times.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✓ Branch 107 taken 6202 times.
✓ Branch 108 taken 1 times.
✓ Branch 109 taken 6076 times.
✓ Branch 110 taken 126 times.
✗ Branch 111 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✓ Branch 116 taken 1 times.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✓ Branch 120 taken 1 times.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✓ Branch 123 taken 1 times.
✗ Branch 124 not taken.
✓ Branch 125 taken 1 times.
✗ Branch 126 not taken.
✓ Branch 128 taken 1 times.
✗ Branch 129 not taken.
✓ Branch 131 taken 1 times.
✗ Branch 132 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
|
6609 | ASSIGN_SSE_SCALE_FUNC(c->hyScale, c->hLumFilterSize, ssse3, ssse3); |
572 |
53/125✓ Branch 0 taken 153 times.
✓ Branch 1 taken 85 times.
✓ Branch 2 taken 6287 times.
✓ Branch 3 taken 85 times.
✓ Branch 4 taken 68 times.
✓ Branch 5 taken 42 times.
✓ Branch 6 taken 43 times.
✓ Branch 7 taken 1 times.
✓ Branch 8 taken 67 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 1 times.
✓ Branch 12 taken 66 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 times.
✓ Branch 15 taken 1 times.
✓ Branch 16 taken 65 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✓ Branch 19 taken 64 times.
✓ Branch 20 taken 1 times.
✓ Branch 21 taken 64 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 63 times.
✓ Branch 25 taken 1 times.
✓ Branch 27 taken 27 times.
✓ Branch 28 taken 36 times.
✓ Branch 29 taken 9 times.
✓ Branch 30 taken 19 times.
✗ Branch 31 not taken.
✓ Branch 32 taken 37 times.
✓ Branch 35 taken 23 times.
✓ Branch 36 taken 14 times.
✓ Branch 37 taken 84 times.
✓ Branch 38 taken 1 times.
✓ Branch 39 taken 42 times.
✓ Branch 40 taken 42 times.
✗ Branch 41 not taken.
✓ Branch 42 taken 1 times.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✓ Branch 71 taken 84 times.
✓ Branch 72 taken 6203 times.
✓ Branch 73 taken 84 times.
✗ Branch 74 not taken.
✓ Branch 75 taken 42 times.
✓ Branch 76 taken 42 times.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✓ Branch 107 taken 6202 times.
✓ Branch 108 taken 1 times.
✓ Branch 109 taken 6076 times.
✓ Branch 110 taken 126 times.
✗ Branch 111 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✓ Branch 116 taken 1 times.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✓ Branch 120 taken 1 times.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✓ Branch 123 taken 1 times.
✗ Branch 124 not taken.
✓ Branch 125 taken 1 times.
✗ Branch 126 not taken.
✓ Branch 128 taken 1 times.
✗ Branch 129 not taken.
✓ Branch 131 taken 1 times.
✗ Branch 132 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
|
6609 | ASSIGN_SSE_SCALE_FUNC(c->hcScale, c->hChrFilterSize, ssse3, ssse3); |
573 |
3/3✓ Branch 0 taken 1 times.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 6523 times.
|
6525 | switch (c->srcFormat) { |
574 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | case_rgb(rgb24, RGB24, ssse3); |
575 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | case_rgb(bgr24, BGR24, ssse3); |
576 | 6523 | default: | |
577 | 6523 | break; | |
578 | } | ||
579 | } | ||
580 |
2/2✓ Branch 0 taken 5603 times.
✓ Branch 1 taken 11128 times.
|
16731 | if (EXTERNAL_SSE4(cpu_flags)) { |
581 | /* Xto15 don't need special sse4 functions */ | ||
582 |
53/125✓ Branch 0 taken 141 times.
✓ Branch 1 taken 73 times.
✓ Branch 2 taken 5389 times.
✓ Branch 3 taken 73 times.
✓ Branch 4 taken 68 times.
✓ Branch 5 taken 36 times.
✓ Branch 6 taken 37 times.
✓ Branch 7 taken 1 times.
✓ Branch 8 taken 67 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 1 times.
✓ Branch 12 taken 66 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 times.
✓ Branch 15 taken 1 times.
✓ Branch 16 taken 65 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✓ Branch 19 taken 64 times.
✓ Branch 20 taken 1 times.
✓ Branch 21 taken 64 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 63 times.
✓ Branch 25 taken 1 times.
✓ Branch 27 taken 27 times.
✓ Branch 28 taken 36 times.
✓ Branch 29 taken 9 times.
✓ Branch 30 taken 19 times.
✗ Branch 31 not taken.
✓ Branch 32 taken 37 times.
✓ Branch 35 taken 23 times.
✓ Branch 36 taken 14 times.
✓ Branch 37 taken 72 times.
✓ Branch 38 taken 1 times.
✓ Branch 39 taken 36 times.
✓ Branch 40 taken 36 times.
✗ Branch 41 not taken.
✓ Branch 42 taken 1 times.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✓ Branch 71 taken 72 times.
✓ Branch 72 taken 5317 times.
✓ Branch 73 taken 72 times.
✗ Branch 74 not taken.
✓ Branch 75 taken 36 times.
✓ Branch 76 taken 36 times.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✓ Branch 107 taken 5316 times.
✓ Branch 108 taken 1 times.
✓ Branch 109 taken 5208 times.
✓ Branch 110 taken 108 times.
✗ Branch 111 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✓ Branch 116 taken 1 times.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✓ Branch 120 taken 1 times.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✓ Branch 123 taken 1 times.
✗ Branch 124 not taken.
✓ Branch 125 taken 1 times.
✗ Branch 126 not taken.
✓ Branch 128 taken 1 times.
✗ Branch 129 not taken.
✓ Branch 131 taken 1 times.
✗ Branch 132 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
|
5675 | ASSIGN_SSE_SCALE_FUNC(c->hyScale, c->hLumFilterSize, sse4, ssse3); |
583 |
53/125✓ Branch 0 taken 141 times.
✓ Branch 1 taken 73 times.
✓ Branch 2 taken 5389 times.
✓ Branch 3 taken 73 times.
✓ Branch 4 taken 68 times.
✓ Branch 5 taken 36 times.
✓ Branch 6 taken 37 times.
✓ Branch 7 taken 1 times.
✓ Branch 8 taken 67 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 1 times.
✓ Branch 12 taken 66 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 times.
✓ Branch 15 taken 1 times.
✓ Branch 16 taken 65 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✓ Branch 19 taken 64 times.
✓ Branch 20 taken 1 times.
✓ Branch 21 taken 64 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 63 times.
✓ Branch 25 taken 1 times.
✓ Branch 27 taken 27 times.
✓ Branch 28 taken 36 times.
✓ Branch 29 taken 9 times.
✓ Branch 30 taken 19 times.
✗ Branch 31 not taken.
✓ Branch 32 taken 37 times.
✓ Branch 35 taken 23 times.
✓ Branch 36 taken 14 times.
✓ Branch 37 taken 72 times.
✓ Branch 38 taken 1 times.
✓ Branch 39 taken 36 times.
✓ Branch 40 taken 36 times.
✗ Branch 41 not taken.
✓ Branch 42 taken 1 times.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✓ Branch 71 taken 72 times.
✓ Branch 72 taken 5317 times.
✓ Branch 73 taken 72 times.
✗ Branch 74 not taken.
✓ Branch 75 taken 36 times.
✓ Branch 76 taken 36 times.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 91 not taken.
✗ Branch 92 not taken.
✗ Branch 94 not taken.
✗ Branch 95 not taken.
✗ Branch 97 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✓ Branch 107 taken 5316 times.
✓ Branch 108 taken 1 times.
✓ Branch 109 taken 5208 times.
✓ Branch 110 taken 108 times.
✗ Branch 111 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✓ Branch 116 taken 1 times.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✓ Branch 120 taken 1 times.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✓ Branch 123 taken 1 times.
✗ Branch 124 not taken.
✓ Branch 125 taken 1 times.
✗ Branch 126 not taken.
✓ Branch 128 taken 1 times.
✗ Branch 129 not taken.
✓ Branch 131 taken 1 times.
✗ Branch 132 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
|
5675 | ASSIGN_SSE_SCALE_FUNC(c->hcScale, c->hChrFilterSize, sse4, ssse3); |
584 |
11/15✓ Branch 0 taken 8 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 5123 times.
✓ Branch 4 taken 467 times.
✓ Branch 6 taken 8 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 3 times.
✗ Branch 13 not taken.
✓ Branch 15 taken 2 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 4225 times.
✓ Branch 18 taken 898 times.
|
5603 | ASSIGN_VSCALEX_FUNC(c->yuv2planeX, sse4, |
585 | if (!isBE(c->dstFormat)) c->yuv2planeX = ff_yuv2planeX_16_sse4, | ||
586 | HAVE_ALIGNED_STACK || ARCH_X86_64); | ||
587 |
4/6✓ Branch 0 taken 8 times.
✓ Branch 1 taken 5595 times.
✓ Branch 3 taken 8 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 8 times.
✗ Branch 6 not taken.
|
5603 | if (c->dstBpc == 16 && !isBE(c->dstFormat) && !(c->flags & SWS_ACCURATE_RND)) |
588 | 8 | c->yuv2plane1 = ff_yuv2plane1_16_sse4; | |
589 | } | ||
590 | |||
591 |
2/2✓ Branch 0 taken 2837 times.
✓ Branch 1 taken 13894 times.
|
16731 | if (EXTERNAL_AVX(cpu_flags)) { |
592 |
10/13✓ Branch 0 taken 8 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 2573 times.
✓ Branch 4 taken 251 times.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 2 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 2113 times.
✓ Branch 15 taken 460 times.
|
2837 | ASSIGN_VSCALEX_FUNC(c->yuv2planeX, avx, , |
593 | HAVE_ALIGNED_STACK || ARCH_X86_64); | ||
594 |
2/2✓ Branch 0 taken 2831 times.
✓ Branch 1 taken 6 times.
|
2837 | if (!(c->flags & SWS_ACCURATE_RND)) |
595 |
10/15✓ Branch 0 taken 8 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 2567 times.
✓ Branch 4 taken 251 times.
✓ Branch 6 taken 8 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 3 times.
✗ Branch 13 not taken.
✓ Branch 15 taken 2 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✓ Branch 18 taken 251 times.
|
2831 | ASSIGN_VSCALE_FUNC(c->yuv2plane1, avx); |
596 | |||
597 |
7/11✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✓ Branch 5 taken 1 times.
✓ Branch 6 taken 12 times.
✓ Branch 7 taken 2 times.
✓ Branch 8 taken 2 times.
✓ Branch 9 taken 2 times.
✓ Branch 10 taken 2817 times.
|
2837 | switch (c->srcFormat) { |
598 | ✗ | case AV_PIX_FMT_YUYV422: | |
599 | ✗ | c->chrToYV12 = ff_yuyvToUV_avx; | |
600 | ✗ | break; | |
601 | ✗ | case AV_PIX_FMT_UYVY422: | |
602 | ✗ | c->chrToYV12 = ff_uyvyToUV_avx; | |
603 | ✗ | break; | |
604 | ✗ | case AV_PIX_FMT_NV12: | |
605 | ✗ | c->chrToYV12 = ff_nv12ToUV_avx; | |
606 | ✗ | break; | |
607 | ✗ | case AV_PIX_FMT_NV21: | |
608 | ✗ | c->chrToYV12 = ff_nv21ToUV_avx; | |
609 | ✗ | break; | |
610 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | case_rgb(rgb24, RGB24, avx); |
611 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | case_rgb(bgr24, BGR24, avx); |
612 |
2/2✓ Branch 0 taken 11 times.
✓ Branch 1 taken 1 times.
|
12 | case_rgb(bgra, BGRA, avx); |
613 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | case_rgb(rgba, RGBA, avx); |
614 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | case_rgb(abgr, ABGR, avx); |
615 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | case_rgb(argb, ARGB, avx); |
616 | 2817 | default: | |
617 | 2817 | break; | |
618 | } | ||
619 | } | ||
620 | |||
621 | #if ARCH_X86_64 | ||
622 | #define ASSIGN_AVX2_SCALE_FUNC(hscalefn, filtersize) \ | ||
623 | switch (filtersize) { \ | ||
624 | case 4: hscalefn = ff_hscale8to15_4_avx2; break; \ | ||
625 | default: hscalefn = ff_hscale8to15_X4_avx2; break; \ | ||
626 | break; \ | ||
627 | } | ||
628 | |||
629 |
4/6✓ Branch 0 taken 993 times.
✓ Branch 1 taken 15738 times.
✓ Branch 2 taken 993 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 993 times.
✗ Branch 5 not taken.
|
16731 | if (EXTERNAL_AVX2_FAST(cpu_flags) && !(cpu_flags & AV_CPU_FLAG_SLOW_GATHER)) { |
630 |
4/4✓ Branch 0 taken 923 times.
✓ Branch 1 taken 70 times.
✓ Branch 2 taken 886 times.
✓ Branch 3 taken 37 times.
|
993 | if ((c->srcBpc == 8) && (c->dstBpc <= 14)) { |
631 |
2/2✓ Branch 0 taken 6 times.
✓ Branch 1 taken 880 times.
|
886 | ASSIGN_AVX2_SCALE_FUNC(c->hcScale, c->hChrFilterSize); |
632 |
2/2✓ Branch 0 taken 6 times.
✓ Branch 1 taken 880 times.
|
886 | ASSIGN_AVX2_SCALE_FUNC(c->hyScale, c->hLumFilterSize); |
633 | } | ||
634 | } | ||
635 | |||
636 |
3/4✓ Branch 0 taken 993 times.
✓ Branch 1 taken 15738 times.
✓ Branch 2 taken 993 times.
✗ Branch 3 not taken.
|
16731 | if (EXTERNAL_AVX2_FAST(cpu_flags)) { |
637 |
2/3✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 992 times.
|
993 | switch (c->dstFormat) { |
638 | 1 | case AV_PIX_FMT_NV12: | |
639 | case AV_PIX_FMT_NV24: | ||
640 | 1 | c->yuv2nv12cX = ff_yuv2nv12cX_avx2; | |
641 | 1 | break; | |
642 | ✗ | case AV_PIX_FMT_NV21: | |
643 | case AV_PIX_FMT_NV42: | ||
644 | ✗ | c->yuv2nv12cX = ff_yuv2nv21cX_avx2; | |
645 | ✗ | break; | |
646 | 992 | default: | |
647 | 992 | break; | |
648 | } | ||
649 | } | ||
650 | |||
651 | |||
652 | #define INPUT_PLANER_RGB_A_FUNC_CASE(fmt, name, opt) \ | ||
653 | case fmt: \ | ||
654 | c->readAlpPlanar = ff_planar_##name##_to_a_##opt; | ||
655 | |||
656 | #define INPUT_PLANER_RGBA_YUV_FUNC_CASE(rgb_fmt, rgba_fmt, name, opt) \ | ||
657 | case rgba_fmt: \ | ||
658 | case rgb_fmt: \ | ||
659 | c->readLumPlanar = ff_planar_##name##_to_y_##opt; \ | ||
660 | c->readChrPlanar = ff_planar_##name##_to_uv_##opt; \ | ||
661 | break; | ||
662 | |||
663 | #define INPUT_PLANER_RGB_YUV_FUNC_CASE(fmt, name, opt) \ | ||
664 | case fmt: \ | ||
665 | c->readLumPlanar = ff_planar_##name##_to_y_##opt; \ | ||
666 | c->readChrPlanar = ff_planar_##name##_to_uv_##opt; \ | ||
667 | break; | ||
668 | |||
669 | #define INPUT_PLANER_RGB_UV_FUNC_CASE(fmt, name, opt) \ | ||
670 | case fmt: \ | ||
671 | c->readChrPlanar = ff_planar_##name##_to_uv_##opt; \ | ||
672 | break; | ||
673 | |||
674 | #define INPUT_PLANER_RGBAXX_YUVA_FUNC_CASE(rgb_fmt, rgba_fmt, name, opt) \ | ||
675 | INPUT_PLANER_RGB_A_FUNC_CASE(rgba_fmt##LE, name##le, opt) \ | ||
676 | INPUT_PLANER_RGB_YUV_FUNC_CASE(rgb_fmt##LE, name##le, opt) \ | ||
677 | INPUT_PLANER_RGB_A_FUNC_CASE(rgba_fmt##BE, name##be, opt) \ | ||
678 | INPUT_PLANER_RGB_YUV_FUNC_CASE(rgb_fmt##BE, name##be, opt) | ||
679 | |||
680 | #define INPUT_PLANER_RGBAXX_UVA_FUNC_CASE(rgb_fmt, rgba_fmt, name, opt) \ | ||
681 | INPUT_PLANER_RGB_A_FUNC_CASE(rgba_fmt##LE, name##le, opt) \ | ||
682 | INPUT_PLANER_RGB_UV_FUNC_CASE(rgb_fmt##LE, name##le, opt) \ | ||
683 | INPUT_PLANER_RGB_A_FUNC_CASE(rgba_fmt##BE, name##be, opt) \ | ||
684 | INPUT_PLANER_RGB_UV_FUNC_CASE(rgb_fmt##BE, name##be, opt) | ||
685 | |||
686 | #define INPUT_PLANER_RGBAXX_YUV_FUNC_CASE(rgb_fmt, rgba_fmt, name, opt) \ | ||
687 | INPUT_PLANER_RGBA_YUV_FUNC_CASE(rgb_fmt##LE, rgba_fmt##LE, name##le, opt) \ | ||
688 | INPUT_PLANER_RGBA_YUV_FUNC_CASE(rgb_fmt##BE, rgba_fmt##BE, name##be, opt) | ||
689 | |||
690 | #define INPUT_PLANER_RGBXX_YUV_FUNC_CASE(rgb_fmt, name, opt) \ | ||
691 | INPUT_PLANER_RGB_YUV_FUNC_CASE(rgb_fmt##LE, name##le, opt) \ | ||
692 | INPUT_PLANER_RGB_YUV_FUNC_CASE(rgb_fmt##BE, name##be, opt) | ||
693 | |||
694 | #define INPUT_PLANER_RGBXX_UV_FUNC_CASE(rgb_fmt, name, opt) \ | ||
695 | INPUT_PLANER_RGB_UV_FUNC_CASE(rgb_fmt##LE, name##le, opt) \ | ||
696 | INPUT_PLANER_RGB_UV_FUNC_CASE(rgb_fmt##BE, name##be, opt) | ||
697 | |||
698 | #define INPUT_PLANER_RGB_YUVA_ALL_CASES(opt) \ | ||
699 | INPUT_PLANER_RGB_A_FUNC_CASE( AV_PIX_FMT_GBRAP, rgb, opt) \ | ||
700 | INPUT_PLANER_RGB_YUV_FUNC_CASE( AV_PIX_FMT_GBRP, rgb, opt) \ | ||
701 | INPUT_PLANER_RGBXX_YUV_FUNC_CASE( AV_PIX_FMT_GBRP9, rgb9, opt) \ | ||
702 | INPUT_PLANER_RGBAXX_YUVA_FUNC_CASE(AV_PIX_FMT_GBRP10, AV_PIX_FMT_GBRAP10, rgb10, opt) \ | ||
703 | INPUT_PLANER_RGBAXX_YUVA_FUNC_CASE(AV_PIX_FMT_GBRP12, AV_PIX_FMT_GBRAP12, rgb12, opt) \ | ||
704 | INPUT_PLANER_RGBXX_YUV_FUNC_CASE( AV_PIX_FMT_GBRP14, rgb14, opt) \ | ||
705 | INPUT_PLANER_RGBAXX_YUVA_FUNC_CASE(AV_PIX_FMT_GBRP16, AV_PIX_FMT_GBRAP16, rgb16, opt) \ | ||
706 | INPUT_PLANER_RGBAXX_YUVA_FUNC_CASE(AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32, rgbf32, opt) | ||
707 | |||
708 | |||
709 |
2/2✓ Branch 0 taken 8369 times.
✓ Branch 1 taken 8362 times.
|
16731 | if (EXTERNAL_SSE2(cpu_flags)) { |
710 |
23/23✓ Branch 0 taken 163 times.
✓ Branch 1 taken 109 times.
✓ Branch 2 taken 109 times.
✓ Branch 3 taken 108 times.
✓ Branch 4 taken 163 times.
✓ Branch 5 taken 109 times.
✓ Branch 6 taken 162 times.
✓ Branch 7 taken 108 times.
✓ Branch 8 taken 163 times.
✓ Branch 9 taken 109 times.
✓ Branch 10 taken 162 times.
✓ Branch 11 taken 108 times.
✓ Branch 12 taken 109 times.
✓ Branch 13 taken 108 times.
✓ Branch 14 taken 163 times.
✓ Branch 15 taken 109 times.
✓ Branch 16 taken 162 times.
✓ Branch 17 taken 108 times.
✓ Branch 18 taken 162 times.
✓ Branch 19 taken 138 times.
✓ Branch 20 taken 162 times.
✓ Branch 21 taken 108 times.
✓ Branch 22 taken 5467 times.
|
8369 | switch (c->srcFormat) { |
711 | 163 | INPUT_PLANER_RGB_A_FUNC_CASE( AV_PIX_FMT_GBRAP, rgb, sse2); | |
712 | 272 | INPUT_PLANER_RGB_UV_FUNC_CASE( AV_PIX_FMT_GBRP, rgb, sse2); | |
713 | 217 | INPUT_PLANER_RGBXX_UV_FUNC_CASE( AV_PIX_FMT_GBRP9, rgb9, sse2); | |
714 | 542 | INPUT_PLANER_RGBAXX_UVA_FUNC_CASE( AV_PIX_FMT_GBRP10, AV_PIX_FMT_GBRAP10, rgb10, sse2); | |
715 | 542 | INPUT_PLANER_RGBAXX_UVA_FUNC_CASE( AV_PIX_FMT_GBRP12, AV_PIX_FMT_GBRAP12, rgb12, sse2); | |
716 | 217 | INPUT_PLANER_RGBXX_UV_FUNC_CASE( AV_PIX_FMT_GBRP14, rgb14, sse2); | |
717 | 542 | INPUT_PLANER_RGBAXX_UVA_FUNC_CASE( AV_PIX_FMT_GBRP16, AV_PIX_FMT_GBRAP16, rgb16, sse2); | |
718 | 570 | INPUT_PLANER_RGBAXX_YUVA_FUNC_CASE(AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32, rgbf32, sse2); | |
719 | 5467 | default: | |
720 | 5467 | break; | |
721 | } | ||
722 | } | ||
723 | |||
724 |
2/2✓ Branch 0 taken 5603 times.
✓ Branch 1 taken 11128 times.
|
16731 | if (EXTERNAL_SSE4(cpu_flags)) { |
725 |
16/16✓ Branch 0 taken 182 times.
✓ Branch 1 taken 73 times.
✓ Branch 2 taken 72 times.
✓ Branch 3 taken 182 times.
✓ Branch 4 taken 180 times.
✓ Branch 5 taken 182 times.
✓ Branch 6 taken 180 times.
✓ Branch 7 taken 73 times.
✓ Branch 8 taken 72 times.
✓ Branch 9 taken 182 times.
✓ Branch 10 taken 180 times.
✓ Branch 11 taken 108 times.
✓ Branch 12 taken 102 times.
✓ Branch 13 taken 108 times.
✓ Branch 14 taken 72 times.
✓ Branch 15 taken 3655 times.
|
5603 | switch (c->srcFormat) { |
726 | 182 | case AV_PIX_FMT_GBRAP: | |
727 | 182 | INPUT_PLANER_RGB_YUV_FUNC_CASE( AV_PIX_FMT_GBRP, rgb, sse4); | |
728 | 145 | INPUT_PLANER_RGBXX_YUV_FUNC_CASE( AV_PIX_FMT_GBRP9, rgb9, sse4); | |
729 | 362 | INPUT_PLANER_RGBAXX_YUV_FUNC_CASE( AV_PIX_FMT_GBRP10, AV_PIX_FMT_GBRAP10, rgb10, sse4); | |
730 | 362 | INPUT_PLANER_RGBAXX_YUV_FUNC_CASE( AV_PIX_FMT_GBRP12, AV_PIX_FMT_GBRAP12, rgb12, sse4); | |
731 | 145 | INPUT_PLANER_RGBXX_YUV_FUNC_CASE( AV_PIX_FMT_GBRP14, rgb14, sse4); | |
732 | 362 | INPUT_PLANER_RGBAXX_YUV_FUNC_CASE( AV_PIX_FMT_GBRP16, AV_PIX_FMT_GBRAP16, rgb16, sse4); | |
733 | 390 | INPUT_PLANER_RGBAXX_YUVA_FUNC_CASE(AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32, rgbf32, sse4); | |
734 | 3655 | default: | |
735 | 3655 | break; | |
736 | } | ||
737 | } | ||
738 | |||
739 |
3/4✓ Branch 0 taken 993 times.
✓ Branch 1 taken 15738 times.
✓ Branch 2 taken 993 times.
✗ Branch 3 not taken.
|
16731 | if (EXTERNAL_AVX2_FAST(cpu_flags)) { |
740 |
23/23✓ Branch 0 taken 19 times.
✓ Branch 1 taken 13 times.
✓ Branch 2 taken 13 times.
✓ Branch 3 taken 12 times.
✓ Branch 4 taken 19 times.
✓ Branch 5 taken 13 times.
✓ Branch 6 taken 18 times.
✓ Branch 7 taken 12 times.
✓ Branch 8 taken 19 times.
✓ Branch 9 taken 13 times.
✓ Branch 10 taken 18 times.
✓ Branch 11 taken 12 times.
✓ Branch 12 taken 13 times.
✓ Branch 13 taken 12 times.
✓ Branch 14 taken 19 times.
✓ Branch 15 taken 13 times.
✓ Branch 16 taken 18 times.
✓ Branch 17 taken 12 times.
✓ Branch 18 taken 18 times.
✓ Branch 19 taken 42 times.
✓ Branch 20 taken 18 times.
✓ Branch 21 taken 12 times.
✓ Branch 22 taken 635 times.
|
993 | switch (c->srcFormat) { |
741 | 358 | INPUT_PLANER_RGB_YUVA_ALL_CASES(avx2) | |
742 | 635 | default: | |
743 | 635 | break; | |
744 | } | ||
745 | } | ||
746 | |||
747 |
2/2✓ Branch 0 taken 7817 times.
✓ Branch 1 taken 8914 times.
|
16731 | if(c->flags & SWS_FULL_CHR_H_INT) { |
748 | |||
749 | /* yuv2gbrp uses the SwsContext for yuv coefficients | ||
750 | if struct offsets change the asm needs to be updated too */ | ||
751 | av_assert0(offsetof(SwsContext, yuv2rgb_y_offset) == 40292); | ||
752 | |||
753 | #define YUV2ANYX_FUNC_CASE(fmt, name, opt) \ | ||
754 | case fmt: \ | ||
755 | c->yuv2anyX = ff_yuv2##name##_full_X_##opt; \ | ||
756 | break; | ||
757 | |||
758 | #define YUV2ANYX_GBRAP_CASES(opt) \ | ||
759 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP, gbrp, opt) \ | ||
760 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAP, gbrap, opt) \ | ||
761 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP9LE, gbrp9le, opt) \ | ||
762 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP10LE, gbrp10le, opt) \ | ||
763 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAP10LE, gbrap10le, opt) \ | ||
764 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP12LE, gbrp12le, opt) \ | ||
765 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAP12LE, gbrap12le, opt) \ | ||
766 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP14LE, gbrp14le, opt) \ | ||
767 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP16LE, gbrp16le, opt) \ | ||
768 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAP16LE, gbrap16le, opt) \ | ||
769 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRPF32LE, gbrpf32le, opt) \ | ||
770 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAPF32LE, gbrapf32le, opt) \ | ||
771 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP9BE, gbrp9be, opt) \ | ||
772 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP10BE, gbrp10be, opt) \ | ||
773 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAP10BE, gbrap10be, opt) \ | ||
774 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP12BE, gbrp12be, opt) \ | ||
775 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAP12BE, gbrap12be, opt) \ | ||
776 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP14BE, gbrp14be, opt) \ | ||
777 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRP16BE, gbrp16be, opt) \ | ||
778 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAP16BE, gbrap16be, opt) \ | ||
779 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRPF32BE, gbrpf32be, opt) \ | ||
780 | YUV2ANYX_FUNC_CASE(AV_PIX_FMT_GBRAPF32BE, gbrapf32be, opt) | ||
781 | |||
782 |
2/2✓ Branch 0 taken 4815 times.
✓ Branch 1 taken 3002 times.
|
7817 | if (EXTERNAL_SSE2(cpu_flags)) { |
783 |
23/23✓ Branch 0 taken 217 times.
✓ Branch 1 taken 226 times.
✓ Branch 2 taken 217 times.
✓ Branch 3 taken 217 times.
✓ Branch 4 taken 217 times.
✓ Branch 5 taken 217 times.
✓ Branch 6 taken 217 times.
✓ Branch 7 taken 217 times.
✓ Branch 8 taken 217 times.
✓ Branch 9 taken 217 times.
✓ Branch 10 taken 246 times.
✓ Branch 11 taken 216 times.
✓ Branch 12 taken 216 times.
✓ Branch 13 taken 216 times.
✓ Branch 14 taken 216 times.
✓ Branch 15 taken 216 times.
✓ Branch 16 taken 216 times.
✓ Branch 17 taken 216 times.
✓ Branch 18 taken 216 times.
✓ Branch 19 taken 216 times.
✓ Branch 20 taken 216 times.
✓ Branch 21 taken 216 times.
✓ Branch 22 taken 14 times.
|
4815 | switch (c->dstFormat) { |
784 | 4801 | YUV2ANYX_GBRAP_CASES(sse2) | |
785 | 14 | default: | |
786 | 14 | break; | |
787 | } | ||
788 | } | ||
789 | |||
790 |
2/2✓ Branch 0 taken 3231 times.
✓ Branch 1 taken 4586 times.
|
7817 | if (EXTERNAL_SSE4(cpu_flags)) { |
791 |
23/23✓ Branch 0 taken 145 times.
✓ Branch 1 taken 154 times.
✓ Branch 2 taken 145 times.
✓ Branch 3 taken 145 times.
✓ Branch 4 taken 145 times.
✓ Branch 5 taken 145 times.
✓ Branch 6 taken 145 times.
✓ Branch 7 taken 145 times.
✓ Branch 8 taken 145 times.
✓ Branch 9 taken 145 times.
✓ Branch 10 taken 174 times.
✓ Branch 11 taken 144 times.
✓ Branch 12 taken 144 times.
✓ Branch 13 taken 144 times.
✓ Branch 14 taken 144 times.
✓ Branch 15 taken 144 times.
✓ Branch 16 taken 144 times.
✓ Branch 17 taken 144 times.
✓ Branch 18 taken 144 times.
✓ Branch 19 taken 144 times.
✓ Branch 20 taken 144 times.
✓ Branch 21 taken 144 times.
✓ Branch 22 taken 14 times.
|
3231 | switch (c->dstFormat) { |
792 | 3217 | YUV2ANYX_GBRAP_CASES(sse4) | |
793 | 14 | default: | |
794 | 14 | break; | |
795 | } | ||
796 | } | ||
797 | |||
798 |
3/4✓ Branch 0 taken 591 times.
✓ Branch 1 taken 7226 times.
✓ Branch 2 taken 591 times.
✗ Branch 3 not taken.
|
7817 | if (EXTERNAL_AVX2_FAST(cpu_flags)) { |
799 |
23/23✓ Branch 0 taken 25 times.
✓ Branch 1 taken 34 times.
✓ Branch 2 taken 25 times.
✓ Branch 3 taken 25 times.
✓ Branch 4 taken 25 times.
✓ Branch 5 taken 25 times.
✓ Branch 6 taken 25 times.
✓ Branch 7 taken 25 times.
✓ Branch 8 taken 25 times.
✓ Branch 9 taken 25 times.
✓ Branch 10 taken 54 times.
✓ Branch 11 taken 24 times.
✓ Branch 12 taken 24 times.
✓ Branch 13 taken 24 times.
✓ Branch 14 taken 24 times.
✓ Branch 15 taken 24 times.
✓ Branch 16 taken 24 times.
✓ Branch 17 taken 24 times.
✓ Branch 18 taken 24 times.
✓ Branch 19 taken 24 times.
✓ Branch 20 taken 24 times.
✓ Branch 21 taken 24 times.
✓ Branch 22 taken 14 times.
|
591 | switch (c->dstFormat) { |
800 | 577 | YUV2ANYX_GBRAP_CASES(avx2) | |
801 | 14 | default: | |
802 | 14 | break; | |
803 | } | ||
804 | } | ||
805 | } | ||
806 | |||
807 | #endif | ||
808 | 16731 | } | |
809 |