Coverage Report

Created: 2026-07-30 06:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/work/dav1d/src/itx_tmpl.c
Line
Count
Source
1
/*
2
 * Copyright © 2018-2019, VideoLAN and dav1d authors
3
 * Copyright © 2018-2019, Two Orioles, LLC
4
 * All rights reserved.
5
 *
6
 * Redistribution and use in source and binary forms, with or without
7
 * modification, are permitted provided that the following conditions are met:
8
 *
9
 * 1. Redistributions of source code must retain the above copyright notice, this
10
 *    list of conditions and the following disclaimer.
11
 *
12
 * 2. Redistributions in binary form must reproduce the above copyright notice,
13
 *    this list of conditions and the following disclaimer in the documentation
14
 *    and/or other materials provided with the distribution.
15
 *
16
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 */
27
28
#include "config.h"
29
30
#include <stddef.h>
31
#include <stdint.h>
32
#include <stdlib.h>
33
#include <string.h>
34
35
#include "common/attributes.h"
36
#include "common/intops.h"
37
38
#include "src/itx.h"
39
#include "src/itx_1d.h"
40
#include "src/scan.h"
41
#include "src/tables.h"
42
43
static NOINLINE void
44
inv_txfm_add_c(pixel *dst, const ptrdiff_t stride, coef *const coeff,
45
               const int eob, const /*enum RectTxfmSize*/ int tx, const int shift,
46
               const enum TxfmType txtp HIGHBD_DECL_SUFFIX)
47
913k
{
48
913k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
913k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
913k
    const int has_dconly = txtp == DCT_DCT;
51
913k
    assert(w >= 4 && w <= 64);
52
913k
    assert(h >= 4 && h <= 64);
53
913k
    assert(eob >= 0);
54
55
913k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
913k
    const int rnd = (1 << shift) >> 1;
57
58
913k
    if (eob < has_dconly) {
59
242k
        int dc = coeff[0];
60
242k
        coeff[0] = 0;
61
242k
        if (is_rect2)
62
42.5k
            dc = (dc * 181 + 128) >> 8;
63
242k
        dc = (dc * 181 + 128) >> 8;
64
242k
        dc = (dc + rnd) >> shift;
65
242k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
8.33M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
347M
            for (int x = 0; x < w; x++)
68
339M
                dst[x] = iclip_pixel(dst[x] + dc);
69
242k
        return;
70
242k
    }
71
72
670k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
670k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
670k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
670k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
670k
#if BITDEPTH == 8
77
670k
    const int row_clip_min = INT16_MIN;
78
670k
    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
670k
    const int row_clip_max = ~row_clip_min;
84
670k
    const int col_clip_max = ~col_clip_min;
85
86
670k
    int32_t tmp[64 * 64], *c = tmp;
87
670k
    int last_nonzero_col; // in first 1d itx
88
670k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
40.1k
        last_nonzero_col = imin(sh - 1, eob);
90
630k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
21.9k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
608k
    } else {
93
608k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
608k
    }
95
670k
    assert(last_nonzero_col < sh);
96
3.72M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
3.05M
        if (is_rect2)
98
15.5M
            for (int x = 0; x < sw; x++)
99
14.4M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
2.02M
        else
101
33.1M
            for (int x = 0; x < sw; x++)
102
31.1M
                c[x] = coeff[y + x * sh];
103
3.05M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
3.05M
    }
105
670k
    if (last_nonzero_col + 1 < sh)
106
535k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
670k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
170M
    for (int i = 0; i < w * sh; i++)
110
170M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
10.3M
    for (int x = 0; x < w; x++)
113
9.69M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
670k
    c = tmp;
116
9.95M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
240M
        for (int x = 0; x < w; x++)
118
230M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
670k
}
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
913k
                                               HIGHBD_DECL_SUFFIX) \
128
913k
{ \
129
913k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
913k
                   HIGHBD_TAIL_SUFFIX); \
131
913k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
23.6k
                                               HIGHBD_DECL_SUFFIX) \
128
23.6k
{ \
129
23.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
23.6k
                   HIGHBD_TAIL_SUFFIX); \
131
23.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
7.11k
                                               HIGHBD_DECL_SUFFIX) \
128
7.11k
{ \
129
7.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.11k
                   HIGHBD_TAIL_SUFFIX); \
131
7.11k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
16.0k
                                               HIGHBD_DECL_SUFFIX) \
128
16.0k
{ \
129
16.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.0k
                   HIGHBD_TAIL_SUFFIX); \
131
16.0k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
12.9k
                                               HIGHBD_DECL_SUFFIX) \
128
12.9k
{ \
129
12.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.9k
                   HIGHBD_TAIL_SUFFIX); \
131
12.9k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
16.8k
                                               HIGHBD_DECL_SUFFIX) \
