Coverage Report

Created: 2026-10-28 06:13

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
498k
{
48
498k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
498k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
498k
    const int has_dconly = txtp == DCT_DCT;
51
498k
    assert(w >= 4 && w <= 64);
52
498k
    assert(h >= 4 && h <= 64);
53
498k
    assert(eob >= 0);
54
55
498k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
498k
    const int rnd = (1 << shift) >> 1;
57
58
498k
    if (eob < has_dconly) {
59
95.1k
        int dc = coeff[0];
60
95.1k
        coeff[0] = 0;
61
95.1k
        if (is_rect2)
62
23.2k
            dc = (dc * 181 + 128) >> 8;
63
95.1k
        dc = (dc * 181 + 128) >> 8;
64
95.1k
        dc = (dc + rnd) >> shift;
65
95.1k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
2.86M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
102M
            for (int x = 0; x < w; x++)
68
99.7M
                dst[x] = iclip_pixel(dst[x] + dc);
69
95.1k
        return;
70
95.1k
    }
71
72
403k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
403k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
403k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
403k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
403k
#if BITDEPTH == 8
77
403k
    const int row_clip_min = INT16_MIN;
78
403k
    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
403k
    const int row_clip_max = ~row_clip_min;
84
403k
    const int col_clip_max = ~col_clip_min;
85
86
403k
    int32_t tmp[64 * 64], *c = tmp;
87
403k
    int last_nonzero_col; // in first 1d itx
88
403k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
20.5k
        last_nonzero_col = imin(sh - 1, eob);
90
382k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
11.8k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
371k
    } else {
93
371k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
371k
    }
95
403k
    assert(last_nonzero_col < sh);
96
2.69M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
2.28M
        if (is_rect2)
98
12.0M
            for (int x = 0; x < sw; x++)
99
11.2M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
1.56M
        else
101
32.1M
            for (int x = 0; x < sw; x++)
102
30.5M
                c[x] = coeff[y + x * sh];
103
2.28M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
2.28M
    }
105
403k
    if (last_nonzero_col + 1 < sh)
106
313k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
403k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
147M
    for (int i = 0; i < w * sh; i++)
110
147M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
7.32M
    for (int x = 0; x < w; x++)
113
6.92M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
403k
    c = tmp;
116
7.21M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
198M
        for (int x = 0; x < w; x++)
118
191M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
403k
}
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
498k
                                               HIGHBD_DECL_SUFFIX) \
128
498k
{ \
129
498k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
498k
                   HIGHBD_TAIL_SUFFIX); \
131
498k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_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_identity_identity_4x4_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_dct_4x4_c
Line
Count
Source
127
7.64k
                                               HIGHBD_DECL_SUFFIX) \
128
7.64k
{ \
129
7.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.64k
                   HIGHBD_TAIL_SUFFIX); \
131
7.64k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
6.20k
                                               HIGHBD_DECL_SUFFIX) \
128
6.20k
{ \
129
6.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.20k
                   HIGHBD_TAIL_SUFFIX); \
131
6.20k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
8.88k
                                               HIGHBD_DECL_SUFFIX) \
128
8.88k
{ \
129
8.88k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.88k
                   HIGHBD_TAIL_SUFFIX); \
131
8.88k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
292
                                               HIGHBD_DECL_SUFFIX) \
128
292
{ \
129
292
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
292
                   HIGHBD_TAIL_SUFFIX); \
131
292
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_c
Line
Count
Source
127
530
                                               HIGHBD_DECL_SUFFIX) \
128
530
{ \
129
530
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
530
                   HIGHBD_TAIL_SUFFIX); \
131
530
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
395
                                               HIGHBD_DECL_SUFFIX) \
128
395
{ \
129
395
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
395
                   HIGHBD_TAIL_SUFFIX); \
131
395
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
294
                                               HIGHBD_DECL_SUFFIX) \
128
294
{ \
129
294
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
294
                   HIGHBD_TAIL_SUFFIX); \
131
294
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
363
                                               HIGHBD_DECL_SUFFIX) \
128
363
{ \
129
363
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
363
                   HIGHBD_TAIL_SUFFIX); \
131
363
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_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_identity_dct_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_identity_4x4_c
Line
Count
Source
127
570
                                               HIGHBD_DECL_SUFFIX) \
128
570
{ \
129
570
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
570
                   HIGHBD_TAIL_SUFFIX); \
131
570
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_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_adst_identity_4x4_c
Line
Count
Source
127
969
                                               HIGHBD_DECL_SUFFIX) \
128
969
{ \
129
969
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
969
                   HIGHBD_TAIL_SUFFIX); \
131
969
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_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_dct_dct_4x8_c
Line
Count
Source
127
5.68k
                                               HIGHBD_DECL_SUFFIX) \
128
5.68k
{ \
129
5.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.68k
                   HIGHBD_TAIL_SUFFIX); \
