Coverage Report

Created: 2026-06-15 06:24

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
356k
{
48
356k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
356k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
356k
    const int has_dconly = txtp == DCT_DCT;
51
356k
    assert(w >= 4 && w <= 64);
52
356k
    assert(h >= 4 && h <= 64);
53
356k
    assert(eob >= 0);
54
55
356k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
356k
    const int rnd = (1 << shift) >> 1;
57
58
356k
    if (eob < has_dconly) {
59
204k
        int dc = coeff[0];
60
204k
        coeff[0] = 0;
61
204k
        if (is_rect2)
62
21.3k
            dc = (dc * 181 + 128) >> 8;
63
204k
        dc = (dc * 181 + 128) >> 8;
64
204k
        dc = (dc + rnd) >> shift;
65
204k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
8.87M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
425M
            for (int x = 0; x < w; x++)
68
416M
                dst[x] = iclip_pixel(dst[x] + dc);
69
204k
        return;
70
204k
    }
71
72
152k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
152k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
152k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
152k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
152k
#if BITDEPTH == 8
77
152k
    const int row_clip_min = INT16_MIN;
78
152k
    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
152k
    const int row_clip_max = ~row_clip_min;
84
152k
    const int col_clip_max = ~col_clip_min;
85
86
152k
    int32_t tmp[64 * 64], *c = tmp;
87
152k
    int last_nonzero_col; // in first 1d itx
88
152k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
8.57k
        last_nonzero_col = imin(sh - 1, eob);
90
143k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
5.20k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
138k
    } else {
93
138k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
138k
    }
95
152k
    assert(last_nonzero_col < sh);
96
898k
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
746k
        if (is_rect2)
98
5.97M
            for (int x = 0; x < sw; x++)
99
5.66M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
438k
        else
101
7.41M
            for (int x = 0; x < sw; x++)
102
6.97M
                c[x] = coeff[y + x * sh];
103
746k
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
746k
    }
105
152k
    if (last_nonzero_col + 1 < sh)
106
125k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
152k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
50.5M
    for (int i = 0; i < w * sh; i++)
110
50.3M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
2.61M
    for (int x = 0; x < w; x++)
113
2.45M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
152k
    c = tmp;
116
2.70M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
68.8M
        for (int x = 0; x < w; x++)
118
66.3M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
152k
}
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
356k
                                               HIGHBD_DECL_SUFFIX) \
128
356k
{ \
129
356k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
356k
                   HIGHBD_TAIL_SUFFIX); \
131
356k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
4.27k
                                               HIGHBD_DECL_SUFFIX) \
128
4.27k
{ \
129
4.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.27k
                   HIGHBD_TAIL_SUFFIX); \
131
4.27k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
2.30k
                                               HIGHBD_DECL_SUFFIX) \
128
2.30k
{ \
129
2.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.30k
                   HIGHBD_TAIL_SUFFIX); \
131
2.30k
}
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.48k
                                               HIGHBD_DECL_SUFFIX) \
128
2.48k
{ \
129
2.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.48k
                   HIGHBD_TAIL_SUFFIX); \
131
2.48k
}
itx_tmpl.c:inv_txfm_add_adst_adst_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_flipadst_adst_4x4_c
Line
Count
Source
127
227
                                               HIGHBD_DECL_SUFFIX) \
128
227
{ \
129
227
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
227
                   HIGHBD_TAIL_SUFFIX); \
131
227
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_c
Line
Count
Source
127
273
                                               HIGHBD_DECL_SUFFIX) \
128
273
{ \
129
273
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
273
                   HIGHBD_TAIL_SUFFIX); \
131
273
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
207
                                               HIGHBD_DECL_SUFFIX) \
128
207
{ \
129
207
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
207
                   HIGHBD_TAIL_SUFFIX); \
131
207
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_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_flipadst_flipadst_4x4_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_4x4_c
Line
Count
Source
127
1.05k
                                               HIGHBD_DECL_SUFFIX) \
