Coverage Report

Created: 2026-05-30 06:06

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
167k
{
48
167k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
167k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
167k
    const int has_dconly = txtp == DCT_DCT;
51
167k
    assert(w >= 4 && w <= 64);
52
167k
    assert(h >= 4 && h <= 64);
53
167k
    assert(eob >= 0);
54
55
167k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
167k
    const int rnd = (1 << shift) >> 1;
57
58
167k
    if (eob < has_dconly) {
59
45.6k
        int dc = coeff[0];
60
45.6k
        coeff[0] = 0;
61
45.6k
        if (is_rect2)
62
21.4k
            dc = (dc * 181 + 128) >> 8;
63
45.6k
        dc = (dc * 181 + 128) >> 8;
64
45.6k
        dc = (dc + rnd) >> shift;
65
45.6k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
1.53M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
54.6M
            for (int x = 0; x < w; x++)
68
53.2M
                dst[x] = iclip_pixel(dst[x] + dc);
69
45.6k
        return;
70
45.6k
    }
71
72
121k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
121k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
121k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
121k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
121k
#if BITDEPTH == 8
77
121k
    const int row_clip_min = INT16_MIN;
78
121k
    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
121k
    const int row_clip_max = ~row_clip_min;
84
121k
    const int col_clip_max = ~col_clip_min;
85
86
121k
    int32_t tmp[64 * 64], *c = tmp;
87
121k
    int last_nonzero_col; // in first 1d itx
88
121k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
8.28k
        last_nonzero_col = imin(sh - 1, eob);
90
113k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
4.67k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
108k
    } else {
93
108k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
108k
    }
95
121k
    assert(last_nonzero_col < sh);
96
678k
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
556k
        if (is_rect2)
98
4.89M
            for (int x = 0; x < sw; x++)
99
4.62M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
279k
        else
101
4.52M
            for (int x = 0; x < sw; x++)
102
4.24M
                c[x] = coeff[y + x * sh];
103
556k
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
556k
    }
105
121k
    if (last_nonzero_col + 1 < sh)
106
99.1k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
121k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
33.6M
    for (int i = 0; i < w * sh; i++)
110
33.5M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
1.88M
    for (int x = 0; x < w; x++)
113
1.75M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
121k
    c = tmp;
116
1.92M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
43.8M
        for (int x = 0; x < w; x++)
118
42.0M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
121k
}
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
167k
                                               HIGHBD_DECL_SUFFIX) \
128
167k
{ \
129
167k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
167k
                   HIGHBD_TAIL_SUFFIX); \
131
167k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
3.69k
                                               HIGHBD_DECL_SUFFIX) \
128
3.69k
{ \
129
3.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.69k
                   HIGHBD_TAIL_SUFFIX); \
131
3.69k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_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_adst_dct_4x4_c
Line
Count
Source
127
2.87k
                                               HIGHBD_DECL_SUFFIX) \
128
2.87k
{ \
129
2.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.87k
                   HIGHBD_TAIL_SUFFIX); \
131
2.87k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
2.39k
                                               HIGHBD_DECL_SUFFIX) \
128
2.39k
{ \
129
2.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.39k
                   HIGHBD_TAIL_SUFFIX); \
131
2.39k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
3.05k
                                               HIGHBD_DECL_SUFFIX) \
128
3.05k
{ \
129
3.05k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.05k
                   HIGHBD_TAIL_SUFFIX); \
131
3.05k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
229
                                               HIGHBD_DECL_SUFFIX) \
128
229
{ \
129
229
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
229
                   HIGHBD_TAIL_SUFFIX); \
131
229
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_flipadst_dct_4x4_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_dct_flipadst_4x4_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_4x4_c
Line
Count
Source
127
127
                                               HIGHBD_DECL_SUFFIX) \
128
127
{ \
129
127
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
127
                   HIGHBD_TAIL_SUFFIX); \
131
127
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
1.08k
                                               HIGHBD_DECL_SUFFIX) \
128
1.08k
{ \
129
1.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.08k
                   HIGHBD_TAIL_SUFFIX); \
