Coverage Report

Created: 2026-07-16 06:31

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
318k
{
48
318k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
318k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
318k
    const int has_dconly = txtp == DCT_DCT;
51
318k
    assert(w >= 4 && w <= 64);
52
318k
    assert(h >= 4 && h <= 64);
53
318k
    assert(eob >= 0);
54
55
318k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
318k
    const int rnd = (1 << shift) >> 1;
57
58
318k
    if (eob < has_dconly) {
59
160k
        int dc = coeff[0];
60
160k
        coeff[0] = 0;
61
160k
        if (is_rect2)
62
22.8k
            dc = (dc * 181 + 128) >> 8;
63
160k
        dc = (dc * 181 + 128) >> 8;
64
160k
        dc = (dc + rnd) >> shift;
65
160k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
6.85M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
324M
            for (int x = 0; x < w; x++)
68
317M
                dst[x] = iclip_pixel(dst[x] + dc);
69
160k
        return;
70
160k
    }
71
72
157k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
157k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
157k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
157k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
157k
#if BITDEPTH == 8
77
157k
    const int row_clip_min = INT16_MIN;
78
157k
    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
157k
    const int row_clip_max = ~row_clip_min;
84
157k
    const int col_clip_max = ~col_clip_min;
85
86
157k
    int32_t tmp[64 * 64], *c = tmp;
87
157k
    int last_nonzero_col; // in first 1d itx
88
157k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
9.17k
        last_nonzero_col = imin(sh - 1, eob);
90
148k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
5.60k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
142k
    } else {
93
142k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
142k
    }
95
157k
    assert(last_nonzero_col < sh);
96
914k
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
756k
        if (is_rect2)
98
5.85M
            for (int x = 0; x < sw; x++)
99
5.54M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
446k
        else
101
7.53M
            for (int x = 0; x < sw; x++)
102
7.09M
                c[x] = coeff[y + x * sh];
103
756k
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
756k
    }
105
157k
    if (last_nonzero_col + 1 < sh)
106
131k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
157k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
52.2M
    for (int i = 0; i < w * sh; i++)
110
52.0M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
2.67M
    for (int x = 0; x < w; x++)
113
2.51M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
157k
    c = tmp;
116
2.84M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
73.4M
        for (int x = 0; x < w; x++)
118
70.7M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
157k
}
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
318k
                                               HIGHBD_DECL_SUFFIX) \
128
318k
{ \
129
318k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
318k
                   HIGHBD_TAIL_SUFFIX); \
131
318k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
5.48k
                                               HIGHBD_DECL_SUFFIX) \
128
5.48k
{ \
129
5.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.48k
                   HIGHBD_TAIL_SUFFIX); \
131
5.48k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
2.96k
                                               HIGHBD_DECL_SUFFIX) \
128
2.96k
{ \
129
2.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.96k
                   HIGHBD_TAIL_SUFFIX); \
131
2.96k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
2.76k
                                               HIGHBD_DECL_SUFFIX) \
128
2.76k
{ \
129
2.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.76k
                   HIGHBD_TAIL_SUFFIX); \
131
2.76k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_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_adst_adst_4x4_c
Line
Count
Source
127
3.07k
                                               HIGHBD_DECL_SUFFIX) \
128
3.07k
{ \
129
3.07k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.07k
                   HIGHBD_TAIL_SUFFIX); \
131
3.07k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_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_adst_flipadst_4x4_c
Line
Count
Source
127
275
                                               HIGHBD_DECL_SUFFIX) \
128
275
{ \
129
275
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
275
                   HIGHBD_TAIL_SUFFIX); \
131
275
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
282
                                               HIGHBD_DECL_SUFFIX) \
128
282
{ \
129
282
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
282
                   HIGHBD_TAIL_SUFFIX); \
131
282
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_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_flipadst_flipadst_4x4_c
Line
Count
Source
127
236
                                               HIGHBD_DECL_SUFFIX) \
128
236
{ \
129
236
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
236
                   HIGHBD_TAIL_SUFFIX); \
131
236
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
1.10k
                                               HIGHBD_DECL_SUFFIX) \
128
1.10k
{ \
129
1.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.10k
                   HIGHBD_TAIL_SUFFIX); \
131
1.10k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
584
                                               HIGHBD_DECL_SUFFIX) \
128
584
{ \
129
584
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
584
                   HIGHBD_TAIL_SUFFIX); \
131
584
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_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_4x4_c
Line
Count
Source
127
201
                                               HIGHBD_DECL_SUFFIX) \