128
16.8k
{ \
129
16.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.8k
                   HIGHBD_TAIL_SUFFIX); \
131
16.8k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
628
                                               HIGHBD_DECL_SUFFIX) \
128
628
{ \
129
628
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
628
                   HIGHBD_TAIL_SUFFIX); \
131
628
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_c
Line
Count
Source
127
829
                                               HIGHBD_DECL_SUFFIX) \
128
829
{ \
129
829
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
829
                   HIGHBD_TAIL_SUFFIX); \
131
829
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
842
                                               HIGHBD_DECL_SUFFIX) \
128
842
{ \
129
842
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
842
                   HIGHBD_TAIL_SUFFIX); \
131
842
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
853
                                               HIGHBD_DECL_SUFFIX) \
128
853
{ \
129
853
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
853
                   HIGHBD_TAIL_SUFFIX); \
131
853
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
567
                                               HIGHBD_DECL_SUFFIX) \
128
567
{ \
129
567
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
567
                   HIGHBD_TAIL_SUFFIX); \
131
567
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
5.46k
                                               HIGHBD_DECL_SUFFIX) \
128
5.46k
{ \
129
5.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.46k
                   HIGHBD_TAIL_SUFFIX); \
131
5.46k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
2.96k
                                               HIGHBD_DECL_SUFFIX) \
128
2.96k
{ \
129
2.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.96k
                   HIGHBD_TAIL_SUFFIX); \
131
2.96k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_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_identity_flipadst_4x4_c
Line
Count
Source
127
660
                                               HIGHBD_DECL_SUFFIX) \
128
660
{ \
129
660
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
660
                   HIGHBD_TAIL_SUFFIX); \
131
660
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
1.27k
                                               HIGHBD_DECL_SUFFIX) \
128
1.27k
{ \
129
1.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.27k
                   HIGHBD_TAIL_SUFFIX); \
131
1.27k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_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_dct_4x8_c
Line
Count
Source
127
10.1k
                                               HIGHBD_DECL_SUFFIX) \
128
10.1k
{ \
129
10.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.1k
                   HIGHBD_TAIL_SUFFIX); \
131
10.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_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_adst_dct_4x8_c
Line
Count
Source
127
7.93k
                                               HIGHBD_DECL_SUFFIX) \
128
7.93k
{ \
129
7.93k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.93k
                   HIGHBD_TAIL_SUFFIX); \
131
7.93k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
6.17k
                                               HIGHBD_DECL_SUFFIX) \
128
6.17k
{ \
129
6.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.17k
                   HIGHBD_TAIL_SUFFIX); \
131
6.17k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
8.76k
                                               HIGHBD_DECL_SUFFIX) \
128
8.76k
{ \
129
8.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.76k
                   HIGHBD_TAIL_SUFFIX); \
131
8.76k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
466
                                               HIGHBD_DECL_SUFFIX) \
128
466
{ \
129
466
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
466
                   HIGHBD_TAIL_SUFFIX); \
131
466
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
499
                                               HIGHBD_DECL_SUFFIX) \
128
499
{ \
129
499
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
499
                   HIGHBD_TAIL_SUFFIX); \
131
499
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
525
                                               HIGHBD_DECL_SUFFIX) \
128
525
{ \
129
525
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
525
                   HIGHBD_TAIL_SUFFIX); \
131
525
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
440
                                               HIGHBD_DECL_SUFFIX) \
128
440
{ \
129
440
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
440
                   HIGHBD_TAIL_SUFFIX); \
131
440
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
403
                                               HIGHBD_DECL_SUFFIX) \
128
403
{ \
129
403
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
403
                   HIGHBD_TAIL_SUFFIX); \
131
403
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
2.73k
                                               HIGHBD_DECL_SUFFIX) \
128
2.73k
{ \
129
2.73k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.73k
                   HIGHBD_TAIL_SUFFIX); \
131
2.73k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_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_flipadst_identity_4x8_c
Line
Count
Source
127
567
                                               HIGHBD_DECL_SUFFIX) \
128
567
{ \
129
567
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
567
                   HIGHBD_TAIL_SUFFIX); \
131
567
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_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_adst_identity_4x8_c
Line
Count
Source
127
683
                                               HIGHBD_DECL_SUFFIX) \
128
683
{ \
129
683
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
683
                   HIGHBD_TAIL_SUFFIX); \
131
683
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
402
                                               HIGHBD_DECL_SUFFIX) \
128
402
{ \
129
402
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
402
                   HIGHBD_TAIL_SUFFIX); \
131
402
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
5.43k
                                               HIGHBD_DECL_SUFFIX) \
128
5.43k
{ \
129
5.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.43k
                   HIGHBD_TAIL_SUFFIX); \