128
1.05k
{ \
129
1.05k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.05k
                   HIGHBD_TAIL_SUFFIX); \
131
1.05k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
452
                                               HIGHBD_DECL_SUFFIX) \
128
452
{ \
129
452
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
452
                   HIGHBD_TAIL_SUFFIX); \
131
452
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_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_flipadst_4x4_c
Line
Count
Source
127
175
                                               HIGHBD_DECL_SUFFIX) \
128
175
{ \
129
175
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
175
                   HIGHBD_TAIL_SUFFIX); \
131
175
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_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_adst_4x4_c
Line
Count
Source
127
341
                                               HIGHBD_DECL_SUFFIX) \
128
341
{ \
129
341
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
341
                   HIGHBD_TAIL_SUFFIX); \
131
341
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
1.84k
                                               HIGHBD_DECL_SUFFIX) \
128
1.84k
{ \
129
1.84k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.84k
                   HIGHBD_TAIL_SUFFIX); \
131
1.84k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
968
                                               HIGHBD_DECL_SUFFIX) \
128
968
{ \
129
968
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
968
                   HIGHBD_TAIL_SUFFIX); \
131
968
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
1.09k
                                               HIGHBD_DECL_SUFFIX) \
128
1.09k
{ \
129
1.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.09k
                   HIGHBD_TAIL_SUFFIX); \
131
1.09k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
904
                                               HIGHBD_DECL_SUFFIX) \
128
904
{ \
129
904
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
904
                   HIGHBD_TAIL_SUFFIX); \
131
904
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
1.38k
                                               HIGHBD_DECL_SUFFIX) \
128
1.38k
{ \
129
1.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.38k
                   HIGHBD_TAIL_SUFFIX); \
131
1.38k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_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_adst_flipadst_4x8_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_dct_4x8_c
Line
Count
Source
127
158
                                               HIGHBD_DECL_SUFFIX) \
128
158
{ \
129
158
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
158
                   HIGHBD_TAIL_SUFFIX); \
131
158
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
92
                                               HIGHBD_DECL_SUFFIX) \
128
92
{ \
129
92
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
92
                   HIGHBD_TAIL_SUFFIX); \
131
92
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_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_4x8_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_identity_dct_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_flipadst_identity_4x8_c
Line
Count
Source
127
171
                                               HIGHBD_DECL_SUFFIX) \
128
171
{ \
129
171
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
171
                   HIGHBD_TAIL_SUFFIX); \
131
171
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_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_adst_identity_4x8_c
Line
Count
Source
127
144
                                               HIGHBD_DECL_SUFFIX) \
128
144
{ \
129
144
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
144
                   HIGHBD_TAIL_SUFFIX); \
131
144
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_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_4x16_c
Line
Count
Source
127
1.24k
                                               HIGHBD_DECL_SUFFIX) \
128
1.24k
{ \
129
1.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.24k
                   HIGHBD_TAIL_SUFFIX); \
131
1.24k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
903
                                               HIGHBD_DECL_SUFFIX) \
128
903
{ \
129
903
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
903
                   HIGHBD_TAIL_SUFFIX); \
131
903
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
515
                                               HIGHBD_DECL_SUFFIX) \
128
515
{ \
129
515
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
515
                   HIGHBD_TAIL_SUFFIX); \
131
515
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
510
                                               HIGHBD_DECL_SUFFIX) \
128
510
{ \
129
510
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
510
                   HIGHBD_TAIL_SUFFIX); \
131
510
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
593
                                               HIGHBD_DECL_SUFFIX) \
128
593
{ \
129
593
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
593
                   HIGHBD_TAIL_SUFFIX); \
131
593
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_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_adst_flipadst_4x16_c
Line
Count
Source
127
258
                                               HIGHBD_DECL_SUFFIX) \
128
258
{ \
129
258
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
258
                   HIGHBD_TAIL_SUFFIX); \
131
258
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_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_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_flipadst_flipadst_4x16_c
Line
Count
Source
127
105
                                               HIGHBD_DECL_SUFFIX) \
