Coverage Report

Created: 2026-09-14 06:41

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
475k
{
48
475k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
475k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
475k
    const int has_dconly = txtp == DCT_DCT;
51
475k
    assert(w >= 4 && w <= 64);
52
475k
    assert(h >= 4 && h <= 64);
53
475k
    assert(eob >= 0);
54
55
475k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
475k
    const int rnd = (1 << shift) >> 1;
57
58
475k
    if (eob < has_dconly) {
59
106k
        int dc = coeff[0];
60
106k
        coeff[0] = 0;
61
106k
        if (is_rect2)
62
33.8k
            dc = (dc * 181 + 128) >> 8;
63
106k
        dc = (dc * 181 + 128) >> 8;
64
106k
        dc = (dc + rnd) >> shift;
65
106k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
3.35M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
120M
            for (int x = 0; x < w; x++)
68
117M
                dst[x] = iclip_pixel(dst[x] + dc);
69
106k
        return;
70
106k
    }
71
72
368k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
368k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
368k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
368k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
368k
#if BITDEPTH == 8
77
368k
    const int row_clip_min = INT16_MIN;
78
368k
    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
368k
    const int row_clip_max = ~row_clip_min;
84
368k
    const int col_clip_max = ~col_clip_min;
85
86
368k
    int32_t tmp[64 * 64], *c = tmp;
87
368k
    int last_nonzero_col; // in first 1d itx
88
368k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
36.2k
        last_nonzero_col = imin(sh - 1, eob);
90
332k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
20.0k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
312k
    } else {
93
312k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
312k
    }
95
368k
    assert(last_nonzero_col < sh);
96
2.05M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
1.68M
        if (is_rect2)
98
10.4M
            for (int x = 0; x < sw; x++)
99
9.83M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
1.04M
        else
101
15.6M
            for (int x = 0; x < sw; x++)
102
14.6M
                c[x] = coeff[y + x * sh];
103
1.68M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
1.68M
    }
105
368k
    if (last_nonzero_col + 1 < sh)
106
292k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
368k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
89.2M
    for (int i = 0; i < w * sh; i++)
110
88.8M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
5.38M
    for (int x = 0; x < w; x++)
113
5.01M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
368k
    c = tmp;
116
5.58M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
120M
        for (int x = 0; x < w; x++)
118
115M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
368k
}
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
475k
                                               HIGHBD_DECL_SUFFIX) \
128
475k
{ \
129
475k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
475k
                   HIGHBD_TAIL_SUFFIX); \
131
475k
}
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
9.28k
                                               HIGHBD_DECL_SUFFIX) \
128
9.28k
{ \
129
9.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.28k
                   HIGHBD_TAIL_SUFFIX); \
131
9.28k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
5.00k
                                               HIGHBD_DECL_SUFFIX) \
128
5.00k
{ \
129
5.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.00k
                   HIGHBD_TAIL_SUFFIX); \
131
5.00k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
4.34k
                                               HIGHBD_DECL_SUFFIX) \
128
4.34k
{ \
129
4.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.34k
                   HIGHBD_TAIL_SUFFIX); \
131
4.34k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
5.89k
                                               HIGHBD_DECL_SUFFIX) \
128
5.89k
{ \
129
5.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.89k
                   HIGHBD_TAIL_SUFFIX); \
131
5.89k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_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_adst_flipadst_4x4_c
Line
Count
Source
127
1.64k
                                               HIGHBD_DECL_SUFFIX) \
128
1.64k
{ \
129
1.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.64k
                   HIGHBD_TAIL_SUFFIX); \
131
1.64k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_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_dct_flipadst_4x4_c
Line
Count
Source
127
1.22k
                                               HIGHBD_DECL_SUFFIX) \
128
1.22k
{ \
129
1.22k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.22k
                   HIGHBD_TAIL_SUFFIX); \
131
1.22k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
1.31k
                                               HIGHBD_DECL_SUFFIX) \
128
1.31k
{ \
129
1.31k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.31k
                   HIGHBD_TAIL_SUFFIX); \
131
1.31k
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_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_identity_dct_4x4_c
Line
Count
Source
127
1.48k
                                               HIGHBD_DECL_SUFFIX) \
128
1.48k
{ \
129
1.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.48k
                   HIGHBD_TAIL_SUFFIX); \
131
1.48k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
2.46k
                                               HIGHBD_DECL_SUFFIX) \
128
2.46k
{ \
129
2.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.46k
                   HIGHBD_TAIL_SUFFIX); \
