Coverage Report

Created: 2026-06-10 06:59

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
942k
{
48
942k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
942k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
942k
    const int has_dconly = txtp == DCT_DCT;
51
942k
    assert(w >= 4 && w <= 64);
52
942k
    assert(h >= 4 && h <= 64);
53
942k
    assert(eob >= 0);
54
55
942k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
942k
    const int rnd = (1 << shift) >> 1;
57
58
942k
    if (eob < has_dconly) {
59
239k
        int dc = coeff[0];
60
239k
        coeff[0] = 0;
61
239k
        if (is_rect2)
62
38.8k
            dc = (dc * 181 + 128) >> 8;
63
239k
        dc = (dc * 181 + 128) >> 8;
64
239k
        dc = (dc + rnd) >> shift;
65
239k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
8.00M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
323M
            for (int x = 0; x < w; x++)
68
316M
                dst[x] = iclip_pixel(dst[x] + dc);
69
239k
        return;
70
239k
    }
71
72
702k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
702k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
702k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
702k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
702k
#if BITDEPTH == 8
77
702k
    const int row_clip_min = INT16_MIN;
78
702k
    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
702k
    const int row_clip_max = ~row_clip_min;
84
702k
    const int col_clip_max = ~col_clip_min;
85
86
702k
    int32_t tmp[64 * 64], *c = tmp;
87
702k
    int last_nonzero_col; // in first 1d itx
88
702k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
43.2k
        last_nonzero_col = imin(sh - 1, eob);
90
659k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
22.8k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
636k
    } else {
93
636k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
636k
    }
95
702k
    assert(last_nonzero_col < sh);
96
4.31M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
3.61M
        if (is_rect2)
98
15.6M
            for (int x = 0; x < sw; x++)
99
14.5M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
2.56M
        else
101
44.6M
            for (int x = 0; x < sw; x++)
102
42.1M
                c[x] = coeff[y + x * sh];
103
3.61M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
3.61M
    }
105
702k
    if (last_nonzero_col + 1 < sh)
106
527k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
702k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
200M
    for (int i = 0; i < w * sh; i++)
110
200M
        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
702k
    c = tmp;
116
10.9M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
280M
        for (int x = 0; x < w; x++)
118
270M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
702k
}
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
942k
                                               HIGHBD_DECL_SUFFIX) \
128
942k
{ \
129
942k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
942k
                   HIGHBD_TAIL_SUFFIX); \
131
942k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
24.0k
                                               HIGHBD_DECL_SUFFIX) \
128
24.0k
{ \
129
24.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
24.0k
                   HIGHBD_TAIL_SUFFIX); \
131
24.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
7.36k
                                               HIGHBD_DECL_SUFFIX) \
128
7.36k
{ \
129
7.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.36k
                   HIGHBD_TAIL_SUFFIX); \
131
7.36k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
15.6k
                                               HIGHBD_DECL_SUFFIX) \
128
15.6k
{ \
129
15.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.6k
                   HIGHBD_TAIL_SUFFIX); \
131
15.6k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_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_adst_adst_4x4_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_flipadst_adst_4x4_c
Line
Count
Source
127
1.17k
                                               HIGHBD_DECL_SUFFIX) \
128
1.17k
{ \
129
1.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.17k
                   HIGHBD_TAIL_SUFFIX); \
131
1.17k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_dct_4x4_c
Line
Count
Source
127
1.50k
                                               HIGHBD_DECL_SUFFIX) \
128
1.50k
{ \
129
1.50k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.50k
                   HIGHBD_TAIL_SUFFIX); \
131
1.50k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
624
                                               HIGHBD_DECL_SUFFIX) \
128
624
{ \
129
624
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
624
                   HIGHBD_TAIL_SUFFIX); \
131
624
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
915
                                               HIGHBD_DECL_SUFFIX) \
128
915
{ \
129
915
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
915
                   HIGHBD_TAIL_SUFFIX); \
131
915
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
5.62k
                                               HIGHBD_DECL_SUFFIX) \
128
5.62k
{ \
129
5.62k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.62k
                   HIGHBD_TAIL_SUFFIX); \
131
5.62k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_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_flipadst_identity_4x4_c
Line
Count
Source
127
1.58k
                                               HIGHBD_DECL_SUFFIX) \
128
1.58k
{ \
129
1.58k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.58k
                   HIGHBD_TAIL_SUFFIX); \
131
1.58k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
1.19k
                                               HIGHBD_DECL_SUFFIX) \