128
201
{ \
129
201
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
201
                   HIGHBD_TAIL_SUFFIX); \
131
201
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
450
                                               HIGHBD_DECL_SUFFIX) \
128
450
{ \
129
450
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
450
                   HIGHBD_TAIL_SUFFIX); \
131
450
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
357
                                               HIGHBD_DECL_SUFFIX) \
128
357
{ \
129
357
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
357
                   HIGHBD_TAIL_SUFFIX); \
131
357
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
2.17k
                                               HIGHBD_DECL_SUFFIX) \
128
2.17k
{ \
129
2.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.17k
                   HIGHBD_TAIL_SUFFIX); \
131
2.17k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_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_adst_dct_4x8_c
Line
Count
Source
127
1.15k
                                               HIGHBD_DECL_SUFFIX) \
128
1.15k
{ \
129
1.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.15k
                   HIGHBD_TAIL_SUFFIX); \
131
1.15k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_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_adst_adst_4x8_c
Line
Count
Source
127
1.55k
                                               HIGHBD_DECL_SUFFIX) \
128
1.55k
{ \
129
1.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.55k
                   HIGHBD_TAIL_SUFFIX); \
131
1.55k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
257
                                               HIGHBD_DECL_SUFFIX) \
128
257
{ \
129
257
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
257
                   HIGHBD_TAIL_SUFFIX); \
131
257
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
121
                                               HIGHBD_DECL_SUFFIX) \
128
121
{ \
129
121
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
121
                   HIGHBD_TAIL_SUFFIX); \
131
121
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
161
                                               HIGHBD_DECL_SUFFIX) \
128
161
{ \
129
161
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
161
                   HIGHBD_TAIL_SUFFIX); \
131
161
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
157
                                               HIGHBD_DECL_SUFFIX) \
128
157
{ \
129
157
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
157
                   HIGHBD_TAIL_SUFFIX); \
131
157
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
216
                                               HIGHBD_DECL_SUFFIX) \
128
216
{ \
129
216
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
216
                   HIGHBD_TAIL_SUFFIX); \
131
216
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
538
                                               HIGHBD_DECL_SUFFIX) \
128
538
{ \
129
538
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
538
                   HIGHBD_TAIL_SUFFIX); \
131
538
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
319
                                               HIGHBD_DECL_SUFFIX) \
128
319
{ \
129
319
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
319
                   HIGHBD_TAIL_SUFFIX); \
131
319
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_c
Line
Count
Source
127
124
                                               HIGHBD_DECL_SUFFIX) \
128
124
{ \
129
124
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
124
                   HIGHBD_TAIL_SUFFIX); \
131
124
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
167
                                               HIGHBD_DECL_SUFFIX) \
128
167
{ \
129
167
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
167
                   HIGHBD_TAIL_SUFFIX); \
131
167
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_c
Line
Count
Source
127
246
                                               HIGHBD_DECL_SUFFIX) \
128
246
{ \
129
246
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
246
                   HIGHBD_TAIL_SUFFIX); \
131
246
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_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_4x16_c
Line
Count
Source
127
1.43k
                                               HIGHBD_DECL_SUFFIX) \
128
1.43k
{ \
129
1.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.43k
                   HIGHBD_TAIL_SUFFIX); \
131
1.43k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
926
                                               HIGHBD_DECL_SUFFIX) \
128
926
{ \
129
926
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
926
                   HIGHBD_TAIL_SUFFIX); \
131
926
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
678
                                               HIGHBD_DECL_SUFFIX) \
128
678
{ \
129
678
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
678
                   HIGHBD_TAIL_SUFFIX); \
131
678
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
507
                                               HIGHBD_DECL_SUFFIX) \
128
507
{ \
129
507
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
507
                   HIGHBD_TAIL_SUFFIX); \
131
507
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
786
                                               HIGHBD_DECL_SUFFIX) \
128
786
{ \
129
786
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
786
                   HIGHBD_TAIL_SUFFIX); \
131
786
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
120
                                               HIGHBD_DECL_SUFFIX) \
128
120
{ \
129
120
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
120
                   HIGHBD_TAIL_SUFFIX); \
131
120
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
130
                                               HIGHBD_DECL_SUFFIX) \
128
130
{ \
129
130
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
130
                   HIGHBD_TAIL_SUFFIX); \
131
130
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
135
                                               HIGHBD_DECL_SUFFIX) \
128
135
{ \
129
135
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
135
                   HIGHBD_TAIL_SUFFIX); \
131
135
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
114
                                               HIGHBD_DECL_SUFFIX) \
