Coverage Report

Created: 2026-06-10 06:56

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
199k
{
48
199k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
199k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
199k
    const int has_dconly = txtp == DCT_DCT;
51
199k
    assert(w >= 4 && w <= 64);
52
199k
    assert(h >= 4 && h <= 64);
53
199k
    assert(eob >= 0);
54
55
199k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
199k
    const int rnd = (1 << shift) >> 1;
57
58
199k
    if (eob < has_dconly) {
59
73.0k
        int dc = coeff[0];
60
73.0k
        coeff[0] = 0;
61
73.0k
        if (is_rect2)
62
19.7k
            dc = (dc * 181 + 128) >> 8;
63
73.0k
        dc = (dc * 181 + 128) >> 8;
64
73.0k
        dc = (dc + rnd) >> shift;
65
73.0k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
2.56M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
97.2M
            for (int x = 0; x < w; x++)
68
94.7M
                dst[x] = iclip_pixel(dst[x] + dc);
69
73.0k
        return;
70
73.0k
    }
71
72
126k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
126k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
126k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
126k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
126k
#if BITDEPTH == 8
77
126k
    const int row_clip_min = INT16_MIN;
78
126k
    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
126k
    const int row_clip_max = ~row_clip_min;
84
126k
    const int col_clip_max = ~col_clip_min;
85
86
126k
    int32_t tmp[64 * 64], *c = tmp;
87
126k
    int last_nonzero_col; // in first 1d itx
88
126k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
9.47k
        last_nonzero_col = imin(sh - 1, eob);
90
117k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
5.44k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
111k
    } else {
93
111k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
111k
    }
95
126k
    assert(last_nonzero_col < sh);
96
706k
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
579k
        if (is_rect2)
98
5.07M
            for (int x = 0; x < sw; x++)
99
4.78M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
291k
        else
101
4.72M
            for (int x = 0; x < sw; x++)
102
4.43M
                c[x] = coeff[y + x * sh];
103
579k
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
579k
    }
105
126k
    if (last_nonzero_col + 1 < sh)
106
103k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
126k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
35.7M
    for (int i = 0; i < w * sh; i++)
110
35.5M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
1.97M
    for (int x = 0; x < w; x++)
113
1.84M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
126k
    c = tmp;
116
2.00M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
47.0M
        for (int x = 0; x < w; x++)
118
45.1M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
126k
}
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
199k
                                               HIGHBD_DECL_SUFFIX) \
128
199k
{ \
129
199k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
199k
                   HIGHBD_TAIL_SUFFIX); \
131
199k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
3.80k
                                               HIGHBD_DECL_SUFFIX) \
128
3.80k
{ \
129
3.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.80k
                   HIGHBD_TAIL_SUFFIX); \
131
3.80k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_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_adst_dct_4x4_c
Line
Count
Source
127
2.86k
                                               HIGHBD_DECL_SUFFIX) \
128
2.86k
{ \
129
2.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.86k
                   HIGHBD_TAIL_SUFFIX); \
131
2.86k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
2.46k
                                               HIGHBD_DECL_SUFFIX) \
128
2.46k
{ \
129
2.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.46k
                   HIGHBD_TAIL_SUFFIX); \
131
2.46k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
3.37k
                                               HIGHBD_DECL_SUFFIX) \
128
3.37k
{ \
129
3.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.37k
                   HIGHBD_TAIL_SUFFIX); \
131
3.37k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
278
                                               HIGHBD_DECL_SUFFIX) \
128
278
{ \
129
278
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
278
                   HIGHBD_TAIL_SUFFIX); \
131
278
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_flipadst_dct_4x4_c
Line
Count
Source
127
178
                                               HIGHBD_DECL_SUFFIX) \
128
178
{ \
129
178
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
178
                   HIGHBD_TAIL_SUFFIX); \
131
178
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
192
                                               HIGHBD_DECL_SUFFIX) \
128
192
{ \
129
192
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
192
                   HIGHBD_TAIL_SUFFIX); \
131
192
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_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_dct_identity_4x4_c
Line
Count
Source
127
990
                                               HIGHBD_DECL_SUFFIX) \
128
990
{ \
129
990
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
990
                   HIGHBD_TAIL_SUFFIX); \