131
5.68k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_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_dct_4x8_c
Line
Count
Source
127
3.55k
                                               HIGHBD_DECL_SUFFIX) \
128
3.55k
{ \
129
3.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.55k
                   HIGHBD_TAIL_SUFFIX); \
131
3.55k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
2.85k
                                               HIGHBD_DECL_SUFFIX) \
128
2.85k
{ \
129
2.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.85k
                   HIGHBD_TAIL_SUFFIX); \
131
2.85k
}
itx_tmpl.c:inv_txfm_add_adst_adst_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_flipadst_adst_4x8_c
Line
Count
Source
127
380
                                               HIGHBD_DECL_SUFFIX) \
128
380
{ \
129
380
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
380
                   HIGHBD_TAIL_SUFFIX); \
131
380
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
333
                                               HIGHBD_DECL_SUFFIX) \
128
333
{ \
129
333
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
333
                   HIGHBD_TAIL_SUFFIX); \
131
333
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
276
                                               HIGHBD_DECL_SUFFIX) \
128
276
{ \
129
276
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
276
                   HIGHBD_TAIL_SUFFIX); \
131
276
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
259
                                               HIGHBD_DECL_SUFFIX) \
128
259
{ \
129
259
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
259
                   HIGHBD_TAIL_SUFFIX); \
131
259
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
235
                                               HIGHBD_DECL_SUFFIX) \
128
235
{ \
129
235
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
235
                   HIGHBD_TAIL_SUFFIX); \
131
235
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
1.19k
                                               HIGHBD_DECL_SUFFIX) \
128
1.19k
{ \
129
1.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.19k
                   HIGHBD_TAIL_SUFFIX); \
131
1.19k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
707
                                               HIGHBD_DECL_SUFFIX) \
128
707
{ \
129
707
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
707
                   HIGHBD_TAIL_SUFFIX); \
131
707
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_c
Line
Count
Source
127
503
                                               HIGHBD_DECL_SUFFIX) \
128
503
{ \
129
503
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
503
                   HIGHBD_TAIL_SUFFIX); \
131
503
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
279
                                               HIGHBD_DECL_SUFFIX) \
128
279
{ \
129
279
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
279
                   HIGHBD_TAIL_SUFFIX); \
131
279
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_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_identity_adst_4x8_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_4x16_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_identity_4x16_c
Line
Count
Source
127
775
                                               HIGHBD_DECL_SUFFIX) \
128
775
{ \
129
775
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
775
                   HIGHBD_TAIL_SUFFIX); \
131
775
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
1.41k
                                               HIGHBD_DECL_SUFFIX) \
128
1.41k
{ \
129
1.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.41k
                   HIGHBD_TAIL_SUFFIX); \
131
1.41k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
1.10k
                                               HIGHBD_DECL_SUFFIX) \
128
1.10k
{ \
129
1.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.10k
                   HIGHBD_TAIL_SUFFIX); \
131
1.10k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_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_flipadst_adst_4x16_c
Line
Count
Source
127
229
                                               HIGHBD_DECL_SUFFIX) \
128
229
{ \
129
229
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
229
                   HIGHBD_TAIL_SUFFIX); \
131
229
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
209
                                               HIGHBD_DECL_SUFFIX) \
128
209
{ \
129
209
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
209
                   HIGHBD_TAIL_SUFFIX); \
131
209
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
145
                                               HIGHBD_DECL_SUFFIX) \
128
145
{ \
129
145
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
145
                   HIGHBD_TAIL_SUFFIX); \
131
145
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
106
                                               HIGHBD_DECL_SUFFIX) \
128
106
{ \
129
106
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
106
                   HIGHBD_TAIL_SUFFIX); \
131
106
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
135
                                               HIGHBD_DECL_SUFFIX) \
128
135
{ \
129
135
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
135
                   HIGHBD_TAIL_SUFFIX); \
131
135
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
556
                                               HIGHBD_DECL_SUFFIX) \
128
556
{ \
129
556
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
556
                   HIGHBD_TAIL_SUFFIX); \
131
556
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
316
                                               HIGHBD_DECL_SUFFIX) \
128
316
{ \
129
316
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
316
                   HIGHBD_TAIL_SUFFIX); \
131
316
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
195
                                               HIGHBD_DECL_SUFFIX) \
128
195
{ \
129
195
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
195
                   HIGHBD_TAIL_SUFFIX); \
131
195
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
169
                                               HIGHBD_DECL_SUFFIX) \
128
169
{ \
129
169
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
169
                   HIGHBD_TAIL_SUFFIX); \
131
169
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
272
                                               HIGHBD_DECL_SUFFIX) \
128
272
{ \
129
272
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
272
                   HIGHBD_TAIL_SUFFIX); \
