Coverage Report

Created: 2026-12-01 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
630k
{
48
630k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
630k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
630k
    const int has_dconly = txtp == DCT_DCT;
51
630k
    assert(w >= 4 && w <= 64);
52
630k
    assert(h >= 4 && h <= 64);
53
630k
    assert(eob >= 0);
54
55
630k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
630k
    const int rnd = (1 << shift) >> 1;
57
58
630k
    if (eob < has_dconly) {
59
200k
        int dc = coeff[0];
60
200k
        coeff[0] = 0;
61
200k
        if (is_rect2)
62
55.8k
            dc = (dc * 181 + 128) >> 8;
63
200k
        dc = (dc * 181 + 128) >> 8;
64
200k
        dc = (dc + rnd) >> shift;
65
200k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
7.09M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
286M
            for (int x = 0; x < w; x++)
68
279M
                dst[x] = iclip_pixel(dst[x] + dc);
69
200k
        return;
70
200k
    }
71
72
429k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
429k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
429k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
429k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
429k
#if BITDEPTH == 8
77
429k
    const int row_clip_min = INT16_MIN;
78
429k
    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
429k
    const int row_clip_max = ~row_clip_min;
84
429k
    const int col_clip_max = ~col_clip_min;
85
86
429k
    int32_t tmp[64 * 64], *c = tmp;
87
429k
    int last_nonzero_col; // in first 1d itx
88
429k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
34.1k
        last_nonzero_col = imin(sh - 1, eob);
90
395k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
18.3k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
376k
    } else {
93
376k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
376k
    }
95
429k
    assert(last_nonzero_col < sh);
96
2.48M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
2.05M
        if (is_rect2)
98
13.9M
            for (int x = 0; x < sw; x++)
99
13.1M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
1.27M
        else
101
21.9M
            for (int x = 0; x < sw; x++)
102
20.7M
                c[x] = coeff[y + x * sh];
103
2.05M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
2.05M
    }
105
429k
    if (last_nonzero_col + 1 < sh)
106
345k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
429k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
135M
    for (int i = 0; i < w * sh; i++)
110
134M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
7.37M
    for (int x = 0; x < w; x++)
113
6.94M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
429k
    c = tmp;
116
7.05M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
188M
        for (int x = 0; x < w; x++)
118
181M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
429k
}
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
630k
                                               HIGHBD_DECL_SUFFIX) \
128
630k
{ \
129
630k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
630k
                   HIGHBD_TAIL_SUFFIX); \
131
630k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
13.9k
                                               HIGHBD_DECL_SUFFIX) \
128
13.9k
{ \
129
13.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.9k
                   HIGHBD_TAIL_SUFFIX); \
131
13.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
7.86k
                                               HIGHBD_DECL_SUFFIX) \
128
7.86k
{ \
129
7.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.86k
                   HIGHBD_TAIL_SUFFIX); \
131
7.86k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
6.61k
                                               HIGHBD_DECL_SUFFIX) \
128
6.61k
{ \
129
6.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.61k
                   HIGHBD_TAIL_SUFFIX); \
131
6.61k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
5.38k
                                               HIGHBD_DECL_SUFFIX) \
128
5.38k
{ \
129
5.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.38k
                   HIGHBD_TAIL_SUFFIX); \
131
5.38k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
8.06k
                                               HIGHBD_DECL_SUFFIX) \
128
8.06k
{ \
129
8.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.06k
                   HIGHBD_TAIL_SUFFIX); \
131
8.06k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
892
                                               HIGHBD_DECL_SUFFIX) \
128
892
{ \
129
892
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
892
                   HIGHBD_TAIL_SUFFIX); \
131
892
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_flipadst_dct_4x4_c
Line
Count
Source
127
1.14k
                                               HIGHBD_DECL_SUFFIX) \
128
1.14k
{ \
129
1.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.14k
                   HIGHBD_TAIL_SUFFIX); \
131
1.14k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
880
                                               HIGHBD_DECL_SUFFIX) \
128
880
{ \
129
880
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
880
                   HIGHBD_TAIL_SUFFIX); \
131
880
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
829
                                               HIGHBD_DECL_SUFFIX) \
128
829
{ \
129
829
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
829
                   HIGHBD_TAIL_SUFFIX); \
131
829
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_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_identity_dct_4x4_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_identity_4x4_c
Line
Count
Source
127
1.71k
                                               HIGHBD_DECL_SUFFIX) \
128
1.71k
{ \
129
1.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.71k
                   HIGHBD_TAIL_SUFFIX); \
