Coverage Report

Created: 2026-05-30 06:08

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
353k
{
48
353k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
353k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
353k
    const int has_dconly = txtp == DCT_DCT;
51
353k
    assert(w >= 4 && w <= 64);
52
353k
    assert(h >= 4 && h <= 64);
53
353k
    assert(eob >= 0);
54
55
353k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
353k
    const int rnd = (1 << shift) >> 1;
57
58
353k
    if (eob < has_dconly) {
59
195k
        int dc = coeff[0];
60
195k
        coeff[0] = 0;
61
195k
        if (is_rect2)
62
24.6k
            dc = (dc * 181 + 128) >> 8;
63
195k
        dc = (dc * 181 + 128) >> 8;
64
195k
        dc = (dc + rnd) >> shift;
65
195k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
7.91M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
351M
            for (int x = 0; x < w; x++)
68
343M
                dst[x] = iclip_pixel(dst[x] + dc);
69
195k
        return;
70
195k
    }
71
72
158k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
158k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
158k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
158k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
158k
#if BITDEPTH == 8
77
158k
    const int row_clip_min = INT16_MIN;
78
158k
    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
158k
    const int row_clip_max = ~row_clip_min;
84
158k
    const int col_clip_max = ~col_clip_min;
85
86
158k
    int32_t tmp[64 * 64], *c = tmp;
87
158k
    int last_nonzero_col; // in first 1d itx
88
158k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
8.34k
        last_nonzero_col = imin(sh - 1, eob);
90
149k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
5.26k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
144k
    } else {
93
144k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
144k
    }
95
158k
    assert(last_nonzero_col < sh);
96
936k
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
778k
        if (is_rect2)
98
6.00M
            for (int x = 0; x < sw; x++)
99
5.68M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
465k
        else
101
7.90M
            for (int x = 0; x < sw; x++)
102
7.44M
                c[x] = coeff[y + x * sh];
103
778k
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
778k
    }
105
158k
    if (last_nonzero_col + 1 < sh)
106
129k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
158k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
52.8M
    for (int i = 0; i < w * sh; i++)
110
52.7M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
2.73M
    for (int x = 0; x < w; x++)
113
2.57M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
158k
    c = tmp;
116
2.76M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
71.1M
        for (int x = 0; x < w; x++)
118
68.5M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
158k
}
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
353k
                                               HIGHBD_DECL_SUFFIX) \
128
353k
{ \
129
353k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
353k
                   HIGHBD_TAIL_SUFFIX); \
131
353k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
4.55k
                                               HIGHBD_DECL_SUFFIX) \
128
4.55k
{ \
129
4.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.55k
                   HIGHBD_TAIL_SUFFIX); \
131
4.55k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
2.64k
                                               HIGHBD_DECL_SUFFIX) \
128
2.64k
{ \
129
2.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.64k
                   HIGHBD_TAIL_SUFFIX); \
131
2.64k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
2.99k
                                               HIGHBD_DECL_SUFFIX) \
128
2.99k
{ \
129
2.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.99k
                   HIGHBD_TAIL_SUFFIX); \
131
2.99k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
2.63k
                                               HIGHBD_DECL_SUFFIX) \
128
2.63k
{ \
129
2.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.63k
                   HIGHBD_TAIL_SUFFIX); \
131
2.63k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
3.16k
                                               HIGHBD_DECL_SUFFIX) \
128
3.16k
{ \
129
3.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.16k
                   HIGHBD_TAIL_SUFFIX); \
131
3.16k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
231
                                               HIGHBD_DECL_SUFFIX) \
128
231
{ \
129
231
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
231
                   HIGHBD_TAIL_SUFFIX); \
131
231
}
itx_tmpl.c:inv_txfm_add_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
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_dct_flipadst_4x4_c
Line
Count
Source
127
96
                                               HIGHBD_DECL_SUFFIX) \
128
96
{ \
129
96
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
96
                   HIGHBD_TAIL_SUFFIX); \
131
96
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
235
                                               HIGHBD_DECL_SUFFIX) \
128
235
{ \
129
235
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
235
                   HIGHBD_TAIL_SUFFIX); \
131
235
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
930
                                               HIGHBD_DECL_SUFFIX) \
128
930
{ \
129
930
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
930
                   HIGHBD_TAIL_SUFFIX); \
131
930
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
473
                                               HIGHBD_DECL_SUFFIX) \
128
473
{ \
129
473
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
473
                   HIGHBD_TAIL_SUFFIX); \
131
473
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_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_identity_flipadst_4x4_c
Line
Count
Source
127
185
                                               HIGHBD_DECL_SUFFIX) \
128
185
{ \
129
185
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
185
                   HIGHBD_TAIL_SUFFIX); \