131
5.43k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
2.59k
                                               HIGHBD_DECL_SUFFIX) \
128
2.59k
{ \
129
2.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.59k
                   HIGHBD_TAIL_SUFFIX); \
131
2.59k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
4.33k
                                               HIGHBD_DECL_SUFFIX) \
128
4.33k
{ \
129
4.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.33k
                   HIGHBD_TAIL_SUFFIX); \
131
4.33k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_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_adst_adst_4x16_c
Line
Count
Source
127
5.14k
                                               HIGHBD_DECL_SUFFIX) \
128
5.14k
{ \
129
5.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.14k
                   HIGHBD_TAIL_SUFFIX); \
131
5.14k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_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_adst_flipadst_4x16_c
Line
Count
Source
127
181
                                               HIGHBD_DECL_SUFFIX) \
128
181
{ \
129
181
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
181
                   HIGHBD_TAIL_SUFFIX); \
131
181
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
371
                                               HIGHBD_DECL_SUFFIX) \
128
371
{ \
129
371
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
371
                   HIGHBD_TAIL_SUFFIX); \
131
371
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_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_flipadst_4x16_c
Line
Count
Source
127
213
                                               HIGHBD_DECL_SUFFIX) \
128
213
{ \
129
213
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
213
                   HIGHBD_TAIL_SUFFIX); \
131
213
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
1.66k
                                               HIGHBD_DECL_SUFFIX) \
128
1.66k
{ \
129
1.66k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.66k
                   HIGHBD_TAIL_SUFFIX); \
131
1.66k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
882
                                               HIGHBD_DECL_SUFFIX) \
128
882
{ \
129
882
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
882
                   HIGHBD_TAIL_SUFFIX); \
131
882
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
436
                                               HIGHBD_DECL_SUFFIX) \
128
436
{ \
129
436
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
436
                   HIGHBD_TAIL_SUFFIX); \
131
436
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
193
                                               HIGHBD_DECL_SUFFIX) \
128
193
{ \
129
193
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
193
                   HIGHBD_TAIL_SUFFIX); \
131
193
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
383
                                               HIGHBD_DECL_SUFFIX) \
128
383
{ \
129
383
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
383
                   HIGHBD_TAIL_SUFFIX); \
131
383
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
303
                                               HIGHBD_DECL_SUFFIX) \
128
303
{ \
129
303
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
303
                   HIGHBD_TAIL_SUFFIX); \
131
303
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
14.4k
                                               HIGHBD_DECL_SUFFIX) \
128
14.4k
{ \
129
14.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.4k
                   HIGHBD_TAIL_SUFFIX); \
131
14.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
4.04k
                                               HIGHBD_DECL_SUFFIX) \
128
4.04k
{ \
129
4.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.04k
                   HIGHBD_TAIL_SUFFIX); \
131
4.04k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
10.6k
                                               HIGHBD_DECL_SUFFIX) \
128
10.6k
{ \
129
10.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.6k
                   HIGHBD_TAIL_SUFFIX); \
131
10.6k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
8.48k
                                               HIGHBD_DECL_SUFFIX) \
128
8.48k
{ \
129
8.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.48k
                   HIGHBD_TAIL_SUFFIX); \
131
8.48k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
11.6k
                                               HIGHBD_DECL_SUFFIX) \
128
11.6k
{ \
129
11.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.6k
                   HIGHBD_TAIL_SUFFIX); \
131
11.6k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
599
                                               HIGHBD_DECL_SUFFIX) \
128
599
{ \
129
599
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
599
                   HIGHBD_TAIL_SUFFIX); \
131
599
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
785
                                               HIGHBD_DECL_SUFFIX) \
128
785
{ \
129
785
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
785
                   HIGHBD_TAIL_SUFFIX); \
131
785
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
614
                                               HIGHBD_DECL_SUFFIX) \
128
614
{ \
129
614
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
614
                   HIGHBD_TAIL_SUFFIX); \
131
614
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_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_flipadst_flipadst_8x4_c
Line
Count
Source
127
499
                                               HIGHBD_DECL_SUFFIX) \
128
499
{ \
129
499
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
499
                   HIGHBD_TAIL_SUFFIX); \
131
499
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
3.47k
                                               HIGHBD_DECL_SUFFIX) \
128
3.47k
{ \
129
3.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.47k
                   HIGHBD_TAIL_SUFFIX); \
131
3.47k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
1.81k
                                               HIGHBD_DECL_SUFFIX) \
128
1.81k
{ \
129
1.81k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.81k
                   HIGHBD_TAIL_SUFFIX); \
131
1.81k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
926
                                               HIGHBD_DECL_SUFFIX) \
128
926
{ \
129
926
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
926
                   HIGHBD_TAIL_SUFFIX); \