131
1.71k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
821
                                               HIGHBD_DECL_SUFFIX) \
128
821
{ \
129
821
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
821
                   HIGHBD_TAIL_SUFFIX); \
131
821
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
2.10k
                                               HIGHBD_DECL_SUFFIX) \
128
2.10k
{ \
129
2.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.10k
                   HIGHBD_TAIL_SUFFIX); \
131
2.10k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_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_4x8_c
Line
Count
Source
127
5.55k
                                               HIGHBD_DECL_SUFFIX) \
128
5.55k
{ \
129
5.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.55k
                   HIGHBD_TAIL_SUFFIX); \
131
5.55k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
2.49k
                                               HIGHBD_DECL_SUFFIX) \
128
2.49k
{ \
129
2.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.49k
                   HIGHBD_TAIL_SUFFIX); \
131
2.49k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_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_dct_adst_4x8_c
Line
Count
Source
127
2.23k
                                               HIGHBD_DECL_SUFFIX) \
128
2.23k
{ \
129
2.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.23k
                   HIGHBD_TAIL_SUFFIX); \
131
2.23k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
3.37k
                                               HIGHBD_DECL_SUFFIX) \
128
3.37k
{ \
129
3.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.37k
                   HIGHBD_TAIL_SUFFIX); \
131
3.37k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_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_adst_flipadst_4x8_c
Line
Count
Source
127
702
                                               HIGHBD_DECL_SUFFIX) \
128
702
{ \
129
702
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
702
                   HIGHBD_TAIL_SUFFIX); \
131
702
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
572
                                               HIGHBD_DECL_SUFFIX) \
128
572
{ \
129
572
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
572
                   HIGHBD_TAIL_SUFFIX); \
131
572
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
607
                                               HIGHBD_DECL_SUFFIX) \
128
607
{ \
129
607
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
607
                   HIGHBD_TAIL_SUFFIX); \
131
607
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
447
                                               HIGHBD_DECL_SUFFIX) \
128
447
{ \
129
447
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
447
                   HIGHBD_TAIL_SUFFIX); \
131
447
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
1.35k
                                               HIGHBD_DECL_SUFFIX) \
128
1.35k
{ \
129
1.35k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.35k
                   HIGHBD_TAIL_SUFFIX); \
131
1.35k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_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_flipadst_identity_4x8_c
Line
Count
Source
127
910
                                               HIGHBD_DECL_SUFFIX) \
128
910
{ \
129
910
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
910
                   HIGHBD_TAIL_SUFFIX); \
131
910
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
490
                                               HIGHBD_DECL_SUFFIX) \
128
490
{ \
129
490
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
490
                   HIGHBD_TAIL_SUFFIX); \
131
490
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_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_adst_4x8_c
Line
Count
Source
127
614
                                               HIGHBD_DECL_SUFFIX) \
128
614
{ \
129
614
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
614
                   HIGHBD_TAIL_SUFFIX); \
131
614
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_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_identity_identity_4x16_c
Line
Count
Source
127
1.77k
                                               HIGHBD_DECL_SUFFIX) \
128
1.77k
{ \
129
1.77k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.77k
                   HIGHBD_TAIL_SUFFIX); \
131
1.77k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
1.27k
                                               HIGHBD_DECL_SUFFIX) \
128
1.27k
{ \
129
1.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.27k
                   HIGHBD_TAIL_SUFFIX); \
131
1.27k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
1.12k
                                               HIGHBD_DECL_SUFFIX) \
128
1.12k
{ \
129
1.12k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.12k
                   HIGHBD_TAIL_SUFFIX); \
131
1.12k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
1.54k
                                               HIGHBD_DECL_SUFFIX) \
128
1.54k
{ \
129
1.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.54k
                   HIGHBD_TAIL_SUFFIX); \
131
1.54k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
441
                                               HIGHBD_DECL_SUFFIX) \
128
441
{ \
129
441
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
441
                   HIGHBD_TAIL_SUFFIX); \
131
441
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
493
                                               HIGHBD_DECL_SUFFIX) \
128
493
{ \
129
493
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
493
                   HIGHBD_TAIL_SUFFIX); \
131
493
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
303
                                               HIGHBD_DECL_SUFFIX) \
128
303
{ \
129
303
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
303
                   HIGHBD_TAIL_SUFFIX); \
131
303
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
330
                                               HIGHBD_DECL_SUFFIX) \
128
330
{ \
129
330
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
330
                   HIGHBD_TAIL_SUFFIX); \
131
330
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
282
                                               HIGHBD_DECL_SUFFIX) \