131
185
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
369
                                               HIGHBD_DECL_SUFFIX) \
128
369
{ \
129
369
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
369
                   HIGHBD_TAIL_SUFFIX); \
131
369
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
263
                                               HIGHBD_DECL_SUFFIX) \
128
263
{ \
129
263
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
263
                   HIGHBD_TAIL_SUFFIX); \
131
263
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
1.97k
                                               HIGHBD_DECL_SUFFIX) \
128
1.97k
{ \
129
1.97k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.97k
                   HIGHBD_TAIL_SUFFIX); \
131
1.97k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
780
                                               HIGHBD_DECL_SUFFIX) \
128
780
{ \
129
780
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
780
                   HIGHBD_TAIL_SUFFIX); \
131
780
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
1.11k
                                               HIGHBD_DECL_SUFFIX) \
128
1.11k
{ \
129
1.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.11k
                   HIGHBD_TAIL_SUFFIX); \
131
1.11k
}
itx_tmpl.c:inv_txfm_add_dct_adst_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_adst_adst_4x8_c
Line
Count
Source
127
1.44k
                                               HIGHBD_DECL_SUFFIX) \
128
1.44k
{ \
129
1.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.44k
                   HIGHBD_TAIL_SUFFIX); \
131
1.44k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_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_adst_flipadst_4x8_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_flipadst_dct_4x8_c
Line
Count
Source
127
184
                                               HIGHBD_DECL_SUFFIX) \
128
184
{ \
129
184
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
184
                   HIGHBD_TAIL_SUFFIX); \
131
184
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_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_flipadst_4x8_c
Line
Count
Source
127
153
                                               HIGHBD_DECL_SUFFIX) \
128
153
{ \
129
153
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
153
                   HIGHBD_TAIL_SUFFIX); \
131
153
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
460
                                               HIGHBD_DECL_SUFFIX) \
128
460
{ \
129
460
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
460
                   HIGHBD_TAIL_SUFFIX); \
131
460
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
200
                                               HIGHBD_DECL_SUFFIX) \
128
200
{ \
129
200
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
200
                   HIGHBD_TAIL_SUFFIX); \
131
200
}
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
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_adst_identity_4x8_c
Line
Count
Source
127
183
                                               HIGHBD_DECL_SUFFIX) \
128
183
{ \
129
183
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
183
                   HIGHBD_TAIL_SUFFIX); \
131
183
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_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_dct_dct_4x16_c
Line
Count
Source
127
1.20k
                                               HIGHBD_DECL_SUFFIX) \
128
1.20k
{ \
129
1.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.20k
                   HIGHBD_TAIL_SUFFIX); \
131
1.20k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
622
                                               HIGHBD_DECL_SUFFIX) \
128
622
{ \
129
622
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
622
                   HIGHBD_TAIL_SUFFIX); \
131
622
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
491
                                               HIGHBD_DECL_SUFFIX) \
128
491
{ \
129
491
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
491
                   HIGHBD_TAIL_SUFFIX); \
131
491
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
514
                                               HIGHBD_DECL_SUFFIX) \
128
514
{ \
129
514
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
514
                   HIGHBD_TAIL_SUFFIX); \
131
514
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
557
                                               HIGHBD_DECL_SUFFIX) \
128
557
{ \
129
557
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
557
                   HIGHBD_TAIL_SUFFIX); \
131
557
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
227
                                               HIGHBD_DECL_SUFFIX) \
128
227
{ \
129
227
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
227
                   HIGHBD_TAIL_SUFFIX); \
131
227
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_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_flipadst_dct_4x16_c
Line
Count
Source
127
104
                                               HIGHBD_DECL_SUFFIX) \
128
104
{ \
129
104
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
104
                   HIGHBD_TAIL_SUFFIX); \
131
104
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_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_flipadst_flipadst_4x16_c
Line
Count
Source
127
112
                                               HIGHBD_DECL_SUFFIX) \
128
112
{ \
129
112
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
112
                   HIGHBD_TAIL_SUFFIX); \
131
112
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
296
                                               HIGHBD_DECL_SUFFIX) \
128
296
{ \
129
296
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
296
                   HIGHBD_TAIL_SUFFIX); \
131
296
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_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_flipadst_identity_4x16_c
Line
Count
Source
127
305
                                               HIGHBD_DECL_SUFFIX) \
128
305
{ \
129
305
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
305
                   HIGHBD_TAIL_SUFFIX); \
131
305
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
194
                                               HIGHBD_DECL_SUFFIX) \
128
194
{ \
129
194
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
194
                   HIGHBD_TAIL_SUFFIX); \
131
194
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
204
                                               HIGHBD_DECL_SUFFIX) \