131
990
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_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_identity_4x4_c
Line
Count
Source
127
412
                                               HIGHBD_DECL_SUFFIX) \
128
412
{ \
129
412
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
412
                   HIGHBD_TAIL_SUFFIX); \
131
412
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
211
                                               HIGHBD_DECL_SUFFIX) \
128
211
{ \
129
211
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
211
                   HIGHBD_TAIL_SUFFIX); \
131
211
}
itx_tmpl.c:inv_txfm_add_adst_identity_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_identity_adst_4x4_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_4x8_c
Line
Count
Source
127
1.76k
                                               HIGHBD_DECL_SUFFIX) \
128
1.76k
{ \
129
1.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.76k
                   HIGHBD_TAIL_SUFFIX); \
131
1.76k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
834
                                               HIGHBD_DECL_SUFFIX) \
128
834
{ \
129
834
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
834
                   HIGHBD_TAIL_SUFFIX); \
131
834
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
1.32k
                                               HIGHBD_DECL_SUFFIX) \
128
1.32k
{ \
129
1.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.32k
                   HIGHBD_TAIL_SUFFIX); \
131
1.32k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
1.03k
                                               HIGHBD_DECL_SUFFIX) \
128
1.03k
{ \
129
1.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.03k
                   HIGHBD_TAIL_SUFFIX); \
131
1.03k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
1.61k
                                               HIGHBD_DECL_SUFFIX) \
128
1.61k
{ \
129
1.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.61k
                   HIGHBD_TAIL_SUFFIX); \
131
1.61k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_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_adst_flipadst_4x8_c
Line
Count
Source
127
232
                                               HIGHBD_DECL_SUFFIX) \
128
232
{ \
129
232
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
232
                   HIGHBD_TAIL_SUFFIX); \
131
232
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
100
                                               HIGHBD_DECL_SUFFIX) \
128
100
{ \
129
100
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
100
                   HIGHBD_TAIL_SUFFIX); \
131
100
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_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_flipadst_flipadst_4x8_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_identity_4x8_c
Line
Count
Source
127
637
                                               HIGHBD_DECL_SUFFIX) \
128
637
{ \
129
637
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
637
                   HIGHBD_TAIL_SUFFIX); \
131
637
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
290
                                               HIGHBD_DECL_SUFFIX) \
128
290
{ \
129
290
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
290
                   HIGHBD_TAIL_SUFFIX); \
131
290
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_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_identity_flipadst_4x8_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_adst_identity_4x8_c
Line
Count
Source
127
284
                                               HIGHBD_DECL_SUFFIX) \
128
284
{ \
129
284
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
284
                   HIGHBD_TAIL_SUFFIX); \
131
284
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_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_dct_dct_4x16_c
Line
Count
Source
127
581
                                               HIGHBD_DECL_SUFFIX) \
128
581
{ \
129
581
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
581
                   HIGHBD_TAIL_SUFFIX); \
131
581
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
154
                                               HIGHBD_DECL_SUFFIX) \
128
154
{ \
129
154
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
154
                   HIGHBD_TAIL_SUFFIX); \
131
154
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
308
                                               HIGHBD_DECL_SUFFIX) \
128
308
{ \
129
308
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
308
                   HIGHBD_TAIL_SUFFIX); \
131
308
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_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_adst_adst_4x16_c
Line
Count
Source
127
458
                                               HIGHBD_DECL_SUFFIX) \
128
458
{ \
129
458
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
458
                   HIGHBD_TAIL_SUFFIX); \
131
458
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
49
                                               HIGHBD_DECL_SUFFIX) \
128
49
{ \
129
49
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
49
                   HIGHBD_TAIL_SUFFIX); \
131
49
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
64
                                               HIGHBD_DECL_SUFFIX) \
128
64
{ \
129
64
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
64
                   HIGHBD_TAIL_SUFFIX); \
131
64
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
44
                                               HIGHBD_DECL_SUFFIX) \
128
44
{ \
129
44
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
44
                   HIGHBD_TAIL_SUFFIX); \
131
44
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
45
                                               HIGHBD_DECL_SUFFIX) \
128
45
{ \
129
45
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
45
                   HIGHBD_TAIL_SUFFIX); \