128
105
{ \
129
105
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
105
                   HIGHBD_TAIL_SUFFIX); \
131
105
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
378
                                               HIGHBD_DECL_SUFFIX) \
128
378
{ \
129
378
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
378
                   HIGHBD_TAIL_SUFFIX); \
131
378
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
179
                                               HIGHBD_DECL_SUFFIX) \
128
179
{ \
129
179
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
179
                   HIGHBD_TAIL_SUFFIX); \
131
179
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_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_identity_flipadst_4x16_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_identity_4x16_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_identity_adst_4x16_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_dct_8x4_c
Line
Count
Source
127
1.98k
                                               HIGHBD_DECL_SUFFIX) \
128
1.98k
{ \
129
1.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.98k
                   HIGHBD_TAIL_SUFFIX); \
131
1.98k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
956
                                               HIGHBD_DECL_SUFFIX) \
128
956
{ \
129
956
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
956
                   HIGHBD_TAIL_SUFFIX); \
131
956
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
1.30k
                                               HIGHBD_DECL_SUFFIX) \
128
1.30k
{ \
129
1.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.30k
                   HIGHBD_TAIL_SUFFIX); \
131
1.30k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
1.36k
                                               HIGHBD_DECL_SUFFIX) \
128
1.36k
{ \
129
1.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.36k
                   HIGHBD_TAIL_SUFFIX); \
131
1.36k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
1.80k
                                               HIGHBD_DECL_SUFFIX) \
128
1.80k
{ \
129
1.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.80k
                   HIGHBD_TAIL_SUFFIX); \
131
1.80k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_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_adst_flipadst_8x4_c
Line
Count
Source
127
176
                                               HIGHBD_DECL_SUFFIX) \
128
176
{ \
129
176
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
176
                   HIGHBD_TAIL_SUFFIX); \
131
176
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
95
                                               HIGHBD_DECL_SUFFIX) \
128
95
{ \
129
95
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
95
                   HIGHBD_TAIL_SUFFIX); \
131
95
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_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_flipadst_flipadst_8x4_c
Line
Count
Source
127
105
                                               HIGHBD_DECL_SUFFIX) \
128
105
{ \
129
105
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
105
                   HIGHBD_TAIL_SUFFIX); \
131
105
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
491
                                               HIGHBD_DECL_SUFFIX) \
128
491
{ \
129
491
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
491
                   HIGHBD_TAIL_SUFFIX); \
131
491
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_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_flipadst_identity_8x4_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_8x4_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_adst_identity_8x4_c
Line
Count
Source
127
238
                                               HIGHBD_DECL_SUFFIX) \
128
238
{ \
129
238
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
238
                   HIGHBD_TAIL_SUFFIX); \
131
238
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
99
                                               HIGHBD_DECL_SUFFIX) \
128
99
{ \
129
99
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
99
                   HIGHBD_TAIL_SUFFIX); \
131
99
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
7.08k
                                               HIGHBD_DECL_SUFFIX) \
128
7.08k
{ \
129
7.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.08k
                   HIGHBD_TAIL_SUFFIX); \
131
7.08k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
2.80k
                                               HIGHBD_DECL_SUFFIX) \
128
2.80k
{ \
129
2.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.80k
                   HIGHBD_TAIL_SUFFIX); \
131
2.80k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
4.50k
                                               HIGHBD_DECL_SUFFIX) \
128
4.50k
{ \
129
4.50k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.50k
                   HIGHBD_TAIL_SUFFIX); \
131
4.50k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
3.40k
                                               HIGHBD_DECL_SUFFIX) \
128
3.40k
{ \
129
3.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.40k
                   HIGHBD_TAIL_SUFFIX); \
131
3.40k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
3.88k
                                               HIGHBD_DECL_SUFFIX) \
128
3.88k
{ \
129
3.88k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.88k
                   HIGHBD_TAIL_SUFFIX); \
131
3.88k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_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_adst_flipadst_8x8_c
Line
Count
Source
127
321
                                               HIGHBD_DECL_SUFFIX) \