128
204
{ \
129
204
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
204
                   HIGHBD_TAIL_SUFFIX); \
131
204
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
160
                                               HIGHBD_DECL_SUFFIX) \
128
160
{ \
129
160
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
160
                   HIGHBD_TAIL_SUFFIX); \
131
160
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
2.15k
                                               HIGHBD_DECL_SUFFIX) \
128
2.15k
{ \
129
2.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.15k
                   HIGHBD_TAIL_SUFFIX); \
131
2.15k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
1.09k
                                               HIGHBD_DECL_SUFFIX) \
128
1.09k
{ \
129
1.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.09k
                   HIGHBD_TAIL_SUFFIX); \
131
1.09k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
1.62k
                                               HIGHBD_DECL_SUFFIX) \
128
1.62k
{ \
129
1.62k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.62k
                   HIGHBD_TAIL_SUFFIX); \
131
1.62k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
1.37k
                                               HIGHBD_DECL_SUFFIX) \
128
1.37k
{ \
129
1.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.37k
                   HIGHBD_TAIL_SUFFIX); \
131
1.37k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
1.83k
                                               HIGHBD_DECL_SUFFIX) \
128
1.83k
{ \
129
1.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.83k
                   HIGHBD_TAIL_SUFFIX); \
131
1.83k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_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_adst_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_flipadst_dct_8x4_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_dct_flipadst_8x4_c
Line
Count
Source
127
105
                                               HIGHBD_DECL_SUFFIX) \
128
105
{ \
129
105
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
105
                   HIGHBD_TAIL_SUFFIX); \
131
105
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_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_identity_8x4_c
Line
Count
Source
127
527
                                               HIGHBD_DECL_SUFFIX) \
128
527
{ \
129
527
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
527
                   HIGHBD_TAIL_SUFFIX); \
131
527
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
340
                                               HIGHBD_DECL_SUFFIX) \
128
340
{ \
129
340
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
340
                   HIGHBD_TAIL_SUFFIX); \
131
340
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
247
                                               HIGHBD_DECL_SUFFIX) \
128
247
{ \
129
247
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
247
                   HIGHBD_TAIL_SUFFIX); \
131
247
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_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_8x4_c
Line
Count
Source
127
263
                                               HIGHBD_DECL_SUFFIX) \
128
263
{ \
129
263
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
263
                   HIGHBD_TAIL_SUFFIX); \
131
263
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
145
                                               HIGHBD_DECL_SUFFIX) \
128
145
{ \
129
145
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
145
                   HIGHBD_TAIL_SUFFIX); \
131
145
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
7.87k
                                               HIGHBD_DECL_SUFFIX) \
128
7.87k
{ \
129
7.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.87k
                   HIGHBD_TAIL_SUFFIX); \
131
7.87k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
2.81k
                                               HIGHBD_DECL_SUFFIX) \
128
2.81k
{ \
129
2.81k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.81k
                   HIGHBD_TAIL_SUFFIX); \
131
2.81k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
4.24k
                                               HIGHBD_DECL_SUFFIX) \
128
4.24k
{ \
129
4.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.24k
                   HIGHBD_TAIL_SUFFIX); \
131
4.24k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
3.51k
                                               HIGHBD_DECL_SUFFIX) \
128
3.51k
{ \
129
3.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.51k
                   HIGHBD_TAIL_SUFFIX); \
131
3.51k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
4.22k
                                               HIGHBD_DECL_SUFFIX) \
128
4.22k
{ \
129
4.22k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.22k
                   HIGHBD_TAIL_SUFFIX); \
131
4.22k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
394
                                               HIGHBD_DECL_SUFFIX) \
128
394
{ \
129
394
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
394
                   HIGHBD_TAIL_SUFFIX); \
131
394
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
295
                                               HIGHBD_DECL_SUFFIX) \
128
295
{ \
129
295
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
295
                   HIGHBD_TAIL_SUFFIX); \
131
295
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
432
                                               HIGHBD_DECL_SUFFIX) \
128
432
{ \
129
432
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
432
                   HIGHBD_TAIL_SUFFIX); \
131
432
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
414
                                               HIGHBD_DECL_SUFFIX) \
128
414
{ \
129
414
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
414
                   HIGHBD_TAIL_SUFFIX); \
131
414
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_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_identity_8x8_c
Line
Count
Source
127
991
                                               HIGHBD_DECL_SUFFIX) \
128
991
{ \
129
991
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
991
                   HIGHBD_TAIL_SUFFIX); \
131
991
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
544
                                               HIGHBD_DECL_SUFFIX) \
128
544
{ \
129
544
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
544
                   HIGHBD_TAIL_SUFFIX); \
131
544
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
241
                                               HIGHBD_DECL_SUFFIX) \
