Coverage Report

Created: 2026-10-17 06:50

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
94.7k
        int dc = coeff[0];
60
94.7k
        coeff[0] = 0;
61
94.7k
        if (is_rect2)
62
20.0k
            dc = (dc * 181 + 128) >> 8;
63
94.7k
        dc = (dc * 181 + 128) >> 8;
64
94.7k
        dc = (dc + rnd) >> shift;
65
94.7k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
2.96M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
102M
            for (int x = 0; x < w; x++)
68
100M
                dst[x] = iclip_pixel(dst[x] + dc);
69
94.7k
        return;
70
94.7k
    }
71
72
258k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
258k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
258k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
258k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
258k
#if BITDEPTH == 8
77
258k
    const int row_clip_min = INT16_MIN;
78
258k
    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
258k
    const int row_clip_max = ~row_clip_min;
84
258k
    const int col_clip_max = ~col_clip_min;
85
86
258k
    int32_t tmp[64 * 64], *c = tmp;
87
258k
    int last_nonzero_col; // in first 1d itx
88
258k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
9.67k
        last_nonzero_col = imin(sh - 1, eob);
90
249k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
5.37k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
243k
    } else {
93
243k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
243k
    }
95
258k
    assert(last_nonzero_col < sh);
96
1.59M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
1.33M
        if (is_rect2)
98
7.87M
            for (int x = 0; x < sw; x++)
99
7.38M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
848k
        else
101
14.5M
            for (int x = 0; x < sw; x++)
102
13.7M
                c[x] = coeff[y + x * sh];
103
1.33M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
1.33M
    }
105
258k
    if (last_nonzero_col + 1 < sh)
106
202k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
258k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
71.1M
    for (int i = 0; i < w * sh; i++)
110
70.8M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
3.98M
    for (int x = 0; x < w; x++)
113
3.73M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
258k
    c = tmp;
116
4.14M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
94.5M
        for (int x = 0; x < w; x++)
118
90.7M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
258k
}
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
8.45k
                                               HIGHBD_DECL_SUFFIX) \
128
8.45k
{ \
129
8.45k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.45k
                   HIGHBD_TAIL_SUFFIX); \
131
8.45k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
3.98k
                                               HIGHBD_DECL_SUFFIX) \
128
3.98k
{ \
129
3.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.98k
                   HIGHBD_TAIL_SUFFIX); \
131
3.98k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
5.35k
                                               HIGHBD_DECL_SUFFIX) \
128
5.35k
{ \
129
5.35k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.35k
                   HIGHBD_TAIL_SUFFIX); \
131
5.35k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
4.54k
                                               HIGHBD_DECL_SUFFIX) \
128
4.54k
{ \
129
4.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.54k
                   HIGHBD_TAIL_SUFFIX); \
131
4.54k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
6.46k
                                               HIGHBD_DECL_SUFFIX) \
128
6.46k
{ \
129
6.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.46k
                   HIGHBD_TAIL_SUFFIX); \
131
6.46k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_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_4x4_c
Line
Count
Source
127
405
                                               HIGHBD_DECL_SUFFIX) \
128
405
{ \
129
405
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
405
                   HIGHBD_TAIL_SUFFIX); \
131
405
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
196
                                               HIGHBD_DECL_SUFFIX) \
128
196
{ \
129
196
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
196
                   HIGHBD_TAIL_SUFFIX); \
131
196
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_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_flipadst_flipadst_4x4_c
Line
Count
Source
127
156
                                               HIGHBD_DECL_SUFFIX) \
128
156
{ \
129
156
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
156
                   HIGHBD_TAIL_SUFFIX); \
131
156
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_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_identity_dct_4x4_c
Line
Count
Source
127
782
                                               HIGHBD_DECL_SUFFIX) \
128
782
{ \
129
782
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
782
                   HIGHBD_TAIL_SUFFIX); \
131
782
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
226
                                               HIGHBD_DECL_SUFFIX) \
128
226
{ \
129
226
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
226
                   HIGHBD_TAIL_SUFFIX); \
131
226
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_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_adst_identity_4x4_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_4x4_c
Line
Count
Source
127
130
                                               HIGHBD_DECL_SUFFIX) \
128
130
{ \
129
130
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
130
                   HIGHBD_TAIL_SUFFIX); \
131
130
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
4.16k
                                               HIGHBD_DECL_SUFFIX) \
128
4.16k
{ \
129
4.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.16k
                   HIGHBD_TAIL_SUFFIX); \
131
4.16k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
1.29k
                                               HIGHBD_DECL_SUFFIX) \
128
1.29k
{ \
129
1.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.29k
                   HIGHBD_TAIL_SUFFIX); \