128
114
{ \
129
114
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
114
                   HIGHBD_TAIL_SUFFIX); \
131
114
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_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_4x16_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_identity_dct_4x16_c
Line
Count
Source
127
209
                                               HIGHBD_DECL_SUFFIX) \
128
209
{ \
129
209
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
209
                   HIGHBD_TAIL_SUFFIX); \
131
209
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
251
                                               HIGHBD_DECL_SUFFIX) \
128
251
{ \
129
251
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
251
                   HIGHBD_TAIL_SUFFIX); \
131
251
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
86
                                               HIGHBD_DECL_SUFFIX) \
128
86
{ \
129
86
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
86
                   HIGHBD_TAIL_SUFFIX); \
131
86
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_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_identity_adst_4x16_c
Line
Count
Source
127
130
                                               HIGHBD_DECL_SUFFIX) \
128
130
{ \
129
130
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
130
                   HIGHBD_TAIL_SUFFIX); \
131
130
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
2.25k
                                               HIGHBD_DECL_SUFFIX) \
128
2.25k
{ \
129
2.25k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.25k
                   HIGHBD_TAIL_SUFFIX); \
131
2.25k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
1.11k
                                               HIGHBD_DECL_SUFFIX) \
128
1.11k
{ \
129
1.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.11k
                   HIGHBD_TAIL_SUFFIX); \
131
1.11k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
1.42k
                                               HIGHBD_DECL_SUFFIX) \
128
1.42k
{ \
129
1.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.42k
                   HIGHBD_TAIL_SUFFIX); \
131
1.42k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
1.41k
                                               HIGHBD_DECL_SUFFIX) \
128
1.41k
{ \
129
1.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.41k
                   HIGHBD_TAIL_SUFFIX); \
131
1.41k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
1.82k
                                               HIGHBD_DECL_SUFFIX) \
128
1.82k
{ \
129
1.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.82k
                   HIGHBD_TAIL_SUFFIX); \
131
1.82k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
190
                                               HIGHBD_DECL_SUFFIX) \
128
190
{ \
129
190
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
190
                   HIGHBD_TAIL_SUFFIX); \
131
190
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
185
                                               HIGHBD_DECL_SUFFIX) \
128
185
{ \
129
185
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
185
                   HIGHBD_TAIL_SUFFIX); \
131
185
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
185
                                               HIGHBD_DECL_SUFFIX) \
128
185
{ \
129
185
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
185
                   HIGHBD_TAIL_SUFFIX); \
131
185
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
133
                                               HIGHBD_DECL_SUFFIX) \
128
133
{ \
129
133
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
133
                   HIGHBD_TAIL_SUFFIX); \
131
133
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
142
                                               HIGHBD_DECL_SUFFIX) \
128
142
{ \
129
142
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
142
                   HIGHBD_TAIL_SUFFIX); \
131
142
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
530
                                               HIGHBD_DECL_SUFFIX) \
128
530
{ \
129
530
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
530
                   HIGHBD_TAIL_SUFFIX); \
131
530
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
222
                                               HIGHBD_DECL_SUFFIX) \
128
222
{ \
129
222
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
222
                   HIGHBD_TAIL_SUFFIX); \
131
222
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
242
                                               HIGHBD_DECL_SUFFIX) \
128
242
{ \
129
242
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
242
                   HIGHBD_TAIL_SUFFIX); \
131
242
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_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_adst_identity_8x4_c
Line
Count
Source
127
291
                                               HIGHBD_DECL_SUFFIX) \
128
291
{ \
129
291
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
291
                   HIGHBD_TAIL_SUFFIX); \
131
291
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
164
                                               HIGHBD_DECL_SUFFIX) \
128
164
{ \
129
164
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
164
                   HIGHBD_TAIL_SUFFIX); \
131
164
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
7.94k
                                               HIGHBD_DECL_SUFFIX) \
128
7.94k
{ \
129
7.94k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.94k
                   HIGHBD_TAIL_SUFFIX); \
131
7.94k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
3.16k
                                               HIGHBD_DECL_SUFFIX) \
128
3.16k
{ \
129
3.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.16k
                   HIGHBD_TAIL_SUFFIX); \
131
3.16k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_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_dct_adst_8x8_c
Line
Count
Source
127
3.57k
                                               HIGHBD_DECL_SUFFIX) \
128
3.57k
{ \
129
3.57k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.57k
                   HIGHBD_TAIL_SUFFIX); \
131
3.57k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_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_flipadst_adst_8x8_c
Line
Count
Source
127
473
                                               HIGHBD_DECL_SUFFIX) \
