Coverage Report

Created: 2026-08-13 07:23

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
474k
{
48
474k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
474k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
474k
    const int has_dconly = txtp == DCT_DCT;
51
474k
    assert(w >= 4 && w <= 64);
52
474k
    assert(h >= 4 && h <= 64);
53
474k
    assert(eob >= 0);
54
55
474k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
474k
    const int rnd = (1 << shift) >> 1;
57
58
474k
    if (eob < has_dconly) {
59
101k
        int dc = coeff[0];
60
101k
        coeff[0] = 0;
61
101k
        if (is_rect2)
62
20.2k
            dc = (dc * 181 + 128) >> 8;
63
101k
        dc = (dc * 181 + 128) >> 8;
64
101k
        dc = (dc + rnd) >> shift;
65
101k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
3.14M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
124M
            for (int x = 0; x < w; x++)
68
121M
                dst[x] = iclip_pixel(dst[x] + dc);
69
101k
        return;
70
101k
    }
71
72
373k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
373k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
373k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
373k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
373k
#if BITDEPTH == 8
77
373k
    const int row_clip_min = INT16_MIN;
78
373k
    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
373k
    const int row_clip_max = ~row_clip_min;
84
373k
    const int col_clip_max = ~col_clip_min;
85
86
373k
    int32_t tmp[64 * 64], *c = tmp;
87
373k
    int last_nonzero_col; // in first 1d itx
88
373k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
32.5k
        last_nonzero_col = imin(sh - 1, eob);
90
340k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
19.1k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
321k
    } else {
93
321k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
321k
    }
95
373k
    assert(last_nonzero_col < sh);
96
2.23M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
1.85M
        if (is_rect2)
98
7.67M
            for (int x = 0; x < sw; x++)
99
7.10M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
1.29M
        else
101
20.9M
            for (int x = 0; x < sw; x++)
102
19.6M
                c[x] = coeff[y + x * sh];
103
1.85M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
1.85M
    }
105
373k
    if (last_nonzero_col + 1 < sh)
106
270k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
373k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
87.4M
    for (int i = 0; i < w * sh; i++)
110
87.0M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
5.46M
    for (int x = 0; x < w; x++)
113
5.08M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
373k
    c = tmp;
116
5.24M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
118M
        for (int x = 0; x < w; x++)
118
113M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
373k
}
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
474k
                                               HIGHBD_DECL_SUFFIX) \
128
474k
{ \
129
474k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
474k
                   HIGHBD_TAIL_SUFFIX); \
131
474k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_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_4x4_c
Line
Count
Source
127
3.88k
                                               HIGHBD_DECL_SUFFIX) \
128
3.88k
{ \
129
3.88k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.88k
                   HIGHBD_TAIL_SUFFIX); \
131
3.88k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
7.59k
                                               HIGHBD_DECL_SUFFIX) \
128
7.59k
{ \
129
7.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.59k
                   HIGHBD_TAIL_SUFFIX); \
131
7.59k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
5.18k
                                               HIGHBD_DECL_SUFFIX) \
128
5.18k
{ \
129
5.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.18k
                   HIGHBD_TAIL_SUFFIX); \
131
5.18k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
8.36k
                                               HIGHBD_DECL_SUFFIX) \
128
8.36k
{ \
129
8.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.36k
                   HIGHBD_TAIL_SUFFIX); \
131
8.36k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
1.33k
                                               HIGHBD_DECL_SUFFIX) \
128
1.33k
{ \
129
1.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.33k
                   HIGHBD_TAIL_SUFFIX); \
131
1.33k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_flipadst_dct_4x4_c
Line
Count
Source
127
1.26k
                                               HIGHBD_DECL_SUFFIX) \
128
1.26k
{ \
129
1.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.26k
                   HIGHBD_TAIL_SUFFIX); \
131
1.26k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_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_flipadst_flipadst_4x4_c
Line
Count
Source
127
689
                                               HIGHBD_DECL_SUFFIX) \
128
689
{ \
129
689
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
689
                   HIGHBD_TAIL_SUFFIX); \
131
689
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
2.52k
                                               HIGHBD_DECL_SUFFIX) \
128
2.52k
{ \
129
2.52k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.52k
                   HIGHBD_TAIL_SUFFIX); \
131
2.52k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
1.46k
                                               HIGHBD_DECL_SUFFIX) \
128
1.46k
{ \
129
1.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.46k
                   HIGHBD_TAIL_SUFFIX); \