131
1.29k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
2.78k
                                               HIGHBD_DECL_SUFFIX) \
128
2.78k
{ \
129
2.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.78k
                   HIGHBD_TAIL_SUFFIX); \
131
2.78k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
2.24k
                                               HIGHBD_DECL_SUFFIX) \
128
2.24k
{ \
129
2.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.24k
                   HIGHBD_TAIL_SUFFIX); \
131
2.24k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
2.98k
                                               HIGHBD_DECL_SUFFIX) \
128
2.98k
{ \
129
2.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.98k
                   HIGHBD_TAIL_SUFFIX); \
131
2.98k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_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_flipadst_4x8_c
Line
Count
Source
127
86
                                               HIGHBD_DECL_SUFFIX) \
128
86
{ \
129
86
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
86
                   HIGHBD_TAIL_SUFFIX); \
131
86
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
65
                                               HIGHBD_DECL_SUFFIX) \
128
65
{ \
129
65
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
65
                   HIGHBD_TAIL_SUFFIX); \
131
65
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
77
                                               HIGHBD_DECL_SUFFIX) \
128
77
{ \
129
77
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
77
                   HIGHBD_TAIL_SUFFIX); \
131
77
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_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_identity_4x8_c
Line
Count
Source
127
739
                                               HIGHBD_DECL_SUFFIX) \
128
739
{ \
129
739
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
739
                   HIGHBD_TAIL_SUFFIX); \
131
739
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
440
                                               HIGHBD_DECL_SUFFIX) \
128
440
{ \
129
440
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
440
                   HIGHBD_TAIL_SUFFIX); \
131
440
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_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_identity_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_adst_identity_4x8_c
Line
Count
Source
127
124
                                               HIGHBD_DECL_SUFFIX) \
128
124
{ \
129
124
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
124
                   HIGHBD_TAIL_SUFFIX); \
131
124
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
73
                                               HIGHBD_DECL_SUFFIX) \
128
73
{ \
129
73
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
73
                   HIGHBD_TAIL_SUFFIX); \
131
73
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_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_identity_identity_4x16_c
Line
Count
Source
127
710
                                               HIGHBD_DECL_SUFFIX) \
128
710
{ \
129
710
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
710
                   HIGHBD_TAIL_SUFFIX); \
131
710
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
958
                                               HIGHBD_DECL_SUFFIX) \
128
958
{ \
129
958
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
958
                   HIGHBD_TAIL_SUFFIX); \
131
958
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
830
                                               HIGHBD_DECL_SUFFIX) \
128
830
{ \
129
830
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
830
                   HIGHBD_TAIL_SUFFIX); \
131
830
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_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_flipadst_adst_4x16_c
Line
Count
Source
127
72
                                               HIGHBD_DECL_SUFFIX) \
128
72
{ \
129
72
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
72
                   HIGHBD_TAIL_SUFFIX); \
131
72
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
73
                                               HIGHBD_DECL_SUFFIX) \
128
73
{ \
129
73
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
73
                   HIGHBD_TAIL_SUFFIX); \
131
73
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_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_flipadst_4x16_c
Line
Count
Source
127
45
                                               HIGHBD_DECL_SUFFIX) \
128
45
{ \
129
45
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
45
                   HIGHBD_TAIL_SUFFIX); \
131
45
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
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_dct_identity_4x16_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_identity_dct_4x16_c
Line
Count
Source
127
245
                                               HIGHBD_DECL_SUFFIX) \
128
245
{ \
129
245
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
245
                   HIGHBD_TAIL_SUFFIX); \
131
245
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_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_identity_flipadst_4x16_c
Line
Count
Source
127
80
                                               HIGHBD_DECL_SUFFIX) \
128
80
{ \
129
80
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
80
                   HIGHBD_TAIL_SUFFIX); \
131
80
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
146
                                               HIGHBD_DECL_SUFFIX) \
128
146
{ \
129
146
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
146
                   HIGHBD_TAIL_SUFFIX); \
131
146
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
60
                                               HIGHBD_DECL_SUFFIX) \
128
60
{ \
129
60
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
60
                   HIGHBD_TAIL_SUFFIX); \
131
60
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
5.72k
                                               HIGHBD_DECL_SUFFIX) \
128
5.72k
{ \
129
5.72k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.72k
                   HIGHBD_TAIL_SUFFIX); \
131
5.72k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
2.11k
                                               HIGHBD_DECL_SUFFIX) \
128
2.11k
{ \
129
2.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.11k
                   HIGHBD_TAIL_SUFFIX); \
131
2.11k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
3.39k
                                               HIGHBD_DECL_SUFFIX) \
128
3.39k
{ \
129
3.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.39k
                   HIGHBD_TAIL_SUFFIX); \