128
473
{ \
129
473
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
473
                   HIGHBD_TAIL_SUFFIX); \
131
473
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
398
                                               HIGHBD_DECL_SUFFIX) \
128
398
{ \
129
398
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
398
                   HIGHBD_TAIL_SUFFIX); \
131
398
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_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_dct_flipadst_8x8_c
Line
Count
Source
127
397
                                               HIGHBD_DECL_SUFFIX) \
128
397
{ \
129
397
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
397
                   HIGHBD_TAIL_SUFFIX); \
131
397
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
356
                                               HIGHBD_DECL_SUFFIX) \
128
356
{ \
129
356
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
356
                   HIGHBD_TAIL_SUFFIX); \
131
356
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
948
                                               HIGHBD_DECL_SUFFIX) \
128
948
{ \
129
948
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
948
                   HIGHBD_TAIL_SUFFIX); \
131
948
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
564
                                               HIGHBD_DECL_SUFFIX) \
128
564
{ \
129
564
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
564
                   HIGHBD_TAIL_SUFFIX); \
131
564
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_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_identity_flipadst_8x8_c
Line
Count
Source
127
255
                                               HIGHBD_DECL_SUFFIX) \
128
255
{ \
129
255
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
255
                   HIGHBD_TAIL_SUFFIX); \
131
255
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
398
                                               HIGHBD_DECL_SUFFIX) \
128
398
{ \
129
398
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
398
                   HIGHBD_TAIL_SUFFIX); \
131
398
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
246
                                               HIGHBD_DECL_SUFFIX) \
128
246
{ \
129
246
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
246
                   HIGHBD_TAIL_SUFFIX); \
131
246
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
3.59k
                                               HIGHBD_DECL_SUFFIX) \
128
3.59k
{ \
129
3.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.59k
                   HIGHBD_TAIL_SUFFIX); \
131
3.59k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
866
                                               HIGHBD_DECL_SUFFIX) \
128
866
{ \
129
866
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
866
                   HIGHBD_TAIL_SUFFIX); \
131
866
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
1.59k
                                               HIGHBD_DECL_SUFFIX) \
128
1.59k
{ \
129
1.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.59k
                   HIGHBD_TAIL_SUFFIX); \
131
1.59k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
1.48k
                                               HIGHBD_DECL_SUFFIX) \
128
1.48k
{ \
129
1.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.48k
                   HIGHBD_TAIL_SUFFIX); \
131
1.48k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
1.55k
                                               HIGHBD_DECL_SUFFIX) \
128
1.55k
{ \
129
1.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.55k
                   HIGHBD_TAIL_SUFFIX); \
131
1.55k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_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_adst_flipadst_8x16_c
Line
Count
Source
127
188
                                               HIGHBD_DECL_SUFFIX) \
128
188
{ \
129
188
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
188
                   HIGHBD_TAIL_SUFFIX); \
131
188
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_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_dct_flipadst_8x16_c
Line
Count
Source
127
243
                                               HIGHBD_DECL_SUFFIX) \
128
243
{ \
129
243
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
243
                   HIGHBD_TAIL_SUFFIX); \
131
243
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
160
                                               HIGHBD_DECL_SUFFIX) \
128
160
{ \
129
160
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
160
                   HIGHBD_TAIL_SUFFIX); \
131
160
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
525
                                               HIGHBD_DECL_SUFFIX) \
128
525
{ \
129
525
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
525
                   HIGHBD_TAIL_SUFFIX); \
131
525
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
209
                                               HIGHBD_DECL_SUFFIX) \
128
209
{ \
129
209
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
209
                   HIGHBD_TAIL_SUFFIX); \
131
209
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_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_identity_flipadst_8x16_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_adst_identity_8x16_c
Line
Count
Source
127
120
                                               HIGHBD_DECL_SUFFIX) \
128
120
{ \
129
120
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
120
                   HIGHBD_TAIL_SUFFIX); \
131
120
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
202
                                               HIGHBD_DECL_SUFFIX) \
128
202
{ \
129
202
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
202
                   HIGHBD_TAIL_SUFFIX); \
131
202
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
2.47k
                                               HIGHBD_DECL_SUFFIX) \
128
2.47k
{ \
129
2.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.47k
                   HIGHBD_TAIL_SUFFIX); \
131
2.47k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
161
                                               HIGHBD_DECL_SUFFIX) \
128
161
{ \
129
161
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
161
                   HIGHBD_TAIL_SUFFIX); \