128
1.19k
{ \
129
1.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.19k
                   HIGHBD_TAIL_SUFFIX); \
131
1.19k
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
2.29k
                                               HIGHBD_DECL_SUFFIX) \
128
2.29k
{ \
129
2.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.29k
                   HIGHBD_TAIL_SUFFIX); \
131
2.29k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_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_dct_dct_4x8_c
Line
Count
Source
127
9.27k
                                               HIGHBD_DECL_SUFFIX) \
128
9.27k
{ \
129
9.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.27k
                   HIGHBD_TAIL_SUFFIX); \
131
9.27k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
3.01k
                                               HIGHBD_DECL_SUFFIX) \
128
3.01k
{ \
129
3.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.01k
                   HIGHBD_TAIL_SUFFIX); \
131
3.01k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
6.32k
                                               HIGHBD_DECL_SUFFIX) \
128
6.32k
{ \
129
6.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.32k
                   HIGHBD_TAIL_SUFFIX); \
131
6.32k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
5.32k
                                               HIGHBD_DECL_SUFFIX) \
128
5.32k
{ \
129
5.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.32k
                   HIGHBD_TAIL_SUFFIX); \
131
5.32k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
7.43k
                                               HIGHBD_DECL_SUFFIX) \
128
7.43k
{ \
129
7.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.43k
                   HIGHBD_TAIL_SUFFIX); \
131
7.43k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
864
                                               HIGHBD_DECL_SUFFIX) \
128
864
{ \
129
864
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
864
                   HIGHBD_TAIL_SUFFIX); \
131
864
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_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_flipadst_dct_4x8_c
Line
Count
Source
127
381
                                               HIGHBD_DECL_SUFFIX) \
128
381
{ \
129
381
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
381
                   HIGHBD_TAIL_SUFFIX); \
131
381
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
471
                                               HIGHBD_DECL_SUFFIX) \
128
471
{ \
129
471
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
471
                   HIGHBD_TAIL_SUFFIX); \
131
471
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
804
                                               HIGHBD_DECL_SUFFIX) \
128
804
{ \
129
804
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
804
                   HIGHBD_TAIL_SUFFIX); \
131
804
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
2.76k
                                               HIGHBD_DECL_SUFFIX) \
128
2.76k
{ \
129
2.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.76k
                   HIGHBD_TAIL_SUFFIX); \
131
2.76k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_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_flipadst_identity_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_identity_flipadst_4x8_c
Line
Count
Source
127
942
                                               HIGHBD_DECL_SUFFIX) \
128
942
{ \
129
942
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
942
                   HIGHBD_TAIL_SUFFIX); \
131
942
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_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_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
4.39k
                                               HIGHBD_DECL_SUFFIX) \
128
4.39k
{ \
129
4.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.39k
                   HIGHBD_TAIL_SUFFIX); \
131
4.39k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
1.45k
                                               HIGHBD_DECL_SUFFIX) \
128
1.45k
{ \
129
1.45k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.45k
                   HIGHBD_TAIL_SUFFIX); \
131
1.45k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
2.93k
                                               HIGHBD_DECL_SUFFIX) \
128
2.93k
{ \
129
2.93k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.93k
                   HIGHBD_TAIL_SUFFIX); \
131
2.93k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_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_adst_adst_4x16_c
Line
Count
Source
127
3.62k
                                               HIGHBD_DECL_SUFFIX) \
128
3.62k
{ \
129
3.62k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.62k
                   HIGHBD_TAIL_SUFFIX); \
131
3.62k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
206
                                               HIGHBD_DECL_SUFFIX) \
128
206
{ \
129
206
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
206
                   HIGHBD_TAIL_SUFFIX); \
131
206
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
96
                                               HIGHBD_DECL_SUFFIX) \
128
96
{ \
129
96
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
96
                   HIGHBD_TAIL_SUFFIX); \
131
96
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
120
                                               HIGHBD_DECL_SUFFIX) \
128
120
{ \
129
120
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
120
                   HIGHBD_TAIL_SUFFIX); \
131
120
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
139
                                               HIGHBD_DECL_SUFFIX) \
128
139
{ \
129
139
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
139
                   HIGHBD_TAIL_SUFFIX); \
131
139
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
118
                                               HIGHBD_DECL_SUFFIX) \
128
118
{ \
129
118
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
118
                   HIGHBD_TAIL_SUFFIX); \