128
282
{ \
129
282
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
282
                   HIGHBD_TAIL_SUFFIX); \
131
282
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
637
                                               HIGHBD_DECL_SUFFIX) \
128
637
{ \
129
637
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
637
                   HIGHBD_TAIL_SUFFIX); \
131
637
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
437
                                               HIGHBD_DECL_SUFFIX) \
128
437
{ \
129
437
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
437
                   HIGHBD_TAIL_SUFFIX); \
131
437
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
520
                                               HIGHBD_DECL_SUFFIX) \
128
520
{ \
129
520
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
520
                   HIGHBD_TAIL_SUFFIX); \
131
520
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
370
                                               HIGHBD_DECL_SUFFIX) \
128
370
{ \
129
370
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
370
                   HIGHBD_TAIL_SUFFIX); \
131
370
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
802
                                               HIGHBD_DECL_SUFFIX) \
128
802
{ \
129
802
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
802
                   HIGHBD_TAIL_SUFFIX); \
131
802
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
439
                                               HIGHBD_DECL_SUFFIX) \
128
439
{ \
129
439
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
439
                   HIGHBD_TAIL_SUFFIX); \
131
439
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
7.64k
                                               HIGHBD_DECL_SUFFIX) \
128
7.64k
{ \
129
7.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.64k
                   HIGHBD_TAIL_SUFFIX); \
131
7.64k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_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_8x4_c
Line
Count
Source
127
3.42k
                                               HIGHBD_DECL_SUFFIX) \
128
3.42k
{ \
129
3.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.42k
                   HIGHBD_TAIL_SUFFIX); \
131
3.42k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
3.14k
                                               HIGHBD_DECL_SUFFIX) \
128
3.14k
{ \
129
3.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.14k
                   HIGHBD_TAIL_SUFFIX); \
131
3.14k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
4.36k
                                               HIGHBD_DECL_SUFFIX) \
128
4.36k
{ \
129
4.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.36k
                   HIGHBD_TAIL_SUFFIX); \
131
4.36k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
672
                                               HIGHBD_DECL_SUFFIX) \
128
672
{ \
129
672
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
672
                   HIGHBD_TAIL_SUFFIX); \
131
672
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
1.16k
                                               HIGHBD_DECL_SUFFIX) \
128
1.16k
{ \
129
1.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.16k
                   HIGHBD_TAIL_SUFFIX); \
131
1.16k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
801
                                               HIGHBD_DECL_SUFFIX) \
128
801
{ \
129
801
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
801
                   HIGHBD_TAIL_SUFFIX); \
131
801
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
652
                                               HIGHBD_DECL_SUFFIX) \
128
652
{ \
129
652
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
652
                   HIGHBD_TAIL_SUFFIX); \
131
652
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
692
                                               HIGHBD_DECL_SUFFIX) \
128
692
{ \
129
692
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
692
                   HIGHBD_TAIL_SUFFIX); \
131
692
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_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_identity_dct_8x4_c
Line
Count
Source
127
890
                                               HIGHBD_DECL_SUFFIX) \
128
890
{ \
129
890
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
890
                   HIGHBD_TAIL_SUFFIX); \
131
890
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
1.19k
                                               HIGHBD_DECL_SUFFIX) \
128
1.19k
{ \
129
1.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.19k
                   HIGHBD_TAIL_SUFFIX); \
131
1.19k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
646
                                               HIGHBD_DECL_SUFFIX) \
128
646
{ \
129
646
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
646
                   HIGHBD_TAIL_SUFFIX); \
131
646
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_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_identity_adst_8x4_c
Line
Count
Source
127
774
                                               HIGHBD_DECL_SUFFIX) \
128
774
{ \
129
774
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
774
                   HIGHBD_TAIL_SUFFIX); \
131
774
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
24.7k
                                               HIGHBD_DECL_SUFFIX) \
128
24.7k
{ \
129
24.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
24.7k
                   HIGHBD_TAIL_SUFFIX); \
131
24.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
7.29k
                                               HIGHBD_DECL_SUFFIX) \
128
7.29k
{ \
129
7.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.29k
                   HIGHBD_TAIL_SUFFIX); \
131
7.29k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
10.1k
                                               HIGHBD_DECL_SUFFIX) \
128
10.1k
{ \
129
10.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.1k
                   HIGHBD_TAIL_SUFFIX); \
131
10.1k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
8.41k
                                               HIGHBD_DECL_SUFFIX) \
128
8.41k
{ \
129
8.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.41k
                   HIGHBD_TAIL_SUFFIX); \