131
161
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
1.40k
                                               HIGHBD_DECL_SUFFIX) \
128
1.40k
{ \
129
1.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.40k
                   HIGHBD_TAIL_SUFFIX); \
131
1.40k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
771
                                               HIGHBD_DECL_SUFFIX) \
128
771
{ \
129
771
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
771
                   HIGHBD_TAIL_SUFFIX); \
131
771
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
780
                                               HIGHBD_DECL_SUFFIX) \
128
780
{ \
129
780
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
780
                   HIGHBD_TAIL_SUFFIX); \
131
780
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
550
                                               HIGHBD_DECL_SUFFIX) \
128
550
{ \
129
550
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
550
                   HIGHBD_TAIL_SUFFIX); \
131
550
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
811
                                               HIGHBD_DECL_SUFFIX) \
128
811
{ \
129
811
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
811
                   HIGHBD_TAIL_SUFFIX); \
131
811
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
128
                                               HIGHBD_DECL_SUFFIX) \
128
128
{ \
129
128
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
128
                   HIGHBD_TAIL_SUFFIX); \
131
128
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
136
                                               HIGHBD_DECL_SUFFIX) \
128
136
{ \
129
136
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
136
                   HIGHBD_TAIL_SUFFIX); \
131
136
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
186
                                               HIGHBD_DECL_SUFFIX) \
128
186
{ \
129
186
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
186
                   HIGHBD_TAIL_SUFFIX); \
131
186
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
118
                                               HIGHBD_DECL_SUFFIX) \
128
118
{ \
129
118
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
118
                   HIGHBD_TAIL_SUFFIX); \
131
118
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
88
                                               HIGHBD_DECL_SUFFIX) \
128
88
{ \
129
88
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
88
                   HIGHBD_TAIL_SUFFIX); \
131
88
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
310
                                               HIGHBD_DECL_SUFFIX) \
128
310
{ \
129
310
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
310
                   HIGHBD_TAIL_SUFFIX); \
131
310
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_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_flipadst_identity_16x4_c
Line
Count
Source
127
376
                                               HIGHBD_DECL_SUFFIX) \
128
376
{ \
129
376
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
376
                   HIGHBD_TAIL_SUFFIX); \
131
376
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
120
                                               HIGHBD_DECL_SUFFIX) \
128
120
{ \
129
120
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
120
                   HIGHBD_TAIL_SUFFIX); \
131
120
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
180
                                               HIGHBD_DECL_SUFFIX) \
128
180
{ \
129
180
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
180
                   HIGHBD_TAIL_SUFFIX); \
131
180
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
241
                                               HIGHBD_DECL_SUFFIX) \
128
241
{ \
129
241
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
241
                   HIGHBD_TAIL_SUFFIX); \
131
241
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
3.64k
                                               HIGHBD_DECL_SUFFIX) \
128
3.64k
{ \
129
3.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.64k
                   HIGHBD_TAIL_SUFFIX); \
131
3.64k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
750
                                               HIGHBD_DECL_SUFFIX) \
128
750
{ \
129
750
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
750
                   HIGHBD_TAIL_SUFFIX); \
131
750
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
1.81k
                                               HIGHBD_DECL_SUFFIX) \
128
1.81k
{ \
129
1.81k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.81k
                   HIGHBD_TAIL_SUFFIX); \
131
1.81k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
1.34k
                                               HIGHBD_DECL_SUFFIX) \
128
1.34k
{ \
129
1.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.34k
                   HIGHBD_TAIL_SUFFIX); \
131
1.34k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
1.77k
                                               HIGHBD_DECL_SUFFIX) \
128
1.77k
{ \
129
1.77k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.77k
                   HIGHBD_TAIL_SUFFIX); \
131
1.77k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
167
                                               HIGHBD_DECL_SUFFIX) \
128
167
{ \
129
167
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
167
                   HIGHBD_TAIL_SUFFIX); \
131
167
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
231
                                               HIGHBD_DECL_SUFFIX) \
128
231
{ \
129
231
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
231
                   HIGHBD_TAIL_SUFFIX); \
131
231
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
253
                                               HIGHBD_DECL_SUFFIX) \
128
253
{ \
129
253
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
253
                   HIGHBD_TAIL_SUFFIX); \
131
253
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
167
                                               HIGHBD_DECL_SUFFIX) \
128
167
{ \
129
167
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
167
                   HIGHBD_TAIL_SUFFIX); \
131
167
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
165
                                               HIGHBD_DECL_SUFFIX) \
128
165
{ \
129
165
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
165
                   HIGHBD_TAIL_SUFFIX); \