131
118
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_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_identity_dct_4x16_c
Line
Count
Source
127
537
                                               HIGHBD_DECL_SUFFIX) \
128
537
{ \
129
537
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
537
                   HIGHBD_TAIL_SUFFIX); \
131
537
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
158
                                               HIGHBD_DECL_SUFFIX) \
128
158
{ \
129
158
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
158
                   HIGHBD_TAIL_SUFFIX); \
131
158
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
185
                                               HIGHBD_DECL_SUFFIX) \
128
185
{ \
129
185
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
185
                   HIGHBD_TAIL_SUFFIX); \
131
185
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
168
                                               HIGHBD_DECL_SUFFIX) \
128
168
{ \
129
168
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
168
                   HIGHBD_TAIL_SUFFIX); \
131
168
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
90
                                               HIGHBD_DECL_SUFFIX) \
128
90
{ \
129
90
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
90
                   HIGHBD_TAIL_SUFFIX); \
131
90
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
16.3k
                                               HIGHBD_DECL_SUFFIX) \
128
16.3k
{ \
129
16.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.3k
                   HIGHBD_TAIL_SUFFIX); \
131
16.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
4.06k
                                               HIGHBD_DECL_SUFFIX) \
128
4.06k
{ \
129
4.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.06k
                   HIGHBD_TAIL_SUFFIX); \
131
4.06k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
9.54k
                                               HIGHBD_DECL_SUFFIX) \
128
9.54k
{ \
129
9.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.54k
                   HIGHBD_TAIL_SUFFIX); \
131
9.54k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
7.50k
                                               HIGHBD_DECL_SUFFIX) \
128
7.50k
{ \
129
7.50k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.50k
                   HIGHBD_TAIL_SUFFIX); \
131
7.50k
}
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
974
                                               HIGHBD_DECL_SUFFIX) \
128
974
{ \
129
974
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
974
                   HIGHBD_TAIL_SUFFIX); \
131
974
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_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_flipadst_dct_8x4_c
Line
Count
Source
127
766
                                               HIGHBD_DECL_SUFFIX) \
128
766
{ \
129
766
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
766
                   HIGHBD_TAIL_SUFFIX); \
131
766
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
546
                                               HIGHBD_DECL_SUFFIX) \
128
546
{ \
129
546
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
546
                   HIGHBD_TAIL_SUFFIX); \
131
546
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
512
                                               HIGHBD_DECL_SUFFIX) \
128
512
{ \
129
512
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
512
                   HIGHBD_TAIL_SUFFIX); \
131
512
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
3.07k
                                               HIGHBD_DECL_SUFFIX) \
128
3.07k
{ \
129
3.07k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.07k
                   HIGHBD_TAIL_SUFFIX); \
131
3.07k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_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_8x4_c
Line
Count
Source
127
1.24k
                                               HIGHBD_DECL_SUFFIX) \
128
1.24k
{ \
129
1.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.24k
                   HIGHBD_TAIL_SUFFIX); \
131
1.24k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
811
                                               HIGHBD_DECL_SUFFIX) \
128
811
{ \
129
811
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
811
                   HIGHBD_TAIL_SUFFIX); \
131
811
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
1.76k
                                               HIGHBD_DECL_SUFFIX) \
128
1.76k
{ \
129
1.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.76k
                   HIGHBD_TAIL_SUFFIX); \
131
1.76k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
1.01k
                                               HIGHBD_DECL_SUFFIX) \
128
1.01k
{ \
129
1.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.01k
                   HIGHBD_TAIL_SUFFIX); \
131
1.01k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
35.3k
                                               HIGHBD_DECL_SUFFIX) \
128
35.3k
{ \
129
35.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
35.3k
                   HIGHBD_TAIL_SUFFIX); \
131
35.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_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_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_dct_adst_8x8_c
Line
Count
Source
127
19.1k
                                               HIGHBD_DECL_SUFFIX) \
128
19.1k
{ \
129
19.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.1k
                   HIGHBD_TAIL_SUFFIX); \
131
19.1k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
23.0k
                                               HIGHBD_DECL_SUFFIX) \
128
23.0k
{ \
129
23.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
23.0k
                   HIGHBD_TAIL_SUFFIX); \
131
23.0k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_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_adst_flipadst_8x8_c
Line
Count
Source
127
1.49k
                                               HIGHBD_DECL_SUFFIX) \
128
1.49k
{ \
129
1.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.49k
                   HIGHBD_TAIL_SUFFIX); \