131
3.39k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
3.10k
                                               HIGHBD_DECL_SUFFIX) \
128
3.10k
{ \
129
3.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.10k
                   HIGHBD_TAIL_SUFFIX); \
131
3.10k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
3.86k
                                               HIGHBD_DECL_SUFFIX) \
128
3.86k
{ \
129
3.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.86k
                   HIGHBD_TAIL_SUFFIX); \
131
3.86k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_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_adst_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_flipadst_dct_8x4_c
Line
Count
Source
127
94
                                               HIGHBD_DECL_SUFFIX) \
128
94
{ \
129
94
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
94
                   HIGHBD_TAIL_SUFFIX); \
131
94
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
70
                                               HIGHBD_DECL_SUFFIX) \
128
70
{ \
129
70
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
70
                   HIGHBD_TAIL_SUFFIX); \
131
70
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_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_dct_identity_8x4_c
Line
Count
Source
127
981
                                               HIGHBD_DECL_SUFFIX) \
128
981
{ \
129
981
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
981
                   HIGHBD_TAIL_SUFFIX); \
131
981
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
499
                                               HIGHBD_DECL_SUFFIX) \
128
499
{ \
129
499
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
499
                   HIGHBD_TAIL_SUFFIX); \
131
499
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_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_identity_flipadst_8x4_c
Line
Count
Source
127
71
                                               HIGHBD_DECL_SUFFIX) \
128
71
{ \
129
71
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
71
                   HIGHBD_TAIL_SUFFIX); \
131
71
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
170
                                               HIGHBD_DECL_SUFFIX) \
128
170
{ \
129
170
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
170
                   HIGHBD_TAIL_SUFFIX); \
131
170
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_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_8x8_c
Line
Count
Source
127
15.1k
                                               HIGHBD_DECL_SUFFIX) \
128
15.1k
{ \
129
15.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.1k
                   HIGHBD_TAIL_SUFFIX); \
131
15.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
4.27k
                                               HIGHBD_DECL_SUFFIX) \
128
4.27k
{ \
129
4.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.27k
                   HIGHBD_TAIL_SUFFIX); \
131
4.27k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
9.42k
                                               HIGHBD_DECL_SUFFIX) \
128
9.42k
{ \
129
9.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.42k
                   HIGHBD_TAIL_SUFFIX); \
131
9.42k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
7.98k
                                               HIGHBD_DECL_SUFFIX) \
128
7.98k
{ \
129
7.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.98k
                   HIGHBD_TAIL_SUFFIX); \
131
7.98k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
9.22k
                                               HIGHBD_DECL_SUFFIX) \
128
9.22k
{ \
129
9.22k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.22k
                   HIGHBD_TAIL_SUFFIX); \
131
9.22k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_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_flipadst_8x8_c
Line
Count
Source
127
364
                                               HIGHBD_DECL_SUFFIX) \
128
364
{ \
129
364
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
364
                   HIGHBD_TAIL_SUFFIX); \
131
364
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
335
                                               HIGHBD_DECL_SUFFIX) \
128
335
{ \
129
335
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
335
                   HIGHBD_TAIL_SUFFIX); \
131
335
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
230
                                               HIGHBD_DECL_SUFFIX) \
128
230
{ \
129
230
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
230
                   HIGHBD_TAIL_SUFFIX); \
131
230
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
205
                                               HIGHBD_DECL_SUFFIX) \
128
205
{ \
129
205
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
205
                   HIGHBD_TAIL_SUFFIX); \
131
205
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
1.61k
                                               HIGHBD_DECL_SUFFIX) \
128
1.61k
{ \
129
1.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.61k
                   HIGHBD_TAIL_SUFFIX); \
131
1.61k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
1.00k
                                               HIGHBD_DECL_SUFFIX) \
128
1.00k
{ \
129
1.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.00k
                   HIGHBD_TAIL_SUFFIX); \
131
1.00k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_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_identity_flipadst_8x8_c
Line
Count
Source
127
121
                                               HIGHBD_DECL_SUFFIX) \
128
121
{ \
129
121
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
121
                   HIGHBD_TAIL_SUFFIX); \
131
121
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
274
                                               HIGHBD_DECL_SUFFIX) \
128
274
{ \
129
274
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
274
                   HIGHBD_TAIL_SUFFIX); \
131
274
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
75
                                               HIGHBD_DECL_SUFFIX) \
128
75
{ \
129
75
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
75
                   HIGHBD_TAIL_SUFFIX); \
131
75
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
6.91k
                                               HIGHBD_DECL_SUFFIX) \
128
6.91k
{ \
129
6.91k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.91k
                   HIGHBD_TAIL_SUFFIX); \