131
8.41k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
9.25k
                                               HIGHBD_DECL_SUFFIX) \
128
9.25k
{ \
129
9.25k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.25k
                   HIGHBD_TAIL_SUFFIX); \
131
9.25k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
1.66k
                                               HIGHBD_DECL_SUFFIX) \
128
1.66k
{ \
129
1.66k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.66k
                   HIGHBD_TAIL_SUFFIX); \
131
1.66k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
1.87k
                                               HIGHBD_DECL_SUFFIX) \
128
1.87k
{ \
129
1.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.87k
                   HIGHBD_TAIL_SUFFIX); \
131
1.87k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
2.27k
                                               HIGHBD_DECL_SUFFIX) \
128
2.27k
{ \
129
2.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.27k
                   HIGHBD_TAIL_SUFFIX); \
131
2.27k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_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_flipadst_flipadst_8x8_c
Line
Count
Source
127
1.74k
                                               HIGHBD_DECL_SUFFIX) \
128
1.74k
{ \
129
1.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.74k
                   HIGHBD_TAIL_SUFFIX); \
131
1.74k
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
3.44k
                                               HIGHBD_DECL_SUFFIX) \
128
3.44k
{ \
129
3.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.44k
                   HIGHBD_TAIL_SUFFIX); \
131
3.44k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
1.58k
                                               HIGHBD_DECL_SUFFIX) \
128
1.58k
{ \
129
1.58k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.58k
                   HIGHBD_TAIL_SUFFIX); \
131
1.58k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
1.76k
                                               HIGHBD_DECL_SUFFIX) \
128
1.76k
{ \
129
1.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.76k
                   HIGHBD_TAIL_SUFFIX); \
131
1.76k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
838
                                               HIGHBD_DECL_SUFFIX) \
128
838
{ \
129
838
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
838
                   HIGHBD_TAIL_SUFFIX); \
131
838
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
1.73k
                                               HIGHBD_DECL_SUFFIX) \
128
1.73k
{ \
129
1.73k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.73k
                   HIGHBD_TAIL_SUFFIX); \
131
1.73k
}
itx_tmpl.c:inv_txfm_add_identity_adst_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_dct_dct_8x16_c
Line
Count
Source
127
8.87k
                                               HIGHBD_DECL_SUFFIX) \
128
8.87k
{ \
129
8.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.87k
                   HIGHBD_TAIL_SUFFIX); \
131
8.87k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
2.01k
                                               HIGHBD_DECL_SUFFIX) \
128
2.01k
{ \
129
2.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.01k
                   HIGHBD_TAIL_SUFFIX); \
131
2.01k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_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_8x16_c
Line
Count
Source
127
2.73k
                                               HIGHBD_DECL_SUFFIX) \
128
2.73k
{ \
129
2.73k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.73k
                   HIGHBD_TAIL_SUFFIX); \
131
2.73k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
3.03k
                                               HIGHBD_DECL_SUFFIX) \
128
3.03k
{ \
129
3.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.03k
                   HIGHBD_TAIL_SUFFIX); \
131
3.03k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
774
                                               HIGHBD_DECL_SUFFIX) \
128
774
{ \
129
774
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
774
                   HIGHBD_TAIL_SUFFIX); \
131
774
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
668
                                               HIGHBD_DECL_SUFFIX) \
128
668
{ \
129
668
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
668
                   HIGHBD_TAIL_SUFFIX); \
131
668
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
923
                                               HIGHBD_DECL_SUFFIX) \
128
923
{ \
129
923
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
923
                   HIGHBD_TAIL_SUFFIX); \
131
923
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
1.01k
                                               HIGHBD_DECL_SUFFIX) \
128
1.01k
{ \
129
1.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.01k
                   HIGHBD_TAIL_SUFFIX); \
131
1.01k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
629
                                               HIGHBD_DECL_SUFFIX) \
128
629
{ \
129
629
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
629
                   HIGHBD_TAIL_SUFFIX); \
131
629
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_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_identity_dct_8x16_c
Line
Count
Source
127
696
                                               HIGHBD_DECL_SUFFIX) \
128
696
{ \
129
696
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
696
                   HIGHBD_TAIL_SUFFIX); \
131
696
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
647
                                               HIGHBD_DECL_SUFFIX) \
128
647
{ \
129
647
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
647
                   HIGHBD_TAIL_SUFFIX); \
131
647
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
352
                                               HIGHBD_DECL_SUFFIX) \
128
352
{ \
129
352
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
352
                   HIGHBD_TAIL_SUFFIX); \