128
321
{ \
129
321
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
321
                   HIGHBD_TAIL_SUFFIX); \
131
321
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
411
                                               HIGHBD_DECL_SUFFIX) \
128
411
{ \
129
411
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
411
                   HIGHBD_TAIL_SUFFIX); \
131
411
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
433
                                               HIGHBD_DECL_SUFFIX) \
128
433
{ \
129
433
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
433
                   HIGHBD_TAIL_SUFFIX); \
131
433
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
287
                                               HIGHBD_DECL_SUFFIX) \
128
287
{ \
129
287
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
287
                   HIGHBD_TAIL_SUFFIX); \
131
287
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
951
                                               HIGHBD_DECL_SUFFIX) \
128
951
{ \
129
951
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
951
                   HIGHBD_TAIL_SUFFIX); \
131
951
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_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_flipadst_identity_8x8_c
Line
Count
Source
127
317
                                               HIGHBD_DECL_SUFFIX) \
128
317
{ \
129
317
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
317
                   HIGHBD_TAIL_SUFFIX); \
131
317
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
212
                                               HIGHBD_DECL_SUFFIX) \
128
212
{ \
129
212
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
212
                   HIGHBD_TAIL_SUFFIX); \
131
212
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_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_adst_8x8_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_dct_dct_8x16_c
Line
Count
Source
127
3.66k
                                               HIGHBD_DECL_SUFFIX) \
128
3.66k
{ \
129
3.66k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.66k
                   HIGHBD_TAIL_SUFFIX); \
131
3.66k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
1.45k
                                               HIGHBD_DECL_SUFFIX) \
128
1.45k
{ \
129
1.45k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.45k
                   HIGHBD_TAIL_SUFFIX); \
131
1.45k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_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_dct_adst_8x16_c
Line
Count
Source
127
1.54k
                                               HIGHBD_DECL_SUFFIX) \
128
1.54k
{ \
129
1.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.54k
                   HIGHBD_TAIL_SUFFIX); \
131
1.54k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
1.75k
                                               HIGHBD_DECL_SUFFIX) \
128
1.75k
{ \
129
1.75k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.75k
                   HIGHBD_TAIL_SUFFIX); \
131
1.75k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
169
                                               HIGHBD_DECL_SUFFIX) \
128
169
{ \
129
169
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
169
                   HIGHBD_TAIL_SUFFIX); \
131
169
}
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
214
                                               HIGHBD_DECL_SUFFIX) \
128
214
{ \
129
214
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
214
                   HIGHBD_TAIL_SUFFIX); \
131
214
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
203
                                               HIGHBD_DECL_SUFFIX) \
128
203
{ \
129
203
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
203
                   HIGHBD_TAIL_SUFFIX); \
131
203
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
183
                                               HIGHBD_DECL_SUFFIX) \
128
183
{ \
129
183
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
183
                   HIGHBD_TAIL_SUFFIX); \
131
183
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_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_identity_dct_8x16_c
Line
Count
Source
127
261
                                               HIGHBD_DECL_SUFFIX) \
128
261
{ \
129
261
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
261
                   HIGHBD_TAIL_SUFFIX); \
131
261
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_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_identity_flipadst_8x16_c
Line
Count
Source
127
117
                                               HIGHBD_DECL_SUFFIX) \
128
117
{ \
129
117
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
117
                   HIGHBD_TAIL_SUFFIX); \
131
117
}
itx_tmpl.c:inv_txfm_add_adst_identity_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_identity_adst_8x16_c
Line
Count
Source
127
144
                                               HIGHBD_DECL_SUFFIX) \
128
144
{ \
129
144
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
144
                   HIGHBD_TAIL_SUFFIX); \
131
144
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
2.24k
                                               HIGHBD_DECL_SUFFIX) \
128
2.24k
{ \
129
2.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.24k
                   HIGHBD_TAIL_SUFFIX); \
131
2.24k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
75
                                               HIGHBD_DECL_SUFFIX) \