131
926
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
449
                                               HIGHBD_DECL_SUFFIX) \
128
449
{ \
129
449
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
449
                   HIGHBD_TAIL_SUFFIX); \
131
449
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
1.07k
                                               HIGHBD_DECL_SUFFIX) \
128
1.07k
{ \
129
1.07k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.07k
                   HIGHBD_TAIL_SUFFIX); \
131
1.07k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
578
                                               HIGHBD_DECL_SUFFIX) \
128
578
{ \
129
578
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
578
                   HIGHBD_TAIL_SUFFIX); \
131
578
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
34.0k
                                               HIGHBD_DECL_SUFFIX) \
128
34.0k
{ \
129
34.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
34.0k
                   HIGHBD_TAIL_SUFFIX); \
131
34.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
10.0k
                                               HIGHBD_DECL_SUFFIX) \
128
10.0k
{ \
129
10.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.0k
                   HIGHBD_TAIL_SUFFIX); \
131
10.0k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
25.1k
                                               HIGHBD_DECL_SUFFIX) \
128
25.1k
{ \
129
25.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
25.1k
                   HIGHBD_TAIL_SUFFIX); \
131
25.1k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
19.9k
                                               HIGHBD_DECL_SUFFIX) \
128
19.9k
{ \
129
19.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.9k
                   HIGHBD_TAIL_SUFFIX); \
131
19.9k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
21.6k
                                               HIGHBD_DECL_SUFFIX) \
128
21.6k
{ \
129
21.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.6k
                   HIGHBD_TAIL_SUFFIX); \
131
21.6k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
889
                                               HIGHBD_DECL_SUFFIX) \
128
889
{ \
129
889
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
889
                   HIGHBD_TAIL_SUFFIX); \
131
889
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
1.15k
                                               HIGHBD_DECL_SUFFIX) \
128
1.15k
{ \
129
1.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.15k
                   HIGHBD_TAIL_SUFFIX); \
131
1.15k
}
itx_tmpl.c:inv_txfm_add_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
1.67k
                                               HIGHBD_DECL_SUFFIX) \
128
1.67k
{ \
129
1.67k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.67k
                   HIGHBD_TAIL_SUFFIX); \
131
1.67k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_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_identity_8x8_c
Line
Count
Source
127
5.90k
                                               HIGHBD_DECL_SUFFIX) \
128
5.90k
{ \
129
5.90k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.90k
                   HIGHBD_TAIL_SUFFIX); \
131
5.90k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
3.02k
                                               HIGHBD_DECL_SUFFIX) \
128
3.02k
{ \
129
3.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.02k
                   HIGHBD_TAIL_SUFFIX); \
131
3.02k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_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_flipadst_8x8_c
Line
Count
Source
127
557
                                               HIGHBD_DECL_SUFFIX) \
128
557
{ \
129
557
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
557
                   HIGHBD_TAIL_SUFFIX); \
131
557
}
itx_tmpl.c:inv_txfm_add_adst_identity_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_identity_adst_8x8_c
Line
Count
Source
127
646
                                               HIGHBD_DECL_SUFFIX) \
128
646
{ \
129
646
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
646
                   HIGHBD_TAIL_SUFFIX); \
131
646
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_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_8x16_c
Line
Count
Source
127
2.78k
                                               HIGHBD_DECL_SUFFIX) \
128
2.78k
{ \
129
2.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.78k
                   HIGHBD_TAIL_SUFFIX); \
131
2.78k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
7.74k
                                               HIGHBD_DECL_SUFFIX) \
128
7.74k
{ \
129
7.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.74k
                   HIGHBD_TAIL_SUFFIX); \
131
7.74k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
5.84k
                                               HIGHBD_DECL_SUFFIX) \
128
5.84k
{ \
129
5.84k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.84k
                   HIGHBD_TAIL_SUFFIX); \
131
5.84k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
6.95k
                                               HIGHBD_DECL_SUFFIX) \
128
6.95k
{ \
129
6.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.95k
                   HIGHBD_TAIL_SUFFIX); \
131
6.95k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_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_adst_flipadst_8x16_c
Line
Count
Source
127
468
                                               HIGHBD_DECL_SUFFIX) \
128
468
{ \
129
468
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
468
                   HIGHBD_TAIL_SUFFIX); \
131
468
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
389
                                               HIGHBD_DECL_SUFFIX) \
128
389
{ \
129
389
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
389
                   HIGHBD_TAIL_SUFFIX); \
131
389
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
613
                                               HIGHBD_DECL_SUFFIX) \
128
613
{ \
129
613
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
613
                   HIGHBD_TAIL_SUFFIX); \
131
613
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
303
                                               HIGHBD_DECL_SUFFIX) \