131
45
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
33
                                               HIGHBD_DECL_SUFFIX) \
128
33
{ \
129
33
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
33
                   HIGHBD_TAIL_SUFFIX); \
131
33
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
213
                                               HIGHBD_DECL_SUFFIX) \
128
213
{ \
129
213
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
213
                   HIGHBD_TAIL_SUFFIX); \
131
213
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
103
                                               HIGHBD_DECL_SUFFIX) \
128
103
{ \
129
103
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
103
                   HIGHBD_TAIL_SUFFIX); \
131
103
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
119
                                               HIGHBD_DECL_SUFFIX) \
128
119
{ \
129
119
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
119
                   HIGHBD_TAIL_SUFFIX); \
131
119
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
49
                                               HIGHBD_DECL_SUFFIX) \
128
49
{ \
129
49
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
49
                   HIGHBD_TAIL_SUFFIX); \
131
49
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
62
                                               HIGHBD_DECL_SUFFIX) \
128
62
{ \
129
62
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
62
                   HIGHBD_TAIL_SUFFIX); \
131
62
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
55
                                               HIGHBD_DECL_SUFFIX) \
128
55
{ \
129
55
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
55
                   HIGHBD_TAIL_SUFFIX); \
131
55
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
2.41k
                                               HIGHBD_DECL_SUFFIX) \
128
2.41k
{ \
129
2.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.41k
                   HIGHBD_TAIL_SUFFIX); \
131
2.41k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
918
                                               HIGHBD_DECL_SUFFIX) \
128
918
{ \
129
918
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
918
                   HIGHBD_TAIL_SUFFIX); \
131
918
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_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_dct_adst_8x4_c
Line
Count
Source
127
1.49k
                                               HIGHBD_DECL_SUFFIX) \
128
1.49k
{ \
129
1.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.49k
                   HIGHBD_TAIL_SUFFIX); \
131
1.49k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_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_flipadst_adst_8x4_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_8x4_c
Line
Count
Source
127
271
                                               HIGHBD_DECL_SUFFIX) \
128
271
{ \
129
271
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
271
                   HIGHBD_TAIL_SUFFIX); \
131
271
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
182
                                               HIGHBD_DECL_SUFFIX) \
128
182
{ \
129
182
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
182
                   HIGHBD_TAIL_SUFFIX); \
131
182
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
112
                                               HIGHBD_DECL_SUFFIX) \
128
112
{ \
129
112
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
112
                   HIGHBD_TAIL_SUFFIX); \
131
112
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
178
                                               HIGHBD_DECL_SUFFIX) \
128
178
{ \
129
178
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
178
                   HIGHBD_TAIL_SUFFIX); \
131
178
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
697
                                               HIGHBD_DECL_SUFFIX) \
128
697
{ \
129
697
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
697
                   HIGHBD_TAIL_SUFFIX); \
131
697
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
347
                                               HIGHBD_DECL_SUFFIX) \
128
347
{ \
129
347
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
347
                   HIGHBD_TAIL_SUFFIX); \
131
347
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_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_identity_flipadst_8x4_c
Line
Count
Source
127
220
                                               HIGHBD_DECL_SUFFIX) \
128
220
{ \
129
220
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
220
                   HIGHBD_TAIL_SUFFIX); \
131
220
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
403
                                               HIGHBD_DECL_SUFFIX) \
128
403
{ \
129
403
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
403
                   HIGHBD_TAIL_SUFFIX); \
131
403
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
239
                                               HIGHBD_DECL_SUFFIX) \
128
239
{ \
129
239
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
239
                   HIGHBD_TAIL_SUFFIX); \
131
239
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
5.95k
                                               HIGHBD_DECL_SUFFIX) \
128
5.95k
{ \
129
5.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.95k
                   HIGHBD_TAIL_SUFFIX); \
131
5.95k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
2.00k
                                               HIGHBD_DECL_SUFFIX) \
128
2.00k
{ \
129
2.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.00k
                   HIGHBD_TAIL_SUFFIX); \
131
2.00k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
3.77k
                                               HIGHBD_DECL_SUFFIX) \
128
3.77k
{ \
129
3.77k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.77k
                   HIGHBD_TAIL_SUFFIX); \