128
75
{ \
129
75
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
75
                   HIGHBD_TAIL_SUFFIX); \
131
75
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_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_identity_identity_16x4_c
Line
Count
Source
127
519
                                               HIGHBD_DECL_SUFFIX) \
128
519
{ \
129
519
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
519
                   HIGHBD_TAIL_SUFFIX); \
131
519
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
640
                                               HIGHBD_DECL_SUFFIX) \
128
640
{ \
129
640
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
640
                   HIGHBD_TAIL_SUFFIX); \
131
640
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
571
                                               HIGHBD_DECL_SUFFIX) \
128
571
{ \
129
571
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
571
                   HIGHBD_TAIL_SUFFIX); \
131
571
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
764
                                               HIGHBD_DECL_SUFFIX) \
128
764
{ \
129
764
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
764
                   HIGHBD_TAIL_SUFFIX); \
131
764
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
122
                                               HIGHBD_DECL_SUFFIX) \
128
122
{ \
129
122
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
122
                   HIGHBD_TAIL_SUFFIX); \
131
122
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
131
                                               HIGHBD_DECL_SUFFIX) \
128
131
{ \
129
131
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
131
                   HIGHBD_TAIL_SUFFIX); \
131
131
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_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_dct_flipadst_16x4_c
Line
Count
Source
127
99
                                               HIGHBD_DECL_SUFFIX) \
128
99
{ \
129
99
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
99
                   HIGHBD_TAIL_SUFFIX); \
131
99
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_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_dct_identity_16x4_c
Line
Count
Source
127
292
                                               HIGHBD_DECL_SUFFIX) \
128
292
{ \
129
292
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
292
                   HIGHBD_TAIL_SUFFIX); \
131
292
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
189
                                               HIGHBD_DECL_SUFFIX) \
128
189
{ \
129
189
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
189
                   HIGHBD_TAIL_SUFFIX); \
131
189
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_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_identity_flipadst_16x4_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_identity_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_identity_adst_16x4_c
Line
Count
Source
127
176
                                               HIGHBD_DECL_SUFFIX) \
128
176
{ \
129
176
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
176
                   HIGHBD_TAIL_SUFFIX); \
131
176
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
3.36k
                                               HIGHBD_DECL_SUFFIX) \
128
3.36k
{ \
129
3.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.36k
                   HIGHBD_TAIL_SUFFIX); \
131
3.36k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
943
                                               HIGHBD_DECL_SUFFIX) \
128
943
{ \
129
943
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
943
                   HIGHBD_TAIL_SUFFIX); \
131
943
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_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_dct_adst_16x8_c
Line
Count
Source
127
1.56k
                                               HIGHBD_DECL_SUFFIX) \
128
1.56k
{ \
129
1.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.56k
                   HIGHBD_TAIL_SUFFIX); \
131
1.56k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
1.80k
                                               HIGHBD_DECL_SUFFIX) \
128
1.80k
{ \
129
1.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.80k
                   HIGHBD_TAIL_SUFFIX); \
131
1.80k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_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_adst_flipadst_16x8_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_flipadst_dct_16x8_c
Line
Count
Source
127
126
                                               HIGHBD_DECL_SUFFIX) \
128
126
{ \
129
126
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
126
                   HIGHBD_TAIL_SUFFIX); \
131
126
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_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_flipadst_flipadst_16x8_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_dct_identity_16x8_c
Line
Count
Source
127
425
                                               HIGHBD_DECL_SUFFIX) \
128
425
{ \
129
425
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
425
                   HIGHBD_TAIL_SUFFIX); \
131
425
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
374
                                               HIGHBD_DECL_SUFFIX) \
128
374
{ \
129
374
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
374
                   HIGHBD_TAIL_SUFFIX); \
131
374
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
206
                                               HIGHBD_DECL_SUFFIX) \
128
206
{ \
129
206
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
206
                   HIGHBD_TAIL_SUFFIX); \