131
6.91k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
1.41k
                                               HIGHBD_DECL_SUFFIX) \
128
1.41k
{ \
129
1.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.41k
                   HIGHBD_TAIL_SUFFIX); \
131
1.41k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
3.85k
                                               HIGHBD_DECL_SUFFIX) \
128
3.85k
{ \
129
3.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.85k
                   HIGHBD_TAIL_SUFFIX); \
131
3.85k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_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_adst_adst_8x16_c
Line
Count
Source
127
3.75k
                                               HIGHBD_DECL_SUFFIX) \
128
3.75k
{ \
129
3.75k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.75k
                   HIGHBD_TAIL_SUFFIX); \
131
3.75k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_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_adst_flipadst_8x16_c
Line
Count
Source
127
144
                                               HIGHBD_DECL_SUFFIX) \
128
144
{ \
129
144
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
144
                   HIGHBD_TAIL_SUFFIX); \
131
144
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
694
                                               HIGHBD_DECL_SUFFIX) \
128
694
{ \
129
694
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
694
                   HIGHBD_TAIL_SUFFIX); \
131
694
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
188
                                               HIGHBD_DECL_SUFFIX) \
128
188
{ \
129
188
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
188
                   HIGHBD_TAIL_SUFFIX); \
131
188
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
120
                                               HIGHBD_DECL_SUFFIX) \
128
120
{ \
129
120
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
120
                   HIGHBD_TAIL_SUFFIX); \
131
120
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
825
                                               HIGHBD_DECL_SUFFIX) \
128
825
{ \
129
825
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
825
                   HIGHBD_TAIL_SUFFIX); \
131
825
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
409
                                               HIGHBD_DECL_SUFFIX) \
128
409
{ \
129
409
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
409
                   HIGHBD_TAIL_SUFFIX); \
131
409
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
146
                                               HIGHBD_DECL_SUFFIX) \
128
146
{ \
129
146
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
146
                   HIGHBD_TAIL_SUFFIX); \
131
146
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
77
                                               HIGHBD_DECL_SUFFIX) \
128
77
{ \
129
77
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
77
                   HIGHBD_TAIL_SUFFIX); \
131
77
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
114
                                               HIGHBD_DECL_SUFFIX) \
128
114
{ \
129
114
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
114
                   HIGHBD_TAIL_SUFFIX); \
131
114
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_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_dct_8x32_c
Line
Count
Source
127
3.94k
                                               HIGHBD_DECL_SUFFIX) \
128
3.94k
{ \
129
3.94k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.94k
                   HIGHBD_TAIL_SUFFIX); \
131
3.94k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_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_dct_dct_16x4_c
Line
Count
Source
127
2.54k
                                               HIGHBD_DECL_SUFFIX) \
128
2.54k
{ \
129
2.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.54k
                   HIGHBD_TAIL_SUFFIX); \
131
2.54k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
695
                                               HIGHBD_DECL_SUFFIX) \
128
695
{ \
129
695
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
695
                   HIGHBD_TAIL_SUFFIX); \
131
695
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
1.86k
                                               HIGHBD_DECL_SUFFIX) \
128
1.86k
{ \
129
1.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.86k
                   HIGHBD_TAIL_SUFFIX); \
131
1.86k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
1.49k
                                               HIGHBD_DECL_SUFFIX) \
128
1.49k
{ \
129
1.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.49k
                   HIGHBD_TAIL_SUFFIX); \
131
1.49k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
2.18k
                                               HIGHBD_DECL_SUFFIX) \
128
2.18k
{ \
129
2.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.18k
                   HIGHBD_TAIL_SUFFIX); \
131
2.18k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_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_flipadst_16x4_c
Line
Count
Source
127
36
                                               HIGHBD_DECL_SUFFIX) \
128
36
{ \
129
36
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
36
                   HIGHBD_TAIL_SUFFIX); \
131
36
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
40
                                               HIGHBD_DECL_SUFFIX) \
128
40
{ \
129
40
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
40
                   HIGHBD_TAIL_SUFFIX); \
131
40
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
35
                                               HIGHBD_DECL_SUFFIX) \
128
35
{ \
129
35
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
35
                   HIGHBD_TAIL_SUFFIX); \
131
35
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
27
                                               HIGHBD_DECL_SUFFIX) \
128
27
{ \
129
27
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
27
                   HIGHBD_TAIL_SUFFIX); \
131
27
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
547
                                               HIGHBD_DECL_SUFFIX) \
128
547
{ \
129
547
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
547
                   HIGHBD_TAIL_SUFFIX); \
131
547
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
293
                                               HIGHBD_DECL_SUFFIX) \