131
2.46k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
1.38k
                                               HIGHBD_DECL_SUFFIX) \
128
1.38k
{ \
129
1.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.38k
                   HIGHBD_TAIL_SUFFIX); \
131
1.38k
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
2.86k
                                               HIGHBD_DECL_SUFFIX) \
128
2.86k
{ \
129
2.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.86k
                   HIGHBD_TAIL_SUFFIX); \
131
2.86k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
1.43k
                                               HIGHBD_DECL_SUFFIX) \
128
1.43k
{ \
129
1.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.43k
                   HIGHBD_TAIL_SUFFIX); \
131
1.43k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
5.23k
                                               HIGHBD_DECL_SUFFIX) \
128
5.23k
{ \
129
5.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.23k
                   HIGHBD_TAIL_SUFFIX); \
131
5.23k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_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_adst_dct_4x8_c
Line
Count
Source
127
2.13k
                                               HIGHBD_DECL_SUFFIX) \
128
2.13k
{ \
129
2.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.13k
                   HIGHBD_TAIL_SUFFIX); \
131
2.13k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
1.61k
                                               HIGHBD_DECL_SUFFIX) \
128
1.61k
{ \
129
1.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.61k
                   HIGHBD_TAIL_SUFFIX); \
131
1.61k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
2.65k
                                               HIGHBD_DECL_SUFFIX) \
128
2.65k
{ \
129
2.65k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.65k
                   HIGHBD_TAIL_SUFFIX); \
131
2.65k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
832
                                               HIGHBD_DECL_SUFFIX) \
128
832
{ \
129
832
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
832
                   HIGHBD_TAIL_SUFFIX); \
131
832
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
964
                                               HIGHBD_DECL_SUFFIX) \
128
964
{ \
129
964
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
964
                   HIGHBD_TAIL_SUFFIX); \
131
964
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_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_flipadst_4x8_c
Line
Count
Source
127
708
                                               HIGHBD_DECL_SUFFIX) \
128
708
{ \
129
708
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
708
                   HIGHBD_TAIL_SUFFIX); \
131
708
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
687
                                               HIGHBD_DECL_SUFFIX) \
128
687
{ \
129
687
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
687
                   HIGHBD_TAIL_SUFFIX); \
131
687
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
1.28k
                                               HIGHBD_DECL_SUFFIX) \
128
1.28k
{ \
129
1.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.28k
                   HIGHBD_TAIL_SUFFIX); \
131
1.28k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
716
                                               HIGHBD_DECL_SUFFIX) \
128
716
{ \
129
716
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
716
                   HIGHBD_TAIL_SUFFIX); \
131
716
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_c
Line
Count
Source
127
1.02k
                                               HIGHBD_DECL_SUFFIX) \
128
1.02k
{ \
129
1.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.02k
                   HIGHBD_TAIL_SUFFIX); \
131
1.02k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_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_adst_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_identity_adst_4x8_c
Line
Count
Source
127
709
                                               HIGHBD_DECL_SUFFIX) \
128
709
{ \
129
709
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
709
                   HIGHBD_TAIL_SUFFIX); \
131
709
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
4.02k
                                               HIGHBD_DECL_SUFFIX) \
128
4.02k
{ \
129
4.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.02k
                   HIGHBD_TAIL_SUFFIX); \
131
4.02k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
2.03k
                                               HIGHBD_DECL_SUFFIX) \
128
2.03k
{ \
129
2.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.03k
                   HIGHBD_TAIL_SUFFIX); \
131
2.03k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_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_dct_adst_4x16_c
Line
Count
Source
127
732
                                               HIGHBD_DECL_SUFFIX) \
128
732
{ \
129
732
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
732
                   HIGHBD_TAIL_SUFFIX); \
131
732
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
1.24k
                                               HIGHBD_DECL_SUFFIX) \
128
1.24k
{ \
129
1.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.24k
                   HIGHBD_TAIL_SUFFIX); \
131
1.24k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
331
                                               HIGHBD_DECL_SUFFIX) \
128
331
{ \
129
331
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
331
                   HIGHBD_TAIL_SUFFIX); \
131
331
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_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_dct_4x16_c
Line
Count
Source
127
278
                                               HIGHBD_DECL_SUFFIX) \
128
278
{ \
129
278
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
278
                   HIGHBD_TAIL_SUFFIX); \
131
278
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
454
                                               HIGHBD_DECL_SUFFIX) \
128
454
{ \
129
454
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
454
                   HIGHBD_TAIL_SUFFIX); \