131
352
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
850
                                               HIGHBD_DECL_SUFFIX) \
128
850
{ \
129
850
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
850
                   HIGHBD_TAIL_SUFFIX); \
131
850
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
416
                                               HIGHBD_DECL_SUFFIX) \
128
416
{ \
129
416
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
416
                   HIGHBD_TAIL_SUFFIX); \
131
416
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
6.60k
                                               HIGHBD_DECL_SUFFIX) \
128
6.60k
{ \
129
6.60k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.60k
                   HIGHBD_TAIL_SUFFIX); \
131
6.60k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
744
                                               HIGHBD_DECL_SUFFIX) \
128
744
{ \
129
744
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
744
                   HIGHBD_TAIL_SUFFIX); \
131
744
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_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_identity_identity_16x4_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_dct_16x4_c
Line
Count
Source
127
2.01k
                                               HIGHBD_DECL_SUFFIX) \
128
2.01k
{ \
129
2.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.01k
                   HIGHBD_TAIL_SUFFIX); \
131
2.01k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
1.63k
                                               HIGHBD_DECL_SUFFIX) \
128
1.63k
{ \
129
1.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.63k
                   HIGHBD_TAIL_SUFFIX); \
131
1.63k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
2.69k
                                               HIGHBD_DECL_SUFFIX) \
128
2.69k
{ \
129
2.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.69k
                   HIGHBD_TAIL_SUFFIX); \
131
2.69k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
1.08k
                                               HIGHBD_DECL_SUFFIX) \
128
1.08k
{ \
129
1.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.08k
                   HIGHBD_TAIL_SUFFIX); \
131
1.08k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
869
                                               HIGHBD_DECL_SUFFIX) \
128
869
{ \
129
869
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
869
                   HIGHBD_TAIL_SUFFIX); \
131
869
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
534
                                               HIGHBD_DECL_SUFFIX) \
128
534
{ \
129
534
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
534
                   HIGHBD_TAIL_SUFFIX); \
131
534
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
446
                                               HIGHBD_DECL_SUFFIX) \
128
446
{ \
129
446
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
446
                   HIGHBD_TAIL_SUFFIX); \
131
446
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
425
                                               HIGHBD_DECL_SUFFIX) \
128
425
{ \
129
425
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
425
                   HIGHBD_TAIL_SUFFIX); \
131
425
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
1.25k
                                               HIGHBD_DECL_SUFFIX) \
128
1.25k
{ \
129
1.25k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.25k
                   HIGHBD_TAIL_SUFFIX); \
131
1.25k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_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_flipadst_identity_16x4_c
Line
Count
Source
127
983
                                               HIGHBD_DECL_SUFFIX) \
128
983
{ \
129
983
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
983
                   HIGHBD_TAIL_SUFFIX); \
131
983
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_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_adst_identity_16x4_c
Line
Count
Source
127
1.01k
                                               HIGHBD_DECL_SUFFIX) \
128
1.01k
{ \
129
1.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.01k
                   HIGHBD_TAIL_SUFFIX); \
131
1.01k
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
602
                                               HIGHBD_DECL_SUFFIX) \
128
602
{ \
129
602
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
602
                   HIGHBD_TAIL_SUFFIX); \
131
602
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
12.7k
                                               HIGHBD_DECL_SUFFIX) \
128
12.7k
{ \
129
12.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.7k
                   HIGHBD_TAIL_SUFFIX); \
131
12.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
2.51k
                                               HIGHBD_DECL_SUFFIX) \
128
2.51k
{ \
129
2.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.51k
                   HIGHBD_TAIL_SUFFIX); \
131
2.51k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
4.66k
                                               HIGHBD_DECL_SUFFIX) \
128
4.66k
{ \
129
4.66k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.66k
                   HIGHBD_TAIL_SUFFIX); \
131
4.66k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
4.26k
                                               HIGHBD_DECL_SUFFIX) \
128
4.26k
{ \
129
4.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.26k
                   HIGHBD_TAIL_SUFFIX); \
131
4.26k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
4.28k
                                               HIGHBD_DECL_SUFFIX) \
128
4.28k
{ \
129
4.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.28k
                   HIGHBD_TAIL_SUFFIX); \
131
4.28k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
806
                                               HIGHBD_DECL_SUFFIX) \
128
806
{ \
129
806
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
806
                   HIGHBD_TAIL_SUFFIX); \
131
806
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_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_flipadst_dct_16x8_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_dct_flipadst_16x8_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_flipadst_16x8_c
Line
Count
Source
127
786
                                               HIGHBD_DECL_SUFFIX) \
