Coverage Report

Created: 2026-07-30 06:25

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
920k
{
48
920k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
920k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
920k
    const int has_dconly = txtp == DCT_DCT;
51
920k
    assert(w >= 4 && w <= 64);
52
920k
    assert(h >= 4 && h <= 64);
53
920k
    assert(eob >= 0);
54
55
920k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
920k
    const int rnd = (1 << shift) >> 1;
57
58
920k
    if (eob < has_dconly) {
59
191k
        int dc = coeff[0];
60
191k
        coeff[0] = 0;
61
191k
        if (is_rect2)
62
40.0k
            dc = (dc * 181 + 128) >> 8;
63
191k
        dc = (dc * 181 + 128) >> 8;
64
191k
        dc = (dc + rnd) >> shift;
65
191k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
6.02M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
241M
            for (int x = 0; x < w; x++)
68
235M
                dst[x] = iclip_pixel(dst[x] + dc);
69
191k
        return;
70
191k
    }
71
72
728k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
728k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
728k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
728k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
728k
#if BITDEPTH == 8
77
728k
    const int row_clip_min = INT16_MIN;
78
728k
    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
728k
    const int row_clip_max = ~row_clip_min;
84
728k
    const int col_clip_max = ~col_clip_min;
85
86
728k
    int32_t tmp[64 * 64], *c = tmp;
87
728k
    int last_nonzero_col; // in first 1d itx
88
728k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
49.7k
        last_nonzero_col = imin(sh - 1, eob);
90
678k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
28.5k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
650k
    } else {
93
650k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
650k
    }
95
728k
    assert(last_nonzero_col < sh);
96
4.42M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
3.69M
        if (is_rect2)
98
15.9M
            for (int x = 0; x < sw; x++)
99
14.8M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
2.60M
        else
101
43.9M
            for (int x = 0; x < sw; x++)
102
41.3M
                c[x] = coeff[y + x * sh];
103
3.69M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
3.69M
    }
105
728k
    if (last_nonzero_col + 1 < sh)
106
541k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
728k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
196M
    for (int i = 0; i < w * sh; i++)
110
196M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
11.3M
    for (int x = 0; x < w; x++)
113
10.6M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
728k
    c = tmp;
116
10.9M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
275M
        for (int x = 0; x < w; x++)
118
264M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
728k
}
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
920k
                                               HIGHBD_DECL_SUFFIX) \
128
920k
{ \
129
920k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
920k
                   HIGHBD_TAIL_SUFFIX); \
131
920k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
25.4k
                                               HIGHBD_DECL_SUFFIX) \
128
25.4k
{ \
129
25.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
25.4k
                   HIGHBD_TAIL_SUFFIX); \
131
25.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
8.33k
                                               HIGHBD_DECL_SUFFIX) \
128
8.33k
{ \
129
8.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.33k
                   HIGHBD_TAIL_SUFFIX); \
131
8.33k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
16.9k
                                               HIGHBD_DECL_SUFFIX) \
128
16.9k
{ \
129
16.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.9k
                   HIGHBD_TAIL_SUFFIX); \
131
16.9k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_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_adst_adst_4x4_c
Line
Count
Source
127
18.7k
                                               HIGHBD_DECL_SUFFIX) \
128
18.7k
{ \
129
18.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
18.7k
                   HIGHBD_TAIL_SUFFIX); \
131
18.7k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
1.63k
                                               HIGHBD_DECL_SUFFIX) \
128
1.63k
{ \
129
1.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.63k
                   HIGHBD_TAIL_SUFFIX); \
131
1.63k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_flipadst_dct_4x4_c
Line
Count
Source
127
2.06k
                                               HIGHBD_DECL_SUFFIX) \
128
2.06k
{ \
129
2.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.06k
                   HIGHBD_TAIL_SUFFIX); \
131
2.06k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
1.67k
                                               HIGHBD_DECL_SUFFIX) \
128
1.67k
{ \
129
1.67k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.67k
                   HIGHBD_TAIL_SUFFIX); \
131
1.67k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_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_identity_4x4_c
Line
Count
Source
127
6.09k
                                               HIGHBD_DECL_SUFFIX) \
128
6.09k
{ \
129
6.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.09k
                   HIGHBD_TAIL_SUFFIX); \
131
6.09k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
2.98k
                                               HIGHBD_DECL_SUFFIX) \
128
2.98k
{ \
129
2.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.98k
                   HIGHBD_TAIL_SUFFIX); \