128
241
{ \
129
241
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
241
                   HIGHBD_TAIL_SUFFIX); \
131
241
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_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_8x8_c
Line
Count
Source
127
317
                                               HIGHBD_DECL_SUFFIX) \
128
317
{ \
129
317
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
317
                   HIGHBD_TAIL_SUFFIX); \
131
317
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
231
                                               HIGHBD_DECL_SUFFIX) \
128
231
{ \
129
231
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
231
                   HIGHBD_TAIL_SUFFIX); \
131
231
}
itx_tmpl.c:inv_txfm_add_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
1.38k
                                               HIGHBD_DECL_SUFFIX) \
128
1.38k
{ \
129
1.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.38k
                   HIGHBD_TAIL_SUFFIX); \
131
1.38k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
1.52k
                                               HIGHBD_DECL_SUFFIX) \
128
1.52k
{ \
129
1.52k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.52k
                   HIGHBD_TAIL_SUFFIX); \
131
1.52k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_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_adst_adst_8x16_c
Line
Count
Source
127
1.53k
                                               HIGHBD_DECL_SUFFIX) \
128
1.53k
{ \
129
1.53k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.53k
                   HIGHBD_TAIL_SUFFIX); \
131
1.53k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_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_adst_flipadst_8x16_c
Line
Count
Source
127
166
                                               HIGHBD_DECL_SUFFIX) \
128
166
{ \
129
166
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
166
                   HIGHBD_TAIL_SUFFIX); \
131
166
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_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_dct_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_flipadst_flipadst_8x16_c
Line
Count
Source
127
129
                                               HIGHBD_DECL_SUFFIX) \
128
129
{ \
129
129
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
129
                   HIGHBD_TAIL_SUFFIX); \
131
129
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
532
                                               HIGHBD_DECL_SUFFIX) \
128
532
{ \
129
532
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
532
                   HIGHBD_TAIL_SUFFIX); \
131
532
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_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_flipadst_identity_8x16_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_identity_flipadst_8x16_c
Line
Count
Source
127
125
                                               HIGHBD_DECL_SUFFIX) \
128
125
{ \
129
125
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
125
                   HIGHBD_TAIL_SUFFIX); \
131
125
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_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_identity_adst_8x16_c
Line
Count
Source
127
135
                                               HIGHBD_DECL_SUFFIX) \
128
135
{ \
129
135
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
135
                   HIGHBD_TAIL_SUFFIX); \
131
135
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
2.07k
                                               HIGHBD_DECL_SUFFIX) \
128
2.07k
{ \
129
2.07k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.07k
                   HIGHBD_TAIL_SUFFIX); \
131
2.07k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
138
                                               HIGHBD_DECL_SUFFIX) \
128
138
{ \
129
138
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
138
                   HIGHBD_TAIL_SUFFIX); \
131
138
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
1.04k
                                               HIGHBD_DECL_SUFFIX) \
128
1.04k
{ \
129
1.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.04k
                   HIGHBD_TAIL_SUFFIX); \
131
1.04k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
591
                                               HIGHBD_DECL_SUFFIX) \
128
591
{ \
129
591
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
591
                   HIGHBD_TAIL_SUFFIX); \
131
591
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
605
                                               HIGHBD_DECL_SUFFIX) \
128
605
{ \
129
605
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
605
                   HIGHBD_TAIL_SUFFIX); \
131
605
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
574
                                               HIGHBD_DECL_SUFFIX) \
128
574
{ \
129
574
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
574
                   HIGHBD_TAIL_SUFFIX); \
131
574
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
924
                                               HIGHBD_DECL_SUFFIX) \
128
924
{ \
129
924
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
924
                   HIGHBD_TAIL_SUFFIX); \
131
924
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_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_flipadst_16x4_c
Line
Count
Source
127
88
                                               HIGHBD_DECL_SUFFIX) \
128
88
{ \
129
88
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
88
                   HIGHBD_TAIL_SUFFIX); \
131
88
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_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_flipadst_16x4_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_flipadst_flipadst_16x4_c
Line
Count
Source
127
133
                                               HIGHBD_DECL_SUFFIX) \
128
133
{ \
129
133
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
133
                   HIGHBD_TAIL_SUFFIX); \
131
133
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_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_dct_16x4_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_flipadst_identity_16x4_c
Line
Count
Source
127
183
                                               HIGHBD_DECL_SUFFIX) \
128
183
{ \
129
183
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
183
                   HIGHBD_TAIL_SUFFIX); \
131
183
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
99
                                               HIGHBD_DECL_SUFFIX) \
128
99
{ \
129
99
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
99
                   HIGHBD_TAIL_SUFFIX); \
131
99
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
198
                                               HIGHBD_DECL_SUFFIX) \
