Coverage Report

Created: 2026-07-16 06:29

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/work/dav1d/src/itx_tmpl.c
Line
Count
Source
1
/*
2
 * Copyright © 2018-2019, VideoLAN and dav1d authors
3
 * Copyright © 2018-2019, Two Orioles, LLC
4
 * All rights reserved.
5
 *
6
 * Redistribution and use in source and binary forms, with or without
7
 * modification, are permitted provided that the following conditions are met:
8
 *
9
 * 1. Redistributions of source code must retain the above copyright notice, this
10
 *    list of conditions and the following disclaimer.
11
 *
12
 * 2. Redistributions in binary form must reproduce the above copyright notice,
13
 *    this list of conditions and the following disclaimer in the documentation
14
 *    and/or other materials provided with the distribution.
15
 *
16
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 */
27
28
#include "config.h"
29
30
#include <stddef.h>
31
#include <stdint.h>
32
#include <stdlib.h>
33
#include <string.h>
34
35
#include "common/attributes.h"
36
#include "common/intops.h"
37
38
#include "src/itx.h"
39
#include "src/itx_1d.h"
40
#include "src/scan.h"
41
#include "src/tables.h"
42
43
static NOINLINE void
44
inv_txfm_add_c(pixel *dst, const ptrdiff_t stride, coef *const coeff,
45
               const int eob, const /*enum RectTxfmSize*/ int tx, const int shift,
46
               const enum TxfmType txtp HIGHBD_DECL_SUFFIX)
47
291k
{
48
291k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
291k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
291k
    const int has_dconly = txtp == DCT_DCT;
51
291k
    assert(w >= 4 && w <= 64);
52
291k
    assert(h >= 4 && h <= 64);
53
291k
    assert(eob >= 0);
54
55
291k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
291k
    const int rnd = (1 << shift) >> 1;
57
58
291k
    if (eob < has_dconly) {
59
100k
        int dc = coeff[0];
60
100k
        coeff[0] = 0;
61
100k
        if (is_rect2)
62
24.0k
            dc = (dc * 181 + 128) >> 8;
63
100k
        dc = (dc * 181 + 128) >> 8;
64
100k
        dc = (dc + rnd) >> shift;
65
100k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
3.46M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
130M
            for (int x = 0; x < w; x++)
68
127M
                dst[x] = iclip_pixel(dst[x] + dc);
69
100k
        return;
70
100k
    }
71
72
191k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
191k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
191k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
191k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
191k
#if BITDEPTH == 8
77
191k
    const int row_clip_min = INT16_MIN;
78
191k
    const int col_clip_min = INT16_MIN;
79
#else
80
    const int row_clip_min = (int) ((unsigned) ~bitdepth_max << 7);
81
    const int col_clip_min = (int) ((unsigned) ~bitdepth_max << 5);
82
#endif
83
191k
    const int row_clip_max = ~row_clip_min;
84
191k
    const int col_clip_max = ~col_clip_min;
85
86
191k
    int32_t tmp[64 * 64], *c = tmp;
87
191k
    int last_nonzero_col; // in first 1d itx
88
191k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
17.0k
        last_nonzero_col = imin(sh - 1, eob);
90
174k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
9.30k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
165k
    } else {
93
165k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
165k
    }
95
191k
    assert(last_nonzero_col < sh);
96
1.06M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
876k
        if (is_rect2)
98
6.13M
            for (int x = 0; x < sw; x++)
99
5.76M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
504k
        else
101
8.02M
            for (int x = 0; x < sw; x++)
102
7.51M
                c[x] = coeff[y + x * sh];
103
876k
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
876k
    }
105
191k
    if (last_nonzero_col + 1 < sh)
106
148k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
191k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
49.5M
    for (int i = 0; i < w * sh; i++)
110
49.3M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
2.87M
    for (int x = 0; x < w; x++)
113
2.68M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
191k
    c = tmp;
116
2.85M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
66.5M
        for (int x = 0; x < w; x++)
118
63.9M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
191k
}
120
121
#define inv_txfm_fn(type1, type2, type, pfx, w, h, shift) \
122
static void \
123
inv_txfm_add_##type1##_##type2##_##w##x##h##_c(pixel *dst, \
124
                                               const ptrdiff_t stride, \
125
                                               coef *const coeff, \
126
                                               const int eob \
127
291k
                                               HIGHBD_DECL_SUFFIX) \
128
291k
{ \
129
291k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
291k
                   HIGHBD_TAIL_SUFFIX); \
131
291k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
5.28k
                                               HIGHBD_DECL_SUFFIX) \
128
5.28k
{ \
129
5.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.28k
                   HIGHBD_TAIL_SUFFIX); \
131
5.28k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
2.63k
                                               HIGHBD_DECL_SUFFIX) \
128
2.63k
{ \
129
2.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.63k
                   HIGHBD_TAIL_SUFFIX); \
131
2.63k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
4.00k
                                               HIGHBD_DECL_SUFFIX) \
128
4.00k
{ \
129
4.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.00k
                   HIGHBD_TAIL_SUFFIX); \
131
4.00k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
3.46k
                                               HIGHBD_DECL_SUFFIX) \
128
3.46k
{ \
129
3.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.46k
                   HIGHBD_TAIL_SUFFIX); \
131
3.46k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
4.87k
                                               HIGHBD_DECL_SUFFIX) \
128
4.87k
{ \
129
4.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.87k
                   HIGHBD_TAIL_SUFFIX); \
131
4.87k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
422
                                               HIGHBD_DECL_SUFFIX) \
128
422
{ \
129
422
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
422
                   HIGHBD_TAIL_SUFFIX); \