131
2.98k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
2.08k
                                               HIGHBD_DECL_SUFFIX) \
128
2.08k
{ \
129
2.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.08k
                   HIGHBD_TAIL_SUFFIX); \
131
2.08k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
1.95k
                                               HIGHBD_DECL_SUFFIX) \
128
1.95k
{ \
129
1.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.95k
                   HIGHBD_TAIL_SUFFIX); \
131
1.95k
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_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_identity_adst_4x4_c
Line
Count
Source
127
1.95k
                                               HIGHBD_DECL_SUFFIX) \
128
1.95k
{ \
129
1.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.95k
                   HIGHBD_TAIL_SUFFIX); \
131
1.95k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
11.2k
                                               HIGHBD_DECL_SUFFIX) \
128
11.2k
{ \
129
11.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.2k
                   HIGHBD_TAIL_SUFFIX); \
131
11.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
4.14k
                                               HIGHBD_DECL_SUFFIX) \
128
4.14k
{ \
129
4.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.14k
                   HIGHBD_TAIL_SUFFIX); \
131
4.14k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
7.08k
                                               HIGHBD_DECL_SUFFIX) \
128
7.08k
{ \
129
7.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.08k
                   HIGHBD_TAIL_SUFFIX); \
131
7.08k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_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_4x8_c
Line
Count
Source
127
7.98k
                                               HIGHBD_DECL_SUFFIX) \
128
7.98k
{ \
129
7.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.98k
                   HIGHBD_TAIL_SUFFIX); \
131
7.98k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
1.04k
                                               HIGHBD_DECL_SUFFIX) \
128
1.04k
{ \
129
1.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.04k
                   HIGHBD_TAIL_SUFFIX); \
131
1.04k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
758
                                               HIGHBD_DECL_SUFFIX) \
128
758
{ \
129
758
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
758
                   HIGHBD_TAIL_SUFFIX); \
131
758
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
849
                                               HIGHBD_DECL_SUFFIX) \
128
849
{ \
129
849
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
849
                   HIGHBD_TAIL_SUFFIX); \
131
849
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
539
                                               HIGHBD_DECL_SUFFIX) \
128
539
{ \
129
539
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
539
                   HIGHBD_TAIL_SUFFIX); \
131
539
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
829
                                               HIGHBD_DECL_SUFFIX) \
128
829
{ \
129
829
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
829
                   HIGHBD_TAIL_SUFFIX); \
131
829
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_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_dct_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_flipadst_identity_4x8_c
Line
Count
Source
127
1.51k
                                               HIGHBD_DECL_SUFFIX) \
128
1.51k
{ \
129
1.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.51k
                   HIGHBD_TAIL_SUFFIX); \
131
1.51k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_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_adst_identity_4x8_c
Line
Count
Source
127
1.77k
                                               HIGHBD_DECL_SUFFIX) \
128
1.77k
{ \
129
1.77k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.77k
                   HIGHBD_TAIL_SUFFIX); \
131
1.77k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
759
                                               HIGHBD_DECL_SUFFIX) \
128
759
{ \
129
759
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
759
                   HIGHBD_TAIL_SUFFIX); \
131
759
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
5.35k
                                               HIGHBD_DECL_SUFFIX) \
128
5.35k
{ \
129
5.35k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.35k
                   HIGHBD_TAIL_SUFFIX); \
131
5.35k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_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_adst_dct_4x16_c
Line
Count
Source
127
3.44k
                                               HIGHBD_DECL_SUFFIX) \
128
3.44k
{ \
129
3.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.44k
                   HIGHBD_TAIL_SUFFIX); \
131
3.44k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
2.74k
                                               HIGHBD_DECL_SUFFIX) \
128
2.74k
{ \
129
2.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.74k
                   HIGHBD_TAIL_SUFFIX); \
131
2.74k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
4.05k
                                               HIGHBD_DECL_SUFFIX) \
128
4.05k
{ \
129
4.05k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.05k
                   HIGHBD_TAIL_SUFFIX); \
131
4.05k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
254
                                               HIGHBD_DECL_SUFFIX) \
128
254
{ \
129
254
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
254
                   HIGHBD_TAIL_SUFFIX); \
131
254
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
172
                                               HIGHBD_DECL_SUFFIX) \
128
172
{ \
129
172
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
172
                   HIGHBD_TAIL_SUFFIX); \