128
198
{ \
129
198
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
198
                   HIGHBD_TAIL_SUFFIX); \
131
198
}
itx_tmpl.c:inv_txfm_add_identity_adst_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_dct_dct_16x8_c
Line
Count
Source
127
3.59k
                                               HIGHBD_DECL_SUFFIX) \
128
3.59k
{ \
129
3.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.59k
                   HIGHBD_TAIL_SUFFIX); \
131
3.59k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
779
                                               HIGHBD_DECL_SUFFIX) \
128
779
{ \
129
779
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
779
                   HIGHBD_TAIL_SUFFIX); \
131
779
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
2.38k
                                               HIGHBD_DECL_SUFFIX) \
128
2.38k
{ \
129
2.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.38k
                   HIGHBD_TAIL_SUFFIX); \
131
2.38k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
1.64k
                                               HIGHBD_DECL_SUFFIX) \
128
1.64k
{ \
129
1.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.64k
                   HIGHBD_TAIL_SUFFIX); \
131
1.64k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
2.44k
                                               HIGHBD_DECL_SUFFIX) \
128
2.44k
{ \
129
2.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.44k
                   HIGHBD_TAIL_SUFFIX); \
131
2.44k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_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_adst_flipadst_16x8_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_flipadst_dct_16x8_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_flipadst_16x8_c
Line
Count
Source
127
216
                                               HIGHBD_DECL_SUFFIX) \
128
216
{ \
129
216
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
216
                   HIGHBD_TAIL_SUFFIX); \
131
216
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
160
                                               HIGHBD_DECL_SUFFIX) \
128
160
{ \
129
160
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
160
                   HIGHBD_TAIL_SUFFIX); \
131
160
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
525
                                               HIGHBD_DECL_SUFFIX) \
128
525
{ \
129
525
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
525
                   HIGHBD_TAIL_SUFFIX); \
131
525
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
345
                                               HIGHBD_DECL_SUFFIX) \
128
345
{ \
129
345
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
345
                   HIGHBD_TAIL_SUFFIX); \
131
345
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_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_identity_flipadst_16x8_c
Line
Count
Source
127
130
                                               HIGHBD_DECL_SUFFIX) \
128
130
{ \
129
130
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
130
                   HIGHBD_TAIL_SUFFIX); \
131
130
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_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_adst_16x8_c
Line
Count
Source
127
135
                                               HIGHBD_DECL_SUFFIX) \
128
135
{ \
129
135
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
135
                   HIGHBD_TAIL_SUFFIX); \
131
135
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
8.20k
                                               HIGHBD_DECL_SUFFIX) \
128
8.20k
{ \
129
8.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.20k
                   HIGHBD_TAIL_SUFFIX); \
131
8.20k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
1.18k
                                               HIGHBD_DECL_SUFFIX) \
128
1.18k
{ \
129
1.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.18k
                   HIGHBD_TAIL_SUFFIX); \
131
1.18k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
6.28k
                                               HIGHBD_DECL_SUFFIX) \
128
6.28k
{ \
129
6.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.28k
                   HIGHBD_TAIL_SUFFIX); \
131
6.28k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
4.99k
                                               HIGHBD_DECL_SUFFIX) \
128
4.99k
{ \
129
4.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.99k
                   HIGHBD_TAIL_SUFFIX); \
131
4.99k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
7.76k
                                               HIGHBD_DECL_SUFFIX) \
128
7.76k
{ \
129
7.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.76k
                   HIGHBD_TAIL_SUFFIX); \
131
7.76k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
209
                                               HIGHBD_DECL_SUFFIX) \
128
209
{ \
129
209
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
209
                   HIGHBD_TAIL_SUFFIX); \
131
209
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
218
                                               HIGHBD_DECL_SUFFIX) \
128
218
{ \
129
218
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
218
                   HIGHBD_TAIL_SUFFIX); \
131
218
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
247
                                               HIGHBD_DECL_SUFFIX) \
128
247
{ \
129
247
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
247
                   HIGHBD_TAIL_SUFFIX); \
131
247
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
264
                                               HIGHBD_DECL_SUFFIX) \
128
264
{ \
129
264
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
264
                   HIGHBD_TAIL_SUFFIX); \
131
264
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
137
                                               HIGHBD_DECL_SUFFIX) \
128
137
{ \
129
137
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
137
                   HIGHBD_TAIL_SUFFIX); \
131
137
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_dct_16x16_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_16x32_c
Line
Count
Source
127
13.1k
                                               HIGHBD_DECL_SUFFIX) \
128
13.1k
{ \
129
13.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.1k
                   HIGHBD_TAIL_SUFFIX); \
131
13.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
115
                                               HIGHBD_DECL_SUFFIX) \