131
1.49k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_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_dct_flipadst_8x8_c
Line
Count
Source
127
1.87k
                                               HIGHBD_DECL_SUFFIX) \
128
1.87k
{ \
129
1.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.87k
                   HIGHBD_TAIL_SUFFIX); \
131
1.87k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_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_identity_8x8_c
Line
Count
Source
127
7.02k
                                               HIGHBD_DECL_SUFFIX) \
128
7.02k
{ \
129
7.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.02k
                   HIGHBD_TAIL_SUFFIX); \
131
7.02k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
3.41k
                                               HIGHBD_DECL_SUFFIX) \
128
3.41k
{ \
129
3.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.41k
                   HIGHBD_TAIL_SUFFIX); \
131
3.41k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
1.86k
                                               HIGHBD_DECL_SUFFIX) \
128
1.86k
{ \
129
1.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.86k
                   HIGHBD_TAIL_SUFFIX); \
131
1.86k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
589
                                               HIGHBD_DECL_SUFFIX) \
128
589
{ \
129
589
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
589
                   HIGHBD_TAIL_SUFFIX); \
131
589
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
2.20k
                                               HIGHBD_DECL_SUFFIX) \
128
2.20k
{ \
129
2.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.20k
                   HIGHBD_TAIL_SUFFIX); \
131
2.20k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
1.01k
                                               HIGHBD_DECL_SUFFIX) \
128
1.01k
{ \
129
1.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.01k
                   HIGHBD_TAIL_SUFFIX); \
131
1.01k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
10.5k
                                               HIGHBD_DECL_SUFFIX) \
128
10.5k
{ \
129
10.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.5k
                   HIGHBD_TAIL_SUFFIX); \
131
10.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
2.17k
                                               HIGHBD_DECL_SUFFIX) \
128
2.17k
{ \
129
2.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.17k
                   HIGHBD_TAIL_SUFFIX); \
131
2.17k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
6.49k
                                               HIGHBD_DECL_SUFFIX) \
128
6.49k
{ \
129
6.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.49k
                   HIGHBD_TAIL_SUFFIX); \
131
6.49k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
5.02k
                                               HIGHBD_DECL_SUFFIX) \
128
5.02k
{ \
129
5.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.02k
                   HIGHBD_TAIL_SUFFIX); \
131
5.02k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
6.11k
                                               HIGHBD_DECL_SUFFIX) \
128
6.11k
{ \
129
6.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.11k
                   HIGHBD_TAIL_SUFFIX); \
131
6.11k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
287
                                               HIGHBD_DECL_SUFFIX) \
128
287
{ \
129
287
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
287
                   HIGHBD_TAIL_SUFFIX); \
131
287
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_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_dct_8x16_c
Line
Count
Source
127
385
                                               HIGHBD_DECL_SUFFIX) \
128
385
{ \
129
385
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
385
                   HIGHBD_TAIL_SUFFIX); \
131
385
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
337
                                               HIGHBD_DECL_SUFFIX) \
128
337
{ \
129
337
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
337
                   HIGHBD_TAIL_SUFFIX); \
131
337
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
475
                                               HIGHBD_DECL_SUFFIX) \
128
475
{ \
129
475
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
475
                   HIGHBD_TAIL_SUFFIX); \
131
475
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
1.49k
                                               HIGHBD_DECL_SUFFIX) \
128
1.49k
{ \
129
1.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.49k
                   HIGHBD_TAIL_SUFFIX); \
131
1.49k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
828
                                               HIGHBD_DECL_SUFFIX) \
128
828
{ \
129
828
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
828
                   HIGHBD_TAIL_SUFFIX); \
131
828
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
839
                                               HIGHBD_DECL_SUFFIX) \
128
839
{ \
129
839
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
839
                   HIGHBD_TAIL_SUFFIX); \
131
839
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_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_adst_identity_8x16_c
Line
Count
Source
127
356
                                               HIGHBD_DECL_SUFFIX) \
128
356
{ \
129
356
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
356
                   HIGHBD_TAIL_SUFFIX); \
131
356
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
249
                                               HIGHBD_DECL_SUFFIX) \
128
249
{ \
129
249
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
249
                   HIGHBD_TAIL_SUFFIX); \
131
249
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
10.5k
                                               HIGHBD_DECL_SUFFIX) \
128
10.5k
{ \
129
10.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.5k
                   HIGHBD_TAIL_SUFFIX); \
131
10.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
258
                                               HIGHBD_DECL_SUFFIX) \