131
172
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
191
                                               HIGHBD_DECL_SUFFIX) \
128
191
{ \
129
191
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
191
                   HIGHBD_TAIL_SUFFIX); \
131
191
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
131
                                               HIGHBD_DECL_SUFFIX) \
128
131
{ \
129
131
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
131
                   HIGHBD_TAIL_SUFFIX); \
131
131
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
183
                                               HIGHBD_DECL_SUFFIX) \
128
183
{ \
129
183
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
183
                   HIGHBD_TAIL_SUFFIX); \
131
183
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_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_identity_dct_4x16_c
Line
Count
Source
127
516
                                               HIGHBD_DECL_SUFFIX) \
128
516
{ \
129
516
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
516
                   HIGHBD_TAIL_SUFFIX); \
131
516
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
215
                                               HIGHBD_DECL_SUFFIX) \
128
215
{ \
129
215
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
215
                   HIGHBD_TAIL_SUFFIX); \
131
215
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
264
                                               HIGHBD_DECL_SUFFIX) \
128
264
{ \
129
264
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
264
                   HIGHBD_TAIL_SUFFIX); \
131
264
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
260
                                               HIGHBD_DECL_SUFFIX) \
128
260
{ \
129
260
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
260
                   HIGHBD_TAIL_SUFFIX); \
131
260
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
183
                                               HIGHBD_DECL_SUFFIX) \
128
183
{ \
129
183
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
183
                   HIGHBD_TAIL_SUFFIX); \
131
183
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
17.7k
                                               HIGHBD_DECL_SUFFIX) \
128
17.7k
{ \
129
17.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.7k
                   HIGHBD_TAIL_SUFFIX); \
131
17.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
5.29k
                                               HIGHBD_DECL_SUFFIX) \
128
5.29k
{ \
129
5.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.29k
                   HIGHBD_TAIL_SUFFIX); \
131
5.29k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
10.9k
                                               HIGHBD_DECL_SUFFIX) \
128
10.9k
{ \
129
10.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.9k
                   HIGHBD_TAIL_SUFFIX); \
131
10.9k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
8.37k
                                               HIGHBD_DECL_SUFFIX) \
128
8.37k
{ \
129
8.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.37k
                   HIGHBD_TAIL_SUFFIX); \
131
8.37k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
11.1k
                                               HIGHBD_DECL_SUFFIX) \
128
11.1k
{ \
129
11.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.1k
                   HIGHBD_TAIL_SUFFIX); \
131
11.1k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
1.15k
                                               HIGHBD_DECL_SUFFIX) \
128
1.15k
{ \
129
1.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.15k
                   HIGHBD_TAIL_SUFFIX); \
131
1.15k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_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_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
1.34k
                                               HIGHBD_DECL_SUFFIX) \
128
1.34k
{ \
129
1.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.34k
                   HIGHBD_TAIL_SUFFIX); \
131
1.34k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_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_dct_identity_8x4_c
Line
Count
Source
127
3.31k
                                               HIGHBD_DECL_SUFFIX) \
128
3.31k
{ \
129
3.31k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.31k
                   HIGHBD_TAIL_SUFFIX); \
131
3.31k
}
itx_tmpl.c:inv_txfm_add_identity_dct_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_flipadst_identity_8x4_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_flipadst_8x4_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_adst_identity_8x4_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_identity_adst_8x4_c
Line
Count
Source
127
1.36k
                                               HIGHBD_DECL_SUFFIX) \
128
1.36k
{ \
129
1.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.36k
                   HIGHBD_TAIL_SUFFIX); \
131
1.36k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
38.8k
                                               HIGHBD_DECL_SUFFIX) \
128
38.8k
{ \
129
38.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
38.8k
                   HIGHBD_TAIL_SUFFIX); \
131
38.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
10.1k
                                               HIGHBD_DECL_SUFFIX) \
128
10.1k
{ \
129
10.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.1k
                   HIGHBD_TAIL_SUFFIX); \
131
10.1k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
25.1k
                                               HIGHBD_DECL_SUFFIX) \
128
25.1k
{ \
129
25.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
25.1k
                   HIGHBD_TAIL_SUFFIX); \
131
25.1k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
19.9k
                                               HIGHBD_DECL_SUFFIX) \
128
19.9k
{ \
129
19.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.9k
                   HIGHBD_TAIL_SUFFIX); \
131
19.9k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
23.9k
                                               HIGHBD_DECL_SUFFIX) \