131
1.46k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_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_flipadst_4x4_c
Line
Count
Source
127
1.57k
                                               HIGHBD_DECL_SUFFIX) \
128
1.57k
{ \
129
1.57k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.57k
                   HIGHBD_TAIL_SUFFIX); \
131
1.57k
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
2.62k
                                               HIGHBD_DECL_SUFFIX) \
128
2.62k
{ \
129
2.62k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.62k
                   HIGHBD_TAIL_SUFFIX); \
131
2.62k
}
itx_tmpl.c:inv_txfm_add_identity_adst_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_dct_4x8_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_4x8_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_dct_4x8_c
Line
Count
Source
127
3.19k
                                               HIGHBD_DECL_SUFFIX) \
128
3.19k
{ \
129
3.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.19k
                   HIGHBD_TAIL_SUFFIX); \
131
3.19k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
2.33k
                                               HIGHBD_DECL_SUFFIX) \
128
2.33k
{ \
129
2.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.33k
                   HIGHBD_TAIL_SUFFIX); \
131
2.33k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
3.60k
                                               HIGHBD_DECL_SUFFIX) \
128
3.60k
{ \
129
3.60k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.60k
                   HIGHBD_TAIL_SUFFIX); \
131
3.60k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_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_flipadst_4x8_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_dct_4x8_c
Line
Count
Source
127
884
                                               HIGHBD_DECL_SUFFIX) \
128
884
{ \
129
884
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
884
                   HIGHBD_TAIL_SUFFIX); \
131
884
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
701
                                               HIGHBD_DECL_SUFFIX) \
128
701
{ \
129
701
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
701
                   HIGHBD_TAIL_SUFFIX); \
131
701
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
723
                                               HIGHBD_DECL_SUFFIX) \
128
723
{ \
129
723
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
723
                   HIGHBD_TAIL_SUFFIX); \
131
723
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
1.44k
                                               HIGHBD_DECL_SUFFIX) \
128
1.44k
{ \
129
1.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.44k
                   HIGHBD_TAIL_SUFFIX); \
131
1.44k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
924
                                               HIGHBD_DECL_SUFFIX) \
128
924
{ \
129
924
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
924
                   HIGHBD_TAIL_SUFFIX); \
131
924
}
itx_tmpl.c:inv_txfm_add_flipadst_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
1.05k
                                               HIGHBD_DECL_SUFFIX) \
128
1.05k
{ \
129
1.05k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.05k
                   HIGHBD_TAIL_SUFFIX); \
131
1.05k
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_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_adst_4x8_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_dct_dct_4x16_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_identity_identity_4x16_c
Line
Count
Source
127
842
                                               HIGHBD_DECL_SUFFIX) \
128
842
{ \
129
842
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
842
                   HIGHBD_TAIL_SUFFIX); \
131
842
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
1.90k
                                               HIGHBD_DECL_SUFFIX) \
128
1.90k
{ \
129
1.90k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.90k
                   HIGHBD_TAIL_SUFFIX); \
131
1.90k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
1.37k
                                               HIGHBD_DECL_SUFFIX) \
128
1.37k
{ \
129
1.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.37k
                   HIGHBD_TAIL_SUFFIX); \
131
1.37k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
2.16k
                                               HIGHBD_DECL_SUFFIX) \
128
2.16k
{ \
129
2.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.16k
                   HIGHBD_TAIL_SUFFIX); \
131
2.16k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
193
                                               HIGHBD_DECL_SUFFIX) \
128
193
{ \
129
193
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
193
                   HIGHBD_TAIL_SUFFIX); \
131
193
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
163
                                               HIGHBD_DECL_SUFFIX) \
128
163
{ \
129
163
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
163
                   HIGHBD_TAIL_SUFFIX); \
131
163
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
153
                                               HIGHBD_DECL_SUFFIX) \
128
153
{ \
129
153
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
153
                   HIGHBD_TAIL_SUFFIX); \
131
153
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
124
                                               HIGHBD_DECL_SUFFIX) \
128
124
{ \
129
124
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
124
                   HIGHBD_TAIL_SUFFIX); \
131
124
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
182
                                               HIGHBD_DECL_SUFFIX) \
128
182
{ \
129
182
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
182
                   HIGHBD_TAIL_SUFFIX); \
131
182
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
601
                                               HIGHBD_DECL_SUFFIX) \
128
601
{ \
129
601
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
601
                   HIGHBD_TAIL_SUFFIX); \