131
3.77k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
2.92k
                                               HIGHBD_DECL_SUFFIX) \
128
2.92k
{ \
129
2.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.92k
                   HIGHBD_TAIL_SUFFIX); \
131
2.92k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
3.55k
                                               HIGHBD_DECL_SUFFIX) \
128
3.55k
{ \
129
3.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.55k
                   HIGHBD_TAIL_SUFFIX); \
131
3.55k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
353
                                               HIGHBD_DECL_SUFFIX) \
128
353
{ \
129
353
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
353
                   HIGHBD_TAIL_SUFFIX); \
131
353
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
415
                                               HIGHBD_DECL_SUFFIX) \
128
415
{ \
129
415
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
415
                   HIGHBD_TAIL_SUFFIX); \
131
415
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
389
                                               HIGHBD_DECL_SUFFIX) \
128
389
{ \
129
389
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
389
                   HIGHBD_TAIL_SUFFIX); \
131
389
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
368
                                               HIGHBD_DECL_SUFFIX) \
128
368
{ \
129
368
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
368
                   HIGHBD_TAIL_SUFFIX); \
131
368
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_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_identity_8x8_c
Line
Count
Source
127
934
                                               HIGHBD_DECL_SUFFIX) \
128
934
{ \
129
934
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
934
                   HIGHBD_TAIL_SUFFIX); \
131
934
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
535
                                               HIGHBD_DECL_SUFFIX) \
128
535
{ \
129
535
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
535
                   HIGHBD_TAIL_SUFFIX); \
131
535
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
370
                                               HIGHBD_DECL_SUFFIX) \
128
370
{ \
129
370
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
370
                   HIGHBD_TAIL_SUFFIX); \
131
370
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
143
                                               HIGHBD_DECL_SUFFIX) \
128
143
{ \
129
143
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
143
                   HIGHBD_TAIL_SUFFIX); \
131
143
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
379
                                               HIGHBD_DECL_SUFFIX) \
128
379
{ \
129
379
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
379
                   HIGHBD_TAIL_SUFFIX); \
131
379
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
211
                                               HIGHBD_DECL_SUFFIX) \
128
211
{ \
129
211
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
211
                   HIGHBD_TAIL_SUFFIX); \
131
211
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
3.62k
                                               HIGHBD_DECL_SUFFIX) \
128
3.62k
{ \
129
3.62k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.62k
                   HIGHBD_TAIL_SUFFIX); \
131
3.62k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
590
                                               HIGHBD_DECL_SUFFIX) \
128
590
{ \
129
590
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
590
                   HIGHBD_TAIL_SUFFIX); \
131
590
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
2.03k
                                               HIGHBD_DECL_SUFFIX) \
128
2.03k
{ \
129
2.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.03k
                   HIGHBD_TAIL_SUFFIX); \
131
2.03k
}
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
2.00k
                                               HIGHBD_DECL_SUFFIX) \
128
2.00k
{ \
129
2.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.00k
                   HIGHBD_TAIL_SUFFIX); \
131
2.00k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
250
                                               HIGHBD_DECL_SUFFIX) \
128
250
{ \
129
250
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
250
                   HIGHBD_TAIL_SUFFIX); \
131
250
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
329
                                               HIGHBD_DECL_SUFFIX) \
128
329
{ \
129
329
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
329
                   HIGHBD_TAIL_SUFFIX); \
131
329
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
329
                                               HIGHBD_DECL_SUFFIX) \
128
329
{ \
129
329
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
329
                   HIGHBD_TAIL_SUFFIX); \
131
329
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
266
                                               HIGHBD_DECL_SUFFIX) \
128
266
{ \
129
266
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
266
                   HIGHBD_TAIL_SUFFIX); \
131
266
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_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_identity_8x16_c
Line
Count
Source
127
570
                                               HIGHBD_DECL_SUFFIX) \
128
570
{ \
129
570
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
570
                   HIGHBD_TAIL_SUFFIX); \
131
570
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_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_flipadst_identity_8x16_c
Line
Count
Source
127
303
                                               HIGHBD_DECL_SUFFIX) \
128
303
{ \
129
303
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
303
                   HIGHBD_TAIL_SUFFIX); \
131
303
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_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_adst_identity_8x16_c
Line
Count
Source
127
268
                                               HIGHBD_DECL_SUFFIX) \