131
454
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
291
                                               HIGHBD_DECL_SUFFIX) \
128
291
{ \
129
291
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
291
                   HIGHBD_TAIL_SUFFIX); \
131
291
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
659
                                               HIGHBD_DECL_SUFFIX) \
128
659
{ \
129
659
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
659
                   HIGHBD_TAIL_SUFFIX); \
131
659
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
411
                                               HIGHBD_DECL_SUFFIX) \
128
411
{ \
129
411
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
411
                   HIGHBD_TAIL_SUFFIX); \
131
411
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
477
                                               HIGHBD_DECL_SUFFIX) \
128
477
{ \
129
477
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
477
                   HIGHBD_TAIL_SUFFIX); \
131
477
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
391
                                               HIGHBD_DECL_SUFFIX) \
128
391
{ \
129
391
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
391
                   HIGHBD_TAIL_SUFFIX); \
131
391
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
661
                                               HIGHBD_DECL_SUFFIX) \
128
661
{ \
129
661
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
661
                   HIGHBD_TAIL_SUFFIX); \
131
661
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
380
                                               HIGHBD_DECL_SUFFIX) \
128
380
{ \
129
380
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
380
                   HIGHBD_TAIL_SUFFIX); \
131
380
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
7.44k
                                               HIGHBD_DECL_SUFFIX) \
128
7.44k
{ \
129
7.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.44k
                   HIGHBD_TAIL_SUFFIX); \
131
7.44k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
4.29k
                                               HIGHBD_DECL_SUFFIX) \
128
4.29k
{ \
129
4.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.29k
                   HIGHBD_TAIL_SUFFIX); \
131
4.29k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_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_8x4_c
Line
Count
Source
127
2.20k
                                               HIGHBD_DECL_SUFFIX) \
128
2.20k
{ \
129
2.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.20k
                   HIGHBD_TAIL_SUFFIX); \
131
2.20k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
3.26k
                                               HIGHBD_DECL_SUFFIX) \
128
3.26k
{ \
129
3.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.26k
                   HIGHBD_TAIL_SUFFIX); \
131
3.26k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
916
                                               HIGHBD_DECL_SUFFIX) \
128
916
{ \
129
916
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
916
                   HIGHBD_TAIL_SUFFIX); \
131
916
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_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_flipadst_dct_8x4_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_flipadst_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_flipadst_flipadst_8x4_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_dct_identity_8x4_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_dct_8x4_c
Line
Count
Source
127
857
                                               HIGHBD_DECL_SUFFIX) \
128
857
{ \
129
857
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
857
                   HIGHBD_TAIL_SUFFIX); \
131
857
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
1.52k
                                               HIGHBD_DECL_SUFFIX) \
128
1.52k
{ \
129
1.52k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.52k
                   HIGHBD_TAIL_SUFFIX); \
131
1.52k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
867
                                               HIGHBD_DECL_SUFFIX) \
128
867
{ \
129
867
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
867
                   HIGHBD_TAIL_SUFFIX); \
131
867
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
1.84k
                                               HIGHBD_DECL_SUFFIX) \
128
1.84k
{ \
129
1.84k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.84k
                   HIGHBD_TAIL_SUFFIX); \
131
1.84k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
961
                                               HIGHBD_DECL_SUFFIX) \
128
961
{ \
129
961
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
961
                   HIGHBD_TAIL_SUFFIX); \
131
961
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
22.6k
                                               HIGHBD_DECL_SUFFIX) \
128
22.6k
{ \
129
22.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
22.6k
                   HIGHBD_TAIL_SUFFIX); \
131
22.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
6.28k
                                               HIGHBD_DECL_SUFFIX) \
128
6.28k
{ \
129
6.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.28k
                   HIGHBD_TAIL_SUFFIX); \
131
6.28k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
8.21k
                                               HIGHBD_DECL_SUFFIX) \
128
8.21k
{ \
129
8.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.21k
                   HIGHBD_TAIL_SUFFIX); \
131
8.21k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
7.04k
                                               HIGHBD_DECL_SUFFIX) \
128
7.04k
{ \
129
7.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.04k
                   HIGHBD_TAIL_SUFFIX); \
131
7.04k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
7.42k
                                               HIGHBD_DECL_SUFFIX) \
128
7.42k
{ \
129
7.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.42k
                   HIGHBD_TAIL_SUFFIX); \
131
7.42k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
1.98k
                                               HIGHBD_DECL_SUFFIX) \