131
422
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_c
Line
Count
Source
127
509
                                               HIGHBD_DECL_SUFFIX) \
128
509
{ \
129
509
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
509
                   HIGHBD_TAIL_SUFFIX); \
131
509
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
337
                                               HIGHBD_DECL_SUFFIX) \
128
337
{ \
129
337
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
337
                   HIGHBD_TAIL_SUFFIX); \
131
337
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
363
                                               HIGHBD_DECL_SUFFIX) \
128
363
{ \
129
363
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
363
                   HIGHBD_TAIL_SUFFIX); \
131
363
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
413
                                               HIGHBD_DECL_SUFFIX) \
128
413
{ \
129
413
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
413
                   HIGHBD_TAIL_SUFFIX); \
131
413
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
2.14k
                                               HIGHBD_DECL_SUFFIX) \
128
2.14k
{ \
129
2.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.14k
                   HIGHBD_TAIL_SUFFIX); \
131
2.14k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
892
                                               HIGHBD_DECL_SUFFIX) \
128
892
{ \
129
892
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
892
                   HIGHBD_TAIL_SUFFIX); \
131
892
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
661
                                               HIGHBD_DECL_SUFFIX) \
128
661
{ \
129
661
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
661
                   HIGHBD_TAIL_SUFFIX); \
131
661
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
388
                                               HIGHBD_DECL_SUFFIX) \
128
388
{ \
129
388
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
388
                   HIGHBD_TAIL_SUFFIX); \
131
388
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
1.16k
                                               HIGHBD_DECL_SUFFIX) \
128
1.16k
{ \
129
1.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.16k
                   HIGHBD_TAIL_SUFFIX); \
131
1.16k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
558
                                               HIGHBD_DECL_SUFFIX) \
128
558
{ \
129
558
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
558
                   HIGHBD_TAIL_SUFFIX); \
131
558
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
2.27k
                                               HIGHBD_DECL_SUFFIX) \
128
2.27k
{ \
129
2.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.27k
                   HIGHBD_TAIL_SUFFIX); \
131
2.27k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
857
                                               HIGHBD_DECL_SUFFIX) \
128
857
{ \
129
857
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
857
                   HIGHBD_TAIL_SUFFIX); \
131
857
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
1.46k
                                               HIGHBD_DECL_SUFFIX) \
128
1.46k
{ \
129
1.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.46k
                   HIGHBD_TAIL_SUFFIX); \
131
1.46k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
1.23k
                                               HIGHBD_DECL_SUFFIX) \
128
1.23k
{ \
129
1.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.23k
                   HIGHBD_TAIL_SUFFIX); \
131
1.23k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
1.83k
                                               HIGHBD_DECL_SUFFIX) \
128
1.83k
{ \
129
1.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.83k
                   HIGHBD_TAIL_SUFFIX); \
131
1.83k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
237
                                               HIGHBD_DECL_SUFFIX) \
128
237
{ \
129
237
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
237
                   HIGHBD_TAIL_SUFFIX); \
131
237
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
330
                                               HIGHBD_DECL_SUFFIX) \
128
330
{ \
129
330
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
330
                   HIGHBD_TAIL_SUFFIX); \
131
330
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
199
                                               HIGHBD_DECL_SUFFIX) \
128
199
{ \
129
199
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
199
                   HIGHBD_TAIL_SUFFIX); \
131
199
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
249
                                               HIGHBD_DECL_SUFFIX) \
128
249
{ \
129
249
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
249
                   HIGHBD_TAIL_SUFFIX); \
131
249
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
215
                                               HIGHBD_DECL_SUFFIX) \
128
215
{ \
129
215
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
215
                   HIGHBD_TAIL_SUFFIX); \
131
215
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
742
                                               HIGHBD_DECL_SUFFIX) \
128
742
{ \
129
742
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
742
                   HIGHBD_TAIL_SUFFIX); \
131
742
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
417
                                               HIGHBD_DECL_SUFFIX) \
128
417
{ \
129
417
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
417
                   HIGHBD_TAIL_SUFFIX); \
131
417
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_c
Line
Count
Source
127
304
                                               HIGHBD_DECL_SUFFIX) \
128
304
{ \
129
304
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
304
                   HIGHBD_TAIL_SUFFIX); \
131
304
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
232
                                               HIGHBD_DECL_SUFFIX) \
128
232
{ \
129
232
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
232
                   HIGHBD_TAIL_SUFFIX); \
131
232
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_c
Line
Count
Source
127
408
                                               HIGHBD_DECL_SUFFIX) \
128
408
{ \
129
408
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
408
                   HIGHBD_TAIL_SUFFIX); \
131
408
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
498
                                               HIGHBD_DECL_SUFFIX) \
128
498
{ \
129
498
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
498
                   HIGHBD_TAIL_SUFFIX); \
131
498
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
1.29k
                                               HIGHBD_DECL_SUFFIX) \
128
1.29k
{ \
129
1.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.29k
                   HIGHBD_TAIL_SUFFIX); \
131
1.29k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
457
                                               HIGHBD_DECL_SUFFIX) \
128
457
{ \
129
457
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
457
                   HIGHBD_TAIL_SUFFIX); \
131
457
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
718
                                               HIGHBD_DECL_SUFFIX) \
128
718
{ \
129
718
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
718
                   HIGHBD_TAIL_SUFFIX); \
131
718
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
529
                                               HIGHBD_DECL_SUFFIX) \
128
529
{ \
129
529
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
529
                   HIGHBD_TAIL_SUFFIX); \
131
529
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
898
                                               HIGHBD_DECL_SUFFIX) \