131
206
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
168
                                               HIGHBD_DECL_SUFFIX) \
128
168
{ \
129
168
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
168
                   HIGHBD_TAIL_SUFFIX); \
131
168
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_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_identity_adst_16x8_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_dct_dct_16x16_c
Line
Count
Source
127
7.14k
                                               HIGHBD_DECL_SUFFIX) \
128
7.14k
{ \
129
7.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.14k
                   HIGHBD_TAIL_SUFFIX); \
131
7.14k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
1.22k
                                               HIGHBD_DECL_SUFFIX) \
128
1.22k
{ \
129
1.22k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.22k
                   HIGHBD_TAIL_SUFFIX); \
131
1.22k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
7.23k
                                               HIGHBD_DECL_SUFFIX) \
128
7.23k
{ \
129
7.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.23k
                   HIGHBD_TAIL_SUFFIX); \
131
7.23k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
4.55k
                                               HIGHBD_DECL_SUFFIX) \
128
4.55k
{ \
129
4.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.55k
                   HIGHBD_TAIL_SUFFIX); \
131
4.55k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
6.82k
                                               HIGHBD_DECL_SUFFIX) \
128
6.82k
{ \
129
6.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.82k
                   HIGHBD_TAIL_SUFFIX); \
131
6.82k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
149
                                               HIGHBD_DECL_SUFFIX) \
128
149
{ \
129
149
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
149
                   HIGHBD_TAIL_SUFFIX); \
131
149
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
224
                                               HIGHBD_DECL_SUFFIX) \
128
224
{ \
129
224
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
224
                   HIGHBD_TAIL_SUFFIX); \
131
224
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
326
                                               HIGHBD_DECL_SUFFIX) \
128
326
{ \
129
326
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
326
                   HIGHBD_TAIL_SUFFIX); \
131
326
}
itx_tmpl.c:inv_txfm_add_dct_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_flipadst_16x16_c
Line
Count
Source
127
140
                                               HIGHBD_DECL_SUFFIX) \
128
140
{ \
129
140
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
140
                   HIGHBD_TAIL_SUFFIX); \
131
140
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_identity_dct_16x16_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_dct_16x32_c
Line
Count
Source
127
11.6k
                                               HIGHBD_DECL_SUFFIX) \
128
11.6k
{ \
129
11.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.6k
                   HIGHBD_TAIL_SUFFIX); \
131
11.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_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_dct_16x64_c
Line
Count
Source
127
1.78k
                                               HIGHBD_DECL_SUFFIX) \
128
1.78k
{ \
129
1.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.78k
                   HIGHBD_TAIL_SUFFIX); \
131
1.78k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_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_identity_identity_32x8_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_dct_dct_32x16_c
Line
Count
Source
127
8.08k
                                               HIGHBD_DECL_SUFFIX) \
128
8.08k
{ \
129
8.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.08k
                   HIGHBD_TAIL_SUFFIX); \
131
8.08k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_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_dct_dct_32x32_c
Line
Count
Source
127
111k
                                               HIGHBD_DECL_SUFFIX) \
128
111k
{ \
129
111k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
111k
                   HIGHBD_TAIL_SUFFIX); \
131
111k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_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_dct_32x64_c
Line
Count
Source
127
9.96k
                                               HIGHBD_DECL_SUFFIX) \
128
9.96k
{ \
129
9.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.96k
                   HIGHBD_TAIL_SUFFIX); \
131
9.96k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
906
                                               HIGHBD_DECL_SUFFIX) \
128
906
{ \
129
906
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
906
                   HIGHBD_TAIL_SUFFIX); \
131
906
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
6.18k
                                               HIGHBD_DECL_SUFFIX) \
128
6.18k
{ \
129
6.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.18k
                   HIGHBD_TAIL_SUFFIX); \
131
6.18k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
75.5k
                                               HIGHBD_DECL_SUFFIX) \
128
75.5k
{ \
129
75.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
75.5k
                   HIGHBD_TAIL_SUFFIX); \