131
601
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
319
                                               HIGHBD_DECL_SUFFIX) \
128
319
{ \
129
319
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
319
                   HIGHBD_TAIL_SUFFIX); \
131
319
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
173
                                               HIGHBD_DECL_SUFFIX) \
128
173
{ \
129
173
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
173
                   HIGHBD_TAIL_SUFFIX); \
131
173
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
124
                                               HIGHBD_DECL_SUFFIX) \
128
124
{ \
129
124
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
124
                   HIGHBD_TAIL_SUFFIX); \
131
124
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
209
                                               HIGHBD_DECL_SUFFIX) \
128
209
{ \
129
209
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
209
                   HIGHBD_TAIL_SUFFIX); \
131
209
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
193
                                               HIGHBD_DECL_SUFFIX) \
128
193
{ \
129
193
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
193
                   HIGHBD_TAIL_SUFFIX); \
131
193
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
8.99k
                                               HIGHBD_DECL_SUFFIX) \
128
8.99k
{ \
129
8.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.99k
                   HIGHBD_TAIL_SUFFIX); \
131
8.99k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
3.43k
                                               HIGHBD_DECL_SUFFIX) \
128
3.43k
{ \
129
3.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.43k
                   HIGHBD_TAIL_SUFFIX); \
131
3.43k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
5.57k
                                               HIGHBD_DECL_SUFFIX) \
128
5.57k
{ \
129
5.57k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.57k
                   HIGHBD_TAIL_SUFFIX); \
131
5.57k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
3.94k
                                               HIGHBD_DECL_SUFFIX) \
128
3.94k
{ \
129
3.94k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.94k
                   HIGHBD_TAIL_SUFFIX); \
131
3.94k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
5.26k
                                               HIGHBD_DECL_SUFFIX) \
128
5.26k
{ \
129
5.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.26k
                   HIGHBD_TAIL_SUFFIX); \
131
5.26k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
1.03k
                                               HIGHBD_DECL_SUFFIX) \
128
1.03k
{ \
129
1.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.03k
                   HIGHBD_TAIL_SUFFIX); \
131
1.03k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
1.26k
                                               HIGHBD_DECL_SUFFIX) \
128
1.26k
{ \
129
1.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.26k
                   HIGHBD_TAIL_SUFFIX); \
131
1.26k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
842
                                               HIGHBD_DECL_SUFFIX) \
128
842
{ \
129
842
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
842
                   HIGHBD_TAIL_SUFFIX); \
131
842
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
907
                                               HIGHBD_DECL_SUFFIX) \
128
907
{ \
129
907
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
907
                   HIGHBD_TAIL_SUFFIX); \
131
907
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
901
                                               HIGHBD_DECL_SUFFIX) \
128
901
{ \
129
901
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
901
                   HIGHBD_TAIL_SUFFIX); \
131
901
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_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_identity_dct_8x4_c
Line
Count
Source
127
1.07k
                                               HIGHBD_DECL_SUFFIX) \
128
1.07k
{ \
129
1.07k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.07k
                   HIGHBD_TAIL_SUFFIX); \
131
1.07k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
965
                                               HIGHBD_DECL_SUFFIX) \
128
965
{ \
129
965
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
965
                   HIGHBD_TAIL_SUFFIX); \
131
965
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
958
                                               HIGHBD_DECL_SUFFIX) \
128
958
{ \
129
958
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
958
                   HIGHBD_TAIL_SUFFIX); \
131
958
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
1.79k
                                               HIGHBD_DECL_SUFFIX) \
128
1.79k
{ \
129
1.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.79k
                   HIGHBD_TAIL_SUFFIX); \
131
1.79k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_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_8x8_c
Line
Count
Source
127
20.0k
                                               HIGHBD_DECL_SUFFIX) \
128
20.0k
{ \
129
20.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
20.0k
                   HIGHBD_TAIL_SUFFIX); \
131
20.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
4.95k
                                               HIGHBD_DECL_SUFFIX) \
128
4.95k
{ \
129
4.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.95k
                   HIGHBD_TAIL_SUFFIX); \
131
4.95k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
11.4k
                                               HIGHBD_DECL_SUFFIX) \
128
11.4k
{ \
129
11.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.4k
                   HIGHBD_TAIL_SUFFIX); \
131
11.4k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
9.51k
                                               HIGHBD_DECL_SUFFIX) \