128
898
{ \
129
898
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
898
                   HIGHBD_TAIL_SUFFIX); \
131
898
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
107
                                               HIGHBD_DECL_SUFFIX) \
128
107
{ \
129
107
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
107
                   HIGHBD_TAIL_SUFFIX); \
131
107
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
109
                                               HIGHBD_DECL_SUFFIX) \
128
109
{ \
129
109
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
109
                   HIGHBD_TAIL_SUFFIX); \
131
109
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
71
                                               HIGHBD_DECL_SUFFIX) \
128
71
{ \
129
71
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
71
                   HIGHBD_TAIL_SUFFIX); \
131
71
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
82
                                               HIGHBD_DECL_SUFFIX) \
128
82
{ \
129
82
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
82
                   HIGHBD_TAIL_SUFFIX); \
131
82
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
60
                                               HIGHBD_DECL_SUFFIX) \
128
60
{ \
129
60
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
60
                   HIGHBD_TAIL_SUFFIX); \
131
60
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
312
                                               HIGHBD_DECL_SUFFIX) \
128
312
{ \
129
312
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
312
                   HIGHBD_TAIL_SUFFIX); \
131
312
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
162
                                               HIGHBD_DECL_SUFFIX) \
128
162
{ \
129
162
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
162
                   HIGHBD_TAIL_SUFFIX); \
131
162
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
153
                                               HIGHBD_DECL_SUFFIX) \
128
153
{ \
129
153
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
153
                   HIGHBD_TAIL_SUFFIX); \
131
153
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
112
                                               HIGHBD_DECL_SUFFIX) \
128
112
{ \
129
112
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
112
                   HIGHBD_TAIL_SUFFIX); \
131
112
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
145
                                               HIGHBD_DECL_SUFFIX) \
128
145
{ \
129
145
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
145
                   HIGHBD_TAIL_SUFFIX); \
131
145
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
153
                                               HIGHBD_DECL_SUFFIX) \
128
153
{ \
129
153
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
153
                   HIGHBD_TAIL_SUFFIX); \
131
153
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
3.74k
                                               HIGHBD_DECL_SUFFIX) \
128
3.74k
{ \
129
3.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.74k
                   HIGHBD_TAIL_SUFFIX); \
131
3.74k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
1.49k
                                               HIGHBD_DECL_SUFFIX) \
128
1.49k
{ \
129
1.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.49k
                   HIGHBD_TAIL_SUFFIX); \
131
1.49k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
1.97k
                                               HIGHBD_DECL_SUFFIX) \
128
1.97k
{ \
129
1.97k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.97k
                   HIGHBD_TAIL_SUFFIX); \
131
1.97k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
1.76k
                                               HIGHBD_DECL_SUFFIX) \
128
1.76k
{ \
129
1.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.76k
                   HIGHBD_TAIL_SUFFIX); \
131
1.76k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
2.43k
                                               HIGHBD_DECL_SUFFIX) \
128
2.43k
{ \
129
2.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.43k
                   HIGHBD_TAIL_SUFFIX); \
131
2.43k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
375
                                               HIGHBD_DECL_SUFFIX) \
128
375
{ \
129
375
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
375
                   HIGHBD_TAIL_SUFFIX); \
131
375
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
490
                                               HIGHBD_DECL_SUFFIX) \
128
490
{ \
129
490
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
490
                   HIGHBD_TAIL_SUFFIX); \
131
490
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
5.47k
                                               HIGHBD_DECL_SUFFIX) \
128
5.47k
{ \
129
5.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.47k
                   HIGHBD_TAIL_SUFFIX); \
131
5.47k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
240
                                               HIGHBD_DECL_SUFFIX) \
128
240
{ \
129
240
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
240
                   HIGHBD_TAIL_SUFFIX); \
131
240
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
300
                                               HIGHBD_DECL_SUFFIX) \
128
300
{ \
129
300
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
300
                   HIGHBD_TAIL_SUFFIX); \
131
300
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
1.37k
                                               HIGHBD_DECL_SUFFIX) \
128
1.37k
{ \
129
1.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.37k
                   HIGHBD_TAIL_SUFFIX); \
131
1.37k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
626
                                               HIGHBD_DECL_SUFFIX) \
128
626
{ \
129
626
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
626
                   HIGHBD_TAIL_SUFFIX); \
131
626
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
567
                                               HIGHBD_DECL_SUFFIX) \
128
567
{ \
129
567
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
567
                   HIGHBD_TAIL_SUFFIX); \
131
567
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
488
                                               HIGHBD_DECL_SUFFIX) \
128
488
{ \
129
488
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
488
                   HIGHBD_TAIL_SUFFIX); \
131
488
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
692
                                               HIGHBD_DECL_SUFFIX) \
128
692
{ \
129
692
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
692
                   HIGHBD_TAIL_SUFFIX); \
131
692
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
424
                                               HIGHBD_DECL_SUFFIX) \
128
424
{ \
129
424
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
424
                   HIGHBD_TAIL_SUFFIX); \
131
424
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
10.4k
                                               HIGHBD_DECL_SUFFIX) \
128
10.4k
{ \
129
10.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.4k
                   HIGHBD_TAIL_SUFFIX); \
131
10.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
3.01k
                                               HIGHBD_DECL_SUFFIX) \
128
3.01k
{ \
129
3.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.01k
                   HIGHBD_TAIL_SUFFIX); \
131
3.01k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
6.33k
                                               HIGHBD_DECL_SUFFIX) \
128
6.33k
{ \
129
6.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.33k
                   HIGHBD_TAIL_SUFFIX); \
131
6.33k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
4.71k
                                               HIGHBD_DECL_SUFFIX) \