128
303
{ \
129
303
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
303
                   HIGHBD_TAIL_SUFFIX); \
131
303
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
1.92k
                                               HIGHBD_DECL_SUFFIX) \
128
1.92k
{ \
129
1.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.92k
                   HIGHBD_TAIL_SUFFIX); \
131
1.92k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
996
                                               HIGHBD_DECL_SUFFIX) \
128
996
{ \
129
996
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
996
                   HIGHBD_TAIL_SUFFIX); \
131
996
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
425
                                               HIGHBD_DECL_SUFFIX) \
128
425
{ \
129
425
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
425
                   HIGHBD_TAIL_SUFFIX); \
131
425
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_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_adst_identity_8x16_c
Line
Count
Source
127
297
                                               HIGHBD_DECL_SUFFIX) \
128
297
{ \
129
297
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
297
                   HIGHBD_TAIL_SUFFIX); \
131
297
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
281
                                               HIGHBD_DECL_SUFFIX) \
128
281
{ \
129
281
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
281
                   HIGHBD_TAIL_SUFFIX); \
131
281
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
13.4k
                                               HIGHBD_DECL_SUFFIX) \
128
13.4k
{ \
129
13.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.4k
                   HIGHBD_TAIL_SUFFIX); \
131
13.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
286
                                               HIGHBD_DECL_SUFFIX) \
128
286
{ \
129
286
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
286
                   HIGHBD_TAIL_SUFFIX); \
131
286
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
8.83k
                                               HIGHBD_DECL_SUFFIX) \
128
8.83k
{ \
129
8.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.83k
                   HIGHBD_TAIL_SUFFIX); \
131
8.83k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_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_dct_16x4_c
Line
Count
Source
127
8.48k
                                               HIGHBD_DECL_SUFFIX) \
128
8.48k
{ \
129
8.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.48k
                   HIGHBD_TAIL_SUFFIX); \
131
8.48k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
7.32k
                                               HIGHBD_DECL_SUFFIX) \
128
7.32k
{ \
129
7.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.32k
                   HIGHBD_TAIL_SUFFIX); \
131
7.32k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
10.0k
                                               HIGHBD_DECL_SUFFIX) \
128
10.0k
{ \
129
10.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.0k
                   HIGHBD_TAIL_SUFFIX); \
131
10.0k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
433
                                               HIGHBD_DECL_SUFFIX) \
128
433
{ \
129
433
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
433
                   HIGHBD_TAIL_SUFFIX); \
131
433
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
417
                                               HIGHBD_DECL_SUFFIX) \
128
417
{ \
129
417
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
417
                   HIGHBD_TAIL_SUFFIX); \
131
417
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
520
                                               HIGHBD_DECL_SUFFIX) \
128
520
{ \
129
520
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
520
                   HIGHBD_TAIL_SUFFIX); \
131
520
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_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_16x4_c
Line
Count
Source
127
387
                                               HIGHBD_DECL_SUFFIX) \
128
387
{ \
129
387
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
387
                   HIGHBD_TAIL_SUFFIX); \
131
387
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
3.49k
                                               HIGHBD_DECL_SUFFIX) \
128
3.49k
{ \
129
3.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.49k
                   HIGHBD_TAIL_SUFFIX); \
131
3.49k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
1.89k
                                               HIGHBD_DECL_SUFFIX) \
128
1.89k
{ \
129
1.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.89k
                   HIGHBD_TAIL_SUFFIX); \
131
1.89k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
606
                                               HIGHBD_DECL_SUFFIX) \
128
606
{ \
129
606
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
606
                   HIGHBD_TAIL_SUFFIX); \
131
606
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
370
                                               HIGHBD_DECL_SUFFIX) \
128
370
{ \
129
370
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
370
                   HIGHBD_TAIL_SUFFIX); \
131
370
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
619
                                               HIGHBD_DECL_SUFFIX) \
128
619
{ \
129
619
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
619
                   HIGHBD_TAIL_SUFFIX); \
131
619
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
580
                                               HIGHBD_DECL_SUFFIX) \
128
580
{ \
129
580
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
580
                   HIGHBD_TAIL_SUFFIX); \
131
580
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_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_16x8_c
Line
Count
Source
127
4.17k
                                               HIGHBD_DECL_SUFFIX) \
128
4.17k
{ \
129
4.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.17k
                   HIGHBD_TAIL_SUFFIX); \
131
4.17k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
11.4k
                                               HIGHBD_DECL_SUFFIX) \
128
11.4k
{ \
129
11.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.4k
                   HIGHBD_TAIL_SUFFIX); \
131
11.4k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
8.87k
                                               HIGHBD_DECL_SUFFIX) \
128
8.87k
{ \
129
8.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.87k
                   HIGHBD_TAIL_SUFFIX); \