131
1.08k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
628
                                               HIGHBD_DECL_SUFFIX) \
128
628
{ \
129
628
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
628
                   HIGHBD_TAIL_SUFFIX); \
131
628
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
328
                                               HIGHBD_DECL_SUFFIX) \
128
328
{ \
129
328
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
328
                   HIGHBD_TAIL_SUFFIX); \
131
328
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
201
                                               HIGHBD_DECL_SUFFIX) \
128
201
{ \
129
201
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
201
                   HIGHBD_TAIL_SUFFIX); \
131
201
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
327
                                               HIGHBD_DECL_SUFFIX) \
128
327
{ \
129
327
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
327
                   HIGHBD_TAIL_SUFFIX); \
131
327
}
itx_tmpl.c:inv_txfm_add_identity_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_dct_dct_4x8_c
Line
Count
Source
127
1.91k
                                               HIGHBD_DECL_SUFFIX) \
128
1.91k
{ \
129
1.91k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.91k
                   HIGHBD_TAIL_SUFFIX); \
131
1.91k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
668
                                               HIGHBD_DECL_SUFFIX) \
128
668
{ \
129
668
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
668
                   HIGHBD_TAIL_SUFFIX); \
131
668
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
1.15k
                                               HIGHBD_DECL_SUFFIX) \
128
1.15k
{ \
129
1.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.15k
                   HIGHBD_TAIL_SUFFIX); \
131
1.15k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
1.02k
                                               HIGHBD_DECL_SUFFIX) \
128
1.02k
{ \
129
1.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.02k
                   HIGHBD_TAIL_SUFFIX); \
131
1.02k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
1.47k
                                               HIGHBD_DECL_SUFFIX) \
128
1.47k
{ \
129
1.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.47k
                   HIGHBD_TAIL_SUFFIX); \
131
1.47k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
107
                                               HIGHBD_DECL_SUFFIX) \
128
107
{ \
129
107
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
107
                   HIGHBD_TAIL_SUFFIX); \
131
107
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_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_4x8_c
Line
Count
Source
127
82
                                               HIGHBD_DECL_SUFFIX) \
128
82
{ \
129
82
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
82
                   HIGHBD_TAIL_SUFFIX); \
131
82
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
91
                                               HIGHBD_DECL_SUFFIX) \
128
91
{ \
129
91
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
91
                   HIGHBD_TAIL_SUFFIX); \
131
91
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
98
                                               HIGHBD_DECL_SUFFIX) \
128
98
{ \
129
98
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
98
                   HIGHBD_TAIL_SUFFIX); \
131
98
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
490
                                               HIGHBD_DECL_SUFFIX) \
128
490
{ \
129
490
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
490
                   HIGHBD_TAIL_SUFFIX); \
131
490
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
301
                                               HIGHBD_DECL_SUFFIX) \
128
301
{ \
129
301
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
301
                   HIGHBD_TAIL_SUFFIX); \
131
301
}
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
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_adst_identity_4x8_c
Line
Count
Source
127
228
                                               HIGHBD_DECL_SUFFIX) \
128
228
{ \
129
228
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
228
                   HIGHBD_TAIL_SUFFIX); \
131
228
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_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_dct_dct_4x16_c
Line
Count
Source
127
599
                                               HIGHBD_DECL_SUFFIX) \
128
599
{ \
129
599
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
599
                   HIGHBD_TAIL_SUFFIX); \
131
599
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
132
                                               HIGHBD_DECL_SUFFIX) \
128
132
{ \
129
132
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
132
                   HIGHBD_TAIL_SUFFIX); \
131
132
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
391
                                               HIGHBD_DECL_SUFFIX) \
128
391
{ \
129
391
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
391
                   HIGHBD_TAIL_SUFFIX); \
131
391
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_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_adst_adst_4x16_c
Line
Count
Source
127
451
                                               HIGHBD_DECL_SUFFIX) \
128
451
{ \
129
451
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
451
                   HIGHBD_TAIL_SUFFIX); \
131
451
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_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_adst_flipadst_4x16_c
Line
Count
Source
127
47
                                               HIGHBD_DECL_SUFFIX) \