131
165
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
426
                                               HIGHBD_DECL_SUFFIX) \
128
426
{ \
129
426
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
426
                   HIGHBD_TAIL_SUFFIX); \
131
426
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
246
                                               HIGHBD_DECL_SUFFIX) \
128
246
{ \
129
246
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
246
                   HIGHBD_TAIL_SUFFIX); \
131
246
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
201
                                               HIGHBD_DECL_SUFFIX) \
128
201
{ \
129
201
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
201
                   HIGHBD_TAIL_SUFFIX); \
131
201
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
89
                                               HIGHBD_DECL_SUFFIX) \
128
89
{ \
129
89
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
89
                   HIGHBD_TAIL_SUFFIX); \
131
89
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
204
                                               HIGHBD_DECL_SUFFIX) \
128
204
{ \
129
204
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
204
                   HIGHBD_TAIL_SUFFIX); \
131
204
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
127
                                               HIGHBD_DECL_SUFFIX) \
128
127
{ \
129
127
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
127
                   HIGHBD_TAIL_SUFFIX); \
131
127
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
7.43k
                                               HIGHBD_DECL_SUFFIX) \
128
7.43k
{ \
129
7.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.43k
                   HIGHBD_TAIL_SUFFIX); \
131
7.43k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
1.18k
                                               HIGHBD_DECL_SUFFIX) \
128
1.18k
{ \
129
1.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.18k
                   HIGHBD_TAIL_SUFFIX); \
131
1.18k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
5.77k
                                               HIGHBD_DECL_SUFFIX) \
128
5.77k
{ \
129
5.77k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.77k
                   HIGHBD_TAIL_SUFFIX); \
131
5.77k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
4.22k
                                               HIGHBD_DECL_SUFFIX) \
128
4.22k
{ \
129
4.22k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.22k
                   HIGHBD_TAIL_SUFFIX); \
131
4.22k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
5.21k
                                               HIGHBD_DECL_SUFFIX) \
128
5.21k
{ \
129
5.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.21k
                   HIGHBD_TAIL_SUFFIX); \
131
5.21k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
191
                                               HIGHBD_DECL_SUFFIX) \
128
191
{ \
129
191
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
191
                   HIGHBD_TAIL_SUFFIX); \
131
191
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
247
                                               HIGHBD_DECL_SUFFIX) \
128
247
{ \
129
247
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
247
                   HIGHBD_TAIL_SUFFIX); \
131
247
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
264
                                               HIGHBD_DECL_SUFFIX) \
128
264
{ \
129
264
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
264
                   HIGHBD_TAIL_SUFFIX); \
131
264
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
362
                                               HIGHBD_DECL_SUFFIX) \
128
362
{ \
129
362
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
362
                   HIGHBD_TAIL_SUFFIX); \
131
362
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_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_identity_16x16_c
Line
Count
Source
127
305
                                               HIGHBD_DECL_SUFFIX) \
128
305
{ \
129
305
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
305
                   HIGHBD_TAIL_SUFFIX); \
131
305
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_c
Line
Count
Source
127
160
                                               HIGHBD_DECL_SUFFIX) \
128
160
{ \
129
160
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
160
                   HIGHBD_TAIL_SUFFIX); \
131
160
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
14.4k
                                               HIGHBD_DECL_SUFFIX) \
128
14.4k
{ \
129
14.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.4k
                   HIGHBD_TAIL_SUFFIX); \
131
14.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
256
                                               HIGHBD_DECL_SUFFIX) \
128
256
{ \
129
256
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
256
                   HIGHBD_TAIL_SUFFIX); \
131
256
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
3.12k
                                               HIGHBD_DECL_SUFFIX) \
128
3.12k
{ \
129
3.12k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.12k
                   HIGHBD_TAIL_SUFFIX); \
131
3.12k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_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_identity_identity_32x8_c
Line
Count
Source
127
115
                                               HIGHBD_DECL_SUFFIX) \
128
115
{ \
129
115
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
115
                   HIGHBD_TAIL_SUFFIX); \
131
115
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
7.81k
                                               HIGHBD_DECL_SUFFIX) \
128
7.81k
{ \
129
7.81k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.81k
                   HIGHBD_TAIL_SUFFIX); \
131
7.81k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
97
                                               HIGHBD_DECL_SUFFIX) \
128
97
{ \
129
97
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
97
                   HIGHBD_TAIL_SUFFIX); \
131
97
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
79.9k
                                               HIGHBD_DECL_SUFFIX) \