128
115
{ \
129
115
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
115
                   HIGHBD_TAIL_SUFFIX); \
131
115
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_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_dct_dct_32x8_c
Line
Count
Source
127
2.14k
                                               HIGHBD_DECL_SUFFIX) \
128
2.14k
{ \
129
2.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.14k
                   HIGHBD_TAIL_SUFFIX); \
131
2.14k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
83
                                               HIGHBD_DECL_SUFFIX) \
128
83
{ \
129
83
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
83
                   HIGHBD_TAIL_SUFFIX); \
131
83
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
8.39k
                                               HIGHBD_DECL_SUFFIX) \
128
8.39k
{ \
129
8.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.39k
                   HIGHBD_TAIL_SUFFIX); \
131
8.39k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
83
                                               HIGHBD_DECL_SUFFIX) \
128
83
{ \
129
83
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
83
                   HIGHBD_TAIL_SUFFIX); \
131
83
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
120k
                                               HIGHBD_DECL_SUFFIX) \
128
120k
{ \
129
120k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
120k
                   HIGHBD_TAIL_SUFFIX); \
131
120k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
56
                                               HIGHBD_DECL_SUFFIX) \
128
56
{ \
129
56
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
56
                   HIGHBD_TAIL_SUFFIX); \
131
56
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
11.0k
                                               HIGHBD_DECL_SUFFIX) \
128
11.0k
{ \
129
11.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.0k
                   HIGHBD_TAIL_SUFFIX); \
131
11.0k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_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_dct_dct_64x32_c
Line
Count
Source
127
6.98k
                                               HIGHBD_DECL_SUFFIX) \
128
6.98k
{ \
129
6.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.98k
                   HIGHBD_TAIL_SUFFIX); \
131
6.98k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
54.5k
                                               HIGHBD_DECL_SUFFIX) \
128
54.5k
{ \
129
54.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
54.5k
                   HIGHBD_TAIL_SUFFIX); \
131
54.5k
}
132
133
#define inv_txfm_fn64(pfx, w, h, shift) \
134
inv_txfm_fn(dct, dct, DCT_DCT, pfx, w, h, shift)
135
136
#define inv_txfm_fn32(pfx, w, h, shift) \
137
inv_txfm_fn64(pfx, w, h, shift) \
138
inv_txfm_fn(identity, identity, IDTX, pfx, w, h, shift)
139
140
#define inv_txfm_fn16(pfx, w, h, shift) \
141
inv_txfm_fn32(pfx, w, h, shift) \
142
inv_txfm_fn(adst,     dct,      ADST_DCT,          pfx,  w, h, shift) \
143
inv_txfm_fn(dct,      adst,     DCT_ADST,          pfx, w, h, shift) \
144
inv_txfm_fn(adst,     adst,     ADST_ADST,         pfx, w, h, shift) \
145
inv_txfm_fn(dct,      flipadst, DCT_FLIPADST,      pfx, w, h, shift) \
146
inv_txfm_fn(flipadst, dct,      FLIPADST_DCT,      pfx, w, h, shift) \
147
inv_txfm_fn(adst,     flipadst, ADST_FLIPADST,     pfx, w, h, shift) \
148
inv_txfm_fn(flipadst, adst,     FLIPADST_ADST,     pfx, w, h, shift) \
149
inv_txfm_fn(flipadst, flipadst, FLIPADST_FLIPADST, pfx, w, h, shift) \
150
inv_txfm_fn(identity, dct,      H_DCT,             pfx, w, h, shift) \
151
inv_txfm_fn(dct,      identity, V_DCT,             pfx, w, h, shift) \
152
153
#define inv_txfm_fn84(pfx, w, h, shift) \
154
inv_txfm_fn16(pfx, w, h, shift) \
155
inv_txfm_fn(identity, flipadst, H_FLIPADST, pfx, w, h, shift) \
156
inv_txfm_fn(flipadst, identity, V_FLIPADST, pfx, w, h, shift) \
157
inv_txfm_fn(identity, adst,     H_ADST,     pfx, w, h, shift) \
158
inv_txfm_fn(adst,     identity, V_ADST,     pfx, w, h, shift) \
159
160
inv_txfm_fn84( ,  4,  4, 0)
161
inv_txfm_fn84(R,  4,  8, 0)
162
inv_txfm_fn84(R,  4, 16, 1)
163
inv_txfm_fn84(R,  8,  4, 0)
164
inv_txfm_fn84( ,  8,  8, 1)
165
inv_txfm_fn84(R,  8, 16, 1)
166
inv_txfm_fn32(R,  8, 32, 2)
167
inv_txfm_fn84(R, 16,  4, 1)
168
inv_txfm_fn84(R, 16,  8, 1)
169
inv_txfm_fn16( , 16, 16, 2)
170
inv_txfm_fn32(R, 16, 32, 1)
171
inv_txfm_fn64(R, 16, 64, 2)
172
inv_txfm_fn32(R, 32,  8, 2)
173
inv_txfm_fn32(R, 32, 16, 1)
174
inv_txfm_fn32( , 32, 32, 2)
175
inv_txfm_fn64(R, 32, 64, 1)
176
inv_txfm_fn64(R, 64, 16, 2)
177
inv_txfm_fn64(R, 64, 32, 1)
178
inv_txfm_fn64( , 64, 64, 2)
179
180
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
181
  ARCH_AARCH64 || \