128
4.71k
{ \
129
4.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.71k
                   HIGHBD_TAIL_SUFFIX); \
131
4.71k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
5.16k
                                               HIGHBD_DECL_SUFFIX) \
128
5.16k
{ \
129
5.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.16k
                   HIGHBD_TAIL_SUFFIX); \
131
5.16k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
716
                                               HIGHBD_DECL_SUFFIX) \
128
716
{ \
129
716
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
716
                   HIGHBD_TAIL_SUFFIX); \
131
716
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
1.07k
                                               HIGHBD_DECL_SUFFIX) \
128
1.07k
{ \
129
1.07k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.07k
                   HIGHBD_TAIL_SUFFIX); \
131
1.07k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
777
                                               HIGHBD_DECL_SUFFIX) \
128
777
{ \
129
777
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
777
                   HIGHBD_TAIL_SUFFIX); \
131
777
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
709
                                               HIGHBD_DECL_SUFFIX) \
128
709
{ \
129
709
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
709
                   HIGHBD_TAIL_SUFFIX); \
131
709
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
577
                                               HIGHBD_DECL_SUFFIX) \
128
577
{ \
129
577
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
577
                   HIGHBD_TAIL_SUFFIX); \
131
577
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
2.34k
                                               HIGHBD_DECL_SUFFIX) \
128
2.34k
{ \
129
2.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.34k
                   HIGHBD_TAIL_SUFFIX); \
131
2.34k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
1.06k
                                               HIGHBD_DECL_SUFFIX) \
128
1.06k
{ \
129
1.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.06k
                   HIGHBD_TAIL_SUFFIX); \
131
1.06k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
603
                                               HIGHBD_DECL_SUFFIX) \
128
603
{ \
129
603
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
603
                   HIGHBD_TAIL_SUFFIX); \
131
603
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
309
                                               HIGHBD_DECL_SUFFIX) \
128
309
{ \
129
309
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
309
                   HIGHBD_TAIL_SUFFIX); \
131
309
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
696
                                               HIGHBD_DECL_SUFFIX) \
128
696
{ \
129
696
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
696
                   HIGHBD_TAIL_SUFFIX); \
131
696
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
348
                                               HIGHBD_DECL_SUFFIX) \
128
348
{ \
129
348
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
348
                   HIGHBD_TAIL_SUFFIX); \
131
348
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
4.32k
                                               HIGHBD_DECL_SUFFIX) \
128
4.32k
{ \
129
4.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.32k
                   HIGHBD_TAIL_SUFFIX); \
131
4.32k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
782
                                               HIGHBD_DECL_SUFFIX) \
128
782
{ \
129
782
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
782
                   HIGHBD_TAIL_SUFFIX); \
131
782
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
2.05k
                                               HIGHBD_DECL_SUFFIX) \
128
2.05k
{ \
129
2.05k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.05k
                   HIGHBD_TAIL_SUFFIX); \
131
2.05k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
1.58k
                                               HIGHBD_DECL_SUFFIX) \
128
1.58k
{ \
129
1.58k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.58k
                   HIGHBD_TAIL_SUFFIX); \
131
1.58k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
2.06k
                                               HIGHBD_DECL_SUFFIX) \
128
2.06k
{ \
129
2.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.06k
                   HIGHBD_TAIL_SUFFIX); \
131
2.06k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
377
                                               HIGHBD_DECL_SUFFIX) \
128
377
{ \
129
377
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
377
                   HIGHBD_TAIL_SUFFIX); \
131
377
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
504
                                               HIGHBD_DECL_SUFFIX) \
128
504
{ \
129
504
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
504
                   HIGHBD_TAIL_SUFFIX); \
131
504
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
431
                                               HIGHBD_DECL_SUFFIX) \
128
431
{ \
129
431
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
431
                   HIGHBD_TAIL_SUFFIX); \
131
431
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
318
                                               HIGHBD_DECL_SUFFIX) \
128
318
{ \
129
318
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
318
                   HIGHBD_TAIL_SUFFIX); \
131
318
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
369
                                               HIGHBD_DECL_SUFFIX) \
128
369
{ \
129
369
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
369
                   HIGHBD_TAIL_SUFFIX); \
131
369
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
726
                                               HIGHBD_DECL_SUFFIX) \
128
726
{ \
129
726
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
726
                   HIGHBD_TAIL_SUFFIX); \
131
726
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
408
                                               HIGHBD_DECL_SUFFIX) \
128
408
{ \
129
408
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
408
                   HIGHBD_TAIL_SUFFIX); \
131
408
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
344
                                               HIGHBD_DECL_SUFFIX) \
128
344
{ \
129
344
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
344
                   HIGHBD_TAIL_SUFFIX); \
131
344
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
146
                                               HIGHBD_DECL_SUFFIX) \
128
146
{ \
129
146
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
146
                   HIGHBD_TAIL_SUFFIX); \
131
146
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
285
                                               HIGHBD_DECL_SUFFIX) \
128
285
{ \
129
285
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
285
                   HIGHBD_TAIL_SUFFIX); \
131
285
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
217
                                               HIGHBD_DECL_SUFFIX) \
128
217
{ \
129
217
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
217
                   HIGHBD_TAIL_SUFFIX); \
131
217
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
2.60k
                                               HIGHBD_DECL_SUFFIX) \
128
2.60k
{ \
129
2.60k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.60k
                   HIGHBD_TAIL_SUFFIX); \
131
2.60k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
182
                                               HIGHBD_DECL_SUFFIX) \
128
182
{ \
129
182
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
182
                   HIGHBD_TAIL_SUFFIX); \
131
182
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
1.99k
                                               HIGHBD_DECL_SUFFIX) \