131
272
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
122
                                               HIGHBD_DECL_SUFFIX) \
128
122
{ \
129
122
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
122
                   HIGHBD_TAIL_SUFFIX); \
131
122
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
6.54k
                                               HIGHBD_DECL_SUFFIX) \
128
6.54k
{ \
129
6.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.54k
                   HIGHBD_TAIL_SUFFIX); \
131
6.54k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_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_8x4_c
Line
Count
Source
127
4.46k
                                               HIGHBD_DECL_SUFFIX) \
128
4.46k
{ \
129
4.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.46k
                   HIGHBD_TAIL_SUFFIX); \
131
4.46k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
3.80k
                                               HIGHBD_DECL_SUFFIX) \
128
3.80k
{ \
129
3.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.80k
                   HIGHBD_TAIL_SUFFIX); \
131
3.80k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
5.47k
                                               HIGHBD_DECL_SUFFIX) \
128
5.47k
{ \
129
5.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.47k
                   HIGHBD_TAIL_SUFFIX); \
131
5.47k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
316
                                               HIGHBD_DECL_SUFFIX) \
128
316
{ \
129
316
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
316
                   HIGHBD_TAIL_SUFFIX); \
131
316
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
344
                                               HIGHBD_DECL_SUFFIX) \
128
344
{ \
129
344
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
344
                   HIGHBD_TAIL_SUFFIX); \
131
344
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
276
                                               HIGHBD_DECL_SUFFIX) \
128
276
{ \
129
276
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
276
                   HIGHBD_TAIL_SUFFIX); \
131
276
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
205
                                               HIGHBD_DECL_SUFFIX) \
128
205
{ \
129
205
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
205
                   HIGHBD_TAIL_SUFFIX); \
131
205
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
241
                                               HIGHBD_DECL_SUFFIX) \
128
241
{ \
129
241
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
241
                   HIGHBD_TAIL_SUFFIX); \
131
241
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
1.55k
                                               HIGHBD_DECL_SUFFIX) \
128
1.55k
{ \
129
1.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.55k
                   HIGHBD_TAIL_SUFFIX); \
131
1.55k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
858
                                               HIGHBD_DECL_SUFFIX) \
128
858
{ \
129
858
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
858
                   HIGHBD_TAIL_SUFFIX); \
131
858
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
415
                                               HIGHBD_DECL_SUFFIX) \
128
415
{ \
129
415
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
415
                   HIGHBD_TAIL_SUFFIX); \
131
415
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
283
                                               HIGHBD_DECL_SUFFIX) \
128
283
{ \
129
283
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
283
                   HIGHBD_TAIL_SUFFIX); \
131
283
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
544
                                               HIGHBD_DECL_SUFFIX) \
128
544
{ \
129
544
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
544
                   HIGHBD_TAIL_SUFFIX); \
131
544
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
340
                                               HIGHBD_DECL_SUFFIX) \
128
340
{ \
129
340
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
340
                   HIGHBD_TAIL_SUFFIX); \
131
340
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
20.5k
                                               HIGHBD_DECL_SUFFIX) \
128
20.5k
{ \
129
20.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
20.5k
                   HIGHBD_TAIL_SUFFIX); \
131
20.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
5.11k
                                               HIGHBD_DECL_SUFFIX) \
128
5.11k
{ \
129
5.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.11k
                   HIGHBD_TAIL_SUFFIX); \
131
5.11k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_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_dct_adst_8x8_c
Line
Count
Source
127
8.99k
                                               HIGHBD_DECL_SUFFIX) \
128
8.99k
{ \
129
8.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.99k
                   HIGHBD_TAIL_SUFFIX); \
131
8.99k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
10.7k
                                               HIGHBD_DECL_SUFFIX) \
128
10.7k
{ \
129
10.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.7k
                   HIGHBD_TAIL_SUFFIX); \
131
10.7k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
856
                                               HIGHBD_DECL_SUFFIX) \
128
856
{ \
129
856
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
856
                   HIGHBD_TAIL_SUFFIX); \
131
856
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_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_flipadst_dct_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_flipadst_8x8_c
Line
Count
Source
127
760
                                               HIGHBD_DECL_SUFFIX) \
128
760
{ \
129
760
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
760
                   HIGHBD_TAIL_SUFFIX); \
131
760
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
798
                                               HIGHBD_DECL_SUFFIX) \
128
798
{ \
129
798
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
798
                   HIGHBD_TAIL_SUFFIX); \
131
798
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
2.55k
                                               HIGHBD_DECL_SUFFIX) \
128
2.55k
{ \
129
2.55k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.55k
                   HIGHBD_TAIL_SUFFIX); \
131
2.55k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
1.47k
                                               HIGHBD_DECL_SUFFIX) \
128
1.47k
{ \
129
1.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.47k
                   HIGHBD_TAIL_SUFFIX); \