128
23.9k
{ \
129
23.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
23.9k
                   HIGHBD_TAIL_SUFFIX); \
131
23.9k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
2.08k
                                               HIGHBD_DECL_SUFFIX) \
128
2.08k
{ \
129
2.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.08k
                   HIGHBD_TAIL_SUFFIX); \
131
2.08k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
1.75k
                                               HIGHBD_DECL_SUFFIX) \
128
1.75k
{ \
129
1.75k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.75k
                   HIGHBD_TAIL_SUFFIX); \
131
1.75k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
3.18k
                                               HIGHBD_DECL_SUFFIX) \
128
3.18k
{ \
129
3.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.18k
                   HIGHBD_TAIL_SUFFIX); \
131
3.18k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_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_flipadst_flipadst_8x8_c
Line
Count
Source
127
1.83k
                                               HIGHBD_DECL_SUFFIX) \
128
1.83k
{ \
129
1.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.83k
                   HIGHBD_TAIL_SUFFIX); \
131
1.83k
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
7.46k
                                               HIGHBD_DECL_SUFFIX) \
128
7.46k
{ \
129
7.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.46k
                   HIGHBD_TAIL_SUFFIX); \
131
7.46k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
4.16k
                                               HIGHBD_DECL_SUFFIX) \
128
4.16k
{ \
129
4.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.16k
                   HIGHBD_TAIL_SUFFIX); \
131
4.16k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
2.43k
                                               HIGHBD_DECL_SUFFIX) \
128
2.43k
{ \
129
2.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.43k
                   HIGHBD_TAIL_SUFFIX); \
131
2.43k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_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_adst_identity_8x8_c
Line
Count
Source
127
2.66k
                                               HIGHBD_DECL_SUFFIX) \
128
2.66k
{ \
129
2.66k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.66k
                   HIGHBD_TAIL_SUFFIX); \
131
2.66k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
1.72k
                                               HIGHBD_DECL_SUFFIX) \
128
1.72k
{ \
129
1.72k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.72k
                   HIGHBD_TAIL_SUFFIX); \
131
1.72k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
10.6k
                                               HIGHBD_DECL_SUFFIX) \
128
10.6k
{ \
129
10.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.6k
                   HIGHBD_TAIL_SUFFIX); \
131
10.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_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_dct_8x16_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_adst_8x16_c
Line
Count
Source
127
4.98k
                                               HIGHBD_DECL_SUFFIX) \
128
4.98k
{ \
129
4.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.98k
                   HIGHBD_TAIL_SUFFIX); \
131
4.98k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
6.10k
                                               HIGHBD_DECL_SUFFIX) \
128
6.10k
{ \
129
6.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.10k
                   HIGHBD_TAIL_SUFFIX); \
131
6.10k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
418
                                               HIGHBD_DECL_SUFFIX) \
128
418
{ \
129
418
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
418
                   HIGHBD_TAIL_SUFFIX); \
131
418
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
509
                                               HIGHBD_DECL_SUFFIX) \
128
509
{ \
129
509
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
509
                   HIGHBD_TAIL_SUFFIX); \
131
509
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
508
                                               HIGHBD_DECL_SUFFIX) \
128
508
{ \
129
508
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
508
                   HIGHBD_TAIL_SUFFIX); \
131
508
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
449
                                               HIGHBD_DECL_SUFFIX) \
128
449
{ \
129
449
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
449
                   HIGHBD_TAIL_SUFFIX); \
131
449
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_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_identity_8x16_c
Line
Count
Source
127
1.39k
                                               HIGHBD_DECL_SUFFIX) \
128
1.39k
{ \
129
1.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.39k
                   HIGHBD_TAIL_SUFFIX); \
131
1.39k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
793
                                               HIGHBD_DECL_SUFFIX) \
128
793
{ \
129
793
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
793
                   HIGHBD_TAIL_SUFFIX); \
131
793
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
585
                                               HIGHBD_DECL_SUFFIX) \
128
585
{ \
129
585
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
585
                   HIGHBD_TAIL_SUFFIX); \
131
585
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_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_adst_identity_8x16_c
Line
Count
Source
127
492
                                               HIGHBD_DECL_SUFFIX) \
128
492
{ \
129
492
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
492
                   HIGHBD_TAIL_SUFFIX); \
131
492
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
349
                                               HIGHBD_DECL_SUFFIX) \