128
9.51k
{ \
129
9.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.51k
                   HIGHBD_TAIL_SUFFIX); \
131
9.51k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
11.9k
                                               HIGHBD_DECL_SUFFIX) \
128
11.9k
{ \
129
11.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.9k
                   HIGHBD_TAIL_SUFFIX); \
131
11.9k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_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_adst_flipadst_8x8_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_8x8_c
Line
Count
Source
127
1.94k
                                               HIGHBD_DECL_SUFFIX) \
128
1.94k
{ \
129
1.94k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.94k
                   HIGHBD_TAIL_SUFFIX); \
131
1.94k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
1.55k
                                               HIGHBD_DECL_SUFFIX) \
128
1.55k
{ \
129
1.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.55k
                   HIGHBD_TAIL_SUFFIX); \
131
1.55k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_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_dct_identity_8x8_c
Line
Count
Source
127
4.74k
                                               HIGHBD_DECL_SUFFIX) \
128
4.74k
{ \
129
4.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.74k
                   HIGHBD_TAIL_SUFFIX); \
131
4.74k
}
itx_tmpl.c:inv_txfm_add_identity_dct_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_flipadst_identity_8x8_c
Line
Count
Source
127
2.00k
                                               HIGHBD_DECL_SUFFIX) \
128
2.00k
{ \
129
2.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.00k
                   HIGHBD_TAIL_SUFFIX); \
131
2.00k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_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_adst_identity_8x8_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_adst_8x8_c
Line
Count
Source
127
1.47k
                                               HIGHBD_DECL_SUFFIX) \
128
1.47k
{ \
129
1.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.47k
                   HIGHBD_TAIL_SUFFIX); \
131
1.47k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
5.04k
                                               HIGHBD_DECL_SUFFIX) \
128
5.04k
{ \
129
5.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.04k
                   HIGHBD_TAIL_SUFFIX); \
131
5.04k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
1.18k
                                               HIGHBD_DECL_SUFFIX) \
128
1.18k
{ \
129
1.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.18k
                   HIGHBD_TAIL_SUFFIX); \
131
1.18k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
3.13k
                                               HIGHBD_DECL_SUFFIX) \
128
3.13k
{ \
129
3.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.13k
                   HIGHBD_TAIL_SUFFIX); \
131
3.13k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
2.45k
                                               HIGHBD_DECL_SUFFIX) \
128
2.45k
{ \
129
2.45k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.45k
                   HIGHBD_TAIL_SUFFIX); \
131
2.45k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
2.94k
                                               HIGHBD_DECL_SUFFIX) \
128
2.94k
{ \
129
2.94k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.94k
                   HIGHBD_TAIL_SUFFIX); \
131
2.94k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
248
                                               HIGHBD_DECL_SUFFIX) \
128
248
{ \
129
248
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
248
                   HIGHBD_TAIL_SUFFIX); \
131
248
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
428
                                               HIGHBD_DECL_SUFFIX) \
128
428
{ \
129
428
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
428
                   HIGHBD_TAIL_SUFFIX); \
131
428
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
335
                                               HIGHBD_DECL_SUFFIX) \
128
335
{ \
129
335
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
335
                   HIGHBD_TAIL_SUFFIX); \
131
335
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
324
                                               HIGHBD_DECL_SUFFIX) \
128
324
{ \
129
324
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
324
                   HIGHBD_TAIL_SUFFIX); \
131
324
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
223
                                               HIGHBD_DECL_SUFFIX) \
128
223
{ \
129
223
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
223
                   HIGHBD_TAIL_SUFFIX); \
131
223
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_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_identity_dct_8x16_c
Line
Count
Source
127
544
                                               HIGHBD_DECL_SUFFIX) \
128
544
{ \
129
544
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
544
                   HIGHBD_TAIL_SUFFIX); \
131
544
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
398
                                               HIGHBD_DECL_SUFFIX) \
128
398
{ \
129
398
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
398
                   HIGHBD_TAIL_SUFFIX); \
131
398
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
176
                                               HIGHBD_DECL_SUFFIX) \
128
176
{ \
129
176
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
176
                   HIGHBD_TAIL_SUFFIX); \
131
176
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
333
                                               HIGHBD_DECL_SUFFIX) \
128
333
{ \
129
333
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
333
                   HIGHBD_TAIL_SUFFIX); \
131
333
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
180
                                               HIGHBD_DECL_SUFFIX) \