128
47
{ \
129
47
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
47
                   HIGHBD_TAIL_SUFFIX); \
131
47
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
53
                                               HIGHBD_DECL_SUFFIX) \
128
53
{ \
129
53
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
53
                   HIGHBD_TAIL_SUFFIX); \
131
53
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
23
                                               HIGHBD_DECL_SUFFIX) \
128
23
{ \
129
23
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
23
                   HIGHBD_TAIL_SUFFIX); \
131
23
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
58
                                               HIGHBD_DECL_SUFFIX) \
128
58
{ \
129
58
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
58
                   HIGHBD_TAIL_SUFFIX); \
131
58
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
152
                                               HIGHBD_DECL_SUFFIX) \
128
152
{ \
129
152
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
152
                   HIGHBD_TAIL_SUFFIX); \
131
152
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
74
                                               HIGHBD_DECL_SUFFIX) \
128
74
{ \
129
74
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
74
                   HIGHBD_TAIL_SUFFIX); \
131
74
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_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_identity_flipadst_4x16_c
Line
Count
Source
127
41
                                               HIGHBD_DECL_SUFFIX) \
128
41
{ \
129
41
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
41
                   HIGHBD_TAIL_SUFFIX); \
131
41
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
54
                                               HIGHBD_DECL_SUFFIX) \
128
54
{ \
129
54
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
54
                   HIGHBD_TAIL_SUFFIX); \
131
54
}
itx_tmpl.c:inv_txfm_add_identity_adst_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_dct_8x4_c
Line
Count
Source
127
2.56k
                                               HIGHBD_DECL_SUFFIX) \
128
2.56k
{ \
129
2.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.56k
                   HIGHBD_TAIL_SUFFIX); \
131
2.56k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
831
                                               HIGHBD_DECL_SUFFIX) \
128
831
{ \
129
831
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
831
                   HIGHBD_TAIL_SUFFIX); \
131
831
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_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_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
2.10k
                                               HIGHBD_DECL_SUFFIX) \
128
2.10k
{ \
129
2.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.10k
                   HIGHBD_TAIL_SUFFIX); \
131
2.10k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_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_flipadst_8x4_c
Line
Count
Source
127
210
                                               HIGHBD_DECL_SUFFIX) \
128
210
{ \
129
210
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
210
                   HIGHBD_TAIL_SUFFIX); \
131
210
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_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_flipadst_8x4_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_flipadst_flipadst_8x4_c
Line
Count
Source
127
167
                                               HIGHBD_DECL_SUFFIX) \
128
167
{ \
129
167
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
167
                   HIGHBD_TAIL_SUFFIX); \
131
167
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
698
                                               HIGHBD_DECL_SUFFIX) \
128
698
{ \
129
698
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
698
                   HIGHBD_TAIL_SUFFIX); \
131
698
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
367
                                               HIGHBD_DECL_SUFFIX) \
128
367
{ \
129
367
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
367
                   HIGHBD_TAIL_SUFFIX); \
131
367
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
269
                                               HIGHBD_DECL_SUFFIX) \
128
269
{ \
129
269
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
269
                   HIGHBD_TAIL_SUFFIX); \
131
269
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_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_identity_8x4_c
Line
Count
Source
127
328
                                               HIGHBD_DECL_SUFFIX) \
128
328
{ \
129
328
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
328
                   HIGHBD_TAIL_SUFFIX); \
131
328
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
161
                                               HIGHBD_DECL_SUFFIX) \
128
161
{ \
129
161
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
161
                   HIGHBD_TAIL_SUFFIX); \
131
161
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
6.14k
                                               HIGHBD_DECL_SUFFIX) \
128
6.14k
{ \
129
6.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.14k
                   HIGHBD_TAIL_SUFFIX); \
131
6.14k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
1.99k
                                               HIGHBD_DECL_SUFFIX) \
128
1.99k
{ \
129
1.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.99k
                   HIGHBD_TAIL_SUFFIX); \
131
1.99k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
3.92k
                                               HIGHBD_DECL_SUFFIX) \