128
79.9k
{ \
129
79.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
79.9k
                   HIGHBD_TAIL_SUFFIX); \
131
79.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
104
                                               HIGHBD_DECL_SUFFIX) \
128
104
{ \
129
104
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
104
                   HIGHBD_TAIL_SUFFIX); \
131
104
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
10.3k
                                               HIGHBD_DECL_SUFFIX) \
128
10.3k
{ \
129
10.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.3k
                   HIGHBD_TAIL_SUFFIX); \
131
10.3k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
720
                                               HIGHBD_DECL_SUFFIX) \
128
720
{ \
129
720
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
720
                   HIGHBD_TAIL_SUFFIX); \
131
720
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
5.52k
                                               HIGHBD_DECL_SUFFIX) \
128
5.52k
{ \
129
5.52k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.52k
                   HIGHBD_TAIL_SUFFIX); \
131
5.52k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
61.2k
                                               HIGHBD_DECL_SUFFIX) \
128
61.2k
{ \
129
61.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
61.2k
                   HIGHBD_TAIL_SUFFIX); \
131
61.2k
}
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
614k
{
188
614k
    int32_t tmp[4 * 4], *c = tmp;
189
3.07M
    for (int y = 0; y < 4; y++, c += 4) {
190
12.2M
        for (int x = 0; x < 4; x++)
191
9.83M
            c[x] = coeff[y + x * 4] >> 2;
192
2.45M
        dav1d_inv_wht4_1d_c(c, 1);
193
2.45M
    }
194
614k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
3.07M
    for (int x = 0; x < 4; x++)
197
2.45M
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
614k
    c = tmp;
200
3.07M
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
12.2M
        for (int x = 0; x < 4; x++)
202
9.83M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
614k
}
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
36.5k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
36.5k
#define assign_itx_all_fn64(w, h, pfx) \
222
694k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
694k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
36.5k
#define assign_itx_all_fn32(w, h, pfx) \
226
511k
    assign_itx_all_fn64(w, h, pfx); \
227
511k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
511k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
36.5k
#define assign_itx_all_fn16(w, h, pfx) \
231
329k
    assign_itx_all_fn32(w, h, pfx); \
232
329k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
329k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
329k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
329k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
329k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
329k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
329k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
329k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
329k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
329k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
329k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
329k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
329k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
329k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
329k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
329k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
329k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
329k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
329k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
329k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
36.5k
#define assign_itx_all_fn84(w, h, pfx) \
254
292k
    assign_itx_all_fn16(w, h, pfx); \
255
292k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
292k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
292k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
292k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
292k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
292k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
292k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
292k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
36.5k
264
36.5k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
36.5k
  ARCH_AARCH64 || \
266
36.5k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
36.5k
))
268
36.5k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
36.5k
#endif
270
36.5k
    assign_itx_all_fn84( 4,  4, );
271
36.5k
    assign_itx_all_fn84( 4,  8, R);
272
36.5k
    assign_itx_all_fn84( 4, 16, R);
273
36.5k
    assign_itx_all_fn84( 8,  4, R);
274
36.5k
    assign_itx_all_fn84( 8,  8, );
275
36.5k
    assign_itx_all_fn84( 8, 16, R);
276
36.5k
    assign_itx_all_fn32( 8, 32, R);
277
36.5k
    assign_itx_all_fn84(16,  4, R);
278
36.5k
    assign_itx_all_fn84(16,  8, R);
279
36.5k
    assign_itx_all_fn16(16, 16, );
280
36.5k
    assign_itx_all_fn32(16, 32, R);
281
36.5k
    assign_itx_all_fn64(16, 64, R);
282
36.5k
    assign_itx_all_fn32(32,  8, R);
283
36.5k
    assign_itx_all_fn32(32, 16, R);
284
36.5k
    assign_itx_all_fn32(32, 32, );
285
36.5k
    assign_itx_all_fn64(32, 64, R);
286
36.5k
    assign_itx_all_fn64(64, 16, R);
287
36.5k
    assign_itx_all_fn64(64, 32, R);
288
36.5k
    assign_itx_all_fn64(64, 64, );
289
290
36.5k
    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
36.5k
    if (!all_simd)
310
36.5k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
36.5k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
15.9k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
15.9k
#define assign_itx_all_fn64(w, h, pfx) \
222
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
15.9k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
15.9k
#define assign_itx_all_fn32(w, h, pfx) \
226
15.9k
    assign_itx_all_fn64(w, h, pfx); \