128
786
{ \
129
786
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
786
                   HIGHBD_TAIL_SUFFIX); \
131
786
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
1.59k
                                               HIGHBD_DECL_SUFFIX) \
128
1.59k
{ \
129
1.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.59k
                   HIGHBD_TAIL_SUFFIX); \
131
1.59k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
761
                                               HIGHBD_DECL_SUFFIX) \
128
761
{ \
129
761
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
761
                   HIGHBD_TAIL_SUFFIX); \
131
761
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
963
                                               HIGHBD_DECL_SUFFIX) \
128
963
{ \
129
963
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
963
                   HIGHBD_TAIL_SUFFIX); \
131
963
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
377
                                               HIGHBD_DECL_SUFFIX) \
128
377
{ \
129
377
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
377
                   HIGHBD_TAIL_SUFFIX); \
131
377
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
911
                                               HIGHBD_DECL_SUFFIX) \
128
911
{ \
129
911
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
911
                   HIGHBD_TAIL_SUFFIX); \
131
911
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
496
                                               HIGHBD_DECL_SUFFIX) \
128
496
{ \
129
496
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
496
                   HIGHBD_TAIL_SUFFIX); \
131
496
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
21.6k
                                               HIGHBD_DECL_SUFFIX) \
128
21.6k
{ \
129
21.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.6k
                   HIGHBD_TAIL_SUFFIX); \
131
21.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
2.71k
                                               HIGHBD_DECL_SUFFIX) \
128
2.71k
{ \
129
2.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.71k
                   HIGHBD_TAIL_SUFFIX); \
131
2.71k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
10.8k
                                               HIGHBD_DECL_SUFFIX) \
128
10.8k
{ \
129
10.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.8k
                   HIGHBD_TAIL_SUFFIX); \
131
10.8k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
9.19k
                                               HIGHBD_DECL_SUFFIX) \
128
9.19k
{ \
129
9.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.19k
                   HIGHBD_TAIL_SUFFIX); \
131
9.19k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
10.2k
                                               HIGHBD_DECL_SUFFIX) \
128
10.2k
{ \
129
10.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.2k
                   HIGHBD_TAIL_SUFFIX); \
131
10.2k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
1.50k
                                               HIGHBD_DECL_SUFFIX) \
128
1.50k
{ \
129
1.50k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.50k
                   HIGHBD_TAIL_SUFFIX); \
131
1.50k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
1.39k
                                               HIGHBD_DECL_SUFFIX) \
128
1.39k
{ \
129
1.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.39k
                   HIGHBD_TAIL_SUFFIX); \
131
1.39k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
1.81k
                                               HIGHBD_DECL_SUFFIX) \
128
1.81k
{ \
129
1.81k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.81k
                   HIGHBD_TAIL_SUFFIX); \
131
1.81k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_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_flipadst_flipadst_16x16_c
Line
Count
Source
127
1.36k
                                               HIGHBD_DECL_SUFFIX) \
128
1.36k
{ \
129
1.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.36k
                   HIGHBD_TAIL_SUFFIX); \
131
1.36k
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_dct_16x16_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_dct_16x32_c
Line
Count
Source
127
21.4k
                                               HIGHBD_DECL_SUFFIX) \
128
21.4k
{ \
129
21.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.4k
                   HIGHBD_TAIL_SUFFIX); \
131
21.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
352
                                               HIGHBD_DECL_SUFFIX) \
128
352
{ \
129
352
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
352
                   HIGHBD_TAIL_SUFFIX); \
131
352
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
3.68k
                                               HIGHBD_DECL_SUFFIX) \
128
3.68k
{ \
129
3.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.68k
                   HIGHBD_TAIL_SUFFIX); \
131
3.68k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
10.5k
                                               HIGHBD_DECL_SUFFIX) \
128
10.5k
{ \
129
10.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.5k
                   HIGHBD_TAIL_SUFFIX); \
131
10.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
967
                                               HIGHBD_DECL_SUFFIX) \
128
967
{ \
129
967
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
967
                   HIGHBD_TAIL_SUFFIX); \
131
967
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
28.8k
                                               HIGHBD_DECL_SUFFIX) \
128
28.8k
{ \
129
28.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
28.8k
                   HIGHBD_TAIL_SUFFIX); \
131
28.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
490
                                               HIGHBD_DECL_SUFFIX) \
128
490
{ \
129
490
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
490
                   HIGHBD_TAIL_SUFFIX); \
131
490
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
104k
                                               HIGHBD_DECL_SUFFIX) \