128
1.98k
{ \
129
1.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.98k
                   HIGHBD_TAIL_SUFFIX); \
131
1.98k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_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_flipadst_dct_8x8_c
Line
Count
Source
127
2.50k
                                               HIGHBD_DECL_SUFFIX) \
128
2.50k
{ \
129
2.50k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.50k
                   HIGHBD_TAIL_SUFFIX); \
131
2.50k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
2.21k
                                               HIGHBD_DECL_SUFFIX) \
128
2.21k
{ \
129
2.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.21k
                   HIGHBD_TAIL_SUFFIX); \
131
2.21k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
1.93k
                                               HIGHBD_DECL_SUFFIX) \
128
1.93k
{ \
129
1.93k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.93k
                   HIGHBD_TAIL_SUFFIX); \
131
1.93k
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_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_identity_dct_8x8_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_identity_8x8_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_identity_flipadst_8x8_c
Line
Count
Source
127
855
                                               HIGHBD_DECL_SUFFIX) \
128
855
{ \
129
855
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
855
                   HIGHBD_TAIL_SUFFIX); \
131
855
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
1.91k
                                               HIGHBD_DECL_SUFFIX) \
128
1.91k
{ \
129
1.91k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.91k
                   HIGHBD_TAIL_SUFFIX); \
131
1.91k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
993
                                               HIGHBD_DECL_SUFFIX) \
128
993
{ \
129
993
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
993
                   HIGHBD_TAIL_SUFFIX); \
131
993
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
8.04k
                                               HIGHBD_DECL_SUFFIX) \
128
8.04k
{ \
129
8.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.04k
                   HIGHBD_TAIL_SUFFIX); \
131
8.04k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_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_adst_dct_8x16_c
Line
Count
Source
127
2.68k
                                               HIGHBD_DECL_SUFFIX) \
128
2.68k
{ \
129
2.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.68k
                   HIGHBD_TAIL_SUFFIX); \
131
2.68k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_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_8x16_c
Line
Count
Source
127
2.50k
                                               HIGHBD_DECL_SUFFIX) \
128
2.50k
{ \
129
2.50k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.50k
                   HIGHBD_TAIL_SUFFIX); \
131
2.50k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
699
                                               HIGHBD_DECL_SUFFIX) \
128
699
{ \
129
699
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
699
                   HIGHBD_TAIL_SUFFIX); \
131
699
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
817
                                               HIGHBD_DECL_SUFFIX) \
128
817
{ \
129
817
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
817
                   HIGHBD_TAIL_SUFFIX); \
131
817
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_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_dct_flipadst_8x16_c
Line
Count
Source
127
962
                                               HIGHBD_DECL_SUFFIX) \
128
962
{ \
129
962
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
962
                   HIGHBD_TAIL_SUFFIX); \
131
962
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
792
                                               HIGHBD_DECL_SUFFIX) \
128
792
{ \
129
792
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
792
                   HIGHBD_TAIL_SUFFIX); \
131
792
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
929
                                               HIGHBD_DECL_SUFFIX) \
128
929
{ \
129
929
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
929
                   HIGHBD_TAIL_SUFFIX); \
131
929
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
565
                                               HIGHBD_DECL_SUFFIX) \
128
565
{ \
129
565
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
565
                   HIGHBD_TAIL_SUFFIX); \
131
565
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
791
                                               HIGHBD_DECL_SUFFIX) \
128
791
{ \
129
791
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
791
                   HIGHBD_TAIL_SUFFIX); \
131
791
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
363
                                               HIGHBD_DECL_SUFFIX) \
128
363
{ \
129
363
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
363
                   HIGHBD_TAIL_SUFFIX); \
131
363
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
843
                                               HIGHBD_DECL_SUFFIX) \
128
843
{ \
129
843
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
843
                   HIGHBD_TAIL_SUFFIX); \
131
843
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
469
                                               HIGHBD_DECL_SUFFIX) \
128
469
{ \
129
469
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
469
                   HIGHBD_TAIL_SUFFIX); \
131
469
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
6.98k
                                               HIGHBD_DECL_SUFFIX) \
128
6.98k
{ \
129
6.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.98k
                   HIGHBD_TAIL_SUFFIX); \
131
6.98k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
683
                                               HIGHBD_DECL_SUFFIX) \
128
683
{ \
129
683
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
683
                   HIGHBD_TAIL_SUFFIX); \
131
683
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
4.90k
                                               HIGHBD_DECL_SUFFIX) \