128
293
{ \
129
293
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
293
                   HIGHBD_TAIL_SUFFIX); \
131
293
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_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_identity_flipadst_16x4_c
Line
Count
Source
127
37
                                               HIGHBD_DECL_SUFFIX) \
128
37
{ \
129
37
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
37
                   HIGHBD_TAIL_SUFFIX); \
131
37
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
65
                                               HIGHBD_DECL_SUFFIX) \
128
65
{ \
129
65
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
65
                   HIGHBD_TAIL_SUFFIX); \
131
65
}
itx_tmpl.c:inv_txfm_add_identity_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_dct_dct_16x8_c
Line
Count
Source
127
7.45k
                                               HIGHBD_DECL_SUFFIX) \
128
7.45k
{ \
129
7.45k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.45k
                   HIGHBD_TAIL_SUFFIX); \
131
7.45k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_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_adst_dct_16x8_c
Line
Count
Source
127
3.79k
                                               HIGHBD_DECL_SUFFIX) \
128
3.79k
{ \
129
3.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.79k
                   HIGHBD_TAIL_SUFFIX); \
131
3.79k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
2.82k
                                               HIGHBD_DECL_SUFFIX) \
128
2.82k
{ \
129
2.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.82k
                   HIGHBD_TAIL_SUFFIX); \
131
2.82k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
3.43k
                                               HIGHBD_DECL_SUFFIX) \
128
3.43k
{ \
129
3.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.43k
                   HIGHBD_TAIL_SUFFIX); \
131
3.43k
}
itx_tmpl.c:inv_txfm_add_flipadst_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_adst_flipadst_16x8_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_flipadst_dct_16x8_c
Line
Count
Source
127
123
                                               HIGHBD_DECL_SUFFIX) \
128
123
{ \
129
123
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
123
                   HIGHBD_TAIL_SUFFIX); \
131
123
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_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_flipadst_flipadst_16x8_c
Line
Count
Source
127
75
                                               HIGHBD_DECL_SUFFIX) \
128
75
{ \
129
75
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
75
                   HIGHBD_TAIL_SUFFIX); \
131
75
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
721
                                               HIGHBD_DECL_SUFFIX) \
128
721
{ \
129
721
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
721
                   HIGHBD_TAIL_SUFFIX); \
131
721
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_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_16x8_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_identity_flipadst_16x8_c
Line
Count
Source
127
60
                                               HIGHBD_DECL_SUFFIX) \
128
60
{ \
129
60
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
60
                   HIGHBD_TAIL_SUFFIX); \
131
60
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
89
                                               HIGHBD_DECL_SUFFIX) \
128
89
{ \
129
89
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
89
                   HIGHBD_TAIL_SUFFIX); \
131
89
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
38
                                               HIGHBD_DECL_SUFFIX) \
128
38
{ \
129
38
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
38
                   HIGHBD_TAIL_SUFFIX); \
131
38
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
14.5k
                                               HIGHBD_DECL_SUFFIX) \
128
14.5k
{ \
129
14.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.5k
                   HIGHBD_TAIL_SUFFIX); \
131
14.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
1.17k
                                               HIGHBD_DECL_SUFFIX) \
128
1.17k
{ \
129
1.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.17k
                   HIGHBD_TAIL_SUFFIX); \
131
1.17k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
10.3k
                                               HIGHBD_DECL_SUFFIX) \
128
10.3k
{ \
129
10.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.3k
                   HIGHBD_TAIL_SUFFIX); \
131
10.3k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
9.79k
                                               HIGHBD_DECL_SUFFIX) \
128
9.79k
{ \
129
9.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.79k
                   HIGHBD_TAIL_SUFFIX); \
131
9.79k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
10.9k
                                               HIGHBD_DECL_SUFFIX) \
128
10.9k
{ \
129
10.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.9k
                   HIGHBD_TAIL_SUFFIX); \
131
10.9k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_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_adst_flipadst_16x16_c
Line
Count
Source
127
86
                                               HIGHBD_DECL_SUFFIX) \
128
86
{ \
129
86
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
86
                   HIGHBD_TAIL_SUFFIX); \
131
86
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
77
                                               HIGHBD_DECL_SUFFIX) \
128
77
{ \
129
77
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
77
                   HIGHBD_TAIL_SUFFIX); \
131
77
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
121
                                               HIGHBD_DECL_SUFFIX) \
128
121
{ \
129
121
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
121
                   HIGHBD_TAIL_SUFFIX); \
131
121
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_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_16x16_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_identity_dct_16x16_c
Line
Count
Source
127
67
                                               HIGHBD_DECL_SUFFIX) \
128
67
{ \
129
67
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
67
                   HIGHBD_TAIL_SUFFIX); \