128
3.92k
{ \
129
3.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.92k
                   HIGHBD_TAIL_SUFFIX); \
131
3.92k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
3.11k
                                               HIGHBD_DECL_SUFFIX) \
128
3.11k
{ \
129
3.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.11k
                   HIGHBD_TAIL_SUFFIX); \
131
3.11k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
3.49k
                                               HIGHBD_DECL_SUFFIX) \
128
3.49k
{ \
129
3.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.49k
                   HIGHBD_TAIL_SUFFIX); \
131
3.49k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
336
                                               HIGHBD_DECL_SUFFIX) \
128
336
{ \
129
336
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
336
                   HIGHBD_TAIL_SUFFIX); \
131
336
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
276
                                               HIGHBD_DECL_SUFFIX) \
128
276
{ \
129
276
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
276
                   HIGHBD_TAIL_SUFFIX); \
131
276
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_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_dct_flipadst_8x8_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_flipadst_flipadst_8x8_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_dct_identity_8x8_c
Line
Count
Source
127
917
                                               HIGHBD_DECL_SUFFIX) \
128
917
{ \
129
917
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
917
                   HIGHBD_TAIL_SUFFIX); \
131
917
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_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_flipadst_identity_8x8_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_identity_flipadst_8x8_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_adst_identity_8x8_c
Line
Count
Source
127
269
                                               HIGHBD_DECL_SUFFIX) \
128
269
{ \
129
269
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
269
                   HIGHBD_TAIL_SUFFIX); \
131
269
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_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_dct_dct_8x16_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_8x16_c
Line
Count
Source
127
505
                                               HIGHBD_DECL_SUFFIX) \
128
505
{ \
129
505
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
505
                   HIGHBD_TAIL_SUFFIX); \
131
505
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_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_dct_adst_8x16_c
Line
Count
Source
127
1.25k
                                               HIGHBD_DECL_SUFFIX) \
128
1.25k
{ \
129
1.25k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.25k
                   HIGHBD_TAIL_SUFFIX); \
131
1.25k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
1.79k
                                               HIGHBD_DECL_SUFFIX) \
128
1.79k
{ \
129
1.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.79k
                   HIGHBD_TAIL_SUFFIX); \
131
1.79k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
222
                                               HIGHBD_DECL_SUFFIX) \
128
222
{ \
129
222
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
222
                   HIGHBD_TAIL_SUFFIX); \
131
222
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_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_flipadst_dct_8x16_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_dct_flipadst_8x16_c
Line
Count
Source
127
236
                                               HIGHBD_DECL_SUFFIX) \
128
236
{ \
129
236
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
236
                   HIGHBD_TAIL_SUFFIX); \
131
236
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
281
                                               HIGHBD_DECL_SUFFIX) \
128
281
{ \
129
281
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
281
                   HIGHBD_TAIL_SUFFIX); \
131
281
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
506
                                               HIGHBD_DECL_SUFFIX) \
128
506
{ \
129
506
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
506
                   HIGHBD_TAIL_SUFFIX); \
131
506
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
330
                                               HIGHBD_DECL_SUFFIX) \
128
330
{ \
129
330
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
330
                   HIGHBD_TAIL_SUFFIX); \
131
330
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
249
                                               HIGHBD_DECL_SUFFIX) \
128
249
{ \
129
249
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
249
                   HIGHBD_TAIL_SUFFIX); \
131
249
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_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_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_identity_adst_8x16_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_dct_dct_8x32_c
Line
Count
Source
127
1.06k
                                               HIGHBD_DECL_SUFFIX) \
128
1.06k
{ \
129
1.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.06k
                   HIGHBD_TAIL_SUFFIX); \
131
1.06k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
82
                                               HIGHBD_DECL_SUFFIX) \
128
82
{ \
129
82
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
82
                   HIGHBD_TAIL_SUFFIX); \
131
82
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
848
                                               HIGHBD_DECL_SUFFIX) \
128
848
{ \
129
848
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
848
                   HIGHBD_TAIL_SUFFIX); \