128
1.99k
{ \
129
1.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.99k
                   HIGHBD_TAIL_SUFFIX); \
131
1.99k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
604
                                               HIGHBD_DECL_SUFFIX) \
128
604
{ \
129
604
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
604
                   HIGHBD_TAIL_SUFFIX); \
131
604
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
1.13k
                                               HIGHBD_DECL_SUFFIX) \
128
1.13k
{ \
129
1.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.13k
                   HIGHBD_TAIL_SUFFIX); \
131
1.13k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
976
                                               HIGHBD_DECL_SUFFIX) \
128
976
{ \
129
976
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
976
                   HIGHBD_TAIL_SUFFIX); \
131
976
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
1.39k
                                               HIGHBD_DECL_SUFFIX) \
128
1.39k
{ \
129
1.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.39k
                   HIGHBD_TAIL_SUFFIX); \
131
1.39k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
151
                                               HIGHBD_DECL_SUFFIX) \
128
151
{ \
129
151
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
151
                   HIGHBD_TAIL_SUFFIX); \
131
151
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
205
                                               HIGHBD_DECL_SUFFIX) \
128
205
{ \
129
205
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
205
                   HIGHBD_TAIL_SUFFIX); \
131
205
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
125
                                               HIGHBD_DECL_SUFFIX) \
128
125
{ \
129
125
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
125
                   HIGHBD_TAIL_SUFFIX); \
131
125
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
94
                                               HIGHBD_DECL_SUFFIX) \
128
94
{ \
129
94
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
94
                   HIGHBD_TAIL_SUFFIX); \
131
94
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
150
                                               HIGHBD_DECL_SUFFIX) \
128
150
{ \
129
150
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
150
                   HIGHBD_TAIL_SUFFIX); \
131
150
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
471
                                               HIGHBD_DECL_SUFFIX) \
128
471
{ \
129
471
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
471
                   HIGHBD_TAIL_SUFFIX); \
131
471
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
299
                                               HIGHBD_DECL_SUFFIX) \
128
299
{ \
129
299
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
299
                   HIGHBD_TAIL_SUFFIX); \
131
299
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
314
                                               HIGHBD_DECL_SUFFIX) \
128
314
{ \
129
314
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
314
                   HIGHBD_TAIL_SUFFIX); \
131
314
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
138
                                               HIGHBD_DECL_SUFFIX) \
128
138
{ \
129
138
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
138
                   HIGHBD_TAIL_SUFFIX); \
131
138
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
268
                                               HIGHBD_DECL_SUFFIX) \
128
268
{ \
129
268
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
268
                   HIGHBD_TAIL_SUFFIX); \
131
268
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
156
                                               HIGHBD_DECL_SUFFIX) \
128
156
{ \
129
156
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
156
                   HIGHBD_TAIL_SUFFIX); \
131
156
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
4.74k
                                               HIGHBD_DECL_SUFFIX) \
128
4.74k
{ \
129
4.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.74k
                   HIGHBD_TAIL_SUFFIX); \
131
4.74k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
980
                                               HIGHBD_DECL_SUFFIX) \
128
980
{ \
129
980
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
980
                   HIGHBD_TAIL_SUFFIX); \
131
980
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
1.95k
                                               HIGHBD_DECL_SUFFIX) \
128
1.95k
{ \
129
1.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.95k
                   HIGHBD_TAIL_SUFFIX); \
131
1.95k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
1.61k
                                               HIGHBD_DECL_SUFFIX) \
128
1.61k
{ \
129
1.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.61k
                   HIGHBD_TAIL_SUFFIX); \
131
1.61k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
2.32k
                                               HIGHBD_DECL_SUFFIX) \
128
2.32k
{ \
129
2.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.32k
                   HIGHBD_TAIL_SUFFIX); \
131
2.32k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
581
                                               HIGHBD_DECL_SUFFIX) \
128
581
{ \
129
581
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
581
                   HIGHBD_TAIL_SUFFIX); \
131
581
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
402
                                               HIGHBD_DECL_SUFFIX) \
128
402
{ \
129
402
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
402
                   HIGHBD_TAIL_SUFFIX); \
131
402
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
400
                                               HIGHBD_DECL_SUFFIX) \
128
400
{ \
129
400
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
400
                   HIGHBD_TAIL_SUFFIX); \
131
400
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
407
                                               HIGHBD_DECL_SUFFIX) \
128
407
{ \
129
407
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
407
                   HIGHBD_TAIL_SUFFIX); \
131
407
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
346
                                               HIGHBD_DECL_SUFFIX) \
128
346
{ \
129
346
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
346
                   HIGHBD_TAIL_SUFFIX); \
131
346
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
894
                                               HIGHBD_DECL_SUFFIX) \
128
894
{ \
129
894
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
894
                   HIGHBD_TAIL_SUFFIX); \
131
894
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
383
                                               HIGHBD_DECL_SUFFIX) \
128
383
{ \
129
383
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
383
                   HIGHBD_TAIL_SUFFIX); \
131
383
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
494
                                               HIGHBD_DECL_SUFFIX) \
128
494
{ \
129
494
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
494
                   HIGHBD_TAIL_SUFFIX); \
131
494
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
365
                                               HIGHBD_DECL_SUFFIX) \
128
365
{ \
129
365
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
365
                   HIGHBD_TAIL_SUFFIX); \
131
365
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
642
                                               HIGHBD_DECL_SUFFIX) \
128
642
{ \
129
642
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
642
                   HIGHBD_TAIL_SUFFIX); \
131
642
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
279
                                               HIGHBD_DECL_SUFFIX) \