131
75.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
281k
{
188
281k
    int32_t tmp[4 * 4], *c = tmp;
189
1.40M
    for (int y = 0; y < 4; y++, c += 4) {
190
5.63M
        for (int x = 0; x < 4; x++)
191
4.50M
            c[x] = coeff[y + x * 4] >> 2;
192
1.12M
        dav1d_inv_wht4_1d_c(c, 1);
193
1.12M
    }
194
281k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
1.40M
    for (int x = 0; x < 4; x++)
197
1.12M
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
281k
    c = tmp;
200
1.40M
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
5.63M
        for (int x = 0; x < 4; x++)
202
4.50M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
281k
}
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
38.2k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
38.2k
#define assign_itx_all_fn64(w, h, pfx) \
222
726k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
726k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
38.2k
#define assign_itx_all_fn32(w, h, pfx) \
226
535k
    assign_itx_all_fn64(w, h, pfx); \
227
535k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
535k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
38.2k
#define assign_itx_all_fn16(w, h, pfx) \
231
344k
    assign_itx_all_fn32(w, h, pfx); \
232
344k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
344k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
344k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
344k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
344k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
344k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
344k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
344k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
344k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
344k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
344k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
344k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
344k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
344k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
344k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
344k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
344k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
344k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
344k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
344k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
38.2k
#define assign_itx_all_fn84(w, h, pfx) \
254
305k
    assign_itx_all_fn16(w, h, pfx); \
255
305k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
305k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
305k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
305k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
305k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
305k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
305k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
305k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
38.2k
264
38.2k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
38.2k
  ARCH_AARCH64 || \
266
38.2k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
38.2k
))
268
38.2k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
38.2k
#endif
270
38.2k
    assign_itx_all_fn84( 4,  4, );
271
38.2k
    assign_itx_all_fn84( 4,  8, R);
272
38.2k
    assign_itx_all_fn84( 4, 16, R);
273
38.2k
    assign_itx_all_fn84( 8,  4, R);
274
38.2k
    assign_itx_all_fn84( 8,  8, );
275
38.2k
    assign_itx_all_fn84( 8, 16, R);
276
38.2k
    assign_itx_all_fn32( 8, 32, R);
277
38.2k
    assign_itx_all_fn84(16,  4, R);
278
38.2k
    assign_itx_all_fn84(16,  8, R);
279
38.2k
    assign_itx_all_fn16(16, 16, );
280
38.2k
    assign_itx_all_fn32(16, 32, R);
281
38.2k
    assign_itx_all_fn64(16, 64, R);
282
38.2k
    assign_itx_all_fn32(32,  8, R);
283
38.2k
    assign_itx_all_fn32(32, 16, R);
284
38.2k
    assign_itx_all_fn32(32, 32, );
285
38.2k
    assign_itx_all_fn64(32, 64, R);
286
38.2k
    assign_itx_all_fn64(64, 16, R);
287
38.2k
    assign_itx_all_fn64(64, 32, R);
288
38.2k
    assign_itx_all_fn64(64, 64, );
289
290
38.2k
    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
38.2k
    if (!all_simd)
310
38.2k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
38.2k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
16.4k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
16.4k
#define assign_itx_all_fn64(w, h, pfx) \
222
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
16.4k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
16.4k
#define assign_itx_all_fn32(w, h, pfx) \
226
16.4k
    assign_itx_all_fn64(w, h, pfx); \
227
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
16.4k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
16.4k
#define assign_itx_all_fn16(w, h, pfx) \
231
16.4k
    assign_itx_all_fn32(w, h, pfx); \
232
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
16.4k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
16.4k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
16.4k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
16.4k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
16.4k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
16.4k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
16.4k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
16.4k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
16.4k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
16.4k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
16.4k
#define assign_itx_all_fn84(w, h, pfx) \
254
16.4k
    assign_itx_all_fn16(w, h, pfx); \
255
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
16.4k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
16.4k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
16.4k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
16.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
16.4k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
16.4k
264
16.4k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
16.4k
  ARCH_AARCH64 || \