131
848
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
195
                                               HIGHBD_DECL_SUFFIX) \
128
195
{ \
129
195
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
195
                   HIGHBD_TAIL_SUFFIX); \
131
195
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
579
                                               HIGHBD_DECL_SUFFIX) \
128
579
{ \
129
579
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
579
                   HIGHBD_TAIL_SUFFIX); \
131
579
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
483
                                               HIGHBD_DECL_SUFFIX) \
128
483
{ \
129
483
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
483
                   HIGHBD_TAIL_SUFFIX); \
131
483
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
820
                                               HIGHBD_DECL_SUFFIX) \
128
820
{ \
129
820
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
820
                   HIGHBD_TAIL_SUFFIX); \
131
820
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
46
                                               HIGHBD_DECL_SUFFIX) \
128
46
{ \
129
46
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
46
                   HIGHBD_TAIL_SUFFIX); \
131
46
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
116
                                               HIGHBD_DECL_SUFFIX) \
128
116
{ \
129
116
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
116
                   HIGHBD_TAIL_SUFFIX); \
131
116
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
90
                                               HIGHBD_DECL_SUFFIX) \
128
90
{ \
129
90
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
90
                   HIGHBD_TAIL_SUFFIX); \
131
90
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
50
                                               HIGHBD_DECL_SUFFIX) \
128
50
{ \
129
50
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
50
                   HIGHBD_TAIL_SUFFIX); \
131
50
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
58
                                               HIGHBD_DECL_SUFFIX) \
128
58
{ \
129
58
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
58
                   HIGHBD_TAIL_SUFFIX); \
131
58
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_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_identity_dct_16x4_c
Line
Count
Source
127
155
                                               HIGHBD_DECL_SUFFIX) \
128
155
{ \
129
155
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
155
                   HIGHBD_TAIL_SUFFIX); \
131
155
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
108
                                               HIGHBD_DECL_SUFFIX) \
128
108
{ \
129
108
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
108
                   HIGHBD_TAIL_SUFFIX); \
131
108
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
46
                                               HIGHBD_DECL_SUFFIX) \
128
46
{ \
129
46
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
46
                   HIGHBD_TAIL_SUFFIX); \
131
46
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
181
                                               HIGHBD_DECL_SUFFIX) \
128
181
{ \
129
181
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
181
                   HIGHBD_TAIL_SUFFIX); \
131
181
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
66
                                               HIGHBD_DECL_SUFFIX) \
128
66
{ \
129
66
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
66
                   HIGHBD_TAIL_SUFFIX); \
131
66
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_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_identity_identity_16x8_c
Line
Count
Source
127
964
                                               HIGHBD_DECL_SUFFIX) \
128
964
{ \
129
964
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
964
                   HIGHBD_TAIL_SUFFIX); \
131
964
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
2.34k
                                               HIGHBD_DECL_SUFFIX) \
128
2.34k
{ \
129
2.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.34k
                   HIGHBD_TAIL_SUFFIX); \
131
2.34k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
1.69k
                                               HIGHBD_DECL_SUFFIX) \
128
1.69k
{ \
129
1.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.69k
                   HIGHBD_TAIL_SUFFIX); \
131
1.69k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
2.23k
                                               HIGHBD_DECL_SUFFIX) \
128
2.23k
{ \
129
2.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.23k
                   HIGHBD_TAIL_SUFFIX); \
131
2.23k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
228
                                               HIGHBD_DECL_SUFFIX) \
128
228
{ \
129
228
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
228
                   HIGHBD_TAIL_SUFFIX); \
131
228
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_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_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_dct_flipadst_16x8_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_flipadst_16x8_c
Line
Count
Source
127
219
                                               HIGHBD_DECL_SUFFIX) \
128
219
{ \
129
219
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
219
                   HIGHBD_TAIL_SUFFIX); \
131
219
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
581
                                               HIGHBD_DECL_SUFFIX) \
128
581
{ \
129
581
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
581
                   HIGHBD_TAIL_SUFFIX); \
131
581
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
348
                                               HIGHBD_DECL_SUFFIX) \