128
279
{ \
129
279
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
279
                   HIGHBD_TAIL_SUFFIX); \
131
279
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
7.24k
                                               HIGHBD_DECL_SUFFIX) \
128
7.24k
{ \
129
7.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.24k
                   HIGHBD_TAIL_SUFFIX); \
131
7.24k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
687
                                               HIGHBD_DECL_SUFFIX) \
128
687
{ \
129
687
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
687
                   HIGHBD_TAIL_SUFFIX); \
131
687
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
4.82k
                                               HIGHBD_DECL_SUFFIX) \
128
4.82k
{ \
129
4.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.82k
                   HIGHBD_TAIL_SUFFIX); \
131
4.82k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
4.38k
                                               HIGHBD_DECL_SUFFIX) \
128
4.38k
{ \
129
4.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.38k
                   HIGHBD_TAIL_SUFFIX); \
131
4.38k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
5.08k
                                               HIGHBD_DECL_SUFFIX) \
128
5.08k
{ \
129
5.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.08k
                   HIGHBD_TAIL_SUFFIX); \
131
5.08k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
320
                                               HIGHBD_DECL_SUFFIX) \
128
320
{ \
129
320
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
320
                   HIGHBD_TAIL_SUFFIX); \
131
320
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
262
                                               HIGHBD_DECL_SUFFIX) \
128
262
{ \
129
262
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
262
                   HIGHBD_TAIL_SUFFIX); \
131
262
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
328
                                               HIGHBD_DECL_SUFFIX) \
128
328
{ \
129
328
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
328
                   HIGHBD_TAIL_SUFFIX); \
131
328
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
325
                                               HIGHBD_DECL_SUFFIX) \
128
325
{ \
129
325
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
325
                   HIGHBD_TAIL_SUFFIX); \
131
325
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
288
                                               HIGHBD_DECL_SUFFIX) \
128
288
{ \
129
288
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
288
                   HIGHBD_TAIL_SUFFIX); \
131
288
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_c
Line
Count
Source
127
355
                                               HIGHBD_DECL_SUFFIX) \
128
355
{ \
129
355
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
355
                   HIGHBD_TAIL_SUFFIX); \
131
355
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_c
Line
Count
Source
127
235
                                               HIGHBD_DECL_SUFFIX) \
128
235
{ \
129
235
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
235
                   HIGHBD_TAIL_SUFFIX); \
131
235
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
11.8k
                                               HIGHBD_DECL_SUFFIX) \
128
11.8k
{ \
129
11.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.8k
                   HIGHBD_TAIL_SUFFIX); \
131
11.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
302
                                               HIGHBD_DECL_SUFFIX) \
128
302
{ \
129
302
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
302
                   HIGHBD_TAIL_SUFFIX); \
131
302
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
702
                                               HIGHBD_DECL_SUFFIX) \
128
702
{ \
129
702
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
702
                   HIGHBD_TAIL_SUFFIX); \
131
702
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
2.02k
                                               HIGHBD_DECL_SUFFIX) \
128
2.02k
{ \
129
2.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.02k
                   HIGHBD_TAIL_SUFFIX); \
131
2.02k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
154
                                               HIGHBD_DECL_SUFFIX) \
128
154
{ \
129
154
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
154
                   HIGHBD_TAIL_SUFFIX); \
131
154
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
9.24k
                                               HIGHBD_DECL_SUFFIX) \
128
9.24k
{ \
129
9.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.24k
                   HIGHBD_TAIL_SUFFIX); \
131
9.24k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
197
                                               HIGHBD_DECL_SUFFIX) \
128
197
{ \
129
197
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
197
                   HIGHBD_TAIL_SUFFIX); \
131
197
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
60.4k
                                               HIGHBD_DECL_SUFFIX) \
128
60.4k
{ \
129
60.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
60.4k
                   HIGHBD_TAIL_SUFFIX); \
131
60.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
74
                                               HIGHBD_DECL_SUFFIX) \
128
74
{ \
129
74
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
74
                   HIGHBD_TAIL_SUFFIX); \
131
74
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
10.4k
                                               HIGHBD_DECL_SUFFIX) \
128
10.4k
{ \
129
10.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.4k
                   HIGHBD_TAIL_SUFFIX); \
131
10.4k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
446
                                               HIGHBD_DECL_SUFFIX) \
128
446
{ \
129
446
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
446
                   HIGHBD_TAIL_SUFFIX); \
131
446
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
5.50k
                                               HIGHBD_DECL_SUFFIX) \
128
5.50k
{ \
129
5.50k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.50k
                   HIGHBD_TAIL_SUFFIX); \
131
5.50k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
16.5k
                                               HIGHBD_DECL_SUFFIX) \
128
16.5k
{ \
129
16.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.5k
                   HIGHBD_TAIL_SUFFIX); \