128
349
{ \
129
349
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
349
                   HIGHBD_TAIL_SUFFIX); \
131
349
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
11.8k
                                               HIGHBD_DECL_SUFFIX) \
128
11.8k
{ \
129
11.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.8k
                   HIGHBD_TAIL_SUFFIX); \
131
11.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_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_16x4_c
Line
Count
Source
127
8.61k
                                               HIGHBD_DECL_SUFFIX) \
128
8.61k
{ \
129
8.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.61k
                   HIGHBD_TAIL_SUFFIX); \
131
8.61k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
3.14k
                                               HIGHBD_DECL_SUFFIX) \
128
3.14k
{ \
129
3.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.14k
                   HIGHBD_TAIL_SUFFIX); \
131
3.14k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
6.21k
                                               HIGHBD_DECL_SUFFIX) \
128
6.21k
{ \
129
6.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.21k
                   HIGHBD_TAIL_SUFFIX); \
131
6.21k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
5.38k
                                               HIGHBD_DECL_SUFFIX) \
128
5.38k
{ \
129
5.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.38k
                   HIGHBD_TAIL_SUFFIX); \
131
5.38k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_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_flipadst_adst_16x4_c
Line
Count
Source
127
418
                                               HIGHBD_DECL_SUFFIX) \
128
418
{ \
129
418
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
418
                   HIGHBD_TAIL_SUFFIX); \
131
418
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
301
                                               HIGHBD_DECL_SUFFIX) \
128
301
{ \
129
301
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
301
                   HIGHBD_TAIL_SUFFIX); \
131
301
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_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_dct_flipadst_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_flipadst_flipadst_16x4_c
Line
Count
Source
127
267
                                               HIGHBD_DECL_SUFFIX) \
128
267
{ \
129
267
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
267
                   HIGHBD_TAIL_SUFFIX); \
131
267
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
2.15k
                                               HIGHBD_DECL_SUFFIX) \
128
2.15k
{ \
129
2.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.15k
                   HIGHBD_TAIL_SUFFIX); \
131
2.15k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_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_identity_16x4_c
Line
Count
Source
127
486
                                               HIGHBD_DECL_SUFFIX) \
128
486
{ \
129
486
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
486
                   HIGHBD_TAIL_SUFFIX); \
131
486
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
310
                                               HIGHBD_DECL_SUFFIX) \
128
310
{ \
129
310
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
310
                   HIGHBD_TAIL_SUFFIX); \
131
310
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
682
                                               HIGHBD_DECL_SUFFIX) \
128
682
{ \
129
682
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
682
                   HIGHBD_TAIL_SUFFIX); \
131
682
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
404
                                               HIGHBD_DECL_SUFFIX) \
128
404
{ \
129
404
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
404
                   HIGHBD_TAIL_SUFFIX); \
131
404
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
14.0k
                                               HIGHBD_DECL_SUFFIX) \
128
14.0k
{ \
129
14.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.0k
                   HIGHBD_TAIL_SUFFIX); \
131
14.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
4.09k
                                               HIGHBD_DECL_SUFFIX) \
128
4.09k
{ \
129
4.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.09k
                   HIGHBD_TAIL_SUFFIX); \
131
4.09k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
9.13k
                                               HIGHBD_DECL_SUFFIX) \
128
9.13k
{ \
129
9.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.13k
                   HIGHBD_TAIL_SUFFIX); \
131
9.13k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
7.03k
                                               HIGHBD_DECL_SUFFIX) \
128
7.03k
{ \
129
7.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.03k
                   HIGHBD_TAIL_SUFFIX); \
131
7.03k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
8.09k
                                               HIGHBD_DECL_SUFFIX) \
128
8.09k
{ \
129
8.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.09k
                   HIGHBD_TAIL_SUFFIX); \
131
8.09k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_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_adst_flipadst_16x8_c
Line
Count
Source
127
903
                                               HIGHBD_DECL_SUFFIX) \
128
903
{ \
129
903
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
903
                   HIGHBD_TAIL_SUFFIX); \
131
903
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
1.21k
                                               HIGHBD_DECL_SUFFIX) \
128
1.21k
{ \
129
1.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.21k
                   HIGHBD_TAIL_SUFFIX); \
131
1.21k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
1.11k
                                               HIGHBD_DECL_SUFFIX) \
128
1.11k
{ \
129
1.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.11k
                   HIGHBD_TAIL_SUFFIX); \