128
268
{ \
129
268
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
268
                   HIGHBD_TAIL_SUFFIX); \
131
268
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
173
                                               HIGHBD_DECL_SUFFIX) \
128
173
{ \
129
173
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
173
                   HIGHBD_TAIL_SUFFIX); \
131
173
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
909
                                               HIGHBD_DECL_SUFFIX) \
128
909
{ \
129
909
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
909
                   HIGHBD_TAIL_SUFFIX); \
131
909
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
101
                                               HIGHBD_DECL_SUFFIX) \
128
101
{ \
129
101
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
101
                   HIGHBD_TAIL_SUFFIX); \
131
101
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_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_identity_16x4_c
Line
Count
Source
127
252
                                               HIGHBD_DECL_SUFFIX) \
128
252
{ \
129
252
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
252
                   HIGHBD_TAIL_SUFFIX); \
131
252
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
650
                                               HIGHBD_DECL_SUFFIX) \
128
650
{ \
129
650
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
650
                   HIGHBD_TAIL_SUFFIX); \
131
650
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
533
                                               HIGHBD_DECL_SUFFIX) \
128
533
{ \
129
533
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
533
                   HIGHBD_TAIL_SUFFIX); \
131
533
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
972
                                               HIGHBD_DECL_SUFFIX) \
128
972
{ \
129
972
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
972
                   HIGHBD_TAIL_SUFFIX); \
131
972
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
111
                                               HIGHBD_DECL_SUFFIX) \
128
111
{ \
129
111
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
111
                   HIGHBD_TAIL_SUFFIX); \
131
111
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_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_flipadst_dct_16x4_c
Line
Count
Source
127
102
                                               HIGHBD_DECL_SUFFIX) \
128
102
{ \
129
102
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
102
                   HIGHBD_TAIL_SUFFIX); \
131
102
}
itx_tmpl.c:inv_txfm_add_dct_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_flipadst_flipadst_16x4_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_identity_16x4_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_identity_dct_16x4_c
Line
Count
Source
127
192
                                               HIGHBD_DECL_SUFFIX) \
128
192
{ \
129
192
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
192
                   HIGHBD_TAIL_SUFFIX); \
131
192
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_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_identity_flipadst_16x4_c
Line
Count
Source
127
106
                                               HIGHBD_DECL_SUFFIX) \
128
106
{ \
129
106
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
106
                   HIGHBD_TAIL_SUFFIX); \
131
106
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
193
                                               HIGHBD_DECL_SUFFIX) \
128
193
{ \
129
193
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
193
                   HIGHBD_TAIL_SUFFIX); \
131
193
}
itx_tmpl.c:inv_txfm_add_identity_adst_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_dct_dct_16x8_c
Line
Count
Source
127
3.04k
                                               HIGHBD_DECL_SUFFIX) \
128
3.04k
{ \
129
3.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.04k
                   HIGHBD_TAIL_SUFFIX); \
131
3.04k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
769
                                               HIGHBD_DECL_SUFFIX) \
128
769
{ \
129
769
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
769
                   HIGHBD_TAIL_SUFFIX); \
131
769
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_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_dct_adst_16x8_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_16x8_c
Line
Count
Source
127
1.95k
                                               HIGHBD_DECL_SUFFIX) \
128
1.95k
{ \
129
1.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.95k
                   HIGHBD_TAIL_SUFFIX); \
131
1.95k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
233
                                               HIGHBD_DECL_SUFFIX) \
128
233
{ \
129
233
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
233
                   HIGHBD_TAIL_SUFFIX); \
131
233
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_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_dct_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_dct_flipadst_16x8_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_flipadst_flipadst_16x8_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_dct_identity_16x8_c
Line
Count
Source
127
511
                                               HIGHBD_DECL_SUFFIX) \
128
511
{ \
129
511
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
511
                   HIGHBD_TAIL_SUFFIX); \
131
511
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
334
                                               HIGHBD_DECL_SUFFIX) \
128
334
{ \
129
334
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
334
                   HIGHBD_TAIL_SUFFIX); \
131
334
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
265
                                               HIGHBD_DECL_SUFFIX) \