128
348
{ \
129
348
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
348
                   HIGHBD_TAIL_SUFFIX); \
131
348
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
249
                                               HIGHBD_DECL_SUFFIX) \
128
249
{ \
129
249
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
249
                   HIGHBD_TAIL_SUFFIX); \
131
249
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
139
                                               HIGHBD_DECL_SUFFIX) \
128
139
{ \
129
139
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
139
                   HIGHBD_TAIL_SUFFIX); \
131
139
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
187
                                               HIGHBD_DECL_SUFFIX) \
128
187
{ \
129
187
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
187
                   HIGHBD_TAIL_SUFFIX); \
131
187
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
87
                                               HIGHBD_DECL_SUFFIX) \
128
87
{ \
129
87
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
87
                   HIGHBD_TAIL_SUFFIX); \
131
87
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
3.63k
                                               HIGHBD_DECL_SUFFIX) \
128
3.63k
{ \
129
3.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.63k
                   HIGHBD_TAIL_SUFFIX); \
131
3.63k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
504
                                               HIGHBD_DECL_SUFFIX) \
128
504
{ \
129
504
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
504
                   HIGHBD_TAIL_SUFFIX); \
131
504
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_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_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
2.73k
                                               HIGHBD_DECL_SUFFIX) \
128
2.73k
{ \
129
2.73k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.73k
                   HIGHBD_TAIL_SUFFIX); \
131
2.73k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
93
                                               HIGHBD_DECL_SUFFIX) \
128
93
{ \
129
93
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
93
                   HIGHBD_TAIL_SUFFIX); \
131
93
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_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_dct_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_flipadst_16x16_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_flipadst_flipadst_16x16_c
Line
Count
Source
127
108
                                               HIGHBD_DECL_SUFFIX) \
128
108
{ \
129
108
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
108
                   HIGHBD_TAIL_SUFFIX); \
131
108
}
itx_tmpl.c:inv_txfm_add_dct_identity_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_identity_dct_16x16_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_dct_dct_16x32_c
Line
Count
Source
127
13.3k
                                               HIGHBD_DECL_SUFFIX) \
128
13.3k
{ \
129
13.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.3k
                   HIGHBD_TAIL_SUFFIX); \
131
13.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
272
                                               HIGHBD_DECL_SUFFIX) \
128
272
{ \
129
272
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
272
                   HIGHBD_TAIL_SUFFIX); \
131
272
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
270
                                               HIGHBD_DECL_SUFFIX) \
128
270
{ \
129
270
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
270
                   HIGHBD_TAIL_SUFFIX); \
131
270
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
1.28k
                                               HIGHBD_DECL_SUFFIX) \
128
1.28k
{ \
129
1.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.28k
                   HIGHBD_TAIL_SUFFIX); \
131
1.28k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_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_dct_dct_32x16_c
Line
Count
Source
127
7.73k
                                               HIGHBD_DECL_SUFFIX) \
128
7.73k
{ \
129
7.73k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.73k
                   HIGHBD_TAIL_SUFFIX); \
131
7.73k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
197
                                               HIGHBD_DECL_SUFFIX) \
128
197
{ \
129
197
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
197
                   HIGHBD_TAIL_SUFFIX); \
131
197
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
18.9k
                                               HIGHBD_DECL_SUFFIX) \
128
18.9k
{ \
129
18.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
18.9k
                   HIGHBD_TAIL_SUFFIX); \
131
18.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_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_32x64_c
Line
Count
Source
127
8.92k
                                               HIGHBD_DECL_SUFFIX) \
128
8.92k
{ \
129
8.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.92k
                   HIGHBD_TAIL_SUFFIX); \
131
8.92k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
76
                                               HIGHBD_DECL_SUFFIX) \
128
76
{ \
129
76
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
76
                   HIGHBD_TAIL_SUFFIX); \
131
76
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
3.20k
                                               HIGHBD_DECL_SUFFIX) \
128
3.20k
{ \
129
3.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.20k
                   HIGHBD_TAIL_SUFFIX); \
131
3.20k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
7.22k
                                               HIGHBD_DECL_SUFFIX) \