131
1.11k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_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_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_identity_dct_16x8_c
Line
Count
Source
127
1.21k
                                               HIGHBD_DECL_SUFFIX) \
128
1.21k
{ \
129
1.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.21k
                   HIGHBD_TAIL_SUFFIX); \
131
1.21k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
1.00k
                                               HIGHBD_DECL_SUFFIX) \
128
1.00k
{ \
129
1.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.00k
                   HIGHBD_TAIL_SUFFIX); \
131
1.00k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
489
                                               HIGHBD_DECL_SUFFIX) \
128
489
{ \
129
489
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
489
                   HIGHBD_TAIL_SUFFIX); \
131
489
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_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_identity_adst_16x8_c
Line
Count
Source
127
520
                                               HIGHBD_DECL_SUFFIX) \
128
520
{ \
129
520
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
520
                   HIGHBD_TAIL_SUFFIX); \
131
520
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
34.6k
                                               HIGHBD_DECL_SUFFIX) \
128
34.6k
{ \
129
34.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
34.6k
                   HIGHBD_TAIL_SUFFIX); \
131
34.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
3.89k
                                               HIGHBD_DECL_SUFFIX) \
128
3.89k
{ \
129
3.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.89k
                   HIGHBD_TAIL_SUFFIX); \
131
3.89k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
30.5k
                                               HIGHBD_DECL_SUFFIX) \
128
30.5k
{ \
129
30.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
30.5k
                   HIGHBD_TAIL_SUFFIX); \
131
30.5k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
22.4k
                                               HIGHBD_DECL_SUFFIX) \
128
22.4k
{ \
129
22.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
22.4k
                   HIGHBD_TAIL_SUFFIX); \
131
22.4k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
28.0k
                                               HIGHBD_DECL_SUFFIX) \
128
28.0k
{ \
129
28.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
28.0k
                   HIGHBD_TAIL_SUFFIX); \
131
28.0k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
443
                                               HIGHBD_DECL_SUFFIX) \
128
443
{ \
129
443
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
443
                   HIGHBD_TAIL_SUFFIX); \
131
443
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
554
                                               HIGHBD_DECL_SUFFIX) \
128
554
{ \
129
554
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
554
                   HIGHBD_TAIL_SUFFIX); \
131
554
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
567
                                               HIGHBD_DECL_SUFFIX) \
128
567
{ \
129
567
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
567
                   HIGHBD_TAIL_SUFFIX); \
131
567
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
611
                                               HIGHBD_DECL_SUFFIX) \
128
611
{ \
129
611
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
611
                   HIGHBD_TAIL_SUFFIX); \
131
611
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
781
                                               HIGHBD_DECL_SUFFIX) \
128
781
{ \
129
781
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
781
                   HIGHBD_TAIL_SUFFIX); \
131
781
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_identity_dct_16x16_c
Line
Count
Source
127
579
                                               HIGHBD_DECL_SUFFIX) \
128
579
{ \
129
579
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
579
                   HIGHBD_TAIL_SUFFIX); \
131
579
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_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_16x32_c
Line
Count
Source
127
262
                                               HIGHBD_DECL_SUFFIX) \
128
262
{ \
129
262
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
262
                   HIGHBD_TAIL_SUFFIX); \
131
262
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
3.21k
                                               HIGHBD_DECL_SUFFIX) \
128
3.21k
{ \
129
3.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.21k
                   HIGHBD_TAIL_SUFFIX); \
131
3.21k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
15.2k
                                               HIGHBD_DECL_SUFFIX) \
128
15.2k
{ \
129
15.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.2k
                   HIGHBD_TAIL_SUFFIX); \
131
15.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
496
                                               HIGHBD_DECL_SUFFIX) \
128
496
{ \
129
496
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
496
                   HIGHBD_TAIL_SUFFIX); \
131
496
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
18.5k
                                               HIGHBD_DECL_SUFFIX) \
128
18.5k
{ \
129
18.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
18.5k
                   HIGHBD_TAIL_SUFFIX); \
131
18.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_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_dct_32x32_c
Line
Count
Source
127
119k
                                               HIGHBD_DECL_SUFFIX) \
128
119k
{ \
129
119k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
119k
                   HIGHBD_TAIL_SUFFIX); \
131
119k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
187
                                               HIGHBD_DECL_SUFFIX) \
128
187
{ \
129
187
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
187
                   HIGHBD_TAIL_SUFFIX); \