128
180
{ \
129
180
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
180
                   HIGHBD_TAIL_SUFFIX); \
131
180
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
6.23k
                                               HIGHBD_DECL_SUFFIX) \
128
6.23k
{ \
129
6.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.23k
                   HIGHBD_TAIL_SUFFIX); \
131
6.23k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
268
                                               HIGHBD_DECL_SUFFIX) \
128
268
{ \
129
268
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
268
                   HIGHBD_TAIL_SUFFIX); \
131
268
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_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_16x4_c
Line
Count
Source
127
1.57k
                                               HIGHBD_DECL_SUFFIX) \
128
1.57k
{ \
129
1.57k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.57k
                   HIGHBD_TAIL_SUFFIX); \
131
1.57k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
3.56k
                                               HIGHBD_DECL_SUFFIX) \
128
3.56k
{ \
129
3.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.56k
                   HIGHBD_TAIL_SUFFIX); \
131
3.56k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
2.89k
                                               HIGHBD_DECL_SUFFIX) \
128
2.89k
{ \
129
2.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.89k
                   HIGHBD_TAIL_SUFFIX); \
131
2.89k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
4.23k
                                               HIGHBD_DECL_SUFFIX) \
128
4.23k
{ \
129
4.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.23k
                   HIGHBD_TAIL_SUFFIX); \
131
4.23k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
453
                                               HIGHBD_DECL_SUFFIX) \
128
453
{ \
129
453
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
453
                   HIGHBD_TAIL_SUFFIX); \
131
453
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
259
                                               HIGHBD_DECL_SUFFIX) \
128
259
{ \
129
259
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
259
                   HIGHBD_TAIL_SUFFIX); \
131
259
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
219
                                               HIGHBD_DECL_SUFFIX) \
128
219
{ \
129
219
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
219
                   HIGHBD_TAIL_SUFFIX); \
131
219
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
159
                                               HIGHBD_DECL_SUFFIX) \
128
159
{ \
129
159
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
159
                   HIGHBD_TAIL_SUFFIX); \
131
159
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
201
                                               HIGHBD_DECL_SUFFIX) \
128
201
{ \
129
201
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
201
                   HIGHBD_TAIL_SUFFIX); \
131
201
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
1.26k
                                               HIGHBD_DECL_SUFFIX) \
128
1.26k
{ \
129
1.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.26k
                   HIGHBD_TAIL_SUFFIX); \
131
1.26k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
616
                                               HIGHBD_DECL_SUFFIX) \
128
616
{ \
129
616
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
616
                   HIGHBD_TAIL_SUFFIX); \
131
616
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
274
                                               HIGHBD_DECL_SUFFIX) \
128
274
{ \
129
274
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
274
                   HIGHBD_TAIL_SUFFIX); \
131
274
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
208
                                               HIGHBD_DECL_SUFFIX) \
128
208
{ \
129
208
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
208
                   HIGHBD_TAIL_SUFFIX); \
131
208
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
395
                                               HIGHBD_DECL_SUFFIX) \
128
395
{ \
129
395
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
395
                   HIGHBD_TAIL_SUFFIX); \
131
395
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_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_dct_16x8_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_identity_identity_16x8_c
Line
Count
Source
127
2.24k
                                               HIGHBD_DECL_SUFFIX) \
128
2.24k
{ \
129
2.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.24k
                   HIGHBD_TAIL_SUFFIX); \
131
2.24k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
4.86k
                                               HIGHBD_DECL_SUFFIX) \
128
4.86k
{ \
129
4.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.86k
                   HIGHBD_TAIL_SUFFIX); \
131
4.86k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
3.74k
                                               HIGHBD_DECL_SUFFIX) \
128
3.74k
{ \
129
3.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.74k
                   HIGHBD_TAIL_SUFFIX); \
131
3.74k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
4.63k
                                               HIGHBD_DECL_SUFFIX) \
128
4.63k
{ \
129
4.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.63k
                   HIGHBD_TAIL_SUFFIX); \
131
4.63k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_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_adst_flipadst_16x8_c
Line
Count
Source
127
707
                                               HIGHBD_DECL_SUFFIX) \
128
707
{ \
129
707
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
707
                   HIGHBD_TAIL_SUFFIX); \
131
707
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
764
                                               HIGHBD_DECL_SUFFIX) \
128
764
{ \
129
764
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
764
                   HIGHBD_TAIL_SUFFIX); \
131
764
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
872
                                               HIGHBD_DECL_SUFFIX) \