128
7.22k
{ \
129
7.22k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.22k
                   HIGHBD_TAIL_SUFFIX); \
131
7.22k
}
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
156k
{
188
156k
    int32_t tmp[4 * 4], *c = tmp;
189
780k
    for (int y = 0; y < 4; y++, c += 4) {
190
3.12M
        for (int x = 0; x < 4; x++)
191
2.49M
            c[x] = coeff[y + x * 4] >> 2;
192
624k
        dav1d_inv_wht4_1d_c(c, 1);
193
624k
    }
194
156k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
780k
    for (int x = 0; x < 4; x++)
197
624k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
156k
    c = tmp;
200
780k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
3.12M
        for (int x = 0; x < 4; x++)
202
2.49M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
156k
}
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
15.8k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
15.8k
#define assign_itx_all_fn64(w, h, pfx) \
222
302k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
302k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
15.8k
#define assign_itx_all_fn32(w, h, pfx) \
226
222k
    assign_itx_all_fn64(w, h, pfx); \
227
222k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
222k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
15.8k
#define assign_itx_all_fn16(w, h, pfx) \
231
143k
    assign_itx_all_fn32(w, h, pfx); \
232
143k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
143k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
143k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
143k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
143k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
143k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
143k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
143k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
143k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
143k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
143k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
143k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
143k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
143k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
143k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
143k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
143k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
143k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
143k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
143k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
15.8k
#define assign_itx_all_fn84(w, h, pfx) \
254
127k
    assign_itx_all_fn16(w, h, pfx); \
255
127k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
127k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
127k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
127k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
127k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
127k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
127k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
127k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
15.8k
264
15.8k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
15.8k
  ARCH_AARCH64 || \
266
15.8k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
15.8k
))
268
15.8k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
15.8k
#endif
270
15.8k
    assign_itx_all_fn84( 4,  4, );
271
15.8k
    assign_itx_all_fn84( 4,  8, R);
272
15.8k
    assign_itx_all_fn84( 4, 16, R);
273
15.8k
    assign_itx_all_fn84( 8,  4, R);
274
15.8k
    assign_itx_all_fn84( 8,  8, );
275
15.8k
    assign_itx_all_fn84( 8, 16, R);
276
15.8k
    assign_itx_all_fn32( 8, 32, R);
277
15.8k
    assign_itx_all_fn84(16,  4, R);
278
15.8k
    assign_itx_all_fn84(16,  8, R);
279
15.8k
    assign_itx_all_fn16(16, 16, );
280
15.8k
    assign_itx_all_fn32(16, 32, R);
281
15.8k
    assign_itx_all_fn64(16, 64, R);
282
15.8k
    assign_itx_all_fn32(32,  8, R);
283
15.8k
    assign_itx_all_fn32(32, 16, R);
284
15.8k
    assign_itx_all_fn32(32, 32, );
285
15.8k
    assign_itx_all_fn64(32, 64, R);
286
15.8k
    assign_itx_all_fn64(64, 16, R);
287
15.8k
    assign_itx_all_fn64(64, 32, R);
288
15.8k
    assign_itx_all_fn64(64, 64, );
289
290
15.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
15.8k
    if (!all_simd)
310
15.8k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
15.8k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
7.70k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
7.70k
#define assign_itx_all_fn64(w, h, pfx) \
222
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
7.70k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
7.70k
#define assign_itx_all_fn32(w, h, pfx) \
226
7.70k
    assign_itx_all_fn64(w, h, pfx); \
227
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
7.70k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
7.70k
#define assign_itx_all_fn16(w, h, pfx) \
231
7.70k
    assign_itx_all_fn32(w, h, pfx); \
232
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
7.70k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
7.70k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
7.70k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
7.70k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
7.70k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
7.70k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
7.70k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
7.70k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
7.70k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
7.70k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
7.70k
#define assign_itx_all_fn84(w, h, pfx) \
254
7.70k
    assign_itx_all_fn16(w, h, pfx); \