128
258
{ \
129
258
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
258
                   HIGHBD_TAIL_SUFFIX); \
131
258
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
8.34k
                                               HIGHBD_DECL_SUFFIX) \
128
8.34k
{ \
129
8.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.34k
                   HIGHBD_TAIL_SUFFIX); \
131
8.34k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
2.50k
                                               HIGHBD_DECL_SUFFIX) \
128
2.50k
{ \
129
2.50k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.50k
                   HIGHBD_TAIL_SUFFIX); \
131
2.50k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
6.37k
                                               HIGHBD_DECL_SUFFIX) \
128
6.37k
{ \
129
6.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.37k
                   HIGHBD_TAIL_SUFFIX); \
131
6.37k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_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_adst_16x4_c
Line
Count
Source
127
7.35k
                                               HIGHBD_DECL_SUFFIX) \
128
7.35k
{ \
129
7.35k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.35k
                   HIGHBD_TAIL_SUFFIX); \
131
7.35k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
368
                                               HIGHBD_DECL_SUFFIX) \
128
368
{ \
129
368
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
368
                   HIGHBD_TAIL_SUFFIX); \
131
368
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
226
                                               HIGHBD_DECL_SUFFIX) \
128
226
{ \
129
226
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
226
                   HIGHBD_TAIL_SUFFIX); \
131
226
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
226
                                               HIGHBD_DECL_SUFFIX) \
128
226
{ \
129
226
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
226
                   HIGHBD_TAIL_SUFFIX); \
131
226
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
206
                                               HIGHBD_DECL_SUFFIX) \
128
206
{ \
129
206
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
206
                   HIGHBD_TAIL_SUFFIX); \
131
206
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_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_identity_16x4_c
Line
Count
Source
127
2.27k
                                               HIGHBD_DECL_SUFFIX) \
128
2.27k
{ \
129
2.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.27k
                   HIGHBD_TAIL_SUFFIX); \
131
2.27k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
1.16k
                                               HIGHBD_DECL_SUFFIX) \
128
1.16k
{ \
129
1.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.16k
                   HIGHBD_TAIL_SUFFIX); \
131
1.16k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
353
                                               HIGHBD_DECL_SUFFIX) \
128
353
{ \
129
353
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
353
                   HIGHBD_TAIL_SUFFIX); \
131
353
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
246
                                               HIGHBD_DECL_SUFFIX) \
128
246
{ \
129
246
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
246
                   HIGHBD_TAIL_SUFFIX); \
131
246
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
405
                                               HIGHBD_DECL_SUFFIX) \
128
405
{ \
129
405
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
405
                   HIGHBD_TAIL_SUFFIX); \
131
405
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
232
                                               HIGHBD_DECL_SUFFIX) \
128
232
{ \
129
232
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
232
                   HIGHBD_TAIL_SUFFIX); \
131
232
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
15.5k
                                               HIGHBD_DECL_SUFFIX) \
128
15.5k
{ \
129
15.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.5k
                   HIGHBD_TAIL_SUFFIX); \
131
15.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
3.51k
                                               HIGHBD_DECL_SUFFIX) \
128
3.51k
{ \
129
3.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.51k
                   HIGHBD_TAIL_SUFFIX); \
131
3.51k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
9.95k
                                               HIGHBD_DECL_SUFFIX) \
128
9.95k
{ \
129
9.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.95k
                   HIGHBD_TAIL_SUFFIX); \
131
9.95k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
7.51k
                                               HIGHBD_DECL_SUFFIX) \
128
7.51k
{ \
129
7.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.51k
                   HIGHBD_TAIL_SUFFIX); \
131
7.51k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
9.16k
                                               HIGHBD_DECL_SUFFIX) \
128
9.16k
{ \
129
9.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.16k
                   HIGHBD_TAIL_SUFFIX); \
131
9.16k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
647
                                               HIGHBD_DECL_SUFFIX) \
128
647
{ \
129
647
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
647
                   HIGHBD_TAIL_SUFFIX); \
131
647
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
709
                                               HIGHBD_DECL_SUFFIX) \
128
709
{ \
129
709
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
709
                   HIGHBD_TAIL_SUFFIX); \
131
709
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_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_dct_flipadst_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_flipadst_flipadst_16x8_c
Line
Count
Source
127
549
                                               HIGHBD_DECL_SUFFIX) \
128
549
{ \
129
549
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
549
                   HIGHBD_TAIL_SUFFIX); \
131
549
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
2.18k
                                               HIGHBD_DECL_SUFFIX) \