131
16.5k
}
132
133
#define inv_txfm_fn64(pfx, w, h, shift) \
134
inv_txfm_fn(dct, dct, DCT_DCT, pfx, w, h, shift)
135
136
#define inv_txfm_fn32(pfx, w, h, shift) \
137
inv_txfm_fn64(pfx, w, h, shift) \
138
inv_txfm_fn(identity, identity, IDTX, pfx, w, h, shift)
139
140
#define inv_txfm_fn16(pfx, w, h, shift) \
141
inv_txfm_fn32(pfx, w, h, shift) \
142
inv_txfm_fn(adst,     dct,      ADST_DCT,          pfx,  w, h, shift) \
143
inv_txfm_fn(dct,      adst,     DCT_ADST,          pfx, w, h, shift) \
144
inv_txfm_fn(adst,     adst,     ADST_ADST,         pfx, w, h, shift) \
145
inv_txfm_fn(dct,      flipadst, DCT_FLIPADST,      pfx, w, h, shift) \
146
inv_txfm_fn(flipadst, dct,      FLIPADST_DCT,      pfx, w, h, shift) \
147
inv_txfm_fn(adst,     flipadst, ADST_FLIPADST,     pfx, w, h, shift) \
148
inv_txfm_fn(flipadst, adst,     FLIPADST_ADST,     pfx, w, h, shift) \
149
inv_txfm_fn(flipadst, flipadst, FLIPADST_FLIPADST, pfx, w, h, shift) \
150
inv_txfm_fn(identity, dct,      H_DCT,             pfx, w, h, shift) \
151
inv_txfm_fn(dct,      identity, V_DCT,             pfx, w, h, shift) \
152
153
#define inv_txfm_fn84(pfx, w, h, shift) \
154
inv_txfm_fn16(pfx, w, h, shift) \
155
inv_txfm_fn(identity, flipadst, H_FLIPADST, pfx, w, h, shift) \
156
inv_txfm_fn(flipadst, identity, V_FLIPADST, pfx, w, h, shift) \
157
inv_txfm_fn(identity, adst,     H_ADST,     pfx, w, h, shift) \
158
inv_txfm_fn(adst,     identity, V_ADST,     pfx, w, h, shift) \
159
160
inv_txfm_fn84( ,  4,  4, 0)
161
inv_txfm_fn84(R,  4,  8, 0)
162
inv_txfm_fn84(R,  4, 16, 1)
163
inv_txfm_fn84(R,  8,  4, 0)
164
inv_txfm_fn84( ,  8,  8, 1)
165
inv_txfm_fn84(R,  8, 16, 1)
166
inv_txfm_fn32(R,  8, 32, 2)
167
inv_txfm_fn84(R, 16,  4, 1)
168
inv_txfm_fn84(R, 16,  8, 1)
169
inv_txfm_fn16( , 16, 16, 2)
170
inv_txfm_fn32(R, 16, 32, 1)
171
inv_txfm_fn64(R, 16, 64, 2)
172
inv_txfm_fn32(R, 32,  8, 2)
173
inv_txfm_fn32(R, 32, 16, 1)
174
inv_txfm_fn32( , 32, 32, 2)
175
inv_txfm_fn64(R, 32, 64, 1)
176
inv_txfm_fn64(R, 64, 16, 2)
177
inv_txfm_fn64(R, 64, 32, 1)
178
inv_txfm_fn64( , 64, 64, 2)
179
180
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
181
  ARCH_AARCH64 || \
182
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
183
))
184
static void inv_txfm_add_wht_wht_4x4_c(pixel *dst, const ptrdiff_t stride,
185
                                       coef *const coeff, const int eob
186
                                       HIGHBD_DECL_SUFFIX)
187
91.7k
{
188
91.7k
    int32_t tmp[4 * 4], *c = tmp;
189
458k
    for (int y = 0; y < 4; y++, c += 4) {
190
1.83M
        for (int x = 0; x < 4; x++)
191
1.46M
            c[x] = coeff[y + x * 4] >> 2;
192
367k
        dav1d_inv_wht4_1d_c(c, 1);
193
367k
    }
194
91.7k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
458k
    for (int x = 0; x < 4; x++)
197
367k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
91.7k
    c = tmp;
200
458k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
1.83M
        for (int x = 0; x < 4; x++)
202
1.46M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
91.7k
}
204
#endif
205
206
#if HAVE_ASM
207
#if ARCH_AARCH64 || ARCH_ARM
208
#include "src/arm/itx.h"
209
#elif ARCH_LOONGARCH64
210
#include "src/loongarch/itx.h"
211
#elif ARCH_PPC64LE
212
#include "src/ppc/itx.h"
213
#elif ARCH_RISCV
214
#include "src/riscv/itx.h"
215
#elif ARCH_X86
216
#include "src/x86/itx.h"
217
#endif
218
#endif
219
220
23.3k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
23.3k
#define assign_itx_all_fn64(w, h, pfx) \
222
443k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
443k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
23.3k
#define assign_itx_all_fn32(w, h, pfx) \
226
326k
    assign_itx_all_fn64(w, h, pfx); \
227
326k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
326k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
23.3k
#define assign_itx_all_fn16(w, h, pfx) \
231
209k
    assign_itx_all_fn32(w, h, pfx); \
232
209k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
209k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
209k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
209k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
209k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
209k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
209k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
209k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
209k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
209k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
209k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
209k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
209k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
209k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
209k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
209k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
209k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
209k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
209k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
209k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
23.3k
#define assign_itx_all_fn84(w, h, pfx) \
254
186k
    assign_itx_all_fn16(w, h, pfx); \
255
186k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
186k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
186k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
186k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
186k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
186k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
186k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
186k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
23.3k
264
23.3k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
23.3k
  ARCH_AARCH64 || \
266
23.3k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
23.3k
))
268
23.3k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
23.3k
#endif
270
23.3k
    assign_itx_all_fn84( 4,  4, );
271
23.3k
    assign_itx_all_fn84( 4,  8, R);
272
23.3k
    assign_itx_all_fn84( 4, 16, R);
273
23.3k
    assign_itx_all_fn84( 8,  4, R);
274
23.3k
    assign_itx_all_fn84( 8,  8, );
275
23.3k
    assign_itx_all_fn84( 8, 16, R);
276
23.3k
    assign_itx_all_fn32( 8, 32, R);
277
23.3k
    assign_itx_all_fn84(16,  4, R);
278
23.3k
    assign_itx_all_fn84(16,  8, R);