182
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
183
))
184
static void inv_txfm_add_wht_wht_4x4_c(pixel *dst, const ptrdiff_t stride,
185
                                       coef *const coeff, const int eob
186
                                       HIGHBD_DECL_SUFFIX)
187
52.1k
{
188
52.1k
    int32_t tmp[4 * 4], *c = tmp;
189
260k
    for (int y = 0; y < 4; y++, c += 4) {
190
1.04M
        for (int x = 0; x < 4; x++)
191
834k
            c[x] = coeff[y + x * 4] >> 2;
192
208k
        dav1d_inv_wht4_1d_c(c, 1);
193
208k
    }
194
52.1k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
260k
    for (int x = 0; x < 4; x++)
197
208k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
52.1k
    c = tmp;
200
260k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
1.04M
        for (int x = 0; x < 4; x++)
202
834k
            dst[x] = iclip_pixel(dst[x] + *c++);
203
52.1k
}
204
#endif
205
206
#if HAVE_ASM
207
#if ARCH_AARCH64 || ARCH_ARM
208
#include "src/arm/itx.h"
209
#elif ARCH_LOONGARCH64
210
#include "src/loongarch/itx.h"
211
#elif ARCH_PPC64LE
212
#include "src/ppc/itx.h"
213
#elif ARCH_RISCV
214
#include "src/riscv/itx.h"
215
#elif ARCH_X86
216
#include "src/x86/itx.h"
217
#endif
218
#endif
219
220
38.3k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
38.3k
#define assign_itx_all_fn64(w, h, pfx) \
222
729k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
729k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
38.3k
#define assign_itx_all_fn32(w, h, pfx) \
226
537k
    assign_itx_all_fn64(w, h, pfx); \
227
537k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
537k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
38.3k
#define assign_itx_all_fn16(w, h, pfx) \
231
345k
    assign_itx_all_fn32(w, h, pfx); \
232
345k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
345k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
345k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
345k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
345k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
345k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
345k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
345k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
345k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
345k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
345k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
345k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
345k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
345k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
345k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
345k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
345k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
345k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
345k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
345k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
38.3k
#define assign_itx_all_fn84(w, h, pfx) \
254
307k
    assign_itx_all_fn16(w, h, pfx); \
255
307k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
307k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
307k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
307k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
307k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
307k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
307k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
307k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
38.3k
264
38.3k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
38.3k
  ARCH_AARCH64 || \
266
38.3k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
38.3k
))
268
38.3k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
38.3k
#endif
270
38.3k
    assign_itx_all_fn84( 4,  4, );
271
38.3k
    assign_itx_all_fn84( 4,  8, R);
272
38.3k
    assign_itx_all_fn84( 4, 16, R);
273
38.3k
    assign_itx_all_fn84( 8,  4, R);
274
38.3k
    assign_itx_all_fn84( 8,  8, );
275
38.3k
    assign_itx_all_fn84( 8, 16, R);
276
38.3k
    assign_itx_all_fn32( 8, 32, R);
277
38.3k
    assign_itx_all_fn84(16,  4, R);
278
38.3k
    assign_itx_all_fn84(16,  8, R);
279
38.3k
    assign_itx_all_fn16(16, 16, );
280
38.3k
    assign_itx_all_fn32(16, 32, R);
281
38.3k
    assign_itx_all_fn64(16, 64, R);
282
38.3k
    assign_itx_all_fn32(32,  8, R);
283
38.3k
    assign_itx_all_fn32(32, 16, R);
284
38.3k
    assign_itx_all_fn32(32, 32, );
285
38.3k
    assign_itx_all_fn64(32, 64, R);
286
38.3k
    assign_itx_all_fn64(64, 16, R);
287
38.3k
    assign_itx_all_fn64(64, 32, R);
288
38.3k
    assign_itx_all_fn64(64, 64, );
289
290
38.3k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
38.3k
    if (!all_simd)
310
38.3k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
38.3k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
17.2k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
17.2k
#define assign_itx_all_fn64(w, h, pfx) \
222
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
17.2k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
17.2k
#define assign_itx_all_fn32(w, h, pfx) \
226
17.2k
    assign_itx_all_fn64(w, h, pfx); \