128
4.90k
{ \
129
4.90k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.90k
                   HIGHBD_TAIL_SUFFIX); \
131
4.90k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
3.01k
                                               HIGHBD_DECL_SUFFIX) \
128
3.01k
{ \
129
3.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.01k
                   HIGHBD_TAIL_SUFFIX); \
131
3.01k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
1.40k
                                               HIGHBD_DECL_SUFFIX) \
128
1.40k
{ \
129
1.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.40k
                   HIGHBD_TAIL_SUFFIX); \
131
1.40k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
1.13k
                                               HIGHBD_DECL_SUFFIX) \
128
1.13k
{ \
129
1.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.13k
                   HIGHBD_TAIL_SUFFIX); \
131
1.13k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
1.82k
                                               HIGHBD_DECL_SUFFIX) \
128
1.82k
{ \
129
1.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.82k
                   HIGHBD_TAIL_SUFFIX); \
131
1.82k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
673
                                               HIGHBD_DECL_SUFFIX) \
128
673
{ \
129
673
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
673
                   HIGHBD_TAIL_SUFFIX); \
131
673
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
730
                                               HIGHBD_DECL_SUFFIX) \
128
730
{ \
129
730
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
730
                   HIGHBD_TAIL_SUFFIX); \
131
730
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
537
                                               HIGHBD_DECL_SUFFIX) \
128
537
{ \
129
537
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
537
                   HIGHBD_TAIL_SUFFIX); \
131
537
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
552
                                               HIGHBD_DECL_SUFFIX) \
128
552
{ \
129
552
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
552
                   HIGHBD_TAIL_SUFFIX); \
131
552
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
484
                                               HIGHBD_DECL_SUFFIX) \
128
484
{ \
129
484
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
484
                   HIGHBD_TAIL_SUFFIX); \
131
484
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
946
                                               HIGHBD_DECL_SUFFIX) \
128
946
{ \
129
946
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
946
                   HIGHBD_TAIL_SUFFIX); \
131
946
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
622
                                               HIGHBD_DECL_SUFFIX) \
128
622
{ \
129
622
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
622
                   HIGHBD_TAIL_SUFFIX); \
131
622
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
1.10k
                                               HIGHBD_DECL_SUFFIX) \
128
1.10k
{ \
129
1.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.10k
                   HIGHBD_TAIL_SUFFIX); \
131
1.10k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
519
                                               HIGHBD_DECL_SUFFIX) \
128
519
{ \
129
519
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
519
                   HIGHBD_TAIL_SUFFIX); \
131
519
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
1.10k
                                               HIGHBD_DECL_SUFFIX) \
128
1.10k
{ \
129
1.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.10k
                   HIGHBD_TAIL_SUFFIX); \
131
1.10k
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
654
                                               HIGHBD_DECL_SUFFIX) \
128
654
{ \
129
654
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
654
                   HIGHBD_TAIL_SUFFIX); \
131
654
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_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_identity_identity_16x8_c
Line
Count
Source
127
2.09k
                                               HIGHBD_DECL_SUFFIX) \
128
2.09k
{ \
129
2.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.09k
                   HIGHBD_TAIL_SUFFIX); \
131
2.09k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
2.99k
                                               HIGHBD_DECL_SUFFIX) \
128
2.99k
{ \
129
2.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.99k
                   HIGHBD_TAIL_SUFFIX); \
131
2.99k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
2.44k
                                               HIGHBD_DECL_SUFFIX) \
128
2.44k
{ \
129
2.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.44k
                   HIGHBD_TAIL_SUFFIX); \
131
2.44k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
2.96k
                                               HIGHBD_DECL_SUFFIX) \
128
2.96k
{ \
129
2.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.96k
                   HIGHBD_TAIL_SUFFIX); \
131
2.96k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
790
                                               HIGHBD_DECL_SUFFIX) \
128
790
{ \
129
790
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
790
                   HIGHBD_TAIL_SUFFIX); \
131
790
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
879
                                               HIGHBD_DECL_SUFFIX) \
128
879
{ \
129
879
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
879
                   HIGHBD_TAIL_SUFFIX); \
131
879
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
1.09k
                                               HIGHBD_DECL_SUFFIX) \
128
1.09k
{ \
129
1.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.09k
                   HIGHBD_TAIL_SUFFIX); \
131
1.09k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
917
                                               HIGHBD_DECL_SUFFIX) \
128
917
{ \
129
917
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
917
                   HIGHBD_TAIL_SUFFIX); \