131
8.87k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
10.1k
                                               HIGHBD_DECL_SUFFIX) \
128
10.1k
{ \
129
10.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.1k
                   HIGHBD_TAIL_SUFFIX); \
131
10.1k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
473
                                               HIGHBD_DECL_SUFFIX) \
128
473
{ \
129
473
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
473
                   HIGHBD_TAIL_SUFFIX); \
131
473
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
538
                                               HIGHBD_DECL_SUFFIX) \
128
538
{ \
129
538
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
538
                   HIGHBD_TAIL_SUFFIX); \
131
538
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
482
                                               HIGHBD_DECL_SUFFIX) \
128
482
{ \
129
482
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
482
                   HIGHBD_TAIL_SUFFIX); \
131
482
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
902
                                               HIGHBD_DECL_SUFFIX) \
128
902
{ \
129
902
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
902
                   HIGHBD_TAIL_SUFFIX); \
131
902
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
466
                                               HIGHBD_DECL_SUFFIX) \
128
466
{ \
129
466
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
466
                   HIGHBD_TAIL_SUFFIX); \
131
466
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
2.86k
                                               HIGHBD_DECL_SUFFIX) \
128
2.86k
{ \
129
2.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.86k
                   HIGHBD_TAIL_SUFFIX); \
131
2.86k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
1.40k
                                               HIGHBD_DECL_SUFFIX) \
128
1.40k
{ \
129
1.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.40k
                   HIGHBD_TAIL_SUFFIX); \
131
1.40k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_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_identity_flipadst_16x8_c
Line
Count
Source
127
225
                                               HIGHBD_DECL_SUFFIX) \
128
225
{ \
129
225
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
225
                   HIGHBD_TAIL_SUFFIX); \
131
225
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
527
                                               HIGHBD_DECL_SUFFIX) \
128
527
{ \
129
527
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
527
                   HIGHBD_TAIL_SUFFIX); \
131
527
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
343
                                               HIGHBD_DECL_SUFFIX) \
128
343
{ \
129
343
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
343
                   HIGHBD_TAIL_SUFFIX); \
131
343
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
28.3k
                                               HIGHBD_DECL_SUFFIX) \
128
28.3k
{ \
129
28.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
28.3k
                   HIGHBD_TAIL_SUFFIX); \
131
28.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
3.32k
                                               HIGHBD_DECL_SUFFIX) \
128
3.32k
{ \
129
3.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.32k
                   HIGHBD_TAIL_SUFFIX); \
131
3.32k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_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_dct_adst_16x16_c
Line
Count
Source
127
19.2k
                                               HIGHBD_DECL_SUFFIX) \
128
19.2k
{ \
129
19.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.2k
                   HIGHBD_TAIL_SUFFIX); \
131
19.2k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
22.3k
                                               HIGHBD_DECL_SUFFIX) \
128
22.3k
{ \
129
22.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
22.3k
                   HIGHBD_TAIL_SUFFIX); \
131
22.3k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
511
                                               HIGHBD_DECL_SUFFIX) \
128
511
{ \
129
511
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
511
                   HIGHBD_TAIL_SUFFIX); \
131
511
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
565
                                               HIGHBD_DECL_SUFFIX) \
128
565
{ \
129
565
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
565
                   HIGHBD_TAIL_SUFFIX); \
131
565
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
743
                                               HIGHBD_DECL_SUFFIX) \
128
743
{ \
129
743
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
743
                   HIGHBD_TAIL_SUFFIX); \
131
743
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
793
                                               HIGHBD_DECL_SUFFIX) \
128
793
{ \
129
793
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
793
                   HIGHBD_TAIL_SUFFIX); \
131
793
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
663
                                               HIGHBD_DECL_SUFFIX) \
128
663
{ \
129
663
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
663
                   HIGHBD_TAIL_SUFFIX); \
131
663
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_c
Line
Count
Source
127
923
                                               HIGHBD_DECL_SUFFIX) \
128
923
{ \
129
923
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
923
                   HIGHBD_TAIL_SUFFIX); \
131
923
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_c
Line
Count
Source
127
563
                                               HIGHBD_DECL_SUFFIX) \
128
563
{ \
129
563
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
563
                   HIGHBD_TAIL_SUFFIX); \
131
563
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_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_16x32_c
Line
Count
Source
127
271
                                               HIGHBD_DECL_SUFFIX) \
128
271
{ \
129
271
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
271
                   HIGHBD_TAIL_SUFFIX); \
131
271
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
5.42k
                                               HIGHBD_DECL_SUFFIX) \
128
5.42k
{ \
129
5.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.42k
                   HIGHBD_TAIL_SUFFIX); \
131
5.42k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
17.7k
                                               HIGHBD_DECL_SUFFIX) \