128
872
{ \
129
872
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
872
                   HIGHBD_TAIL_SUFFIX); \
131
872
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
693
                                               HIGHBD_DECL_SUFFIX) \
128
693
{ \
129
693
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
693
                   HIGHBD_TAIL_SUFFIX); \
131
693
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
1.30k
                                               HIGHBD_DECL_SUFFIX) \
128
1.30k
{ \
129
1.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.30k
                   HIGHBD_TAIL_SUFFIX); \
131
1.30k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
800
                                               HIGHBD_DECL_SUFFIX) \
128
800
{ \
129
800
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
800
                   HIGHBD_TAIL_SUFFIX); \
131
800
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_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_identity_flipadst_16x8_c
Line
Count
Source
127
323
                                               HIGHBD_DECL_SUFFIX) \
128
323
{ \
129
323
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
323
                   HIGHBD_TAIL_SUFFIX); \
131
323
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
710
                                               HIGHBD_DECL_SUFFIX) \
128
710
{ \
129
710
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
710
                   HIGHBD_TAIL_SUFFIX); \
131
710
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
367
                                               HIGHBD_DECL_SUFFIX) \
128
367
{ \
129
367
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
367
                   HIGHBD_TAIL_SUFFIX); \
131
367
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
15.7k
                                               HIGHBD_DECL_SUFFIX) \
128
15.7k
{ \
129
15.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.7k
                   HIGHBD_TAIL_SUFFIX); \
131
15.7k
}
itx_tmpl.c:inv_txfm_add_identity_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_adst_dct_16x16_c
Line
Count
Source
127
13.2k
                                               HIGHBD_DECL_SUFFIX) \
128
13.2k
{ \
129
13.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.2k
                   HIGHBD_TAIL_SUFFIX); \
131
13.2k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
9.92k
                                               HIGHBD_DECL_SUFFIX) \
128
9.92k
{ \
129
9.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.92k
                   HIGHBD_TAIL_SUFFIX); \
131
9.92k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
12.3k
                                               HIGHBD_DECL_SUFFIX) \
128
12.3k
{ \
129
12.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.3k
                   HIGHBD_TAIL_SUFFIX); \
131
12.3k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
765
                                               HIGHBD_DECL_SUFFIX) \
128
765
{ \
129
765
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
765
                   HIGHBD_TAIL_SUFFIX); \
131
765
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
414
                                               HIGHBD_DECL_SUFFIX) \
128
414
{ \
129
414
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
414
                   HIGHBD_TAIL_SUFFIX); \
131
414
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_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_flipadst_16x16_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_flipadst_flipadst_16x16_c
Line
Count
Source
127
536
                                               HIGHBD_DECL_SUFFIX) \
128
536
{ \
129
536
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
536
                   HIGHBD_TAIL_SUFFIX); \
131
536
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_identity_dct_16x16_c
Line
Count
Source
127
240
                                               HIGHBD_DECL_SUFFIX) \
128
240
{ \
129
240
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
240
                   HIGHBD_TAIL_SUFFIX); \
131
240
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
7.74k
                                               HIGHBD_DECL_SUFFIX) \
128
7.74k
{ \
129
7.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.74k
                   HIGHBD_TAIL_SUFFIX); \
131
7.74k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
299
                                               HIGHBD_DECL_SUFFIX) \
128
299
{ \
129
299
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
299
                   HIGHBD_TAIL_SUFFIX); \
131
299
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_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_dct_dct_32x8_c
Line
Count
Source
127
8.40k
                                               HIGHBD_DECL_SUFFIX) \
128
8.40k
{ \
129
8.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.40k
                   HIGHBD_TAIL_SUFFIX); \
131
8.40k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
259
                                               HIGHBD_DECL_SUFFIX) \
128
259
{ \
129
259
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
259
                   HIGHBD_TAIL_SUFFIX); \
131
259
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
8.83k
                                               HIGHBD_DECL_SUFFIX) \
128
8.83k
{ \
129
8.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.83k
                   HIGHBD_TAIL_SUFFIX); \
131
8.83k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
277
                                               HIGHBD_DECL_SUFFIX) \
128
277
{ \
129
277
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
277
                   HIGHBD_TAIL_SUFFIX); \
131
277
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
61.7k
                                               HIGHBD_DECL_SUFFIX) \
128
61.7k
{ \
129
61.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
61.7k
                   HIGHBD_TAIL_SUFFIX); \