131
917
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
751
                                               HIGHBD_DECL_SUFFIX) \
128
751
{ \
129
751
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
751
                   HIGHBD_TAIL_SUFFIX); \
131
751
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_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_16x8_c
Line
Count
Source
127
677
                                               HIGHBD_DECL_SUFFIX) \
128
677
{ \
129
677
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
677
                   HIGHBD_TAIL_SUFFIX); \
131
677
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
979
                                               HIGHBD_DECL_SUFFIX) \
128
979
{ \
129
979
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
979
                   HIGHBD_TAIL_SUFFIX); \
131
979
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
412
                                               HIGHBD_DECL_SUFFIX) \
128
412
{ \
129
412
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
412
                   HIGHBD_TAIL_SUFFIX); \
131
412
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
992
                                               HIGHBD_DECL_SUFFIX) \
128
992
{ \
129
992
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
992
                   HIGHBD_TAIL_SUFFIX); \
131
992
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_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_dct_dct_16x16_c
Line
Count
Source
127
19.6k
                                               HIGHBD_DECL_SUFFIX) \
128
19.6k
{ \
129
19.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.6k
                   HIGHBD_TAIL_SUFFIX); \
131
19.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
2.32k
                                               HIGHBD_DECL_SUFFIX) \
128
2.32k
{ \
129
2.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.32k
                   HIGHBD_TAIL_SUFFIX); \
131
2.32k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
8.86k
                                               HIGHBD_DECL_SUFFIX) \
128
8.86k
{ \
129
8.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.86k
                   HIGHBD_TAIL_SUFFIX); \
131
8.86k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
7.21k
                                               HIGHBD_DECL_SUFFIX) \
128
7.21k
{ \
129
7.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.21k
                   HIGHBD_TAIL_SUFFIX); \
131
7.21k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
8.03k
                                               HIGHBD_DECL_SUFFIX) \
128
8.03k
{ \
129
8.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.03k
                   HIGHBD_TAIL_SUFFIX); \
131
8.03k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
1.18k
                                               HIGHBD_DECL_SUFFIX) \
128
1.18k
{ \
129
1.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.18k
                   HIGHBD_TAIL_SUFFIX); \
131
1.18k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_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_flipadst_dct_16x16_c
Line
Count
Source
127
1.32k
                                               HIGHBD_DECL_SUFFIX) \
128
1.32k
{ \
129
1.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.32k
                   HIGHBD_TAIL_SUFFIX); \
131
1.32k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_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_flipadst_16x16_c
Line
Count
Source
127
992
                                               HIGHBD_DECL_SUFFIX) \
128
992
{ \
129
992
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
992
                   HIGHBD_TAIL_SUFFIX); \
131
992
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_16x16_c
Line
Count
Source
127
1.10k
                                               HIGHBD_DECL_SUFFIX) \
128
1.10k
{ \
129
1.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.10k
                   HIGHBD_TAIL_SUFFIX); \
131
1.10k
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
19.8k
                                               HIGHBD_DECL_SUFFIX) \
128
19.8k
{ \
129
19.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.8k
                   HIGHBD_TAIL_SUFFIX); \
131
19.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
384
                                               HIGHBD_DECL_SUFFIX) \
128
384
{ \
129
384
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
384
                   HIGHBD_TAIL_SUFFIX); \
131
384
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
6.24k
                                               HIGHBD_DECL_SUFFIX) \
128
6.24k
{ \
129
6.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.24k
                   HIGHBD_TAIL_SUFFIX); \
131
6.24k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
5.46k
                                               HIGHBD_DECL_SUFFIX) \
128
5.46k
{ \
129
5.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.46k
                   HIGHBD_TAIL_SUFFIX); \
131
5.46k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
569
                                               HIGHBD_DECL_SUFFIX) \
128
569
{ \
129
569
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
569
                   HIGHBD_TAIL_SUFFIX); \
131
569
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
12.4k
                                               HIGHBD_DECL_SUFFIX) \
128
12.4k
{ \
129
12.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.4k
                   HIGHBD_TAIL_SUFFIX); \
131
12.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
328
                                               HIGHBD_DECL_SUFFIX) \
128
328
{ \
129
328
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
328
                   HIGHBD_TAIL_SUFFIX); \
131
328
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
46.7k
                                               HIGHBD_DECL_SUFFIX) \
128
46.7k
{ \
129
46.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
46.7k
                   HIGHBD_TAIL_SUFFIX); \
131
46.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
369
                                               HIGHBD_DECL_SUFFIX) \