227
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
15.9k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
15.9k
#define assign_itx_all_fn16(w, h, pfx) \
231
15.9k
    assign_itx_all_fn32(w, h, pfx); \
232
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
15.9k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
15.9k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
15.9k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
15.9k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
15.9k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
15.9k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
15.9k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
15.9k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
15.9k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
15.9k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
15.9k
#define assign_itx_all_fn84(w, h, pfx) \
254
15.9k
    assign_itx_all_fn16(w, h, pfx); \
255
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
15.9k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
15.9k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
15.9k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
15.9k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
15.9k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
15.9k
264
15.9k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
15.9k
  ARCH_AARCH64 || \
266
15.9k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
15.9k
))
268
15.9k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
15.9k
#endif
270
15.9k
    assign_itx_all_fn84( 4,  4, );
271
15.9k
    assign_itx_all_fn84( 4,  8, R);
272
15.9k
    assign_itx_all_fn84( 4, 16, R);
273
15.9k
    assign_itx_all_fn84( 8,  4, R);
274
15.9k
    assign_itx_all_fn84( 8,  8, );
275
15.9k
    assign_itx_all_fn84( 8, 16, R);
276
15.9k
    assign_itx_all_fn32( 8, 32, R);
277
15.9k
    assign_itx_all_fn84(16,  4, R);
278
15.9k
    assign_itx_all_fn84(16,  8, R);
279
15.9k
    assign_itx_all_fn16(16, 16, );
280
15.9k
    assign_itx_all_fn32(16, 32, R);
281
15.9k
    assign_itx_all_fn64(16, 64, R);
282
15.9k
    assign_itx_all_fn32(32,  8, R);
283
15.9k
    assign_itx_all_fn32(32, 16, R);
284
15.9k
    assign_itx_all_fn32(32, 32, );
285
15.9k
    assign_itx_all_fn64(32, 64, R);
286
15.9k
    assign_itx_all_fn64(64, 16, R);
287
15.9k
    assign_itx_all_fn64(64, 32, R);
288
15.9k
    assign_itx_all_fn64(64, 64, );
289
290
15.9k
    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
15.9k
    if (!all_simd)
310
15.9k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
15.9k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
20.6k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
20.6k
#define assign_itx_all_fn64(w, h, pfx) \
222
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
20.6k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
20.6k
#define assign_itx_all_fn32(w, h, pfx) \
226
20.6k
    assign_itx_all_fn64(w, h, pfx); \
227
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
20.6k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
20.6k
#define assign_itx_all_fn16(w, h, pfx) \
231
20.6k
    assign_itx_all_fn32(w, h, pfx); \
232
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
20.6k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
20.6k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
20.6k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
20.6k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
20.6k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
20.6k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
20.6k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
20.6k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
20.6k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
20.6k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
20.6k
#define assign_itx_all_fn84(w, h, pfx) \
254
20.6k
    assign_itx_all_fn16(w, h, pfx); \
255
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
20.6k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
20.6k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
20.6k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
20.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
20.6k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
20.6k
264
20.6k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
20.6k
  ARCH_AARCH64 || \
266
20.6k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
20.6k
))
268
20.6k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
20.6k
#endif
270
20.6k
    assign_itx_all_fn84( 4,  4, );
271
20.6k
    assign_itx_all_fn84( 4,  8, R);
272
20.6k
    assign_itx_all_fn84( 4, 16, R);
273
20.6k
    assign_itx_all_fn84( 8,  4, R);
274
20.6k
    assign_itx_all_fn84( 8,  8, );
275
20.6k
    assign_itx_all_fn84( 8, 16, R);
276
20.6k
    assign_itx_all_fn32( 8, 32, R);
277
20.6k
    assign_itx_all_fn84(16,  4, R);
278
20.6k
    assign_itx_all_fn84(16,  8, R);
279
20.6k
    assign_itx_all_fn16(16, 16, );
280
20.6k
    assign_itx_all_fn32(16, 32, R);
281
20.6k
    assign_itx_all_fn64(16, 64, R);
282
20.6k
    assign_itx_all_fn32(32,  8, R);
283
20.6k
    assign_itx_all_fn32(32, 16, R);
284
20.6k
    assign_itx_all_fn32(32, 32, );
285
20.6k
    assign_itx_all_fn64(32, 64, R);
286
20.6k
    assign_itx_all_fn64(64, 16, R);
287
20.6k
    assign_itx_all_fn64(64, 32, R);
288
20.6k
    assign_itx_all_fn64(64, 64, );
289
290
20.6k
    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
20.6k
    if (!all_simd)
310
20.6k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
20.6k
}