| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* | ||
| 2 | * Copyright (c) 2016 Martin Storsjo | ||
| 3 | * | ||
| 4 | * This file is part of FFmpeg. | ||
| 5 | * | ||
| 6 | * FFmpeg is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (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 | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License along | ||
| 17 | * with FFmpeg; if not, write to the Free Software Foundation, Inc., | ||
| 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #include <string.h> | ||
| 22 | #include "checkasm.h" | ||
| 23 | #include "libavcodec/h264dsp.h" | ||
| 24 | #include "libavcodec/h264data.h" | ||
| 25 | #include "libavcodec/h264idct.h" | ||
| 26 | #include "libavcodec/h264_parse.h" | ||
| 27 | #include "libavutil/common.h" | ||
| 28 | #include "libavutil/intreadwrite.h" | ||
| 29 | #include "libavutil/mem_internal.h" | ||
| 30 | |||
| 31 | static const uint32_t pixel_mask[5] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff, 0x0fff0fff, 0x3fff3fff }; | ||
| 32 | static const uint32_t pixel_mask_lf[3] = { 0xff0fff0f, 0x01ff000f, 0x03ff000f }; | ||
| 33 | |||
| 34 | #define SIZEOF_PIXEL ((bit_depth + 7) / 8) | ||
| 35 | #define SIZEOF_COEF (2 * ((bit_depth + 7) / 8)) | ||
| 36 | #define PIXEL_STRIDE 16 | ||
| 37 | |||
| 38 | #define randomize_buffers(idx) \ | ||
| 39 | do { \ | ||
| 40 | int x, y; \ | ||
| 41 | uint32_t mask = pixel_mask[(idx)]; \ | ||
| 42 | for (y = 0; y < sz; y++) { \ | ||
| 43 | for (x = 0; x < PIXEL_STRIDE; x += 4) { \ | ||
| 44 | AV_WN32A(src + y * PIXEL_STRIDE + x, rnd() & mask); \ | ||
| 45 | AV_WN32A(dst + y * PIXEL_STRIDE + x, rnd() & mask); \ | ||
| 46 | } \ | ||
| 47 | for (x = 0; x < sz; x++) { \ | ||
| 48 | if (bit_depth == 8) { \ | ||
| 49 | coef[y * sz + x] = src[y * PIXEL_STRIDE + x] - \ | ||
| 50 | dst[y * PIXEL_STRIDE + x]; \ | ||
| 51 | } else { \ | ||
| 52 | ((int32_t *)coef)[y * sz + x] = \ | ||
| 53 | ((uint16_t *)src)[y * (PIXEL_STRIDE/2) + x] - \ | ||
| 54 | ((uint16_t *)dst)[y * (PIXEL_STRIDE/2) + x]; \ | ||
| 55 | } \ | ||
| 56 | } \ | ||
| 57 | } \ | ||
| 58 | } while (0) | ||
| 59 | |||
| 60 | #define dct4x4_impl(size, dctcoef) \ | ||
| 61 | static void dct4x4_##size(dctcoef *coef) \ | ||
| 62 | { \ | ||
| 63 | int i, y, x; \ | ||
| 64 | dctcoef tmp[16]; \ | ||
| 65 | for (i = 0; i < 4; i++) { \ | ||
| 66 | const int z0 = coef[i*4 + 0] + coef[i*4 + 3]; \ | ||
| 67 | const int z1 = coef[i*4 + 1] + coef[i*4 + 2]; \ | ||
| 68 | const int z2 = coef[i*4 + 0] - coef[i*4 + 3]; \ | ||
| 69 | const int z3 = coef[i*4 + 1] - coef[i*4 + 2]; \ | ||
| 70 | tmp[i + 4*0] = z0 + z1; \ | ||
| 71 | tmp[i + 4*1] = 2*z2 + z3; \ | ||
| 72 | tmp[i + 4*2] = z0 - z1; \ | ||
| 73 | tmp[i + 4*3] = z2 - 2*z3; \ | ||
| 74 | } \ | ||
| 75 | for (i = 0; i < 4; i++) { \ | ||
| 76 | const int z0 = tmp[i*4 + 0] + tmp[i*4 + 3]; \ | ||
| 77 | const int z1 = tmp[i*4 + 1] + tmp[i*4 + 2]; \ | ||
| 78 | const int z2 = tmp[i*4 + 0] - tmp[i*4 + 3]; \ | ||
| 79 | const int z3 = tmp[i*4 + 1] - tmp[i*4 + 2]; \ | ||
| 80 | coef[i*4 + 0] = z0 + z1; \ | ||
| 81 | coef[i*4 + 1] = 2*z2 + z3; \ | ||
| 82 | coef[i*4 + 2] = z0 - z1; \ | ||
| 83 | coef[i*4 + 3] = z2 - 2*z3; \ | ||
| 84 | } \ | ||
| 85 | for (y = 0; y < 4; y++) { \ | ||
| 86 | for (x = 0; x < 4; x++) { \ | ||
| 87 | const int64_t scale[] = { 13107 * 10, 8066 * 13, 5243 * 16 }; \ | ||
| 88 | const int idx = (y & 1) + (x & 1); \ | ||
| 89 | coef[y*4 + x] = (coef[y*4 + x] * scale[idx] + (1 << 14)) >> 15; \ | ||
| 90 | } \ | ||
| 91 | } \ | ||
| 92 | } | ||
| 93 | |||
| 94 | #define DCT8_1D(src, srcstride, dst, dststride) do { \ | ||
| 95 | const int a0 = (src)[srcstride * 0] + (src)[srcstride * 7]; \ | ||
| 96 | const int a1 = (src)[srcstride * 0] - (src)[srcstride * 7]; \ | ||
| 97 | const int a2 = (src)[srcstride * 1] + (src)[srcstride * 6]; \ | ||
| 98 | const int a3 = (src)[srcstride * 1] - (src)[srcstride * 6]; \ | ||
| 99 | const int a4 = (src)[srcstride * 2] + (src)[srcstride * 5]; \ | ||
| 100 | const int a5 = (src)[srcstride * 2] - (src)[srcstride * 5]; \ | ||
| 101 | const int a6 = (src)[srcstride * 3] + (src)[srcstride * 4]; \ | ||
| 102 | const int a7 = (src)[srcstride * 3] - (src)[srcstride * 4]; \ | ||
| 103 | const int b0 = a0 + a6; \ | ||
| 104 | const int b1 = a2 + a4; \ | ||
| 105 | const int b2 = a0 - a6; \ | ||
| 106 | const int b3 = a2 - a4; \ | ||
| 107 | const int b4 = a3 + a5 + (a1 + (a1 >> 1)); \ | ||
| 108 | const int b5 = a1 - a7 - (a5 + (a5 >> 1)); \ | ||
| 109 | const int b6 = a1 + a7 - (a3 + (a3 >> 1)); \ | ||
| 110 | const int b7 = a3 - a5 + (a7 + (a7 >> 1)); \ | ||
| 111 | (dst)[dststride * 0] = b0 + b1; \ | ||
| 112 | (dst)[dststride * 1] = b4 + (b7 >> 2); \ | ||
| 113 | (dst)[dststride * 2] = b2 + (b3 >> 1); \ | ||
| 114 | (dst)[dststride * 3] = b5 + (b6 >> 2); \ | ||
| 115 | (dst)[dststride * 4] = b0 - b1; \ | ||
| 116 | (dst)[dststride * 5] = b6 - (b5 >> 2); \ | ||
| 117 | (dst)[dststride * 6] = (b2 >> 1) - b3; \ | ||
| 118 | (dst)[dststride * 7] = (b4 >> 2) - b7; \ | ||
| 119 | } while (0) | ||
| 120 | |||
| 121 | #define dct8x8_impl(size, dctcoef) \ | ||
| 122 | static void dct8x8_##size(dctcoef *coef) \ | ||
| 123 | { \ | ||
| 124 | int i, x, y; \ | ||
| 125 | dctcoef tmp[64]; \ | ||
| 126 | for (i = 0; i < 8; i++) \ | ||
| 127 | DCT8_1D(coef + i, 8, tmp + i, 8); \ | ||
| 128 | \ | ||
| 129 | for (i = 0; i < 8; i++) \ | ||
| 130 | DCT8_1D(tmp + 8*i, 1, coef + i, 8); \ | ||
| 131 | \ | ||
| 132 | for (y = 0; y < 8; y++) { \ | ||
| 133 | for (x = 0; x < 8; x++) { \ | ||
| 134 | static const int scale[] = { \ | ||
| 135 | 13107 * 20, 11428 * 18, 20972 * 32, \ | ||
| 136 | 12222 * 19, 16777 * 25, 15481 * 24, \ | ||
| 137 | }; \ | ||
| 138 | static const int idxmap[] = { \ | ||
| 139 | 0, 3, 4, 3, \ | ||
| 140 | 3, 1, 5, 1, \ | ||
| 141 | 4, 5, 2, 5, \ | ||
| 142 | 3, 1, 5, 1, \ | ||
| 143 | }; \ | ||
| 144 | const int idx = idxmap[(y & 3) * 4 + (x & 3)]; \ | ||
| 145 | coef[y*8 + x] = ((int64_t)coef[y*8 + x] * \ | ||
| 146 | scale[idx] + (1 << 17)) >> 18; \ | ||
| 147 | } \ | ||
| 148 | } \ | ||
| 149 | } | ||
| 150 | |||
| 151 |
8/8✓ Branch 0 taken 1820 times.
✓ Branch 1 taken 455 times.
✓ Branch 2 taken 1820 times.
✓ Branch 3 taken 455 times.
✓ Branch 4 taken 7280 times.
✓ Branch 5 taken 1820 times.
✓ Branch 6 taken 1820 times.
✓ Branch 7 taken 455 times.
|
13195 | dct4x4_impl(16, int16_t) |
| 152 |
8/8✓ Branch 0 taken 3952 times.
✓ Branch 1 taken 988 times.
✓ Branch 2 taken 3952 times.
✓ Branch 3 taken 988 times.
✓ Branch 4 taken 15808 times.
✓ Branch 5 taken 3952 times.
✓ Branch 6 taken 3952 times.
✓ Branch 7 taken 988 times.
|
28652 | dct4x4_impl(32, int32_t) |
| 153 | |||
| 154 |
8/8✓ Branch 0 taken 728 times.
✓ Branch 1 taken 91 times.
✓ Branch 2 taken 728 times.
✓ Branch 3 taken 91 times.
✓ Branch 4 taken 5824 times.
✓ Branch 5 taken 728 times.
✓ Branch 6 taken 728 times.
✓ Branch 7 taken 91 times.
|
8099 | dct8x8_impl(16, int16_t) |
| 155 |
8/8✓ Branch 0 taken 2080 times.
✓ Branch 1 taken 260 times.
✓ Branch 2 taken 2080 times.
✓ Branch 3 taken 260 times.
✓ Branch 4 taken 16640 times.
✓ Branch 5 taken 2080 times.
✓ Branch 6 taken 2080 times.
✓ Branch 7 taken 260 times.
|
23140 | dct8x8_impl(32, int32_t) |
| 156 | |||
| 157 | 1443 | static void dct4x4(int16_t *coef, int bit_depth) | |
| 158 | { | ||
| 159 |
2/2✓ Branch 0 taken 455 times.
✓ Branch 1 taken 988 times.
|
1443 | if (bit_depth == 8) |
| 160 | 455 | dct4x4_16(coef); | |
| 161 | else | ||
| 162 | 988 | dct4x4_32((int32_t *) coef); | |
| 163 | 1443 | } | |
| 164 | |||
| 165 | 351 | static void dct8x8(int16_t *coef, int bit_depth) | |
| 166 | { | ||
| 167 |
2/2✓ Branch 0 taken 91 times.
✓ Branch 1 taken 260 times.
|
351 | if (bit_depth == 8) { |
| 168 | 91 | dct8x8_16(coef); | |
| 169 | } else { | ||
| 170 | 260 | dct8x8_32((int32_t *) coef); | |
| 171 | } | ||
| 172 | 351 | } | |
| 173 | |||
| 174 | |||
| 175 | 13 | static void check_idct(void) | |
| 176 | { | ||
| 177 | static const int depths[5] = { 8, 9, 10, 12, 14 }; | ||
| 178 | 13 | LOCAL_ALIGNED_16(uint8_t, src, [8 * 8 * 2]); | |
| 179 | 13 | LOCAL_ALIGNED_16(uint8_t, dst, [8 * 8 * 2]); | |
| 180 | 13 | LOCAL_ALIGNED_16(uint8_t, dst0, [8 * 8 * 2]); | |
| 181 | 13 | LOCAL_ALIGNED_16(uint8_t, dst1_base, [8 * 8 * 2 + 32]); | |
| 182 | 13 | LOCAL_ALIGNED_16(int16_t, coef, [8 * 8 * 2]); | |
| 183 | 13 | LOCAL_ALIGNED_16(int16_t, subcoef0, [8 * 8 * 2]); | |
| 184 | 13 | LOCAL_ALIGNED_16(int16_t, subcoef1, [8 * 8 * 2]); | |
| 185 | H264DSPContext h; | ||
| 186 | int bit_depth, sz, align, dc, i; | ||
| 187 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 2 taken 1 times.
|
13 | declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *dst, int16_t *block, int stride); |
| 188 | |||
| 189 |
2/2✓ Branch 0 taken 65 times.
✓ Branch 1 taken 13 times.
|
78 | for (i = 0; i < FF_ARRAY_ELEMS(depths); i++) { |
| 190 | 65 | bit_depth = depths[i]; | |
| 191 | 65 | ff_h264dsp_init(&h, bit_depth, 1); | |
| 192 | |||
| 193 |
2/2✓ Branch 0 taken 195 times.
✓ Branch 1 taken 65 times.
|
260 | for (dc = 0; dc <= 2; dc++) { |
| 194 |
2/2✓ Branch 0 taken 390 times.
✓ Branch 1 taken 195 times.
|
585 | for (sz = 4; sz <= 8; sz += 4) { |
| 195 | 390 | void (*idct)(uint8_t *, int16_t *, int) = NULL; | |
| 196 | 390 | const char fmts[3][28] = { | |
| 197 | "h264_idct%d_add_%dbpp", "h264_idct%d_dc_add_%dbpp", | ||
| 198 | "h264_add_pixels%d_%dbpp", | ||
| 199 | }; | ||
| 200 | |||
| 201 |
8/8✓ Branch 2 taken 9360 times.
✓ Branch 3 taken 2340 times.
✓ Branch 4 taken 3120 times.
✓ Branch 5 taken 12480 times.
✓ Branch 6 taken 15600 times.
✓ Branch 7 taken 2340 times.
✓ Branch 8 taken 2340 times.
✓ Branch 9 taken 390 times.
|
27690 | randomize_buffers(i); |
| 202 | |||
| 203 |
2/2✓ Branch 0 taken 195 times.
✓ Branch 1 taken 195 times.
|
390 | if (sz == 4) |
| 204 | 195 | dct4x4(coef, bit_depth); | |
| 205 | else | ||
| 206 | 195 | dct8x8(coef, bit_depth); | |
| 207 | |||
| 208 |
6/7✓ Branch 0 taken 65 times.
✓ Branch 1 taken 65 times.
✓ Branch 2 taken 65 times.
✓ Branch 3 taken 65 times.
✓ Branch 4 taken 65 times.
✓ Branch 5 taken 65 times.
✗ Branch 6 not taken.
|
390 | switch ((sz << 2) | dc) { |
| 209 | 65 | case (4 << 2) | 0: idct = h.h264_idct_add; break; | |
| 210 | 65 | case (4 << 2) | 1: idct = h.h264_idct_dc_add; break; | |
| 211 | 65 | case (4 << 2) | 2: idct = h.h264_add_pixels4_clear; break; | |
| 212 | 65 | case (8 << 2) | 0: idct = h.h264_idct8_add; break; | |
| 213 | 65 | case (8 << 2) | 1: idct = h.h264_idct8_dc_add; break; | |
| 214 | 65 | case (8 << 2) | 2: idct = h.h264_add_pixels8_clear; break; | |
| 215 | } | ||
| 216 | |||
| 217 |
2/2✓ Branch 3 taken 44 times.
✓ Branch 4 taken 346 times.
|
390 | if (check_func(idct, fmts[dc], sz, bit_depth)) { |
| 218 |
2/2✓ Branch 0 taken 86 times.
✓ Branch 1 taken 44 times.
|
130 | for (align = 0; align < 16; align += sz * SIZEOF_PIXEL) { |
| 219 | 86 | uint8_t *dst1 = dst1_base + align; | |
| 220 |
2/2✓ Branch 0 taken 52 times.
✓ Branch 1 taken 34 times.
|
86 | if (dc) { |
| 221 | 52 | memset(subcoef0, 0, sz * sz * SIZEOF_COEF); | |
| 222 | 52 | memcpy(subcoef0, coef, SIZEOF_COEF); | |
| 223 | } else { | ||
| 224 | 34 | memcpy(subcoef0, coef, sz * sz * SIZEOF_COEF); | |
| 225 | } | ||
| 226 | 86 | memcpy(dst0, dst, sz * PIXEL_STRIDE); | |
| 227 | 86 | memcpy(dst1, dst, sz * PIXEL_STRIDE); | |
| 228 | 86 | memcpy(subcoef1, subcoef0, sz * sz * SIZEOF_COEF); | |
| 229 | 86 | call_ref(dst0, subcoef0, PIXEL_STRIDE); | |
| 230 | 86 | call_new(dst1, subcoef1, PIXEL_STRIDE); | |
| 231 |
1/2✓ Branch 0 taken 86 times.
✗ Branch 1 not taken.
|
86 | if (memcmp(dst0, dst1, sz * PIXEL_STRIDE) || |
| 232 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 86 times.
|
86 | memcmp(subcoef0, subcoef1, sz * sz * SIZEOF_COEF)) |
| 233 | ✗ | fail(); | |
| 234 |
1/8✗ Branch 1 not taken.
✓ Branch 2 taken 86 times.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
|
86 | bench_new(dst1, subcoef1, sz * SIZEOF_PIXEL); |
| 235 | } | ||
| 236 | } | ||
| 237 | } | ||
| 238 | } | ||
| 239 | } | ||
| 240 | 13 | } | |
| 241 | |||
| 242 | 13 | static void check_idct_multiple(void) | |
| 243 | { | ||
| 244 | 13 | LOCAL_ALIGNED_16(uint8_t, dst_full, [16 * 16 * 2]); | |
| 245 | 13 | LOCAL_ALIGNED_16(int16_t, coef_full, [16 * 16 * 2]); | |
| 246 | 13 | LOCAL_ALIGNED_16(uint8_t, dst0, [16 * 16 * 2]); | |
| 247 | 13 | LOCAL_ALIGNED_16(uint8_t, dst1, [16 * 16 * 2]); | |
| 248 | 13 | LOCAL_ALIGNED_16(int16_t, coef0, [16 * 16 * 2]); | |
| 249 | 13 | LOCAL_ALIGNED_16(int16_t, coef1, [16 * 16 * 2]); | |
| 250 | 13 | LOCAL_ALIGNED_16(uint8_t, nnzc, [15 * 8]); | |
| 251 | H264DSPContext h; | ||
| 252 | int bit_depth, i, y, func; | ||
| 253 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 2 taken 1 times.
|
13 | declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *dst, const int *block_offset, int16_t *block, int stride, const uint8_t nnzc[15*8]); |
| 254 | |||
| 255 |
2/2✓ Branch 0 taken 39 times.
✓ Branch 1 taken 13 times.
|
52 | for (bit_depth = 8; bit_depth <= 10; bit_depth++) { |
| 256 | 39 | ff_h264dsp_init(&h, bit_depth, 1); | |
| 257 |
2/2✓ Branch 0 taken 117 times.
✓ Branch 1 taken 39 times.
|
156 | for (func = 0; func < 3; func++) { |
| 258 | 117 | void (*idct)(uint8_t *, const int *, int16_t *, int, const uint8_t[]) = NULL; | |
| 259 | const char *name; | ||
| 260 | 117 | int sz = 4, intra = 0; | |
| 261 | 117 | int block_offset[16] = { 0 }; | |
| 262 |
3/4✓ Branch 0 taken 39 times.
✓ Branch 1 taken 39 times.
✓ Branch 2 taken 39 times.
✗ Branch 3 not taken.
|
117 | switch (func) { |
| 263 | 39 | case 0: | |
| 264 | 39 | idct = h.h264_idct_add16; | |
| 265 | 39 | name = "h264_idct_add16"; | |
| 266 | 39 | break; | |
| 267 | 39 | case 1: | |
| 268 | 39 | idct = h.h264_idct_add16intra; | |
| 269 | 39 | name = "h264_idct_add16intra"; | |
| 270 | 39 | intra = 1; | |
| 271 | 39 | break; | |
| 272 | 39 | case 2: | |
| 273 | 39 | idct = h.h264_idct8_add4; | |
| 274 | 39 | name = "h264_idct8_add4"; | |
| 275 | 39 | sz = 8; | |
| 276 | 39 | break; | |
| 277 | } | ||
| 278 | 117 | memset(nnzc, 0, 15 * 8); | |
| 279 | 117 | memset(coef_full, 0, 16 * 16 * SIZEOF_COEF); | |
| 280 |
2/2✓ Branch 0 taken 1404 times.
✓ Branch 1 taken 117 times.
|
1521 | for (i = 0; i < 16 * 16; i += sz * sz) { |
| 281 | uint8_t src[8 * 8 * 2]; | ||
| 282 | uint8_t dst[8 * 8 * 2]; | ||
| 283 | int16_t coef[8 * 8 * 2]; | ||
| 284 | 1404 | int index = i / sz; | |
| 285 | 1404 | int block_y = (index / 16) * sz; | |
| 286 | 1404 | int block_x = index % 16; | |
| 287 | 1404 | int offset = (block_y * 16 + block_x) * SIZEOF_PIXEL; | |
| 288 | 1404 | int nnz = rnd() % 3; | |
| 289 | |||
| 290 |
8/8✓ Branch 2 taken 24960 times.
✓ Branch 3 taken 6240 times.
✓ Branch 4 taken 9984 times.
✓ Branch 5 taken 19968 times.
✓ Branch 6 taken 29952 times.
✓ Branch 7 taken 6240 times.
✓ Branch 8 taken 6240 times.
✓ Branch 9 taken 1404 times.
|
62556 | randomize_buffers(bit_depth - 8); |
| 291 |
2/2✓ Branch 0 taken 1248 times.
✓ Branch 1 taken 156 times.
|
1404 | if (sz == 4) |
| 292 | 1248 | dct4x4(coef, bit_depth); | |
| 293 | else | ||
| 294 | 156 | dct8x8(coef, bit_depth); | |
| 295 | |||
| 296 |
2/2✓ Branch 0 taken 6240 times.
✓ Branch 1 taken 1404 times.
|
7644 | for (y = 0; y < sz; y++) |
| 297 | 6240 | memcpy(&dst_full[offset + y * 16 * SIZEOF_PIXEL], | |
| 298 | 6240 | &dst[PIXEL_STRIDE * y], sz * SIZEOF_PIXEL); | |
| 299 | |||
| 300 |
2/2✓ Branch 0 taken 447 times.
✓ Branch 1 taken 957 times.
|
1404 | if (nnz > 1) |
| 301 | 447 | nnz = sz * sz; | |
| 302 | 1404 | memcpy(&coef_full[i * SIZEOF_COEF/sizeof(coef[0])], | |
| 303 | 1404 | coef, nnz * SIZEOF_COEF); | |
| 304 | |||
| 305 |
4/4✓ Branch 0 taken 624 times.
✓ Branch 1 taken 780 times.
✓ Branch 2 taken 232 times.
✓ Branch 3 taken 392 times.
|
1404 | if (intra && nnz == 1) |
| 306 | 232 | nnz = 0; | |
| 307 | |||
| 308 | 1404 | nnzc[scan8[i / 16]] = nnz; | |
| 309 | 1404 | block_offset[i / 16] = offset; | |
| 310 | } | ||
| 311 | |||
| 312 |
2/2✓ Branch 3 taken 18 times.
✓ Branch 4 taken 99 times.
|
117 | if (check_func(idct, "%s_%dbpp", name, bit_depth)) { |
| 313 | 18 | memcpy(coef0, coef_full, 16 * 16 * SIZEOF_COEF); | |
| 314 | 18 | memcpy(coef1, coef_full, 16 * 16 * SIZEOF_COEF); | |
| 315 | 18 | memcpy(dst0, dst_full, 16 * 16 * SIZEOF_PIXEL); | |
| 316 | 18 | memcpy(dst1, dst_full, 16 * 16 * SIZEOF_PIXEL); | |
| 317 | 18 | call_ref(dst0, block_offset, coef0, 16 * SIZEOF_PIXEL, nnzc); | |
| 318 | 18 | call_new(dst1, block_offset, coef1, 16 * SIZEOF_PIXEL, nnzc); | |
| 319 |
1/2✓ Branch 0 taken 18 times.
✗ Branch 1 not taken.
|
18 | if (memcmp(dst0, dst1, 16 * 16 * SIZEOF_PIXEL) || |
| 320 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | memcmp(coef0, coef1, 16 * 16 * SIZEOF_COEF)) |
| 321 | ✗ | fail(); | |
| 322 |
1/8✗ Branch 1 not taken.
✓ Branch 2 taken 18 times.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
|
18 | bench_new(dst1, block_offset, coef1, 16 * SIZEOF_PIXEL, nnzc); |
| 323 | } | ||
| 324 | } | ||
| 325 | } | ||
| 326 | 13 | } | |
| 327 | |||
| 328 | 13 | static void check_idct_dequant(void) | |
| 329 | { | ||
| 330 | static const int depths[5] = { 8, 9, 10, 12, 14 }; | ||
| 331 | 13 | LOCAL_ALIGNED_16(int16_t, src16, [16]); | |
| 332 | 13 | LOCAL_ALIGNED_16(int32_t, src32, [16]); | |
| 333 | 13 | LOCAL_ALIGNED_16(int16_t, dst0_16, [16 * 16]); | |
| 334 | 13 | LOCAL_ALIGNED_16(int16_t, dst1_16, [16 * 16]); | |
| 335 | 13 | LOCAL_ALIGNED_16(int32_t, dst0_32, [16 * 16]); | |
| 336 | 13 | LOCAL_ALIGNED_16(int32_t, dst1_32, [16 * 16]); | |
| 337 | H264DSPContext h; | ||
| 338 | int bit_depth, i, qmul; | ||
| 339 | 13 | declare_func(void, int16_t *output, int16_t *input, int qmul); | |
| 340 | |||
| 341 | 13 | qmul = rnd() % 4096; | |
| 342 | |||
| 343 |
2/2✓ Branch 0 taken 65 times.
✓ Branch 1 taken 13 times.
|
78 | for (i = 0; i < FF_ARRAY_ELEMS(depths); i++) { |
| 344 | 65 | bit_depth = depths[i]; | |
| 345 | 65 | ff_h264dsp_init(&h, bit_depth, 1); | |
| 346 | |||
| 347 | void *src, *dst_ref, *dst_new; | ||
| 348 |
2/2✓ Branch 0 taken 13 times.
✓ Branch 1 taken 52 times.
|
65 | if (bit_depth == 8) { |
| 349 | 13 | src = src16; | |
| 350 | 13 | dst_ref = dst0_16; | |
| 351 | 13 | dst_new = dst1_16; | |
| 352 |
2/2✓ Branch 0 taken 208 times.
✓ Branch 1 taken 13 times.
|
221 | for (int j = 0; j < 16; j++) |
| 353 | 208 | src16[j] = (rnd() % 512) - 256; | |
| 354 | } else { | ||
| 355 | 52 | src = src32; | |
| 356 | 52 | dst_ref = dst0_32; | |
| 357 | 52 | dst_new = dst1_32; | |
| 358 |
2/2✓ Branch 0 taken 832 times.
✓ Branch 1 taken 52 times.
|
884 | for (int j = 0; j < 16; j++) |
| 359 | 832 | src32[j] = (rnd() % (1 << (bit_depth + 1))) - (1 << bit_depth); | |
| 360 | } | ||
| 361 | 65 | memset(dst_ref, 0, 16 * 16 * SIZEOF_COEF); | |
| 362 | 65 | memset(dst_new, 0, 16 * 16 * SIZEOF_COEF); | |
| 363 | |||
| 364 |
2/2✓ Branch 3 taken 6 times.
✓ Branch 4 taken 59 times.
|
65 | if (check_func(h.h264_luma_dc_dequant_idct, "h264_luma_dc_dequant_idct_%d", bit_depth)) { |
| 365 | |||
| 366 | 6 | call_ref(dst_ref, src, qmul); | |
| 367 | 6 | call_new(dst_new, src, qmul); | |
| 368 |
2/2✓ Branch 0 taken 4 times.
✓ Branch 1 taken 2 times.
|
6 | checkasm_check_dctcoef(dst0, 16*SIZEOF_COEF, dst1, 16*SIZEOF_COEF, 16, 16, "dst"); |
| 369 |
1/8✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
|
6 | bench_new(dst_new, src, qmul); |
| 370 | } | ||
| 371 | } | ||
| 372 | 13 | } | |
| 373 | |||
| 374 | |||
| 375 | 13 | static void check_loop_filter(void) | |
| 376 | { | ||
| 377 | 13 | LOCAL_ALIGNED_16(uint8_t, dst, [32 * 16 * 2]); | |
| 378 | 13 | LOCAL_ALIGNED_16(uint8_t, dst0, [32 * 16 * 2]); | |
| 379 | 13 | LOCAL_ALIGNED_16(uint8_t, dst1, [32 * 16 * 2]); | |
| 380 | H264DSPContext h; | ||
| 381 | int bit_depth; | ||
| 382 | int alphas[36], betas[36]; | ||
| 383 | int8_t tc0[36][4]; | ||
| 384 | |||
| 385 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 2 taken 1 times.
|
13 | declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *pix, ptrdiff_t stride, |
| 386 | int alpha, int beta, int8_t *tc0); | ||
| 387 | |||
| 388 |
2/2✓ Branch 0 taken 39 times.
✓ Branch 1 taken 13 times.
|
52 | for (bit_depth = 8; bit_depth <= 10; bit_depth++) { |
| 389 | int i, j, a, c; | ||
| 390 | 39 | uint32_t mask = pixel_mask_lf[bit_depth - 8]; | |
| 391 | 39 | ff_h264dsp_init(&h, bit_depth, 1); | |
| 392 |
2/2✓ Branch 0 taken 1404 times.
✓ Branch 1 taken 39 times.
|
1443 | for (i = 35, a = 255, c = 250; i >= 0; i--) { |
| 393 | 1404 | alphas[i] = a << (bit_depth - 8); | |
| 394 | 1404 | betas[i] = (i + 1) / 2 << (bit_depth - 8); | |
| 395 | 1404 | tc0[i][0] = tc0[i][3] = (c + 6) / 10; | |
| 396 | 1404 | tc0[i][1] = (c + 7) / 15; | |
| 397 | 1404 | tc0[i][2] = (c + 9) / 20; | |
| 398 | 1404 | a = a*9/10; | |
| 399 | 1404 | c = c*9/10; | |
| 400 | } | ||
| 401 | |||
| 402 | #define CHECK_LOOP_FILTER(name, align, idc) \ | ||
| 403 | do { \ | ||
| 404 | if (check_func(h.name, #name #idc "_%dbpp", bit_depth)) { \ | ||
| 405 | for (j = 0; j < 36; j++) { \ | ||
| 406 | intptr_t off = 8 * 32 + (j & 15) * 4 * !align; \ | ||
| 407 | for (i = 0; i < 1024; i+=4) { \ | ||
| 408 | AV_WN32A(dst + i, rnd() & mask); \ | ||
| 409 | } \ | ||
| 410 | memcpy(dst0, dst, 32 * 16 * 2); \ | ||
| 411 | memcpy(dst1, dst, 32 * 16 * 2); \ | ||
| 412 | \ | ||
| 413 | call_ref(dst0 + off, 32, alphas[j], betas[j], tc0[j]); \ | ||
| 414 | call_new(dst1 + off, 32, alphas[j], betas[j], tc0[j]); \ | ||
| 415 | if (memcmp(dst0, dst1, 32 * 16 * SIZEOF_PIXEL)) { \ | ||
| 416 | fprintf(stderr, #name #idc ": j:%d, alpha:%d beta:%d " \ | ||
| 417 | "tc0:{%d,%d,%d,%d}\n", j, alphas[j], betas[j], \ | ||
| 418 | tc0[j][0], tc0[j][1], tc0[j][2], tc0[j][3]); \ | ||
| 419 | fail(); \ | ||
| 420 | } \ | ||
| 421 | bench_new(dst1 + off, 32, alphas[j], betas[j], tc0[j]);\ | ||
| 422 | } \ | ||
| 423 | } \ | ||
| 424 | } while (0) | ||
| 425 | |||
| 426 |
8/16✓ Branch 3 taken 7 times.
✓ Branch 4 taken 32 times.
✓ Branch 6 taken 64512 times.
✓ Branch 7 taken 252 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 252 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 252 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 252 times.
✓ Branch 68 taken 7 times.
|
64803 | CHECK_LOOP_FILTER(h264_v_loop_filter_luma, 1,); |
| 427 |
8/16✓ Branch 3 taken 7 times.
✓ Branch 4 taken 32 times.
✓ Branch 6 taken 64512 times.
✓ Branch 7 taken 252 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 252 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 252 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 252 times.
✓ Branch 68 taken 7 times.
|
64803 | CHECK_LOOP_FILTER(h264_h_loop_filter_luma, 0,); |
| 428 |
8/16✓ Branch 3 taken 5 times.
✓ Branch 4 taken 34 times.
✓ Branch 6 taken 46080 times.
✓ Branch 7 taken 180 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 180 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 180 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 180 times.
✓ Branch 68 taken 5 times.
|
46299 | CHECK_LOOP_FILTER(h264_h_loop_filter_luma_mbaff, 0,); |
| 429 |
8/16✓ Branch 3 taken 7 times.
✓ Branch 4 taken 32 times.
✓ Branch 6 taken 64512 times.
✓ Branch 7 taken 252 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 252 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 252 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 252 times.
✓ Branch 68 taken 7 times.
|
64803 | CHECK_LOOP_FILTER(h264_v_loop_filter_chroma, 1,); |
| 430 |
8/16✓ Branch 3 taken 7 times.
✓ Branch 4 taken 32 times.
✓ Branch 6 taken 64512 times.
✓ Branch 7 taken 252 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 252 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 252 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 252 times.
✓ Branch 68 taken 7 times.
|
64803 | CHECK_LOOP_FILTER(h264_h_loop_filter_chroma, 0,); |
| 431 |
8/16✓ Branch 3 taken 3 times.
✓ Branch 4 taken 36 times.
✓ Branch 6 taken 27648 times.
✓ Branch 7 taken 108 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 108 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 108 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 108 times.
✓ Branch 68 taken 3 times.
|
27795 | CHECK_LOOP_FILTER(h264_h_loop_filter_chroma_mbaff, 0,); |
| 432 | |||
| 433 | 39 | ff_h264dsp_init(&h, bit_depth, 2); | |
| 434 |
8/16✓ Branch 3 taken 7 times.
✓ Branch 4 taken 32 times.
✓ Branch 6 taken 64512 times.
✓ Branch 7 taken 252 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 252 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 252 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 252 times.
✓ Branch 68 taken 7 times.
|
64803 | CHECK_LOOP_FILTER(h264_h_loop_filter_chroma, 0, 422); |
| 435 |
8/16✓ Branch 3 taken 3 times.
✓ Branch 4 taken 36 times.
✓ Branch 6 taken 27648 times.
✓ Branch 7 taken 108 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 108 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 108 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 108 times.
✓ Branch 68 taken 3 times.
|
27795 | CHECK_LOOP_FILTER(h264_h_loop_filter_chroma_mbaff, 0, 422); |
| 436 | #undef CHECK_LOOP_FILTER | ||
| 437 | } | ||
| 438 | 13 | } | |
| 439 | |||
| 440 | 13 | static void check_loop_filter_intra(void) | |
| 441 | { | ||
| 442 | 13 | LOCAL_ALIGNED_16(uint8_t, dst, [32 * 16 * 2]); | |
| 443 | 13 | LOCAL_ALIGNED_16(uint8_t, dst0, [32 * 16 * 2]); | |
| 444 | 13 | LOCAL_ALIGNED_16(uint8_t, dst1, [32 * 16 * 2]); | |
| 445 | H264DSPContext h; | ||
| 446 | int bit_depth; | ||
| 447 | int alphas[36], betas[36]; | ||
| 448 | |||
| 449 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 2 taken 1 times.
|
13 | declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *pix, ptrdiff_t stride, |
| 450 | int alpha, int beta); | ||
| 451 | |||
| 452 |
2/2✓ Branch 0 taken 39 times.
✓ Branch 1 taken 13 times.
|
52 | for (bit_depth = 8; bit_depth <= 10; bit_depth++) { |
| 453 | int i, j, a; | ||
| 454 | 39 | uint32_t mask = pixel_mask_lf[bit_depth - 8]; | |
| 455 | 39 | ff_h264dsp_init(&h, bit_depth, 1); | |
| 456 |
2/2✓ Branch 0 taken 1404 times.
✓ Branch 1 taken 39 times.
|
1443 | for (i = 35, a = 255; i >= 0; i--) { |
| 457 | 1404 | alphas[i] = a << (bit_depth - 8); | |
| 458 | 1404 | betas[i] = (i + 1) / 2 << (bit_depth - 8); | |
| 459 | 1404 | a = a*9/10; | |
| 460 | } | ||
| 461 | |||
| 462 | #define CHECK_LOOP_FILTER(name, align, idc) \ | ||
| 463 | do { \ | ||
| 464 | if (check_func(h.name, #name #idc "_%dbpp", bit_depth)) { \ | ||
| 465 | for (j = 0; j < 36; j++) { \ | ||
| 466 | intptr_t off = 8 * 32 + (j & 15) * 4 * !align; \ | ||
| 467 | for (i = 0; i < 1024; i+=4) { \ | ||
| 468 | AV_WN32A(dst + i, rnd() & mask); \ | ||
| 469 | } \ | ||
| 470 | memcpy(dst0, dst, 32 * 16 * 2); \ | ||
| 471 | memcpy(dst1, dst, 32 * 16 * 2); \ | ||
| 472 | \ | ||
| 473 | call_ref(dst0 + off, 32, alphas[j], betas[j]); \ | ||
| 474 | call_new(dst1 + off, 32, alphas[j], betas[j]); \ | ||
| 475 | if (memcmp(dst0, dst1, 32 * 16 * SIZEOF_PIXEL)) { \ | ||
| 476 | fprintf(stderr, #name #idc ": j:%d, alpha:%d beta:%d\n", \ | ||
| 477 | j, alphas[j], betas[j]); \ | ||
| 478 | fail(); \ | ||
| 479 | } \ | ||
| 480 | bench_new(dst1 + off, 32, alphas[j], betas[j]); \ | ||
| 481 | } \ | ||
| 482 | } \ | ||
| 483 | } while (0) | ||
| 484 | |||
| 485 |
8/16✓ Branch 3 taken 7 times.
✓ Branch 4 taken 32 times.
✓ Branch 6 taken 64512 times.
✓ Branch 7 taken 252 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 252 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 252 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 252 times.
✓ Branch 68 taken 7 times.
|
64803 | CHECK_LOOP_FILTER(h264_v_loop_filter_luma_intra, 1,); |
| 486 |
8/16✓ Branch 3 taken 7 times.
✓ Branch 4 taken 32 times.
✓ Branch 6 taken 64512 times.
✓ Branch 7 taken 252 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 252 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 252 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 252 times.
✓ Branch 68 taken 7 times.
|
64803 | CHECK_LOOP_FILTER(h264_h_loop_filter_luma_intra, 0,); |
| 487 |
8/16✓ Branch 3 taken 3 times.
✓ Branch 4 taken 36 times.
✓ Branch 6 taken 27648 times.
✓ Branch 7 taken 108 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 108 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 108 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 108 times.
✓ Branch 68 taken 3 times.
|
27795 | CHECK_LOOP_FILTER(h264_h_loop_filter_luma_mbaff_intra, 0,); |
| 488 |
8/16✓ Branch 3 taken 7 times.
✓ Branch 4 taken 32 times.
✓ Branch 6 taken 64512 times.
✓ Branch 7 taken 252 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 252 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 252 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 252 times.
✓ Branch 68 taken 7 times.
|
64803 | CHECK_LOOP_FILTER(h264_v_loop_filter_chroma_intra, 1,); |
| 489 |
8/16✓ Branch 3 taken 5 times.
✓ Branch 4 taken 34 times.
✓ Branch 6 taken 46080 times.
✓ Branch 7 taken 180 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 180 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 180 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 180 times.
✓ Branch 68 taken 5 times.
|
46299 | CHECK_LOOP_FILTER(h264_h_loop_filter_chroma_intra, 0,); |
| 490 |
8/16✓ Branch 3 taken 3 times.
✓ Branch 4 taken 36 times.
✓ Branch 6 taken 27648 times.
✓ Branch 7 taken 108 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 108 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 108 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 108 times.
✓ Branch 68 taken 3 times.
|
27795 | CHECK_LOOP_FILTER(h264_h_loop_filter_chroma_mbaff_intra, 0,); |
| 491 | |||
| 492 | 39 | ff_h264dsp_init(&h, bit_depth, 2); | |
| 493 |
8/16✓ Branch 3 taken 5 times.
✓ Branch 4 taken 34 times.
✓ Branch 6 taken 46080 times.
✓ Branch 7 taken 180 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 180 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 180 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 180 times.
✓ Branch 68 taken 5 times.
|
46299 | CHECK_LOOP_FILTER(h264_h_loop_filter_chroma_intra, 0, 422); |
| 494 |
8/16✓ Branch 3 taken 3 times.
✓ Branch 4 taken 36 times.
✓ Branch 6 taken 27648 times.
✓ Branch 7 taken 108 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 108 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 108 times.
✗ Branch 59 not taken.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✓ Branch 67 taken 108 times.
✓ Branch 68 taken 3 times.
|
27795 | CHECK_LOOP_FILTER(h264_h_loop_filter_chroma_mbaff_intra, 0, 422); |
| 495 | #undef CHECK_LOOP_FILTER | ||
| 496 | } | ||
| 497 | 13 | } | |
| 498 | |||
| 499 | 13 | void checkasm_check_h264dsp(void) | |
| 500 | { | ||
| 501 | 13 | check_idct(); | |
| 502 | 13 | check_idct_multiple(); | |
| 503 | 13 | check_idct_dequant(); | |
| 504 | 13 | report("idct"); | |
| 505 | |||
| 506 | 13 | check_loop_filter(); | |
| 507 | 13 | report("loop_filter"); | |
| 508 | |||
| 509 | 13 | check_loop_filter_intra(); | |
| 510 | 13 | report("loop_filter_intra"); | |
| 511 | 13 | } | |
| 512 |