128
2.18k
{ \
129
2.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.18k
                   HIGHBD_TAIL_SUFFIX); \
131
2.18k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
1.20k
                                               HIGHBD_DECL_SUFFIX) \
128
1.20k
{ \
129
1.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.20k
                   HIGHBD_TAIL_SUFFIX); \
131
1.20k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
768
                                               HIGHBD_DECL_SUFFIX) \
128
768
{ \
129
768
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
768
                   HIGHBD_TAIL_SUFFIX); \
131
768
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_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_adst_identity_16x8_c
Line
Count
Source
127
690
                                               HIGHBD_DECL_SUFFIX) \
128
690
{ \
129
690
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
690
                   HIGHBD_TAIL_SUFFIX); \
131
690
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_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_dct_dct_16x16_c
Line
Count
Source
127
38.1k
                                               HIGHBD_DECL_SUFFIX) \
128
38.1k
{ \
129
38.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
38.1k
                   HIGHBD_TAIL_SUFFIX); \
131
38.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
4.92k
                                               HIGHBD_DECL_SUFFIX) \
128
4.92k
{ \
129
4.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.92k
                   HIGHBD_TAIL_SUFFIX); \
131
4.92k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
35.4k
                                               HIGHBD_DECL_SUFFIX) \
128
35.4k
{ \
129
35.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
35.4k
                   HIGHBD_TAIL_SUFFIX); \
131
35.4k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
24.7k
                                               HIGHBD_DECL_SUFFIX) \
128
24.7k
{ \
129
24.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
24.7k
                   HIGHBD_TAIL_SUFFIX); \
131
24.7k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
32.1k
                                               HIGHBD_DECL_SUFFIX) \
128
32.1k
{ \
129
32.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
32.1k
                   HIGHBD_TAIL_SUFFIX); \
131
32.1k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_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_flipadst_16x16_c
Line
Count
Source
127
456
                                               HIGHBD_DECL_SUFFIX) \
128
456
{ \
129
456
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
456
                   HIGHBD_TAIL_SUFFIX); \
131
456
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
485
                                               HIGHBD_DECL_SUFFIX) \
128
485
{ \
129
485
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
485
                   HIGHBD_TAIL_SUFFIX); \
131
485
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
529
                                               HIGHBD_DECL_SUFFIX) \
128
529
{ \
129
529
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
529
                   HIGHBD_TAIL_SUFFIX); \
131
529
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
587
                                               HIGHBD_DECL_SUFFIX) \
128
587
{ \
129
587
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
587
                   HIGHBD_TAIL_SUFFIX); \
131
587
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_c
Line
Count
Source
127
555
                                               HIGHBD_DECL_SUFFIX) \
128
555
{ \
129
555
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
555
                   HIGHBD_TAIL_SUFFIX); \
131
555
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_c
Line
Count
Source
127
364
                                               HIGHBD_DECL_SUFFIX) \
128
364
{ \
129
364
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
364
                   HIGHBD_TAIL_SUFFIX); \
131
364
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
18.9k
                                               HIGHBD_DECL_SUFFIX) \
128
18.9k
{ \
129
18.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
18.9k
                   HIGHBD_TAIL_SUFFIX); \
131
18.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
158
                                               HIGHBD_DECL_SUFFIX) \
128
158
{ \
129
158
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
158
                   HIGHBD_TAIL_SUFFIX); \
131
158
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
3.10k
                                               HIGHBD_DECL_SUFFIX) \
128
3.10k
{ \
129
3.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.10k
                   HIGHBD_TAIL_SUFFIX); \
131
3.10k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
15.3k
                                               HIGHBD_DECL_SUFFIX) \
128
15.3k
{ \
129
15.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.3k
                   HIGHBD_TAIL_SUFFIX); \
131
15.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
334
                                               HIGHBD_DECL_SUFFIX) \
128
334
{ \
129
334
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
334
                   HIGHBD_TAIL_SUFFIX); \
131
334
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
19.5k
                                               HIGHBD_DECL_SUFFIX) \
128
19.5k
{ \
129
19.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.5k
                   HIGHBD_TAIL_SUFFIX); \
131
19.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
545
                                               HIGHBD_DECL_SUFFIX) \
128
545
{ \
129
545
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
545
                   HIGHBD_TAIL_SUFFIX); \
131
545
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
161k
                                               HIGHBD_DECL_SUFFIX) \