227
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
17.2k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
17.2k
#define assign_itx_all_fn16(w, h, pfx) \
231
17.2k
    assign_itx_all_fn32(w, h, pfx); \
232
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
17.2k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
17.2k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
17.2k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
17.2k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
17.2k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
17.2k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
17.2k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
17.2k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
17.2k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
17.2k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
17.2k
#define assign_itx_all_fn84(w, h, pfx) \
254
17.2k
    assign_itx_all_fn16(w, h, pfx); \
255
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
17.2k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
17.2k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
17.2k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
17.2k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
17.2k
264
17.2k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
17.2k
  ARCH_AARCH64 || \
266
17.2k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
17.2k
))
268
17.2k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
17.2k
#endif
270
17.2k
    assign_itx_all_fn84( 4,  4, );
271
17.2k
    assign_itx_all_fn84( 4,  8, R);
272
17.2k
    assign_itx_all_fn84( 4, 16, R);
273
17.2k
    assign_itx_all_fn84( 8,  4, R);
274
17.2k
    assign_itx_all_fn84( 8,  8, );
275
17.2k
    assign_itx_all_fn84( 8, 16, R);
276
17.2k
    assign_itx_all_fn32( 8, 32, R);
277
17.2k
    assign_itx_all_fn84(16,  4, R);
278
17.2k
    assign_itx_all_fn84(16,  8, R);
279
17.2k
    assign_itx_all_fn16(16, 16, );
280
17.2k
    assign_itx_all_fn32(16, 32, R);
281
17.2k
    assign_itx_all_fn64(16, 64, R);
282
17.2k
    assign_itx_all_fn32(32,  8, R);
283
17.2k
    assign_itx_all_fn32(32, 16, R);
284
17.2k
    assign_itx_all_fn32(32, 32, );
285
17.2k
    assign_itx_all_fn64(32, 64, R);
286
17.2k
    assign_itx_all_fn64(64, 16, R);
287
17.2k
    assign_itx_all_fn64(64, 32, R);
288
17.2k
    assign_itx_all_fn64(64, 64, );
289
290
17.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
17.2k
    if (!all_simd)
310
17.2k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
17.2k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
21.1k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
21.1k
#define assign_itx_all_fn64(w, h, pfx) \
222
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
21.1k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
21.1k
#define assign_itx_all_fn32(w, h, pfx) \
226
21.1k
    assign_itx_all_fn64(w, h, pfx); \
227
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
21.1k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
21.1k
#define assign_itx_all_fn16(w, h, pfx) \
231
21.1k
    assign_itx_all_fn32(w, h, pfx); \
232
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
21.1k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
21.1k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
21.1k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
21.1k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
21.1k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
21.1k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
21.1k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
21.1k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
21.1k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
21.1k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
21.1k
#define assign_itx_all_fn84(w, h, pfx) \
254
21.1k
    assign_itx_all_fn16(w, h, pfx); \
255
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
21.1k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
21.1k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
21.1k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
21.1k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
21.1k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
21.1k
264
21.1k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
21.1k
  ARCH_AARCH64 || \
266
21.1k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
21.1k
))
268
21.1k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
21.1k
#endif
270
21.1k
    assign_itx_all_fn84( 4,  4, );
271
21.1k
    assign_itx_all_fn84( 4,  8, R);
272
21.1k
    assign_itx_all_fn84( 4, 16, R);
273
21.1k
    assign_itx_all_fn84( 8,  4, R);
274
21.1k
    assign_itx_all_fn84( 8,  8, );
275
21.1k
    assign_itx_all_fn84( 8, 16, R);
276
21.1k
    assign_itx_all_fn32( 8, 32, R);
277
21.1k
    assign_itx_all_fn84(16,  4, R);
278
21.1k
    assign_itx_all_fn84(16,  8, R);
279
21.1k
    assign_itx_all_fn16(16, 16, );
280
21.1k
    assign_itx_all_fn32(16, 32, R);
281
21.1k
    assign_itx_all_fn64(16, 64, R);
282
21.1k
    assign_itx_all_fn32(32,  8, R);
283
21.1k
    assign_itx_all_fn32(32, 16, R);
284
21.1k
    assign_itx_all_fn32(32, 32, );
285
21.1k
    assign_itx_all_fn64(32, 64, R);
286
21.1k
    assign_itx_all_fn64(64, 16, R);
287
21.1k
    assign_itx_all_fn64(64, 32, R);
288
21.1k
    assign_itx_all_fn64(64, 64, );
289
290
21.1k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
21.1k
    if (!all_simd)
310
21.1k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
21.1k
}