128
104k
{ \
129
104k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
104k
                   HIGHBD_TAIL_SUFFIX); \
131
104k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
427
                                               HIGHBD_DECL_SUFFIX) \
128
427
{ \
129
427
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
427
                   HIGHBD_TAIL_SUFFIX); \
131
427
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
21.0k
                                               HIGHBD_DECL_SUFFIX) \
128
21.0k
{ \
129
21.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.0k
                   HIGHBD_TAIL_SUFFIX); \
131
21.0k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
2.61k
                                               HIGHBD_DECL_SUFFIX) \
128
2.61k
{ \
129
2.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.61k
                   HIGHBD_TAIL_SUFFIX); \
131
2.61k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
12.9k
                                               HIGHBD_DECL_SUFFIX) \
128
12.9k
{ \
129
12.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.9k
                   HIGHBD_TAIL_SUFFIX); \
131
12.9k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
52.0k
                                               HIGHBD_DECL_SUFFIX) \
128
52.0k
{ \
129
52.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
52.0k
                   HIGHBD_TAIL_SUFFIX); \
131
52.0k
}
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
74.1k
{
188
74.1k
    int32_t tmp[4 * 4], *c = tmp;
189
370k
    for (int y = 0; y < 4; y++, c += 4) {
190
1.48M
        for (int x = 0; x < 4; x++)
191
1.18M
            c[x] = coeff[y + x * 4] >> 2;
192
296k
        dav1d_inv_wht4_1d_c(c, 1);
193
296k
    }
194
74.1k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
370k
    for (int x = 0; x < 4; x++)
197
296k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
74.1k
    c = tmp;
200
370k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
1.48M
        for (int x = 0; x < 4; x++)
202
1.18M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
74.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
41.5k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
41.5k
#define assign_itx_all_fn64(w, h, pfx) \
222
788k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
788k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
41.5k
#define assign_itx_all_fn32(w, h, pfx) \
226
581k
    assign_itx_all_fn64(w, h, pfx); \
227
581k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
581k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
41.5k
#define assign_itx_all_fn16(w, h, pfx) \
231
373k
    assign_itx_all_fn32(w, h, pfx); \
232
373k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
373k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
373k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
373k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
373k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
373k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
373k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
373k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
373k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
373k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
373k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
373k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
373k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
373k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
373k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
373k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
373k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
373k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
373k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
373k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
41.5k
#define assign_itx_all_fn84(w, h, pfx) \
254
332k
    assign_itx_all_fn16(w, h, pfx); \
255
332k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
332k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
332k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
332k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
332k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
332k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
332k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
332k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
41.5k
264
41.5k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
41.5k
  ARCH_AARCH64 || \
266
41.5k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
41.5k
))
268
41.5k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
41.5k
#endif
270
41.5k
    assign_itx_all_fn84( 4,  4, );
271
41.5k
    assign_itx_all_fn84( 4,  8, R);
272
41.5k
    assign_itx_all_fn84( 4, 16, R);
273
41.5k
    assign_itx_all_fn84( 8,  4, R);
274
41.5k
    assign_itx_all_fn84( 8,  8, );
275
41.5k
    assign_itx_all_fn84( 8, 16, R);
276
41.5k
    assign_itx_all_fn32( 8, 32, R);
277
41.5k
    assign_itx_all_fn84(16,  4, R);
278
41.5k
    assign_itx_all_fn84(16,  8, R);
279
41.5k
    assign_itx_all_fn16(16, 16, );
280
41.5k
    assign_itx_all_fn32(16, 32, R);
281
41.5k
    assign_itx_all_fn64(16, 64, R);
282
41.5k
    assign_itx_all_fn32(32,  8, R);
283
41.5k
    assign_itx_all_fn32(32, 16, R);
284
41.5k
    assign_itx_all_fn32(32, 32, );
285
41.5k
    assign_itx_all_fn64(32, 64, R);
286
41.5k
    assign_itx_all_fn64(64, 16, R);
287
41.5k
    assign_itx_all_fn64(64, 32, R);
288
41.5k
    assign_itx_all_fn64(64, 64, );
289
290
41.5k
    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
41.5k
    if (!all_simd)
310
41.5k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
41.5k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
19.8k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
19.8k
#define assign_itx_all_fn64(w, h, pfx) \
222
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
19.8k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
19.8k
#define assign_itx_all_fn32(w, h, pfx) \
226
19.8k
    assign_itx_all_fn64(w, h, pfx); \