128
161k
{ \
129
161k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
161k
                   HIGHBD_TAIL_SUFFIX); \
131
161k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
108
                                               HIGHBD_DECL_SUFFIX) \
128
108
{ \
129
108
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
108
                   HIGHBD_TAIL_SUFFIX); \
131
108
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_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_dct_dct_64x16_c
Line
Count
Source
127
3.33k
                                               HIGHBD_DECL_SUFFIX) \
128
3.33k
{ \
129
3.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.33k
                   HIGHBD_TAIL_SUFFIX); \
131
3.33k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
6.19k
                                               HIGHBD_DECL_SUFFIX) \
128
6.19k
{ \
129
6.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.19k
                   HIGHBD_TAIL_SUFFIX); \
131
6.19k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
69.7k
                                               HIGHBD_DECL_SUFFIX) \
128
69.7k
{ \
129
69.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
69.7k
                   HIGHBD_TAIL_SUFFIX); \
131
69.7k
}
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
163k
{
188
163k
    int32_t tmp[4 * 4], *c = tmp;
189
818k
    for (int y = 0; y < 4; y++, c += 4) {
190
3.27M
        for (int x = 0; x < 4; x++)
191
2.61M
            c[x] = coeff[y + x * 4] >> 2;
192
654k
        dav1d_inv_wht4_1d_c(c, 1);
193
654k
    }
194
163k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
818k
    for (int x = 0; x < 4; x++)
197
654k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
163k
    c = tmp;
200
818k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
3.27M
        for (int x = 0; x < 4; x++)
202
2.61M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
163k
}
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
12.2k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
12.2k
#define assign_itx_all_fn64(w, h, pfx) \
222
232k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
232k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
12.2k
#define assign_itx_all_fn32(w, h, pfx) \
226
171k
    assign_itx_all_fn64(w, h, pfx); \
227
171k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
171k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
12.2k
#define assign_itx_all_fn16(w, h, pfx) \
231
110k
    assign_itx_all_fn32(w, h, pfx); \
232
110k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
110k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
110k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
110k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
110k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
110k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
110k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
110k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
110k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
110k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
110k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
110k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
110k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
110k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
110k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
110k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
110k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
110k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
110k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
110k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
12.2k
#define assign_itx_all_fn84(w, h, pfx) \
254
98.0k
    assign_itx_all_fn16(w, h, pfx); \
255
98.0k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
98.0k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
98.0k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
98.0k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
98.0k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
98.0k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
98.0k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
98.0k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
12.2k
264
12.2k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
12.2k
  ARCH_AARCH64 || \
266
12.2k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
12.2k
))
268
12.2k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
12.2k
#endif
270
12.2k
    assign_itx_all_fn84( 4,  4, );
271
12.2k
    assign_itx_all_fn84( 4,  8, R);
272
12.2k
    assign_itx_all_fn84( 4, 16, R);
273
12.2k
    assign_itx_all_fn84( 8,  4, R);
274
12.2k
    assign_itx_all_fn84( 8,  8, );
275
12.2k
    assign_itx_all_fn84( 8, 16, R);
276
12.2k
    assign_itx_all_fn32( 8, 32, R);
277
12.2k
    assign_itx_all_fn84(16,  4, R);
278
12.2k
    assign_itx_all_fn84(16,  8, R);
279
12.2k
    assign_itx_all_fn16(16, 16, );
280
12.2k
    assign_itx_all_fn32(16, 32, R);
281
12.2k
    assign_itx_all_fn64(16, 64, R);
282
12.2k
    assign_itx_all_fn32(32,  8, R);
283
12.2k
    assign_itx_all_fn32(32, 16, R);
284
12.2k
    assign_itx_all_fn32(32, 32, );
285
12.2k
    assign_itx_all_fn64(32, 64, R);
286
12.2k
    assign_itx_all_fn64(64, 16, R);
287
12.2k
    assign_itx_all_fn64(64, 32, R);
288
12.2k
    assign_itx_all_fn64(64, 64, );
289
290
12.2k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
12.2k
    if (!all_simd)
310
12.2k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
12.2k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
6.01k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
6.01k
#define assign_itx_all_fn64(w, h, pfx) \
222
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
6.01k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
6.01k
#define assign_itx_all_fn32(w, h, pfx) \
226
6.01k
    assign_itx_all_fn64(w, h, pfx); \
227
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
6.01k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
6.01k
#define assign_itx_all_fn16(w, h, pfx) \
231
6.01k
    assign_itx_all_fn32(w, h, pfx); \