128
369
{ \
129
369
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
369
                   HIGHBD_TAIL_SUFFIX); \
131
369
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
13.8k
                                               HIGHBD_DECL_SUFFIX) \
128
13.8k
{ \
129
13.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.8k
                   HIGHBD_TAIL_SUFFIX); \
131
13.8k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
1.32k
                                               HIGHBD_DECL_SUFFIX) \
128
1.32k
{ \
129
1.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.32k
                   HIGHBD_TAIL_SUFFIX); \
131
1.32k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
5.78k
                                               HIGHBD_DECL_SUFFIX) \
128
5.78k
{ \
129
5.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.78k
                   HIGHBD_TAIL_SUFFIX); \
131
5.78k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
20.9k
                                               HIGHBD_DECL_SUFFIX) \
128
20.9k
{ \
129
20.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
20.9k
                   HIGHBD_TAIL_SUFFIX); \
131
20.9k
}
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
19.0k
{
188
19.0k
    int32_t tmp[4 * 4], *c = tmp;
189
95.1k
    for (int y = 0; y < 4; y++, c += 4) {
190
380k
        for (int x = 0; x < 4; x++)
191
304k
            c[x] = coeff[y + x * 4] >> 2;
192
76.1k
        dav1d_inv_wht4_1d_c(c, 1);
193
76.1k
    }
194
19.0k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
95.1k
    for (int x = 0; x < 4; x++)
197
76.1k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
19.0k
    c = tmp;
200
95.1k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
380k
        for (int x = 0; x < 4; x++)
202
304k
            dst[x] = iclip_pixel(dst[x] + *c++);
203
19.0k
}
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
39.0k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
39.0k
#define assign_itx_all_fn64(w, h, pfx) \
222
742k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
742k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
39.0k
#define assign_itx_all_fn32(w, h, pfx) \
226
546k
    assign_itx_all_fn64(w, h, pfx); \
227
546k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
546k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
39.0k
#define assign_itx_all_fn16(w, h, pfx) \
231
351k
    assign_itx_all_fn32(w, h, pfx); \
232
351k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
351k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
351k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
351k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
351k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
351k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
351k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
351k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
351k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
351k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
351k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
351k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
351k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
351k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
351k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
351k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
351k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
351k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
351k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
351k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
39.0k
#define assign_itx_all_fn84(w, h, pfx) \
254
312k
    assign_itx_all_fn16(w, h, pfx); \
255
312k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
312k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
312k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
312k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
312k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
312k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
312k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
312k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
39.0k
264
39.0k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
39.0k
  ARCH_AARCH64 || \
266
39.0k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
39.0k
))
268
39.0k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
39.0k
#endif
270
39.0k
    assign_itx_all_fn84( 4,  4, );
271
39.0k
    assign_itx_all_fn84( 4,  8, R);
272
39.0k
    assign_itx_all_fn84( 4, 16, R);
273
39.0k
    assign_itx_all_fn84( 8,  4, R);
274
39.0k
    assign_itx_all_fn84( 8,  8, );
275
39.0k
    assign_itx_all_fn84( 8, 16, R);
276
39.0k
    assign_itx_all_fn32( 8, 32, R);
277
39.0k
    assign_itx_all_fn84(16,  4, R);
278
39.0k
    assign_itx_all_fn84(16,  8, R);
279
39.0k
    assign_itx_all_fn16(16, 16, );
280
39.0k
    assign_itx_all_fn32(16, 32, R);
281
39.0k
    assign_itx_all_fn64(16, 64, R);
282
39.0k
    assign_itx_all_fn32(32,  8, R);
283
39.0k
    assign_itx_all_fn32(32, 16, R);
284
39.0k
    assign_itx_all_fn32(32, 32, );
285
39.0k
    assign_itx_all_fn64(32, 64, R);
286
39.0k
    assign_itx_all_fn64(64, 16, R);
287
39.0k
    assign_itx_all_fn64(64, 32, R);
288
39.0k
    assign_itx_all_fn64(64, 64, );
289
290
39.0k
    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
39.0k
    if (!all_simd)
310
39.0k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
39.0k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
17.2k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
17.2k
#define assign_itx_all_fn64(w, h, pfx) \
222
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
17.2k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
17.2k
#define assign_itx_all_fn32(w, h, pfx) \
226
17.2k
    assign_itx_all_fn64(w, h, pfx); \
227
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
17.2k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
17.2k
#define assign_itx_all_fn16(w, h, pfx) \
231
17.2k
    assign_itx_all_fn32(w, h, pfx); \