128
265
{ \
129
265
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
265
                   HIGHBD_TAIL_SUFFIX); \
131
265
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
110
                                               HIGHBD_DECL_SUFFIX) \
128
110
{ \
129
110
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
110
                   HIGHBD_TAIL_SUFFIX); \
131
110
}
itx_tmpl.c:inv_txfm_add_adst_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_adst_16x8_c
Line
Count
Source
127
112
                                               HIGHBD_DECL_SUFFIX) \
128
112
{ \
129
112
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
112
                   HIGHBD_TAIL_SUFFIX); \
131
112
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
3.87k
                                               HIGHBD_DECL_SUFFIX) \
128
3.87k
{ \
129
3.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.87k
                   HIGHBD_TAIL_SUFFIX); \
131
3.87k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
545
                                               HIGHBD_DECL_SUFFIX) \
128
545
{ \
129
545
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
545
                   HIGHBD_TAIL_SUFFIX); \
131
545
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
3.08k
                                               HIGHBD_DECL_SUFFIX) \
128
3.08k
{ \
129
3.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.08k
                   HIGHBD_TAIL_SUFFIX); \
131
3.08k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
2.37k
                                               HIGHBD_DECL_SUFFIX) \
128
2.37k
{ \
129
2.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.37k
                   HIGHBD_TAIL_SUFFIX); \
131
2.37k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
3.00k
                                               HIGHBD_DECL_SUFFIX) \
128
3.00k
{ \
129
3.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.00k
                   HIGHBD_TAIL_SUFFIX); \
131
3.00k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_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_adst_flipadst_16x16_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_flipadst_dct_16x16_c
Line
Count
Source
127
113
                                               HIGHBD_DECL_SUFFIX) \
128
113
{ \
129
113
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
113
                   HIGHBD_TAIL_SUFFIX); \
131
113
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_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_flipadst_16x16_c
Line
Count
Source
127
100
                                               HIGHBD_DECL_SUFFIX) \
128
100
{ \
129
100
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
100
                   HIGHBD_TAIL_SUFFIX); \
131
100
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_dct_16x16_c
Line
Count
Source
127
94
                                               HIGHBD_DECL_SUFFIX) \
128
94
{ \
129
94
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
94
                   HIGHBD_TAIL_SUFFIX); \
131
94
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
12.1k
                                               HIGHBD_DECL_SUFFIX) \
128
12.1k
{ \
129
12.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.1k
                   HIGHBD_TAIL_SUFFIX); \
131
12.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
322
                                               HIGHBD_DECL_SUFFIX) \
128
322
{ \
129
322
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
322
                   HIGHBD_TAIL_SUFFIX); \
131
322
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
386
                                               HIGHBD_DECL_SUFFIX) \
128
386
{ \
129
386
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
386
                   HIGHBD_TAIL_SUFFIX); \
131
386
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
1.33k
                                               HIGHBD_DECL_SUFFIX) \
128
1.33k
{ \
129
1.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.33k
                   HIGHBD_TAIL_SUFFIX); \
131
1.33k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
100
                                               HIGHBD_DECL_SUFFIX) \
128
100
{ \
129
100
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
100
                   HIGHBD_TAIL_SUFFIX); \
131
100
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
8.40k
                                               HIGHBD_DECL_SUFFIX) \
128
8.40k
{ \
129
8.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.40k
                   HIGHBD_TAIL_SUFFIX); \
131
8.40k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
163
                                               HIGHBD_DECL_SUFFIX) \
128
163
{ \
129
163
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
163
                   HIGHBD_TAIL_SUFFIX); \
131
163
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
42.9k
                                               HIGHBD_DECL_SUFFIX) \
128
42.9k
{ \
129
42.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
42.9k
                   HIGHBD_TAIL_SUFFIX); \
131
42.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
81
                                               HIGHBD_DECL_SUFFIX) \
128
81
{ \
129
81
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
81
                   HIGHBD_TAIL_SUFFIX); \
131
81
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
8.38k
                                               HIGHBD_DECL_SUFFIX) \
128
8.38k
{ \
129
8.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.38k
                   HIGHBD_TAIL_SUFFIX); \
131
8.38k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
221
                                               HIGHBD_DECL_SUFFIX) \