128
17.7k
{ \
129
17.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.7k
                   HIGHBD_TAIL_SUFFIX); \
131
17.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
341
                                               HIGHBD_DECL_SUFFIX) \
128
341
{ \
129
341
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
341
                   HIGHBD_TAIL_SUFFIX); \
131
341
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
17.9k
                                               HIGHBD_DECL_SUFFIX) \
128
17.9k
{ \
129
17.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.9k
                   HIGHBD_TAIL_SUFFIX); \
131
17.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_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_dct_32x32_c
Line
Count
Source
127
138k
                                               HIGHBD_DECL_SUFFIX) \
128
138k
{ \
129
138k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
138k
                   HIGHBD_TAIL_SUFFIX); \
131
138k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
170
                                               HIGHBD_DECL_SUFFIX) \
128
170
{ \
129
170
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
170
                   HIGHBD_TAIL_SUFFIX); \
131
170
}
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
2.82k
                                               HIGHBD_DECL_SUFFIX) \
128
2.82k
{ \
129
2.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.82k
                   HIGHBD_TAIL_SUFFIX); \
131
2.82k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
7.26k
                                               HIGHBD_DECL_SUFFIX) \
128
7.26k
{ \
129
7.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.26k
                   HIGHBD_TAIL_SUFFIX); \
131
7.26k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
72.0k
                                               HIGHBD_DECL_SUFFIX) \
128
72.0k
{ \
129
72.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
72.0k
                   HIGHBD_TAIL_SUFFIX); \
131
72.0k
}
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
192k
{
188
192k
    int32_t tmp[4 * 4], *c = tmp;
189
964k
    for (int y = 0; y < 4; y++, c += 4) {
190
3.85M
        for (int x = 0; x < 4; x++)
191
3.08M
            c[x] = coeff[y + x * 4] >> 2;
192
771k
        dav1d_inv_wht4_1d_c(c, 1);
193
771k
    }
194
192k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
964k
    for (int x = 0; x < 4; x++)
197
771k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
192k
    c = tmp;
200
964k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
3.85M
        for (int x = 0; x < 4; x++)
202
3.08M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
192k
}
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
33.4k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
33.4k
#define assign_itx_all_fn64(w, h, pfx) \
222
635k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
635k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
33.4k
#define assign_itx_all_fn32(w, h, pfx) \
226
468k
    assign_itx_all_fn64(w, h, pfx); \
227
468k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
468k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
33.4k
#define assign_itx_all_fn16(w, h, pfx) \
231
301k
    assign_itx_all_fn32(w, h, pfx); \
232
301k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
301k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
301k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
301k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
301k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
301k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
301k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
301k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
301k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
301k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
301k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
301k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
301k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
301k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
301k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
301k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
301k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
301k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
301k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
301k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
33.4k
#define assign_itx_all_fn84(w, h, pfx) \
254
267k
    assign_itx_all_fn16(w, h, pfx); \
255
267k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
267k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
267k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
267k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
267k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
267k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
267k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
267k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
33.4k
264
33.4k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
33.4k
  ARCH_AARCH64 || \
266
33.4k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
33.4k
))
268
33.4k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
33.4k
#endif
270
33.4k
    assign_itx_all_fn84( 4,  4, );
271
33.4k
    assign_itx_all_fn84( 4,  8, R);
272
33.4k
    assign_itx_all_fn84( 4, 16, R);
273
33.4k
    assign_itx_all_fn84( 8,  4, R);
274
33.4k
    assign_itx_all_fn84( 8,  8, );
275
33.4k
    assign_itx_all_fn84( 8, 16, R);
276
33.4k
    assign_itx_all_fn32( 8, 32, R);
277
33.4k
    assign_itx_all_fn84(16,  4, R);
278
33.4k
    assign_itx_all_fn84(16,  8, R);
279
33.4k
    assign_itx_all_fn16(16, 16, );
280
33.4k
    assign_itx_all_fn32(16, 32, R);
281
33.4k
    assign_itx_all_fn64(16, 64, R);
282
33.4k
    assign_itx_all_fn32(32,  8, R);
283
33.4k
    assign_itx_all_fn32(32, 16, R);
284
33.4k
    assign_itx_all_fn32(32, 32, );
285
33.4k
    assign_itx_all_fn64(32, 64, R);
286
33.4k
    assign_itx_all_fn64(64, 16, R);
287
33.4k
    assign_itx_all_fn64(64, 32, R);
288
33.4k
    assign_itx_all_fn64(64, 64, );
289
290
33.4k
    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
33.4k
    if (!all_simd)
310
33.4k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
33.4k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
14.7k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
14.7k
#define assign_itx_all_fn64(w, h, pfx) \
222
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
14.7k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
14.7k
#define assign_itx_all_fn32(w, h, pfx) \
226
14.7k
    assign_itx_all_fn64(w, h, pfx); \