279
23.3k
    assign_itx_all_fn16(16, 16, );
280
23.3k
    assign_itx_all_fn32(16, 32, R);
281
23.3k
    assign_itx_all_fn64(16, 64, R);
282
23.3k
    assign_itx_all_fn32(32,  8, R);
283
23.3k
    assign_itx_all_fn32(32, 16, R);
284
23.3k
    assign_itx_all_fn32(32, 32, );
285
23.3k
    assign_itx_all_fn64(32, 64, R);
286
23.3k
    assign_itx_all_fn64(64, 16, R);
287
23.3k
    assign_itx_all_fn64(64, 32, R);
288
23.3k
    assign_itx_all_fn64(64, 64, );
289
290
23.3k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
23.3k
    if (!all_simd)
310
23.3k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
23.3k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
10.4k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
10.4k
#define assign_itx_all_fn64(w, h, pfx) \
222
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
10.4k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
10.4k
#define assign_itx_all_fn32(w, h, pfx) \
226
10.4k
    assign_itx_all_fn64(w, h, pfx); \
227
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
10.4k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
10.4k
#define assign_itx_all_fn16(w, h, pfx) \
231
10.4k
    assign_itx_all_fn32(w, h, pfx); \
232
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
10.4k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
10.4k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
10.4k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
10.4k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
10.4k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
10.4k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
10.4k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
10.4k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
10.4k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
10.4k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
10.4k
#define assign_itx_all_fn84(w, h, pfx) \
254
10.4k
    assign_itx_all_fn16(w, h, pfx); \
255
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
10.4k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
10.4k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
10.4k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
10.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
10.4k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
10.4k
264
10.4k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
10.4k
  ARCH_AARCH64 || \
266
10.4k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
10.4k
))
268
10.4k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
10.4k
#endif
270
10.4k
    assign_itx_all_fn84( 4,  4, );
271
10.4k
    assign_itx_all_fn84( 4,  8, R);
272
10.4k
    assign_itx_all_fn84( 4, 16, R);
273
10.4k
    assign_itx_all_fn84( 8,  4, R);
274
10.4k
    assign_itx_all_fn84( 8,  8, );
275
10.4k
    assign_itx_all_fn84( 8, 16, R);
276
10.4k
    assign_itx_all_fn32( 8, 32, R);
277
10.4k
    assign_itx_all_fn84(16,  4, R);
278
10.4k
    assign_itx_all_fn84(16,  8, R);
279
10.4k
    assign_itx_all_fn16(16, 16, );
280
10.4k
    assign_itx_all_fn32(16, 32, R);
281
10.4k
    assign_itx_all_fn64(16, 64, R);
282
10.4k
    assign_itx_all_fn32(32,  8, R);
283
10.4k
    assign_itx_all_fn32(32, 16, R);
284
10.4k
    assign_itx_all_fn32(32, 32, );
285
10.4k
    assign_itx_all_fn64(32, 64, R);
286
10.4k
    assign_itx_all_fn64(64, 16, R);
287
10.4k
    assign_itx_all_fn64(64, 32, R);
288
10.4k
    assign_itx_all_fn64(64, 64, );
289
290
10.4k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
10.4k
    if (!all_simd)
310
10.4k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
10.4k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
12.8k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
12.8k
#define assign_itx_all_fn64(w, h, pfx) \
222
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
12.8k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
12.8k
#define assign_itx_all_fn32(w, h, pfx) \
226
12.8k
    assign_itx_all_fn64(w, h, pfx); \
227
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
12.8k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
12.8k
#define assign_itx_all_fn16(w, h, pfx) \
231
12.8k
    assign_itx_all_fn32(w, h, pfx); \
232
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
12.8k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
12.8k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
12.8k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
12.8k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
12.8k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
12.8k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
12.8k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
12.8k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
12.8k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
12.8k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
12.8k
#define assign_itx_all_fn84(w, h, pfx) \
254
12.8k
    assign_itx_all_fn16(w, h, pfx); \
255
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
12.8k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
12.8k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
12.8k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
12.8k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
12.8k
264
12.8k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
12.8k
  ARCH_AARCH64 || \
266
12.8k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
12.8k
))
268
12.8k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
12.8k
#endif
270
12.8k
    assign_itx_all_fn84( 4,  4, );
271
12.8k
    assign_itx_all_fn84( 4,  8, R);
272
12.8k
    assign_itx_all_fn84( 4, 16, R);
273
12.8k
    assign_itx_all_fn84( 8,  4, R);
274
12.8k
    assign_itx_all_fn84( 8,  8, );
275
12.8k
    assign_itx_all_fn84( 8, 16, R);
276
12.8k
    assign_itx_all_fn32( 8, 32, R);
277
12.8k
    assign_itx_all_fn84(16,  4, R);
278
12.8k
    assign_itx_all_fn84(16,  8, R);
279
12.8k
    assign_itx_all_fn16(16, 16, );
280
12.8k
    assign_itx_all_fn32(16, 32, R);
281
12.8k
    assign_itx_all_fn64(16, 64, R);
282
12.8k
    assign_itx_all_fn32(32,  8, R);
283
12.8k
    assign_itx_all_fn32(32, 16, R);
284
12.8k
    assign_itx_all_fn32(32, 32, );
285
12.8k
    assign_itx_all_fn64(32, 64, R);
286
12.8k
    assign_itx_all_fn64(64, 16, R);
287
12.8k
    assign_itx_all_fn64(64, 32, R);
288
12.8k
    assign_itx_all_fn64(64, 64, );
289
290
12.8k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
12.8k
    if (!all_simd)
310
12.8k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
12.8k
}