131
1.47k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
726
                                               HIGHBD_DECL_SUFFIX) \
128
726
{ \
129
726
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
726
                   HIGHBD_TAIL_SUFFIX); \
131
726
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
422
                                               HIGHBD_DECL_SUFFIX) \
128
422
{ \
129
422
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
422
                   HIGHBD_TAIL_SUFFIX); \
131
422
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
748
                                               HIGHBD_DECL_SUFFIX) \
128
748
{ \
129
748
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
748
                   HIGHBD_TAIL_SUFFIX); \
131
748
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
577
                                               HIGHBD_DECL_SUFFIX) \
128
577
{ \
129
577
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
577
                   HIGHBD_TAIL_SUFFIX); \
131
577
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_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_identity_identity_8x16_c
Line
Count
Source
127
1.82k
                                               HIGHBD_DECL_SUFFIX) \
128
1.82k
{ \
129
1.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.82k
                   HIGHBD_TAIL_SUFFIX); \
131
1.82k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
5.20k
                                               HIGHBD_DECL_SUFFIX) \
128
5.20k
{ \
129
5.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.20k
                   HIGHBD_TAIL_SUFFIX); \
131
5.20k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
3.96k
                                               HIGHBD_DECL_SUFFIX) \
128
3.96k
{ \
129
3.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.96k
                   HIGHBD_TAIL_SUFFIX); \
131
3.96k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
5.09k
                                               HIGHBD_DECL_SUFFIX) \
128
5.09k
{ \
129
5.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.09k
                   HIGHBD_TAIL_SUFFIX); \
131
5.09k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
335
                                               HIGHBD_DECL_SUFFIX) \
128
335
{ \
129
335
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
335
                   HIGHBD_TAIL_SUFFIX); \
131
335
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
302
                                               HIGHBD_DECL_SUFFIX) \
128
302
{ \
129
302
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
302
                   HIGHBD_TAIL_SUFFIX); \
131
302
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_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_dct_flipadst_8x16_c
Line
Count
Source
127
314
                                               HIGHBD_DECL_SUFFIX) \
128
314
{ \
129
314
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
314
                   HIGHBD_TAIL_SUFFIX); \
131
314
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
280
                                               HIGHBD_DECL_SUFFIX) \
128
280
{ \
129
280
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
280
                   HIGHBD_TAIL_SUFFIX); \
131
280
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
1.02k
                                               HIGHBD_DECL_SUFFIX) \
128
1.02k
{ \
129
1.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.02k
                   HIGHBD_TAIL_SUFFIX); \
131
1.02k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
622
                                               HIGHBD_DECL_SUFFIX) \
128
622
{ \
129
622
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
622
                   HIGHBD_TAIL_SUFFIX); \
131
622
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
280
                                               HIGHBD_DECL_SUFFIX) \
128
280
{ \
129
280
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
280
                   HIGHBD_TAIL_SUFFIX); \
131
280
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
207
                                               HIGHBD_DECL_SUFFIX) \
128
207
{ \
129
207
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
207
                   HIGHBD_TAIL_SUFFIX); \
131
207
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_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_identity_adst_8x16_c
Line
Count
Source
127
165
                                               HIGHBD_DECL_SUFFIX) \
128
165
{ \
129
165
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
165
                   HIGHBD_TAIL_SUFFIX); \
131
165
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
6.70k
                                               HIGHBD_DECL_SUFFIX) \
128
6.70k
{ \
129
6.70k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.70k
                   HIGHBD_TAIL_SUFFIX); \
131
6.70k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
344
                                               HIGHBD_DECL_SUFFIX) \
128
344
{ \
129
344
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
344
                   HIGHBD_TAIL_SUFFIX); \
131
344
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
4.87k
                                               HIGHBD_DECL_SUFFIX) \
128
4.87k
{ \
129
4.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.87k
                   HIGHBD_TAIL_SUFFIX); \
131
4.87k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
1.42k
                                               HIGHBD_DECL_SUFFIX) \
128
1.42k
{ \
129
1.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.42k
                   HIGHBD_TAIL_SUFFIX); \
131
1.42k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
3.10k
                                               HIGHBD_DECL_SUFFIX) \
128
3.10k
{ \
129
3.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.10k
                   HIGHBD_TAIL_SUFFIX); \
131
3.10k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
2.65k
                                               HIGHBD_DECL_SUFFIX) \
128
2.65k
{ \
129
2.65k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.65k
                   HIGHBD_TAIL_SUFFIX); \
131
2.65k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
3.60k
                                               HIGHBD_DECL_SUFFIX) \
128
3.60k
{ \
129
3.60k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.60k
                   HIGHBD_TAIL_SUFFIX); \
131
3.60k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
224
                                               HIGHBD_DECL_SUFFIX) \
128
224
{ \
129
224
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
224
                   HIGHBD_TAIL_SUFFIX); \