227
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
14.7k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
14.7k
#define assign_itx_all_fn16(w, h, pfx) \
231
14.7k
    assign_itx_all_fn32(w, h, pfx); \
232
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
14.7k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
14.7k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
14.7k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
14.7k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
14.7k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
14.7k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
14.7k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
14.7k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
14.7k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
14.7k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
14.7k
#define assign_itx_all_fn84(w, h, pfx) \
254
14.7k
    assign_itx_all_fn16(w, h, pfx); \
255
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
14.7k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
14.7k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
14.7k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
14.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
14.7k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
14.7k
264
14.7k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
14.7k
  ARCH_AARCH64 || \
266
14.7k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
14.7k
))
268
14.7k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
14.7k
#endif
270
14.7k
    assign_itx_all_fn84( 4,  4, );
271
14.7k
    assign_itx_all_fn84( 4,  8, R);
272
14.7k
    assign_itx_all_fn84( 4, 16, R);
273
14.7k
    assign_itx_all_fn84( 8,  4, R);
274
14.7k
    assign_itx_all_fn84( 8,  8, );
275
14.7k
    assign_itx_all_fn84( 8, 16, R);
276
14.7k
    assign_itx_all_fn32( 8, 32, R);
277
14.7k
    assign_itx_all_fn84(16,  4, R);
278
14.7k
    assign_itx_all_fn84(16,  8, R);
279
14.7k
    assign_itx_all_fn16(16, 16, );
280
14.7k
    assign_itx_all_fn32(16, 32, R);
281
14.7k
    assign_itx_all_fn64(16, 64, R);
282
14.7k
    assign_itx_all_fn32(32,  8, R);
283
14.7k
    assign_itx_all_fn32(32, 16, R);
284
14.7k
    assign_itx_all_fn32(32, 32, );
285
14.7k
    assign_itx_all_fn64(32, 64, R);
286
14.7k
    assign_itx_all_fn64(64, 16, R);
287
14.7k
    assign_itx_all_fn64(64, 32, R);
288
14.7k
    assign_itx_all_fn64(64, 64, );
289
290
14.7k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
14.7k
    if (!all_simd)
310
14.7k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
14.7k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
18.6k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
18.6k
#define assign_itx_all_fn64(w, h, pfx) \
222
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
18.6k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
18.6k
#define assign_itx_all_fn32(w, h, pfx) \
226
18.6k
    assign_itx_all_fn64(w, h, pfx); \
227
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
18.6k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
18.6k
#define assign_itx_all_fn16(w, h, pfx) \
231
18.6k
    assign_itx_all_fn32(w, h, pfx); \
232
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
18.6k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
18.6k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
18.6k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
18.6k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
18.6k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
18.6k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
18.6k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
18.6k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
18.6k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
18.6k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
18.6k
#define assign_itx_all_fn84(w, h, pfx) \
254
18.6k
    assign_itx_all_fn16(w, h, pfx); \
255
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
18.6k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
18.6k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
18.6k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
18.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
18.6k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
18.6k
264
18.6k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
18.6k
  ARCH_AARCH64 || \
266
18.6k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
18.6k
))
268
18.6k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
18.6k
#endif
270
18.6k
    assign_itx_all_fn84( 4,  4, );
271
18.6k
    assign_itx_all_fn84( 4,  8, R);
272
18.6k
    assign_itx_all_fn84( 4, 16, R);
273
18.6k
    assign_itx_all_fn84( 8,  4, R);
274
18.6k
    assign_itx_all_fn84( 8,  8, );
275
18.6k
    assign_itx_all_fn84( 8, 16, R);
276
18.6k
    assign_itx_all_fn32( 8, 32, R);
277
18.6k
    assign_itx_all_fn84(16,  4, R);
278
18.6k
    assign_itx_all_fn84(16,  8, R);
279
18.6k
    assign_itx_all_fn16(16, 16, );
280
18.6k
    assign_itx_all_fn32(16, 32, R);
281
18.6k
    assign_itx_all_fn64(16, 64, R);
282
18.6k
    assign_itx_all_fn32(32,  8, R);
283
18.6k
    assign_itx_all_fn32(32, 16, R);
284
18.6k
    assign_itx_all_fn32(32, 32, );
285
18.6k
    assign_itx_all_fn64(32, 64, R);
286
18.6k
    assign_itx_all_fn64(64, 16, R);
287
18.6k
    assign_itx_all_fn64(64, 32, R);
288
18.6k
    assign_itx_all_fn64(64, 64, );
289
290
18.6k
    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
18.6k
    if (!all_simd)
310
18.6k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
18.6k
}