227
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
19.8k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
19.8k
#define assign_itx_all_fn16(w, h, pfx) \
231
19.8k
    assign_itx_all_fn32(w, h, pfx); \
232
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
19.8k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
19.8k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
19.8k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
19.8k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
19.8k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
19.8k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
19.8k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
19.8k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
19.8k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
19.8k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
19.8k
#define assign_itx_all_fn84(w, h, pfx) \
254
19.8k
    assign_itx_all_fn16(w, h, pfx); \
255
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
19.8k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
19.8k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
19.8k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
19.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
19.8k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
19.8k
264
19.8k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
19.8k
  ARCH_AARCH64 || \
266
19.8k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
19.8k
))
268
19.8k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
19.8k
#endif
270
19.8k
    assign_itx_all_fn84( 4,  4, );
271
19.8k
    assign_itx_all_fn84( 4,  8, R);
272
19.8k
    assign_itx_all_fn84( 4, 16, R);
273
19.8k
    assign_itx_all_fn84( 8,  4, R);
274
19.8k
    assign_itx_all_fn84( 8,  8, );
275
19.8k
    assign_itx_all_fn84( 8, 16, R);
276
19.8k
    assign_itx_all_fn32( 8, 32, R);
277
19.8k
    assign_itx_all_fn84(16,  4, R);
278
19.8k
    assign_itx_all_fn84(16,  8, R);
279
19.8k
    assign_itx_all_fn16(16, 16, );
280
19.8k
    assign_itx_all_fn32(16, 32, R);
281
19.8k
    assign_itx_all_fn64(16, 64, R);
282
19.8k
    assign_itx_all_fn32(32,  8, R);
283
19.8k
    assign_itx_all_fn32(32, 16, R);
284
19.8k
    assign_itx_all_fn32(32, 32, );
285
19.8k
    assign_itx_all_fn64(32, 64, R);
286
19.8k
    assign_itx_all_fn64(64, 16, R);
287
19.8k
    assign_itx_all_fn64(64, 32, R);
288
19.8k
    assign_itx_all_fn64(64, 64, );
289
290
19.8k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
19.8k
    if (!all_simd)
310
19.8k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
19.8k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
21.6k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
21.6k
#define assign_itx_all_fn64(w, h, pfx) \
222
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
21.6k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
21.6k
#define assign_itx_all_fn32(w, h, pfx) \
226
21.6k
    assign_itx_all_fn64(w, h, pfx); \
227
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
21.6k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
21.6k
#define assign_itx_all_fn16(w, h, pfx) \
231
21.6k
    assign_itx_all_fn32(w, h, pfx); \
232
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
21.6k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
21.6k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
21.6k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
21.6k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
21.6k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
21.6k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
21.6k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
21.6k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
21.6k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
21.6k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
21.6k
#define assign_itx_all_fn84(w, h, pfx) \
254
21.6k
    assign_itx_all_fn16(w, h, pfx); \
255
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
21.6k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
21.6k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
21.6k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
21.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
21.6k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
21.6k
264
21.6k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
21.6k
  ARCH_AARCH64 || \
266
21.6k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
21.6k
))
268
21.6k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
21.6k
#endif
270
21.6k
    assign_itx_all_fn84( 4,  4, );
271
21.6k
    assign_itx_all_fn84( 4,  8, R);
272
21.6k
    assign_itx_all_fn84( 4, 16, R);
273
21.6k
    assign_itx_all_fn84( 8,  4, R);
274
21.6k
    assign_itx_all_fn84( 8,  8, );
275
21.6k
    assign_itx_all_fn84( 8, 16, R);
276
21.6k
    assign_itx_all_fn32( 8, 32, R);
277
21.6k
    assign_itx_all_fn84(16,  4, R);
278
21.6k
    assign_itx_all_fn84(16,  8, R);
279
21.6k
    assign_itx_all_fn16(16, 16, );
280
21.6k
    assign_itx_all_fn32(16, 32, R);
281
21.6k
    assign_itx_all_fn64(16, 64, R);
282
21.6k
    assign_itx_all_fn32(32,  8, R);
283
21.6k
    assign_itx_all_fn32(32, 16, R);
284
21.6k
    assign_itx_all_fn32(32, 32, );
285
21.6k
    assign_itx_all_fn64(32, 64, R);
286
21.6k
    assign_itx_all_fn64(64, 16, R);
287
21.6k
    assign_itx_all_fn64(64, 32, R);
288
21.6k
    assign_itx_all_fn64(64, 64, );
289
290
21.6k
    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.6k
    if (!all_simd)
310
21.6k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
21.6k
}