131
61.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
78
                                               HIGHBD_DECL_SUFFIX) \
128
78
{ \
129
78
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
78
                   HIGHBD_TAIL_SUFFIX); \
131
78
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
6.56k
                                               HIGHBD_DECL_SUFFIX) \
128
6.56k
{ \
129
6.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.56k
                   HIGHBD_TAIL_SUFFIX); \
131
6.56k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_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_dct_dct_64x32_c
Line
Count
Source
127
2.37k
                                               HIGHBD_DECL_SUFFIX) \
128
2.37k
{ \
129
2.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.37k
                   HIGHBD_TAIL_SUFFIX); \
131
2.37k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
26.1k
                                               HIGHBD_DECL_SUFFIX) \
128
26.1k
{ \
129
26.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
26.1k
                   HIGHBD_TAIL_SUFFIX); \
131
26.1k
}
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
155k
{
188
155k
    int32_t tmp[4 * 4], *c = tmp;
189
779k
    for (int y = 0; y < 4; y++, c += 4) {
190
3.11M
        for (int x = 0; x < 4; x++)
191
2.49M
            c[x] = coeff[y + x * 4] >> 2;
192
623k
        dav1d_inv_wht4_1d_c(c, 1);
193
623k
    }
194
155k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
779k
    for (int x = 0; x < 4; x++)
197
623k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
155k
    c = tmp;
200
779k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
3.11M
        for (int x = 0; x < 4; x++)
202
2.49M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
155k
}
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
3.34k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
3.34k
#define assign_itx_all_fn64(w, h, pfx) \
222
63.5k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
63.5k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
3.34k
#define assign_itx_all_fn32(w, h, pfx) \
226
46.8k
    assign_itx_all_fn64(w, h, pfx); \
227
46.8k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
46.8k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
3.34k
#define assign_itx_all_fn16(w, h, pfx) \
231
30.1k
    assign_itx_all_fn32(w, h, pfx); \
232
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
30.1k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
30.1k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
30.1k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
30.1k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
30.1k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
30.1k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
30.1k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
30.1k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
30.1k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
30.1k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
30.1k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
3.34k
#define assign_itx_all_fn84(w, h, pfx) \
254
26.7k
    assign_itx_all_fn16(w, h, pfx); \
255
26.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
26.7k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
26.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
26.7k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
26.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
26.7k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
26.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
26.7k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
3.34k
264
3.34k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
3.34k
  ARCH_AARCH64 || \
266
3.34k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
3.34k
))
268
3.34k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
3.34k
#endif
270
3.34k
    assign_itx_all_fn84( 4,  4, );
271
3.34k
    assign_itx_all_fn84( 4,  8, R);
272
3.34k
    assign_itx_all_fn84( 4, 16, R);
273
3.34k
    assign_itx_all_fn84( 8,  4, R);
274
3.34k
    assign_itx_all_fn84( 8,  8, );
275
3.34k
    assign_itx_all_fn84( 8, 16, R);
276
3.34k
    assign_itx_all_fn32( 8, 32, R);
277
3.34k
    assign_itx_all_fn84(16,  4, R);
278
3.34k
    assign_itx_all_fn84(16,  8, R);
279
3.34k
    assign_itx_all_fn16(16, 16, );
280
3.34k
    assign_itx_all_fn32(16, 32, R);
281
3.34k
    assign_itx_all_fn64(16, 64, R);
282
3.34k
    assign_itx_all_fn32(32,  8, R);
283
3.34k
    assign_itx_all_fn32(32, 16, R);
284
3.34k
    assign_itx_all_fn32(32, 32, );
285
3.34k
    assign_itx_all_fn64(32, 64, R);
286
3.34k
    assign_itx_all_fn64(64, 16, R);
287
3.34k
    assign_itx_all_fn64(64, 32, R);
288
3.34k
    assign_itx_all_fn64(64, 64, );
289
290
3.34k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
3.34k
    if (!all_simd)
310
3.34k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
3.34k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
1.65k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
1.65k
#define assign_itx_all_fn64(w, h, pfx) \
222
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
1.65k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
1.65k
#define assign_itx_all_fn32(w, h, pfx) \
226
1.65k
    assign_itx_all_fn64(w, h, pfx); \
227
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
1.65k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
1.65k
#define assign_itx_all_fn16(w, h, pfx) \
231
1.65k
    assign_itx_all_fn32(w, h, pfx); \