128
221
{ \
129
221
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
221
                   HIGHBD_TAIL_SUFFIX); \
131
221
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
4.13k
                                               HIGHBD_DECL_SUFFIX) \
128
4.13k
{ \
129
4.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.13k
                   HIGHBD_TAIL_SUFFIX); \
131
4.13k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
11.8k
                                               HIGHBD_DECL_SUFFIX) \
128
11.8k
{ \
129
11.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.8k
                   HIGHBD_TAIL_SUFFIX); \
131
11.8k
}
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
155k
{
188
155k
    int32_t tmp[4 * 4], *c = tmp;
189
779k
    for (int y = 0; y < 4; y++, c += 4) {
190
3.11M
        for (int x = 0; x < 4; x++)
191
2.49M
            c[x] = coeff[y + x * 4] >> 2;
192
623k
        dav1d_inv_wht4_1d_c(c, 1);
193
623k
    }
194
155k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
779k
    for (int x = 0; x < 4; x++)
197
623k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
155k
    c = tmp;
200
779k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
3.11M
        for (int x = 0; x < 4; x++)
202
2.49M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
155k
}
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
18.2k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
18.2k
#define assign_itx_all_fn64(w, h, pfx) \
222
346k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
346k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
18.2k
#define assign_itx_all_fn32(w, h, pfx) \
226
255k
    assign_itx_all_fn64(w, h, pfx); \
227
255k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
255k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
18.2k
#define assign_itx_all_fn16(w, h, pfx) \
231
164k
    assign_itx_all_fn32(w, h, pfx); \
232
164k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
164k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
164k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
164k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
164k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
164k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
164k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
164k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
164k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
164k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
164k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
164k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
164k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
164k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
164k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
164k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
164k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
164k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
164k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
164k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
18.2k
#define assign_itx_all_fn84(w, h, pfx) \
254
146k
    assign_itx_all_fn16(w, h, pfx); \
255
146k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
146k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
146k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
146k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
146k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
146k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
146k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
146k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
18.2k
264
18.2k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
18.2k
  ARCH_AARCH64 || \
266
18.2k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
18.2k
))
268
18.2k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
18.2k
#endif
270
18.2k
    assign_itx_all_fn84( 4,  4, );
271
18.2k
    assign_itx_all_fn84( 4,  8, R);
272
18.2k
    assign_itx_all_fn84( 4, 16, R);
273
18.2k
    assign_itx_all_fn84( 8,  4, R);
274
18.2k
    assign_itx_all_fn84( 8,  8, );
275
18.2k
    assign_itx_all_fn84( 8, 16, R);
276
18.2k
    assign_itx_all_fn32( 8, 32, R);
277
18.2k
    assign_itx_all_fn84(16,  4, R);
278
18.2k
    assign_itx_all_fn84(16,  8, R);
279
18.2k
    assign_itx_all_fn16(16, 16, );
280
18.2k
    assign_itx_all_fn32(16, 32, R);
281
18.2k
    assign_itx_all_fn64(16, 64, R);
282
18.2k
    assign_itx_all_fn32(32,  8, R);
283
18.2k
    assign_itx_all_fn32(32, 16, R);
284
18.2k
    assign_itx_all_fn32(32, 32, );
285
18.2k
    assign_itx_all_fn64(32, 64, R);
286
18.2k
    assign_itx_all_fn64(64, 16, R);
287
18.2k
    assign_itx_all_fn64(64, 32, R);
288
18.2k
    assign_itx_all_fn64(64, 64, );
289
290
18.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
18.2k
    if (!all_simd)
310
18.2k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
18.2k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
8.36k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
8.36k
#define assign_itx_all_fn64(w, h, pfx) \
222
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
8.36k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
8.36k
#define assign_itx_all_fn32(w, h, pfx) \
226
8.36k
    assign_itx_all_fn64(w, h, pfx); \
227
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
8.36k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
8.36k
#define assign_itx_all_fn16(w, h, pfx) \
231
8.36k
    assign_itx_all_fn32(w, h, pfx); \
232
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
8.36k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
8.36k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
8.36k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
8.36k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
8.36k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
8.36k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
8.36k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
8.36k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
8.36k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
8.36k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
8.36k
#define assign_itx_all_fn84(w, h, pfx) \
254
8.36k
    assign_itx_all_fn16(w, h, pfx); \