232
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
17.2k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
17.2k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
17.2k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
17.2k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
17.2k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
17.2k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
17.2k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
17.2k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
17.2k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
17.2k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
17.2k
#define assign_itx_all_fn84(w, h, pfx) \
254
17.2k
    assign_itx_all_fn16(w, h, pfx); \
255
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
17.2k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
17.2k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
17.2k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
17.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
17.2k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
17.2k
264
17.2k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
17.2k
  ARCH_AARCH64 || \
266
17.2k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
17.2k
))
268
17.2k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
17.2k
#endif
270
17.2k
    assign_itx_all_fn84( 4,  4, );
271
17.2k
    assign_itx_all_fn84( 4,  8, R);
272
17.2k
    assign_itx_all_fn84( 4, 16, R);
273
17.2k
    assign_itx_all_fn84( 8,  4, R);
274
17.2k
    assign_itx_all_fn84( 8,  8, );
275
17.2k
    assign_itx_all_fn84( 8, 16, R);
276
17.2k
    assign_itx_all_fn32( 8, 32, R);
277
17.2k
    assign_itx_all_fn84(16,  4, R);
278
17.2k
    assign_itx_all_fn84(16,  8, R);
279
17.2k
    assign_itx_all_fn16(16, 16, );
280
17.2k
    assign_itx_all_fn32(16, 32, R);
281
17.2k
    assign_itx_all_fn64(16, 64, R);
282
17.2k
    assign_itx_all_fn32(32,  8, R);
283
17.2k
    assign_itx_all_fn32(32, 16, R);
284
17.2k
    assign_itx_all_fn32(32, 32, );
285
17.2k
    assign_itx_all_fn64(32, 64, R);
286
17.2k
    assign_itx_all_fn64(64, 16, R);
287
17.2k
    assign_itx_all_fn64(64, 32, R);
288
17.2k
    assign_itx_all_fn64(64, 64, );
289
290
17.2k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
17.2k
    if (!all_simd)
310
17.2k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
17.2k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
21.7k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
21.7k
#define assign_itx_all_fn64(w, h, pfx) \
222
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
21.7k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
21.7k
#define assign_itx_all_fn32(w, h, pfx) \
226
21.7k
    assign_itx_all_fn64(w, h, pfx); \
227
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
21.7k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
21.7k
#define assign_itx_all_fn16(w, h, pfx) \
231
21.7k
    assign_itx_all_fn32(w, h, pfx); \
232
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
21.7k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
21.7k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
21.7k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
21.7k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
21.7k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
21.7k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
21.7k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
21.7k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
21.7k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
21.7k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
21.7k
#define assign_itx_all_fn84(w, h, pfx) \
254
21.7k
    assign_itx_all_fn16(w, h, pfx); \
255
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
21.7k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
21.7k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
21.7k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
21.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
21.7k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
21.7k
264
21.7k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
21.7k
  ARCH_AARCH64 || \
266
21.7k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
21.7k
))
268
21.7k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
21.7k
#endif
270
21.7k
    assign_itx_all_fn84( 4,  4, );
271
21.7k
    assign_itx_all_fn84( 4,  8, R);
272
21.7k
    assign_itx_all_fn84( 4, 16, R);
273
21.7k
    assign_itx_all_fn84( 8,  4, R);
274
21.7k
    assign_itx_all_fn84( 8,  8, );
275
21.7k
    assign_itx_all_fn84( 8, 16, R);
276
21.7k
    assign_itx_all_fn32( 8, 32, R);
277
21.7k
    assign_itx_all_fn84(16,  4, R);
278
21.7k
    assign_itx_all_fn84(16,  8, R);
279
21.7k
    assign_itx_all_fn16(16, 16, );
280
21.7k
    assign_itx_all_fn32(16, 32, R);
281
21.7k
    assign_itx_all_fn64(16, 64, R);
282
21.7k
    assign_itx_all_fn32(32,  8, R);
283
21.7k
    assign_itx_all_fn32(32, 16, R);
284
21.7k
    assign_itx_all_fn32(32, 32, );
285
21.7k
    assign_itx_all_fn64(32, 64, R);
286
21.7k
    assign_itx_all_fn64(64, 16, R);
287
21.7k
    assign_itx_all_fn64(64, 32, R);
288
21.7k
    assign_itx_all_fn64(64, 64, );
289
290
21.7k
    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.7k
    if (!all_simd)
310
21.7k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
21.7k
}