232
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
6.01k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
6.01k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
6.01k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
6.01k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
6.01k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
6.01k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
6.01k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
6.01k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
6.01k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
6.01k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
6.01k
#define assign_itx_all_fn84(w, h, pfx) \
254
6.01k
    assign_itx_all_fn16(w, h, pfx); \
255
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
6.01k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
6.01k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
6.01k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
6.01k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
6.01k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
6.01k
264
6.01k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
6.01k
  ARCH_AARCH64 || \
266
6.01k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
6.01k
))
268
6.01k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
6.01k
#endif
270
6.01k
    assign_itx_all_fn84( 4,  4, );
271
6.01k
    assign_itx_all_fn84( 4,  8, R);
272
6.01k
    assign_itx_all_fn84( 4, 16, R);
273
6.01k
    assign_itx_all_fn84( 8,  4, R);
274
6.01k
    assign_itx_all_fn84( 8,  8, );
275
6.01k
    assign_itx_all_fn84( 8, 16, R);
276
6.01k
    assign_itx_all_fn32( 8, 32, R);
277
6.01k
    assign_itx_all_fn84(16,  4, R);
278
6.01k
    assign_itx_all_fn84(16,  8, R);
279
6.01k
    assign_itx_all_fn16(16, 16, );
280
6.01k
    assign_itx_all_fn32(16, 32, R);
281
6.01k
    assign_itx_all_fn64(16, 64, R);
282
6.01k
    assign_itx_all_fn32(32,  8, R);
283
6.01k
    assign_itx_all_fn32(32, 16, R);
284
6.01k
    assign_itx_all_fn32(32, 32, );
285
6.01k
    assign_itx_all_fn64(32, 64, R);
286
6.01k
    assign_itx_all_fn64(64, 16, R);
287
6.01k
    assign_itx_all_fn64(64, 32, R);
288
6.01k
    assign_itx_all_fn64(64, 64, );
289
290
6.01k
    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
6.01k
    if (!all_simd)
310
6.01k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
6.01k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
6.23k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
6.23k
#define assign_itx_all_fn64(w, h, pfx) \
222
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
6.23k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
6.23k
#define assign_itx_all_fn32(w, h, pfx) \
226
6.23k
    assign_itx_all_fn64(w, h, pfx); \
227
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
6.23k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
6.23k
#define assign_itx_all_fn16(w, h, pfx) \
231
6.23k
    assign_itx_all_fn32(w, h, pfx); \
232
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
6.23k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
6.23k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
6.23k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
6.23k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
6.23k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
6.23k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
6.23k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
6.23k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
6.23k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
6.23k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
6.23k
#define assign_itx_all_fn84(w, h, pfx) \
254
6.23k
    assign_itx_all_fn16(w, h, pfx); \
255
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
6.23k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
6.23k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
6.23k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
6.23k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
6.23k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
6.23k
264
6.23k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
6.23k
  ARCH_AARCH64 || \
266
6.23k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
6.23k
))
268
6.23k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
6.23k
#endif
270
6.23k
    assign_itx_all_fn84( 4,  4, );
271
6.23k
    assign_itx_all_fn84( 4,  8, R);
272
6.23k
    assign_itx_all_fn84( 4, 16, R);
273
6.23k
    assign_itx_all_fn84( 8,  4, R);
274
6.23k
    assign_itx_all_fn84( 8,  8, );
275
6.23k
    assign_itx_all_fn84( 8, 16, R);
276
6.23k
    assign_itx_all_fn32( 8, 32, R);
277
6.23k
    assign_itx_all_fn84(16,  4, R);
278
6.23k
    assign_itx_all_fn84(16,  8, R);
279
6.23k
    assign_itx_all_fn16(16, 16, );
280
6.23k
    assign_itx_all_fn32(16, 32, R);
281
6.23k
    assign_itx_all_fn64(16, 64, R);
282
6.23k
    assign_itx_all_fn32(32,  8, R);
283
6.23k
    assign_itx_all_fn32(32, 16, R);
284
6.23k
    assign_itx_all_fn32(32, 32, );
285
6.23k
    assign_itx_all_fn64(32, 64, R);
286
6.23k
    assign_itx_all_fn64(64, 16, R);
287
6.23k
    assign_itx_all_fn64(64, 32, R);
288
6.23k
    assign_itx_all_fn64(64, 64, );
289
290
6.23k
    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
6.23k
    if (!all_simd)
310
6.23k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
6.23k
}