266
16.4k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
16.4k
))
268
16.4k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
16.4k
#endif
270
16.4k
    assign_itx_all_fn84( 4,  4, );
271
16.4k
    assign_itx_all_fn84( 4,  8, R);
272
16.4k
    assign_itx_all_fn84( 4, 16, R);
273
16.4k
    assign_itx_all_fn84( 8,  4, R);
274
16.4k
    assign_itx_all_fn84( 8,  8, );
275
16.4k
    assign_itx_all_fn84( 8, 16, R);
276
16.4k
    assign_itx_all_fn32( 8, 32, R);
277
16.4k
    assign_itx_all_fn84(16,  4, R);
278
16.4k
    assign_itx_all_fn84(16,  8, R);
279
16.4k
    assign_itx_all_fn16(16, 16, );
280
16.4k
    assign_itx_all_fn32(16, 32, R);
281
16.4k
    assign_itx_all_fn64(16, 64, R);
282
16.4k
    assign_itx_all_fn32(32,  8, R);
283
16.4k
    assign_itx_all_fn32(32, 16, R);
284
16.4k
    assign_itx_all_fn32(32, 32, );
285
16.4k
    assign_itx_all_fn64(32, 64, R);
286
16.4k
    assign_itx_all_fn64(64, 16, R);
287
16.4k
    assign_itx_all_fn64(64, 32, R);
288
16.4k
    assign_itx_all_fn64(64, 64, );
289
290
16.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
16.4k
    if (!all_simd)
310
16.4k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
16.4k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
21.8k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
21.8k
#define assign_itx_all_fn64(w, h, pfx) \
222
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
21.8k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
21.8k
#define assign_itx_all_fn32(w, h, pfx) \
226
21.8k
    assign_itx_all_fn64(w, h, pfx); \
227
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
21.8k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
21.8k
#define assign_itx_all_fn16(w, h, pfx) \
231
21.8k
    assign_itx_all_fn32(w, h, pfx); \
232
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
21.8k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
21.8k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
21.8k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
21.8k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
21.8k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
21.8k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
21.8k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
21.8k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
21.8k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
21.8k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
21.8k
#define assign_itx_all_fn84(w, h, pfx) \
254
21.8k
    assign_itx_all_fn16(w, h, pfx); \
255
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
21.8k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
21.8k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
21.8k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
21.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
21.8k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
21.8k
264
21.8k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
21.8k
  ARCH_AARCH64 || \
266
21.8k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
21.8k
))
268
21.8k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
21.8k
#endif
270
21.8k
    assign_itx_all_fn84( 4,  4, );
271
21.8k
    assign_itx_all_fn84( 4,  8, R);
272
21.8k
    assign_itx_all_fn84( 4, 16, R);
273
21.8k
    assign_itx_all_fn84( 8,  4, R);
274
21.8k
    assign_itx_all_fn84( 8,  8, );
275
21.8k
    assign_itx_all_fn84( 8, 16, R);
276
21.8k
    assign_itx_all_fn32( 8, 32, R);
277
21.8k
    assign_itx_all_fn84(16,  4, R);
278
21.8k
    assign_itx_all_fn84(16,  8, R);
279
21.8k
    assign_itx_all_fn16(16, 16, );
280
21.8k
    assign_itx_all_fn32(16, 32, R);
281
21.8k
    assign_itx_all_fn64(16, 64, R);
282
21.8k
    assign_itx_all_fn32(32,  8, R);
283
21.8k
    assign_itx_all_fn32(32, 16, R);
284
21.8k
    assign_itx_all_fn32(32, 32, );
285
21.8k
    assign_itx_all_fn64(32, 64, R);
286
21.8k
    assign_itx_all_fn64(64, 16, R);
287
21.8k
    assign_itx_all_fn64(64, 32, R);
288
21.8k
    assign_itx_all_fn64(64, 64, );
289
290
21.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
21.8k
    if (!all_simd)
310
21.8k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
21.8k
}