255
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
7.70k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
7.70k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
7.70k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
7.70k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
7.70k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
7.70k
264
7.70k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
7.70k
  ARCH_AARCH64 || \
266
7.70k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
7.70k
))
268
7.70k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
7.70k
#endif
270
7.70k
    assign_itx_all_fn84( 4,  4, );
271
7.70k
    assign_itx_all_fn84( 4,  8, R);
272
7.70k
    assign_itx_all_fn84( 4, 16, R);
273
7.70k
    assign_itx_all_fn84( 8,  4, R);
274
7.70k
    assign_itx_all_fn84( 8,  8, );
275
7.70k
    assign_itx_all_fn84( 8, 16, R);
276
7.70k
    assign_itx_all_fn32( 8, 32, R);
277
7.70k
    assign_itx_all_fn84(16,  4, R);
278
7.70k
    assign_itx_all_fn84(16,  8, R);
279
7.70k
    assign_itx_all_fn16(16, 16, );
280
7.70k
    assign_itx_all_fn32(16, 32, R);
281
7.70k
    assign_itx_all_fn64(16, 64, R);
282
7.70k
    assign_itx_all_fn32(32,  8, R);
283
7.70k
    assign_itx_all_fn32(32, 16, R);
284
7.70k
    assign_itx_all_fn32(32, 32, );
285
7.70k
    assign_itx_all_fn64(32, 64, R);
286
7.70k
    assign_itx_all_fn64(64, 16, R);
287
7.70k
    assign_itx_all_fn64(64, 32, R);
288
7.70k
    assign_itx_all_fn64(64, 64, );
289
290
7.70k
    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
7.70k
    if (!all_simd)
310
7.70k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
7.70k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
8.19k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
8.19k
#define assign_itx_all_fn64(w, h, pfx) \
222
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
8.19k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
8.19k
#define assign_itx_all_fn32(w, h, pfx) \
226
8.19k
    assign_itx_all_fn64(w, h, pfx); \
227
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
8.19k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
8.19k
#define assign_itx_all_fn16(w, h, pfx) \
231
8.19k
    assign_itx_all_fn32(w, h, pfx); \
232
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
8.19k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
8.19k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
8.19k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
8.19k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
8.19k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
8.19k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
8.19k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
8.19k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
8.19k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
8.19k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
8.19k
#define assign_itx_all_fn84(w, h, pfx) \
254
8.19k
    assign_itx_all_fn16(w, h, pfx); \
255
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
8.19k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
8.19k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
8.19k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
8.19k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
8.19k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
8.19k
264
8.19k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
8.19k
  ARCH_AARCH64 || \
266
8.19k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
8.19k
))
268
8.19k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
8.19k
#endif
270
8.19k
    assign_itx_all_fn84( 4,  4, );
271
8.19k
    assign_itx_all_fn84( 4,  8, R);
272
8.19k
    assign_itx_all_fn84( 4, 16, R);
273
8.19k
    assign_itx_all_fn84( 8,  4, R);
274
8.19k
    assign_itx_all_fn84( 8,  8, );
275
8.19k
    assign_itx_all_fn84( 8, 16, R);
276
8.19k
    assign_itx_all_fn32( 8, 32, R);
277
8.19k
    assign_itx_all_fn84(16,  4, R);
278
8.19k
    assign_itx_all_fn84(16,  8, R);
279
8.19k
    assign_itx_all_fn16(16, 16, );
280
8.19k
    assign_itx_all_fn32(16, 32, R);
281
8.19k
    assign_itx_all_fn64(16, 64, R);
282
8.19k
    assign_itx_all_fn32(32,  8, R);
283
8.19k
    assign_itx_all_fn32(32, 16, R);
284
8.19k
    assign_itx_all_fn32(32, 32, );
285
8.19k
    assign_itx_all_fn64(32, 64, R);
286
8.19k
    assign_itx_all_fn64(64, 16, R);
287
8.19k
    assign_itx_all_fn64(64, 32, R);
288
8.19k
    assign_itx_all_fn64(64, 64, );
289
290
8.19k
    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.19k
    if (!all_simd)
310
8.19k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
8.19k
}