131
224
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
342
                                               HIGHBD_DECL_SUFFIX) \
128
342
{ \
129
342
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
342
                   HIGHBD_TAIL_SUFFIX); \
131
342
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
248
                                               HIGHBD_DECL_SUFFIX) \
128
248
{ \
129
248
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
248
                   HIGHBD_TAIL_SUFFIX); \
131
248
}
itx_tmpl.c:inv_txfm_add_dct_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_flipadst_16x4_c
Line
Count
Source
127
177
                                               HIGHBD_DECL_SUFFIX) \
128
177
{ \
129
177
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
177
                   HIGHBD_TAIL_SUFFIX); \
131
177
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_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_16x4_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_identity_16x4_c
Line
Count
Source
127
531
                                               HIGHBD_DECL_SUFFIX) \
128
531
{ \
129
531
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
531
                   HIGHBD_TAIL_SUFFIX); \
131
531
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_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_16x4_c
Line
Count
Source
127
484
                                               HIGHBD_DECL_SUFFIX) \
128
484
{ \
129
484
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
484
                   HIGHBD_TAIL_SUFFIX); \
131
484
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
331
                                               HIGHBD_DECL_SUFFIX) \
128
331
{ \
129
331
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
331
                   HIGHBD_TAIL_SUFFIX); \
131
331
}
itx_tmpl.c:inv_txfm_add_dct_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_identity_identity_16x8_c
Line
Count
Source
127
1.68k
                                               HIGHBD_DECL_SUFFIX) \
128
1.68k
{ \
129
1.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.68k
                   HIGHBD_TAIL_SUFFIX); \
131
1.68k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
4.83k
                                               HIGHBD_DECL_SUFFIX) \
128
4.83k
{ \
129
4.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.83k
                   HIGHBD_TAIL_SUFFIX); \
131
4.83k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
3.52k
                                               HIGHBD_DECL_SUFFIX) \
128
3.52k
{ \
129
3.52k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.52k
                   HIGHBD_TAIL_SUFFIX); \
131
3.52k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
5.00k
                                               HIGHBD_DECL_SUFFIX) \
128
5.00k
{ \
129
5.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.00k
                   HIGHBD_TAIL_SUFFIX); \
131
5.00k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
379
                                               HIGHBD_DECL_SUFFIX) \
128
379
{ \
129
379
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
379
                   HIGHBD_TAIL_SUFFIX); \
131
379
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
390
                                               HIGHBD_DECL_SUFFIX) \
128
390
{ \
129
390
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
390
                   HIGHBD_TAIL_SUFFIX); \
131
390
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
754
                                               HIGHBD_DECL_SUFFIX) \
128
754
{ \
129
754
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
754
                   HIGHBD_TAIL_SUFFIX); \
131
754
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
380
                                               HIGHBD_DECL_SUFFIX) \
128
380
{ \
129
380
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
380
                   HIGHBD_TAIL_SUFFIX); \
131
380
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
312
                                               HIGHBD_DECL_SUFFIX) \
128
312
{ \
129
312
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
312
                   HIGHBD_TAIL_SUFFIX); \
131
312
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
1.09k
                                               HIGHBD_DECL_SUFFIX) \
128
1.09k
{ \
129
1.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.09k
                   HIGHBD_TAIL_SUFFIX); \
131
1.09k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
629
                                               HIGHBD_DECL_SUFFIX) \
128
629
{ \
129
629
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
629
                   HIGHBD_TAIL_SUFFIX); \
131
629
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
323
                                               HIGHBD_DECL_SUFFIX) \
128
323
{ \
129
323
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
323
                   HIGHBD_TAIL_SUFFIX); \
131
323
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_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_16x8_c
Line
Count
Source
127
463
                                               HIGHBD_DECL_SUFFIX) \
128
463
{ \
129
463
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
463
                   HIGHBD_TAIL_SUFFIX); \
131
463
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
221
                                               HIGHBD_DECL_SUFFIX) \
128
221
{ \
129
221
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
221
                   HIGHBD_TAIL_SUFFIX); \
131
221
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_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_16x16_c
Line
Count
Source
127
1.74k
                                               HIGHBD_DECL_SUFFIX) \
128
1.74k
{ \
129
1.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.74k
                   HIGHBD_TAIL_SUFFIX); \
131
1.74k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_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_adst_16x16_c
Line
Count
Source
127
9.49k
                                               HIGHBD_DECL_SUFFIX) \
128
9.49k
{ \
129
9.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.49k
                   HIGHBD_TAIL_SUFFIX); \
131
9.49k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_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_flipadst_adst_16x16_c
Line
Count
Source
127
478
                                               HIGHBD_DECL_SUFFIX) \
128
478
{ \
129
478
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
478
                   HIGHBD_TAIL_SUFFIX); \