255
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
8.36k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
8.36k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
8.36k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
8.36k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
8.36k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
8.36k
264
8.36k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
8.36k
  ARCH_AARCH64 || \
266
8.36k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
8.36k
))
268
8.36k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
8.36k
#endif
270
8.36k
    assign_itx_all_fn84( 4,  4, );
271
8.36k
    assign_itx_all_fn84( 4,  8, R);
272
8.36k
    assign_itx_all_fn84( 4, 16, R);
273
8.36k
    assign_itx_all_fn84( 8,  4, R);
274
8.36k
    assign_itx_all_fn84( 8,  8, );
275
8.36k
    assign_itx_all_fn84( 8, 16, R);
276
8.36k
    assign_itx_all_fn32( 8, 32, R);
277
8.36k
    assign_itx_all_fn84(16,  4, R);
278
8.36k
    assign_itx_all_fn84(16,  8, R);
279
8.36k
    assign_itx_all_fn16(16, 16, );
280
8.36k
    assign_itx_all_fn32(16, 32, R);
281
8.36k
    assign_itx_all_fn64(16, 64, R);
282
8.36k
    assign_itx_all_fn32(32,  8, R);
283
8.36k
    assign_itx_all_fn32(32, 16, R);
284
8.36k
    assign_itx_all_fn32(32, 32, );
285
8.36k
    assign_itx_all_fn64(32, 64, R);
286
8.36k
    assign_itx_all_fn64(64, 16, R);
287
8.36k
    assign_itx_all_fn64(64, 32, R);
288
8.36k
    assign_itx_all_fn64(64, 64, );
289
290
8.36k
    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
8.36k
    if (!all_simd)
310
8.36k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
8.36k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
9.88k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
9.88k
#define assign_itx_all_fn64(w, h, pfx) \
222
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
9.88k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
9.88k
#define assign_itx_all_fn32(w, h, pfx) \
226
9.88k
    assign_itx_all_fn64(w, h, pfx); \
227
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
9.88k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
9.88k
#define assign_itx_all_fn16(w, h, pfx) \
231
9.88k
    assign_itx_all_fn32(w, h, pfx); \
232
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
9.88k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
9.88k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
9.88k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
9.88k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
9.88k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
9.88k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
9.88k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
9.88k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
9.88k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
9.88k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
9.88k
#define assign_itx_all_fn84(w, h, pfx) \
254
9.88k
    assign_itx_all_fn16(w, h, pfx); \
255
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
9.88k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
9.88k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
9.88k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
9.88k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
9.88k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
9.88k
264
9.88k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
9.88k
  ARCH_AARCH64 || \
266
9.88k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
9.88k
))
268
9.88k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
9.88k
#endif
270
9.88k
    assign_itx_all_fn84( 4,  4, );
271
9.88k
    assign_itx_all_fn84( 4,  8, R);
272
9.88k
    assign_itx_all_fn84( 4, 16, R);
273
9.88k
    assign_itx_all_fn84( 8,  4, R);
274
9.88k
    assign_itx_all_fn84( 8,  8, );
275
9.88k
    assign_itx_all_fn84( 8, 16, R);
276
9.88k
    assign_itx_all_fn32( 8, 32, R);
277
9.88k
    assign_itx_all_fn84(16,  4, R);
278
9.88k
    assign_itx_all_fn84(16,  8, R);
279
9.88k
    assign_itx_all_fn16(16, 16, );
280
9.88k
    assign_itx_all_fn32(16, 32, R);
281
9.88k
    assign_itx_all_fn64(16, 64, R);
282
9.88k
    assign_itx_all_fn32(32,  8, R);
283
9.88k
    assign_itx_all_fn32(32, 16, R);
284
9.88k
    assign_itx_all_fn32(32, 32, );
285
9.88k
    assign_itx_all_fn64(32, 64, R);
286
9.88k
    assign_itx_all_fn64(64, 16, R);
287
9.88k
    assign_itx_all_fn64(64, 32, R);
288
9.88k
    assign_itx_all_fn64(64, 64, );
289
290
9.88k
    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
9.88k
    if (!all_simd)
310
9.88k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
9.88k
}