131
67
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
17.0k
                                               HIGHBD_DECL_SUFFIX) \
128
17.0k
{ \
129
17.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.0k
                   HIGHBD_TAIL_SUFFIX); \
131
17.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
30
                                               HIGHBD_DECL_SUFFIX) \
128
30
{ \
129
30
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
30
                   HIGHBD_TAIL_SUFFIX); \
131
30
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_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_dct_dct_32x8_c
Line
Count
Source
127
3.81k
                                               HIGHBD_DECL_SUFFIX) \
128
3.81k
{ \
129
3.81k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.81k
                   HIGHBD_TAIL_SUFFIX); \
131
3.81k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
28
                                               HIGHBD_DECL_SUFFIX) \
128
28
{ \
129
28
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
28
                   HIGHBD_TAIL_SUFFIX); \
131
28
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
7.48k
                                               HIGHBD_DECL_SUFFIX) \
128
7.48k
{ \
129
7.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.48k
                   HIGHBD_TAIL_SUFFIX); \
131
7.48k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
42
                                               HIGHBD_DECL_SUFFIX) \
128
42
{ \
129
42
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
42
                   HIGHBD_TAIL_SUFFIX); \
131
42
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
68.5k
                                               HIGHBD_DECL_SUFFIX) \
128
68.5k
{ \
129
68.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
68.5k
                   HIGHBD_TAIL_SUFFIX); \
131
68.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
19
                                               HIGHBD_DECL_SUFFIX) \
128
19
{ \
129
19
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19
                   HIGHBD_TAIL_SUFFIX); \
131
19
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
7.35k
                                               HIGHBD_DECL_SUFFIX) \
128
7.35k
{ \
129
7.35k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.35k
                   HIGHBD_TAIL_SUFFIX); \
131
7.35k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
798
                                               HIGHBD_DECL_SUFFIX) \
128
798
{ \
129
798
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
798
                   HIGHBD_TAIL_SUFFIX); \
131
798
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
2.33k
                                               HIGHBD_DECL_SUFFIX) \
128
2.33k
{ \
129
2.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.33k
                   HIGHBD_TAIL_SUFFIX); \
131
2.33k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
14.8k
                                               HIGHBD_DECL_SUFFIX) \
128
14.8k
{ \
129
14.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.8k
                   HIGHBD_TAIL_SUFFIX); \
131
14.8k
}
132
133
#define inv_txfm_fn64(pfx, w, h, shift) \
134
inv_txfm_fn(dct, dct, DCT_DCT, pfx, w, h, shift)
135
136
#define inv_txfm_fn32(pfx, w, h, shift) \
137
inv_txfm_fn64(pfx, w, h, shift) \
138
inv_txfm_fn(identity, identity, IDTX, pfx, w, h, shift)
139
140
#define inv_txfm_fn16(pfx, w, h, shift) \
141
inv_txfm_fn32(pfx, w, h, shift) \
142
inv_txfm_fn(adst,     dct,      ADST_DCT,          pfx,  w, h, shift) \
143
inv_txfm_fn(dct,      adst,     DCT_ADST,          pfx, w, h, shift) \
144
inv_txfm_fn(adst,     adst,     ADST_ADST,         pfx, w, h, shift) \
145
inv_txfm_fn(dct,      flipadst, DCT_FLIPADST,      pfx, w, h, shift) \
146
inv_txfm_fn(flipadst, dct,      FLIPADST_DCT,      pfx, w, h, shift) \
147
inv_txfm_fn(adst,     flipadst, ADST_FLIPADST,     pfx, w, h, shift) \
148
inv_txfm_fn(flipadst, adst,     FLIPADST_ADST,     pfx, w, h, shift) \
149
inv_txfm_fn(flipadst, flipadst, FLIPADST_FLIPADST, pfx, w, h, shift) \
150
inv_txfm_fn(identity, dct,      H_DCT,             pfx, w, h, shift) \
151
inv_txfm_fn(dct,      identity, V_DCT,             pfx, w, h, shift) \
152
153
#define inv_txfm_fn84(pfx, w, h, shift) \
154
inv_txfm_fn16(pfx, w, h, shift) \
155
inv_txfm_fn(identity, flipadst, H_FLIPADST, pfx, w, h, shift) \
156
inv_txfm_fn(flipadst, identity, V_FLIPADST, pfx, w, h, shift) \
157
inv_txfm_fn(identity, adst,     H_ADST,     pfx, w, h, shift) \
158
inv_txfm_fn(adst,     identity, V_ADST,     pfx, w, h, shift) \
159
160
inv_txfm_fn84( ,  4,  4, 0)
161
inv_txfm_fn84(R,  4,  8, 0)
162
inv_txfm_fn84(R,  4, 16, 1)
163
inv_txfm_fn84(R,  8,  4, 0)
164
inv_txfm_fn84( ,  8,  8, 1)
165
inv_txfm_fn84(R,  8, 16, 1)
166
inv_txfm_fn32(R,  8, 32, 2)
167
inv_txfm_fn84(R, 16,  4, 1)
168
inv_txfm_fn84(R, 16,  8, 1)
169
inv_txfm_fn16( , 16, 16, 2)
170
inv_txfm_fn32(R, 16, 32, 1)
171
inv_txfm_fn64(R, 16, 64, 2)
172
inv_txfm_fn32(R, 32,  8, 2)
173
inv_txfm_fn32(R, 32, 16, 1)
174
inv_txfm_fn32( , 32, 32, 2)
175
inv_txfm_fn64(R, 32, 64, 1)
176
inv_txfm_fn64(R, 64, 16, 2)
177
inv_txfm_fn64(R, 64, 32, 1)
178
inv_txfm_fn64( , 64, 64, 2)
179
180
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
181
  ARCH_AARCH64 || \