131
478
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
597
                                               HIGHBD_DECL_SUFFIX) \
128
597
{ \
129
597
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
597
                   HIGHBD_TAIL_SUFFIX); \
131
597
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
497
                                               HIGHBD_DECL_SUFFIX) \
128
497
{ \
129
497
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
497
                   HIGHBD_TAIL_SUFFIX); \
131
497
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_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_flipadst_16x16_c
Line
Count
Source
127
505
                                               HIGHBD_DECL_SUFFIX) \
128
505
{ \
129
505
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
505
                   HIGHBD_TAIL_SUFFIX); \
131
505
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_c
Line
Count
Source
127
598
                                               HIGHBD_DECL_SUFFIX) \
128
598
{ \
129
598
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
598
                   HIGHBD_TAIL_SUFFIX); \
131
598
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_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_dct_dct_16x32_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_16x32_c
Line
Count
Source
127
236
                                               HIGHBD_DECL_SUFFIX) \
128
236
{ \
129
236
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
236
                   HIGHBD_TAIL_SUFFIX); \
131
236
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_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_dct_32x8_c
Line
Count
Source
127
8.31k
                                               HIGHBD_DECL_SUFFIX) \
128
8.31k
{ \
129
8.31k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.31k
                   HIGHBD_TAIL_SUFFIX); \
131
8.31k
}
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
15.1k
                                               HIGHBD_DECL_SUFFIX) \
128
15.1k
{ \
129
15.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.1k
                   HIGHBD_TAIL_SUFFIX); \
131
15.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
346
                                               HIGHBD_DECL_SUFFIX) \
128
346
{ \
129
346
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
346
                   HIGHBD_TAIL_SUFFIX); \
131
346
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
91.2k
                                               HIGHBD_DECL_SUFFIX) \
128
91.2k
{ \
129
91.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
91.2k
                   HIGHBD_TAIL_SUFFIX); \
131
91.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_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_dct_32x64_c
Line
Count
Source
127
7.79k
                                               HIGHBD_DECL_SUFFIX) \
128
7.79k
{ \
129
7.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.79k
                   HIGHBD_TAIL_SUFFIX); \
131
7.79k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
2.58k
                                               HIGHBD_DECL_SUFFIX) \
128
2.58k
{ \
129
2.58k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.58k
                   HIGHBD_TAIL_SUFFIX); \
131
2.58k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
5.57k
                                               HIGHBD_DECL_SUFFIX) \
128
5.57k
{ \
129
5.57k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.57k
                   HIGHBD_TAIL_SUFFIX); \
131
5.57k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
27.9k
                                               HIGHBD_DECL_SUFFIX) \
128
27.9k
{ \
129
27.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
27.9k
                   HIGHBD_TAIL_SUFFIX); \
131
27.9k
}
132
133
#define inv_txfm_fn64(pfx, w, h, shift) \
134
inv_txfm_fn(dct, dct, DCT_DCT, pfx, w, h, shift)
135
136
#define inv_txfm_fn32(pfx, w, h, shift) \
137
inv_txfm_fn64(pfx, w, h, shift) \
138
inv_txfm_fn(identity, identity, IDTX, pfx, w, h, shift)
139
140
#define inv_txfm_fn16(pfx, w, h, shift) \
141
inv_txfm_fn32(pfx, w, h, shift) \
142
inv_txfm_fn(adst,     dct,      ADST_DCT,          pfx,  w, h, shift) \
143
inv_txfm_fn(dct,      adst,     DCT_ADST,          pfx, w, h, shift) \
144
inv_txfm_fn(adst,     adst,     ADST_ADST,         pfx, w, h, shift) \
145
inv_txfm_fn(dct,      flipadst, DCT_FLIPADST,      pfx, w, h, shift) \
146
inv_txfm_fn(flipadst, dct,      FLIPADST_DCT,      pfx, w, h, shift) \
147
inv_txfm_fn(adst,     flipadst, ADST_FLIPADST,     pfx, w, h, shift) \
148
inv_txfm_fn(flipadst, adst,     FLIPADST_ADST,     pfx, w, h, shift) \
149
inv_txfm_fn(flipadst, flipadst, FLIPADST_FLIPADST, pfx, w, h, shift) \
150
inv_txfm_fn(identity, dct,      H_DCT,             pfx, w, h, shift) \
151
inv_txfm_fn(dct,      identity, V_DCT,             pfx, w, h, shift) \
152
153
#define inv_txfm_fn84(pfx, w, h, shift) \
154
inv_txfm_fn16(pfx, w, h, shift) \
155
inv_txfm_fn(identity, flipadst, H_FLIPADST, pfx, w, h, shift) \
156
inv_txfm_fn(flipadst, identity, V_FLIPADST, pfx, w, h, shift) \
157
inv_txfm_fn(identity, adst,     H_ADST,     pfx, w, h, shift) \
158
inv_txfm_fn(adst,     identity, V_ADST,     pfx, w, h, shift) \
159
160
inv_txfm_fn84( ,  4,  4, 0)
161
inv_txfm_fn84(R,  4,  8, 0)
162
inv_txfm_fn84(R,  4, 16, 1)
163
inv_txfm_fn84(R,  8,  4, 0)
164
inv_txfm_fn84( ,  8,  8, 1)
165
inv_txfm_fn84(R,  8, 16, 1)
166
inv_txfm_fn32(R,  8, 32, 2)
167
inv_txfm_fn84(R, 16,  4, 1)
168
inv_txfm_fn84(R, 16,  8, 1)
169
inv_txfm_fn16( , 16, 16, 2)
170
inv_txfm_fn32(R, 16, 32, 1)
171
inv_txfm_fn64(R, 16, 64, 2)
172
inv_txfm_fn32(R, 32,  8, 2)
173
inv_txfm_fn32(R, 32, 16, 1)
174
inv_txfm_fn32( , 32, 32, 2)
175
inv_txfm_fn64(R, 32, 64, 1)
176
inv_txfm_fn64(R, 64, 16, 2)
177
inv_txfm_fn64(R, 64, 32, 1)
178
inv_txfm_fn64( , 64, 64, 2)
179
180
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
181
  ARCH_AARCH64 || \