232
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
1.65k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
1.65k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
1.65k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
1.65k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
1.65k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
1.65k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
1.65k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
1.65k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
1.65k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
1.65k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
1.65k
#define assign_itx_all_fn84(w, h, pfx) \
254
1.65k
    assign_itx_all_fn16(w, h, pfx); \
255
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
1.65k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
1.65k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
1.65k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
1.65k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
1.65k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
1.65k
264
1.65k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
1.65k
  ARCH_AARCH64 || \
266
1.65k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
1.65k
))
268
1.65k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
1.65k
#endif
270
1.65k
    assign_itx_all_fn84( 4,  4, );
271
1.65k
    assign_itx_all_fn84( 4,  8, R);
272
1.65k
    assign_itx_all_fn84( 4, 16, R);
273
1.65k
    assign_itx_all_fn84( 8,  4, R);
274
1.65k
    assign_itx_all_fn84( 8,  8, );
275
1.65k
    assign_itx_all_fn84( 8, 16, R);
276
1.65k
    assign_itx_all_fn32( 8, 32, R);
277
1.65k
    assign_itx_all_fn84(16,  4, R);
278
1.65k
    assign_itx_all_fn84(16,  8, R);
279
1.65k
    assign_itx_all_fn16(16, 16, );
280
1.65k
    assign_itx_all_fn32(16, 32, R);
281
1.65k
    assign_itx_all_fn64(16, 64, R);
282
1.65k
    assign_itx_all_fn32(32,  8, R);
283
1.65k
    assign_itx_all_fn32(32, 16, R);
284
1.65k
    assign_itx_all_fn32(32, 32, );
285
1.65k
    assign_itx_all_fn64(32, 64, R);
286
1.65k
    assign_itx_all_fn64(64, 16, R);
287
1.65k
    assign_itx_all_fn64(64, 32, R);
288
1.65k
    assign_itx_all_fn64(64, 64, );
289
290
1.65k
    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
1.65k
    if (!all_simd)
310
1.65k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
1.65k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
1.69k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
1.69k
#define assign_itx_all_fn64(w, h, pfx) \
222
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
1.69k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
1.69k
#define assign_itx_all_fn32(w, h, pfx) \
226
1.69k
    assign_itx_all_fn64(w, h, pfx); \
227
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
1.69k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
1.69k
#define assign_itx_all_fn16(w, h, pfx) \
231
1.69k
    assign_itx_all_fn32(w, h, pfx); \
232
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
1.69k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
1.69k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
1.69k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
1.69k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
1.69k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
1.69k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
1.69k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
1.69k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
1.69k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
1.69k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
1.69k
#define assign_itx_all_fn84(w, h, pfx) \
254
1.69k
    assign_itx_all_fn16(w, h, pfx); \
255
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
1.69k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
1.69k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
1.69k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
1.69k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
1.69k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
1.69k
264
1.69k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
1.69k
  ARCH_AARCH64 || \
266
1.69k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
1.69k
))
268
1.69k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
1.69k
#endif
270
1.69k
    assign_itx_all_fn84( 4,  4, );
271
1.69k
    assign_itx_all_fn84( 4,  8, R);
272
1.69k
    assign_itx_all_fn84( 4, 16, R);
273
1.69k
    assign_itx_all_fn84( 8,  4, R);
274
1.69k
    assign_itx_all_fn84( 8,  8, );
275
1.69k
    assign_itx_all_fn84( 8, 16, R);
276
1.69k
    assign_itx_all_fn32( 8, 32, R);
277
1.69k
    assign_itx_all_fn84(16,  4, R);
278
1.69k
    assign_itx_all_fn84(16,  8, R);
279
1.69k
    assign_itx_all_fn16(16, 16, );
280
1.69k
    assign_itx_all_fn32(16, 32, R);
281
1.69k
    assign_itx_all_fn64(16, 64, R);
282
1.69k
    assign_itx_all_fn32(32,  8, R);
283
1.69k
    assign_itx_all_fn32(32, 16, R);
284
1.69k
    assign_itx_all_fn32(32, 32, );
285
1.69k
    assign_itx_all_fn64(32, 64, R);
286
1.69k
    assign_itx_all_fn64(64, 16, R);
287
1.69k
    assign_itx_all_fn64(64, 32, R);
288
1.69k
    assign_itx_all_fn64(64, 64, );
289
290
1.69k
    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
1.69k
    if (!all_simd)
310
1.69k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
1.69k
}