182
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
183
))
184
static void inv_txfm_add_wht_wht_4x4_c(pixel *dst, const ptrdiff_t stride,
185
                                       coef *const coeff, const int eob
186
                                       HIGHBD_DECL_SUFFIX)
187
35.3k
{
188
35.3k
    int32_t tmp[4 * 4], *c = tmp;
189
176k
    for (int y = 0; y < 4; y++, c += 4) {
190
707k
        for (int x = 0; x < 4; x++)
191
565k
            c[x] = coeff[y + x * 4] >> 2;
192
141k
        dav1d_inv_wht4_1d_c(c, 1);
193
141k
    }
194
35.3k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
176k
    for (int x = 0; x < 4; x++)
197
141k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
35.3k
    c = tmp;
200
176k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
707k
        for (int x = 0; x < 4; x++)
202
565k
            dst[x] = iclip_pixel(dst[x] + *c++);
203
35.3k
}
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
7.52k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
7.52k
#define assign_itx_all_fn64(w, h, pfx) \
222
142k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
142k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
7.52k
#define assign_itx_all_fn32(w, h, pfx) \
226
105k
    assign_itx_all_fn64(w, h, pfx); \
227
105k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
105k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
7.52k
#define assign_itx_all_fn16(w, h, pfx) \
231
67.7k
    assign_itx_all_fn32(w, h, pfx); \
232
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
67.7k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
67.7k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
67.7k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
67.7k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
67.7k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
67.7k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
67.7k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
67.7k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
67.7k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
67.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
67.7k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
7.52k
#define assign_itx_all_fn84(w, h, pfx) \
254
60.2k
    assign_itx_all_fn16(w, h, pfx); \
255
60.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
60.2k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
60.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
60.2k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
60.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
60.2k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
60.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
60.2k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
7.52k
264
7.52k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
7.52k
  ARCH_AARCH64 || \
266
7.52k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
7.52k
))
268
7.52k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
7.52k
#endif
270
7.52k
    assign_itx_all_fn84( 4,  4, );
271
7.52k
    assign_itx_all_fn84( 4,  8, R);
272
7.52k
    assign_itx_all_fn84( 4, 16, R);
273
7.52k
    assign_itx_all_fn84( 8,  4, R);
274
7.52k
    assign_itx_all_fn84( 8,  8, );
275
7.52k
    assign_itx_all_fn84( 8, 16, R);
276
7.52k
    assign_itx_all_fn32( 8, 32, R);
277
7.52k
    assign_itx_all_fn84(16,  4, R);
278
7.52k
    assign_itx_all_fn84(16,  8, R);
279
7.52k
    assign_itx_all_fn16(16, 16, );
280
7.52k
    assign_itx_all_fn32(16, 32, R);
281
7.52k
    assign_itx_all_fn64(16, 64, R);
282
7.52k
    assign_itx_all_fn32(32,  8, R);
283
7.52k
    assign_itx_all_fn32(32, 16, R);
284
7.52k
    assign_itx_all_fn32(32, 32, );
285
7.52k
    assign_itx_all_fn64(32, 64, R);
286
7.52k
    assign_itx_all_fn64(64, 16, R);
287
7.52k
    assign_itx_all_fn64(64, 32, R);
288
7.52k
    assign_itx_all_fn64(64, 64, );
289
290
7.52k
    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.52k
    if (!all_simd)
310
7.52k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
7.52k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
3.48k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
3.48k
#define assign_itx_all_fn64(w, h, pfx) \
222
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
3.48k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
3.48k
#define assign_itx_all_fn32(w, h, pfx) \
226
3.48k
    assign_itx_all_fn64(w, h, pfx); \