182
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
183
))
184
static void inv_txfm_add_wht_wht_4x4_c(pixel *dst, const ptrdiff_t stride,
185
                                       coef *const coeff, const int eob
186
                                       HIGHBD_DECL_SUFFIX)
187
30.8k
{
188
30.8k
    int32_t tmp[4 * 4], *c = tmp;
189
154k
    for (int y = 0; y < 4; y++, c += 4) {
190
616k
        for (int x = 0; x < 4; x++)
191
493k
            c[x] = coeff[y + x * 4] >> 2;
192
123k
        dav1d_inv_wht4_1d_c(c, 1);
193
123k
    }
194
30.8k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
154k
    for (int x = 0; x < 4; x++)
197
123k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
30.8k
    c = tmp;
200
154k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
616k
        for (int x = 0; x < 4; x++)
202
493k
            dst[x] = iclip_pixel(dst[x] + *c++);
203
30.8k
}
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
8.20k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
8.20k
#define assign_itx_all_fn64(w, h, pfx) \
222
155k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
155k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
8.20k
#define assign_itx_all_fn32(w, h, pfx) \
226
114k
    assign_itx_all_fn64(w, h, pfx); \
227
114k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
114k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
8.20k
#define assign_itx_all_fn16(w, h, pfx) \
231
73.8k
    assign_itx_all_fn32(w, h, pfx); \
232
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
73.8k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
73.8k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
73.8k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
73.8k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
73.8k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
73.8k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
73.8k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
73.8k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
73.8k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
73.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
73.8k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
8.20k
#define assign_itx_all_fn84(w, h, pfx) \
254
65.6k
    assign_itx_all_fn16(w, h, pfx); \
255
65.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
65.6k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
65.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
65.6k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
65.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
65.6k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
65.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
65.6k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
8.20k
264
8.20k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
8.20k
  ARCH_AARCH64 || \
266
8.20k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
8.20k
))
268
8.20k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
8.20k
#endif
270
8.20k
    assign_itx_all_fn84( 4,  4, );
271
8.20k
    assign_itx_all_fn84( 4,  8, R);
272
8.20k
    assign_itx_all_fn84( 4, 16, R);
273
8.20k
    assign_itx_all_fn84( 8,  4, R);
274
8.20k
    assign_itx_all_fn84( 8,  8, );
275
8.20k
    assign_itx_all_fn84( 8, 16, R);
276
8.20k
    assign_itx_all_fn32( 8, 32, R);
277
8.20k
    assign_itx_all_fn84(16,  4, R);
278
8.20k
    assign_itx_all_fn84(16,  8, R);
279
8.20k
    assign_itx_all_fn16(16, 16, );
280
8.20k
    assign_itx_all_fn32(16, 32, R);
281
8.20k
    assign_itx_all_fn64(16, 64, R);
282
8.20k
    assign_itx_all_fn32(32,  8, R);
283
8.20k
    assign_itx_all_fn32(32, 16, R);
284
8.20k
    assign_itx_all_fn32(32, 32, );
285
8.20k
    assign_itx_all_fn64(32, 64, R);
286
8.20k
    assign_itx_all_fn64(64, 16, R);
287
8.20k
    assign_itx_all_fn64(64, 32, R);
288
8.20k
    assign_itx_all_fn64(64, 64, );
289
290
8.20k
    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.20k
    if (!all_simd)