131
187
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
11.0k
                                               HIGHBD_DECL_SUFFIX) \
128
11.0k
{ \
129
11.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.0k
                   HIGHBD_TAIL_SUFFIX); \
131
11.0k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
2.74k
                                               HIGHBD_DECL_SUFFIX) \
128
2.74k
{ \
129
2.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.74k
                   HIGHBD_TAIL_SUFFIX); \
131
2.74k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
6.99k
                                               HIGHBD_DECL_SUFFIX) \
128
6.99k
{ \
129
6.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.99k
                   HIGHBD_TAIL_SUFFIX); \
131
6.99k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
60.2k
                                               HIGHBD_DECL_SUFFIX) \
128
60.2k
{ \
129
60.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
60.2k
                   HIGHBD_TAIL_SUFFIX); \
131
60.2k
}
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
246k
{
188
246k
    int32_t tmp[4 * 4], *c = tmp;
189
1.23M
    for (int y = 0; y < 4; y++, c += 4) {
190
4.93M
        for (int x = 0; x < 4; x++)
191
3.94M
            c[x] = coeff[y + x * 4] >> 2;
192
986k
        dav1d_inv_wht4_1d_c(c, 1);
193
986k
    }
194
246k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
1.23M
    for (int x = 0; x < 4; x++)
197
986k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
246k
    c = tmp;
200
1.23M
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
4.93M
        for (int x = 0; x < 4; x++)
202
3.94M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
246k
}
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
17.0k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
17.0k
#define assign_itx_all_fn64(w, h, pfx) \
222
323k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
323k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
17.0k
#define assign_itx_all_fn32(w, h, pfx) \
226
238k
    assign_itx_all_fn64(w, h, pfx); \
227
238k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
238k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
17.0k
#define assign_itx_all_fn16(w, h, pfx) \
231
153k
    assign_itx_all_fn32(w, h, pfx); \
232
153k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
153k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
153k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
153k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
153k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
153k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
153k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
153k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
153k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
153k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
153k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
153k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
153k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
153k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
153k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
153k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
153k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
153k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
153k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
153k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
17.0k
#define assign_itx_all_fn84(w, h, pfx) \
254
136k
    assign_itx_all_fn16(w, h, pfx); \
255
136k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
136k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
136k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
136k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
136k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
136k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
136k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
136k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
17.0k
264
17.0k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
17.0k
  ARCH_AARCH64 || \
266
17.0k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
17.0k
))
268
17.0k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
17.0k
#endif
270
17.0k
    assign_itx_all_fn84( 4,  4, );
271
17.0k
    assign_itx_all_fn84( 4,  8, R);
272
17.0k
    assign_itx_all_fn84( 4, 16, R);
273
17.0k
    assign_itx_all_fn84( 8,  4, R);
274
17.0k
    assign_itx_all_fn84( 8,  8, );
275
17.0k
    assign_itx_all_fn84( 8, 16, R);
276
17.0k
    assign_itx_all_fn32( 8, 32, R);
277
17.0k
    assign_itx_all_fn84(16,  4, R);
278
17.0k
    assign_itx_all_fn84(16,  8, R);
279
17.0k
    assign_itx_all_fn16(16, 16, );
280
17.0k
    assign_itx_all_fn32(16, 32, R);
281
17.0k
    assign_itx_all_fn64(16, 64, R);
282
17.0k
    assign_itx_all_fn32(32,  8, R);
283
17.0k
    assign_itx_all_fn32(32, 16, R);
284
17.0k
    assign_itx_all_fn32(32, 32, );
285
17.0k
    assign_itx_all_fn64(32, 64, R);
286
17.0k
    assign_itx_all_fn64(64, 16, R);
287
17.0k
    assign_itx_all_fn64(64, 32, R);
288
17.0k
    assign_itx_all_fn64(64, 64, );
289
290
17.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
17.0k
    if (!all_simd)
310
17.0k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
17.0k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
8.07k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
8.07k
#define assign_itx_all_fn64(w, h, pfx) \
222
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
8.07k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
8.07k
#define assign_itx_all_fn32(w, h, pfx) \
226
8.07k
    assign_itx_all_fn64(w, h, pfx); \
227
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
8.07k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
8.07k
#define assign_itx_all_fn16(w, h, pfx) \
231
8.07k
    assign_itx_all_fn32(w, h, pfx); \