227
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
3.48k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
3.48k
#define assign_itx_all_fn16(w, h, pfx) \
231
3.48k
    assign_itx_all_fn32(w, h, pfx); \
232
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
3.48k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
3.48k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
3.48k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
3.48k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
3.48k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
3.48k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
3.48k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
3.48k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
3.48k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
3.48k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
3.48k
#define assign_itx_all_fn84(w, h, pfx) \
254
3.48k
    assign_itx_all_fn16(w, h, pfx); \
255
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
3.48k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
3.48k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
3.48k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
3.48k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
3.48k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
3.48k
264
3.48k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
3.48k
  ARCH_AARCH64 || \
266
3.48k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
3.48k
))
268
3.48k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
3.48k
#endif
270
3.48k
    assign_itx_all_fn84( 4,  4, );
271
3.48k
    assign_itx_all_fn84( 4,  8, R);
272
3.48k
    assign_itx_all_fn84( 4, 16, R);
273
3.48k
    assign_itx_all_fn84( 8,  4, R);
274
3.48k
    assign_itx_all_fn84( 8,  8, );
275
3.48k
    assign_itx_all_fn84( 8, 16, R);
276
3.48k
    assign_itx_all_fn32( 8, 32, R);
277
3.48k
    assign_itx_all_fn84(16,  4, R);
278
3.48k
    assign_itx_all_fn84(16,  8, R);
279
3.48k
    assign_itx_all_fn16(16, 16, );
280
3.48k
    assign_itx_all_fn32(16, 32, R);
281
3.48k
    assign_itx_all_fn64(16, 64, R);
282
3.48k
    assign_itx_all_fn32(32,  8, R);
283
3.48k
    assign_itx_all_fn32(32, 16, R);
284
3.48k
    assign_itx_all_fn32(32, 32, );
285
3.48k
    assign_itx_all_fn64(32, 64, R);
286
3.48k
    assign_itx_all_fn64(64, 16, R);
287
3.48k
    assign_itx_all_fn64(64, 32, R);
288
3.48k
    assign_itx_all_fn64(64, 64, );
289
290
3.48k
    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
3.48k
    if (!all_simd)
310
3.48k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
3.48k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
4.04k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
4.04k
#define assign_itx_all_fn64(w, h, pfx) \
222
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
4.04k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
4.04k
#define assign_itx_all_fn32(w, h, pfx) \
226
4.04k
    assign_itx_all_fn64(w, h, pfx); \
227
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
4.04k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
4.04k
#define assign_itx_all_fn16(w, h, pfx) \
231
4.04k
    assign_itx_all_fn32(w, h, pfx); \
232
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
4.04k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
4.04k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
4.04k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
4.04k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
4.04k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
4.04k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
4.04k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
4.04k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
4.04k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
4.04k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
4.04k
#define assign_itx_all_fn84(w, h, pfx) \
254
4.04k
    assign_itx_all_fn16(w, h, pfx); \
255
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
4.04k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
4.04k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
4.04k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
4.04k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
4.04k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
4.04k
264
4.04k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
4.04k
  ARCH_AARCH64 || \
266
4.04k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
4.04k
))
268
4.04k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
4.04k
#endif
270
4.04k
    assign_itx_all_fn84( 4,  4, );
271
4.04k
    assign_itx_all_fn84( 4,  8, R);
272
4.04k
    assign_itx_all_fn84( 4, 16, R);
273
4.04k
    assign_itx_all_fn84( 8,  4, R);
274
4.04k
    assign_itx_all_fn84( 8,  8, );
275
4.04k
    assign_itx_all_fn84( 8, 16, R);
276
4.04k
    assign_itx_all_fn32( 8, 32, R);
277
4.04k
    assign_itx_all_fn84(16,  4, R);
278
4.04k
    assign_itx_all_fn84(16,  8, R);
279
4.04k
    assign_itx_all_fn16(16, 16, );
280
4.04k
    assign_itx_all_fn32(16, 32, R);
281
4.04k
    assign_itx_all_fn64(16, 64, R);
282
4.04k
    assign_itx_all_fn32(32,  8, R);
283
4.04k
    assign_itx_all_fn32(32, 16, R);
284
4.04k
    assign_itx_all_fn32(32, 32, );
285
4.04k
    assign_itx_all_fn64(32, 64, R);
286
4.04k
    assign_itx_all_fn64(64, 16, R);
287
4.04k
    assign_itx_all_fn64(64, 32, R);
288
4.04k
    assign_itx_all_fn64(64, 64, );
289
290
4.04k
    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
4.04k
    if (!all_simd)
310
4.04k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
4.04k
}