310
8.20k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
8.20k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
3.55k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
3.55k
#define assign_itx_all_fn64(w, h, pfx) \
222
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
3.55k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
3.55k
#define assign_itx_all_fn32(w, h, pfx) \
226
3.55k
    assign_itx_all_fn64(w, h, pfx); \
227
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
3.55k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
3.55k
#define assign_itx_all_fn16(w, h, pfx) \
231
3.55k
    assign_itx_all_fn32(w, h, pfx); \
232
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
3.55k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
3.55k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
3.55k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
3.55k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
3.55k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
3.55k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
3.55k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
3.55k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
3.55k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
3.55k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
3.55k
#define assign_itx_all_fn84(w, h, pfx) \
254
3.55k
    assign_itx_all_fn16(w, h, pfx); \
255
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
3.55k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
3.55k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
3.55k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
3.55k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
3.55k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
3.55k
264
3.55k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
3.55k
  ARCH_AARCH64 || \
266
3.55k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
3.55k
))
268
3.55k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
3.55k
#endif
270
3.55k
    assign_itx_all_fn84( 4,  4, );
271
3.55k
    assign_itx_all_fn84( 4,  8, R);
272
3.55k
    assign_itx_all_fn84( 4, 16, R);
273
3.55k
    assign_itx_all_fn84( 8,  4, R);
274
3.55k
    assign_itx_all_fn84( 8,  8, );
275
3.55k
    assign_itx_all_fn84( 8, 16, R);
276
3.55k
    assign_itx_all_fn32( 8, 32, R);
277
3.55k
    assign_itx_all_fn84(16,  4, R);
278
3.55k
    assign_itx_all_fn84(16,  8, R);
279
3.55k
    assign_itx_all_fn16(16, 16, );
280
3.55k
    assign_itx_all_fn32(16, 32, R);
281
3.55k
    assign_itx_all_fn64(16, 64, R);
282
3.55k
    assign_itx_all_fn32(32,  8, R);
283
3.55k
    assign_itx_all_fn32(32, 16, R);
284
3.55k
    assign_itx_all_fn32(32, 32, );
285
3.55k
    assign_itx_all_fn64(32, 64, R);
286
3.55k
    assign_itx_all_fn64(64, 16, R);
287
3.55k
    assign_itx_all_fn64(64, 32, R);
288
3.55k
    assign_itx_all_fn64(64, 64, );
289
290
3.55k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
3.55k
    if (!all_simd)
310
3.55k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
3.55k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
4.64k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
4.64k
#define assign_itx_all_fn64(w, h, pfx) \
222
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
4.64k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
4.64k
#define assign_itx_all_fn32(w, h, pfx) \
226
4.64k
    assign_itx_all_fn64(w, h, pfx); \
227
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
4.64k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
4.64k
#define assign_itx_all_fn16(w, h, pfx) \
231
4.64k
    assign_itx_all_fn32(w, h, pfx); \
232
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
4.64k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
4.64k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
4.64k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
4.64k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
4.64k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
4.64k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
4.64k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
4.64k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
4.64k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
4.64k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
4.64k
#define assign_itx_all_fn84(w, h, pfx) \
254
4.64k
    assign_itx_all_fn16(w, h, pfx); \
255
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
4.64k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
4.64k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
4.64k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
4.64k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
4.64k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
4.64k
264
4.64k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
4.64k
  ARCH_AARCH64 || \
266
4.64k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
4.64k
))
268
4.64k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
4.64k
#endif
270
4.64k
    assign_itx_all_fn84( 4,  4, );
271
4.64k
    assign_itx_all_fn84( 4,  8, R);
272
4.64k
    assign_itx_all_fn84( 4, 16, R);
273
4.64k
    assign_itx_all_fn84( 8,  4, R);
274
4.64k
    assign_itx_all_fn84( 8,  8, );
275
4.64k
    assign_itx_all_fn84( 8, 16, R);
276
4.64k
    assign_itx_all_fn32( 8, 32, R);
277
4.64k
    assign_itx_all_fn84(16,  4, R);
278
4.64k
    assign_itx_all_fn84(16,  8, R);
279
4.64k
    assign_itx_all_fn16(16, 16, );
280
4.64k
    assign_itx_all_fn32(16, 32, R);
281
4.64k
    assign_itx_all_fn64(16, 64, R);
282
4.64k
    assign_itx_all_fn32(32,  8, R);
283
4.64k
    assign_itx_all_fn32(32, 16, R);
284
4.64k
    assign_itx_all_fn32(32, 32, );
285
4.64k
    assign_itx_all_fn64(32, 64, R);
286
4.64k
    assign_itx_all_fn64(64, 16, R);
287
4.64k
    assign_itx_all_fn64(64, 32, R);
288
4.64k
    assign_itx_all_fn64(64, 64, );
289
290
4.64k
    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
4.64k
    if (!all_simd)
310
4.64k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
4.64k
}