232
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
8.07k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
8.07k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
8.07k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
8.07k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
8.07k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
8.07k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
8.07k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
8.07k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
8.07k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
8.07k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
8.07k
#define assign_itx_all_fn84(w, h, pfx) \
254
8.07k
    assign_itx_all_fn16(w, h, pfx); \
255
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
8.07k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
8.07k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
8.07k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
8.07k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
8.07k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
8.07k
264
8.07k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
8.07k
  ARCH_AARCH64 || \
266
8.07k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
8.07k
))
268
8.07k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
8.07k
#endif
270
8.07k
    assign_itx_all_fn84( 4,  4, );
271
8.07k
    assign_itx_all_fn84( 4,  8, R);
272
8.07k
    assign_itx_all_fn84( 4, 16, R);
273
8.07k
    assign_itx_all_fn84( 8,  4, R);
274
8.07k
    assign_itx_all_fn84( 8,  8, );
275
8.07k
    assign_itx_all_fn84( 8, 16, R);
276
8.07k
    assign_itx_all_fn32( 8, 32, R);
277
8.07k
    assign_itx_all_fn84(16,  4, R);
278
8.07k
    assign_itx_all_fn84(16,  8, R);
279
8.07k
    assign_itx_all_fn16(16, 16, );
280
8.07k
    assign_itx_all_fn32(16, 32, R);
281
8.07k
    assign_itx_all_fn64(16, 64, R);
282
8.07k
    assign_itx_all_fn32(32,  8, R);
283
8.07k
    assign_itx_all_fn32(32, 16, R);
284
8.07k
    assign_itx_all_fn32(32, 32, );
285
8.07k
    assign_itx_all_fn64(32, 64, R);
286
8.07k
    assign_itx_all_fn64(64, 16, R);
287
8.07k
    assign_itx_all_fn64(64, 32, R);
288
8.07k
    assign_itx_all_fn64(64, 64, );
289
290
8.07k
    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
8.07k
    if (!all_simd)
310
8.07k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
8.07k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
8.94k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
8.94k
#define assign_itx_all_fn64(w, h, pfx) \
222
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
8.94k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
8.94k
#define assign_itx_all_fn32(w, h, pfx) \
226
8.94k
    assign_itx_all_fn64(w, h, pfx); \
227
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
8.94k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
8.94k
#define assign_itx_all_fn16(w, h, pfx) \
231
8.94k
    assign_itx_all_fn32(w, h, pfx); \
232
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
8.94k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
8.94k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
8.94k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
8.94k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
8.94k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
8.94k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
8.94k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
8.94k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
8.94k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
8.94k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
8.94k
#define assign_itx_all_fn84(w, h, pfx) \
254
8.94k
    assign_itx_all_fn16(w, h, pfx); \
255
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
8.94k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
8.94k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
8.94k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
8.94k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
8.94k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
8.94k
264
8.94k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
8.94k
  ARCH_AARCH64 || \
266
8.94k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
8.94k
))
268
8.94k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
8.94k
#endif
270
8.94k
    assign_itx_all_fn84( 4,  4, );
271
8.94k
    assign_itx_all_fn84( 4,  8, R);
272
8.94k
    assign_itx_all_fn84( 4, 16, R);
273
8.94k
    assign_itx_all_fn84( 8,  4, R);
274
8.94k
    assign_itx_all_fn84( 8,  8, );
275
8.94k
    assign_itx_all_fn84( 8, 16, R);
276
8.94k
    assign_itx_all_fn32( 8, 32, R);
277
8.94k
    assign_itx_all_fn84(16,  4, R);
278
8.94k
    assign_itx_all_fn84(16,  8, R);
279
8.94k
    assign_itx_all_fn16(16, 16, );
280
8.94k
    assign_itx_all_fn32(16, 32, R);
281
8.94k
    assign_itx_all_fn64(16, 64, R);
282
8.94k
    assign_itx_all_fn32(32,  8, R);
283
8.94k
    assign_itx_all_fn32(32, 16, R);
284
8.94k
    assign_itx_all_fn32(32, 32, );
285
8.94k
    assign_itx_all_fn64(32, 64, R);
286
8.94k
    assign_itx_all_fn64(64, 16, R);
287
8.94k
    assign_itx_all_fn64(64, 32, R);
288
8.94k
    assign_itx_all_fn64(64, 64, );
289
290
8.94k
    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
8.94k
    if (!all_simd)
310
8.94k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
8.94k
}