Coverage Report

Created: 2026-05-30 06:10

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
1.37M
{
48
1.37M
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
1.37M
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
1.37M
    const int has_dconly = txtp == DCT_DCT;
51
1.37M
    assert(w >= 4 && w <= 64);
52
1.37M
    assert(h >= 4 && h <= 64);
53
1.37M
    assert(eob >= 0);
54
55
1.37M
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
1.37M
    const int rnd = (1 << shift) >> 1;
57
58
1.37M
    if (eob < has_dconly) {
59
445k
        int dc = coeff[0];
60
445k
        coeff[0] = 0;
61
445k
        if (is_rect2)
62
83.4k
            dc = (dc * 181 + 128) >> 8;
63
445k
        dc = (dc * 181 + 128) >> 8;
64
445k
        dc = (dc + rnd) >> shift;
65
445k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
15.9M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
663M
            for (int x = 0; x < w; x++)
68
647M
                dst[x] = iclip_pixel(dst[x] + dc);
69
445k
        return;
70
445k
    }
71
72
924k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
924k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
924k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
924k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
924k
#if BITDEPTH == 8
77
924k
    const int row_clip_min = INT16_MIN;
78
924k
    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
924k
    const int row_clip_max = ~row_clip_min;
84
924k
    const int col_clip_max = ~col_clip_min;
85
86
924k
    int32_t tmp[64 * 64], *c = tmp;
87
924k
    int last_nonzero_col; // in first 1d itx
88
924k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
53.3k
        last_nonzero_col = imin(sh - 1, eob);
90
871k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
30.0k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
841k
    } else {
93
841k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
841k
    }
95
924k
    assert(last_nonzero_col < sh);
96
5.51M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
4.59M
        if (is_rect2)
98
24.2M
            for (int x = 0; x < sw; x++)
99
22.7M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
3.07M
        else
101
50.4M
            for (int x = 0; x < sw; x++)
102
47.3M
                c[x] = coeff[y + x * sh];
103
4.59M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
4.59M
    }
105
924k
    if (last_nonzero_col + 1 < sh)
106
702k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
924k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
239M
    for (int i = 0; i < w * sh; i++)
110
238M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
14.2M
    for (int x = 0; x < w; x++)
113
13.3M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
924k
    c = tmp;
116
13.7M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
319M
        for (int x = 0; x < w; x++)
118
306M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
924k
}
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
1.37M
                                               HIGHBD_DECL_SUFFIX) \
128
1.37M
{ \
129
1.37M
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.37M
                   HIGHBD_TAIL_SUFFIX); \
131
1.37M
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
32.3k
                                               HIGHBD_DECL_SUFFIX) \
128
32.3k
{ \
129
32.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
32.3k
                   HIGHBD_TAIL_SUFFIX); \
131
32.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
10.1k
                                               HIGHBD_DECL_SUFFIX) \
128
10.1k
{ \
129
10.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.1k
                   HIGHBD_TAIL_SUFFIX); \
131
10.1k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
22.6k
                                               HIGHBD_DECL_SUFFIX) \
128
22.6k
{ \
129
22.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
22.6k
                   HIGHBD_TAIL_SUFFIX); \
131
22.6k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_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_adst_adst_4x4_c
Line
Count
Source
127
25.8k
                                               HIGHBD_DECL_SUFFIX) \
128
25.8k
{ \
129
25.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
25.8k
                   HIGHBD_TAIL_SUFFIX); \
131
25.8k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_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_adst_flipadst_4x4_c
Line
Count
Source
127
1.33k
                                               HIGHBD_DECL_SUFFIX) \
128
1.33k
{ \
129
1.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.33k
                   HIGHBD_TAIL_SUFFIX); \
131
1.33k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
1.20k
                                               HIGHBD_DECL_SUFFIX) \
128
1.20k
{ \
129
1.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.20k
                   HIGHBD_TAIL_SUFFIX); \
131
1.20k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
791
                                               HIGHBD_DECL_SUFFIX) \
128
791
{ \
129
791
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
791
                   HIGHBD_TAIL_SUFFIX); \
131
791
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
1.02k
                                               HIGHBD_DECL_SUFFIX) \
128
1.02k
{ \
129
1.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.02k
                   HIGHBD_TAIL_SUFFIX); \
131
1.02k
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
7.41k
                                               HIGHBD_DECL_SUFFIX) \
128
7.41k
{ \
129
7.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.41k
                   HIGHBD_TAIL_SUFFIX); \
131
7.41k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
3.98k
                                               HIGHBD_DECL_SUFFIX) \
128
3.98k
{ \
129
3.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.98k
                   HIGHBD_TAIL_SUFFIX); \
131
3.98k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
1.59k
                                               HIGHBD_DECL_SUFFIX) \
128
1.59k
{ \
129
1.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.59k
                   HIGHBD_TAIL_SUFFIX); \
131
1.59k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
1.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_identity_4x4_c
Line
Count
Source
127
2.29k
                                               HIGHBD_DECL_SUFFIX) \
128
2.29k
{ \
129
2.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.29k
                   HIGHBD_TAIL_SUFFIX); \
131
2.29k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
1.29k
                                               HIGHBD_DECL_SUFFIX) \
128
1.29k
{ \
129
1.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.29k
                   HIGHBD_TAIL_SUFFIX); \
131
1.29k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
13.1k
                                               HIGHBD_DECL_SUFFIX) \
128
13.1k
{ \
129
13.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.1k
                   HIGHBD_TAIL_SUFFIX); \
131
13.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
3.77k
                                               HIGHBD_DECL_SUFFIX) \
128
3.77k
{ \
129
3.77k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.77k
                   HIGHBD_TAIL_SUFFIX); \
131
3.77k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_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_dct_adst_4x8_c
Line
Count
Source
127
7.70k
                                               HIGHBD_DECL_SUFFIX) \
128
7.70k
{ \
129
7.70k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.70k
                   HIGHBD_TAIL_SUFFIX); \
131
7.70k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
10.5k
                                               HIGHBD_DECL_SUFFIX) \
128
10.5k
{ \
129
10.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.5k
                   HIGHBD_TAIL_SUFFIX); \
131
10.5k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
632
                                               HIGHBD_DECL_SUFFIX) \
128
632
{ \
129
632
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
632
                   HIGHBD_TAIL_SUFFIX); \
131
632
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
642
                                               HIGHBD_DECL_SUFFIX) \
128
642
{ \
129
642
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
642
                   HIGHBD_TAIL_SUFFIX); \
131
642
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_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_dct_flipadst_4x8_c
Line
Count
Source
127
408
                                               HIGHBD_DECL_SUFFIX) \
128
408
{ \
129
408
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
408
                   HIGHBD_TAIL_SUFFIX); \
131
408
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
594
                                               HIGHBD_DECL_SUFFIX) \
128
594
{ \
129
594
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
594
                   HIGHBD_TAIL_SUFFIX); \
131
594
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_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_identity_dct_4x8_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_flipadst_identity_4x8_c
Line
Count
Source
127
874
                                               HIGHBD_DECL_SUFFIX) \
128
874
{ \
129
874
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
874
                   HIGHBD_TAIL_SUFFIX); \
131
874
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
457
                                               HIGHBD_DECL_SUFFIX) \
128
457
{ \
129
457
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
457
                   HIGHBD_TAIL_SUFFIX); \
131
457
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_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_identity_adst_4x8_c
Line
Count
Source
127
555
                                               HIGHBD_DECL_SUFFIX) \
128
555
{ \
129
555
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
555
                   HIGHBD_TAIL_SUFFIX); \
131
555
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
6.00k
                                               HIGHBD_DECL_SUFFIX) \
128
6.00k
{ \
129
6.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.00k
                   HIGHBD_TAIL_SUFFIX); \
131
6.00k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
1.85k
                                               HIGHBD_DECL_SUFFIX) \
128
1.85k
{ \
129
1.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.85k
                   HIGHBD_TAIL_SUFFIX); \
131
1.85k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
3.79k
                                               HIGHBD_DECL_SUFFIX) \
128
3.79k
{ \
129
3.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.79k
                   HIGHBD_TAIL_SUFFIX); \
131
3.79k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
3.27k
                                               HIGHBD_DECL_SUFFIX) \
128
3.27k
{ \
129
3.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.27k
                   HIGHBD_TAIL_SUFFIX); \
131
3.27k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
4.90k
                                               HIGHBD_DECL_SUFFIX) \
128
4.90k
{ \
129
4.90k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.90k
                   HIGHBD_TAIL_SUFFIX); \
131
4.90k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
326
                                               HIGHBD_DECL_SUFFIX) \
128
326
{ \
129
326
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
326
                   HIGHBD_TAIL_SUFFIX); \
131
326
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
354
                                               HIGHBD_DECL_SUFFIX) \
128
354
{ \
129
354
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
354
                   HIGHBD_TAIL_SUFFIX); \
131
354
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
243
                                               HIGHBD_DECL_SUFFIX) \
128
243
{ \
129
243
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
243
                   HIGHBD_TAIL_SUFFIX); \
131
243
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_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_flipadst_flipadst_4x16_c
Line
Count
Source
127
228
                                               HIGHBD_DECL_SUFFIX) \
128
228
{ \
129
228
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
228
                   HIGHBD_TAIL_SUFFIX); \
131
228
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
1.38k
                                               HIGHBD_DECL_SUFFIX) \
128
1.38k
{ \
129
1.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.38k
                   HIGHBD_TAIL_SUFFIX); \
131
1.38k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_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_identity_4x16_c
Line
Count
Source
127
504
                                               HIGHBD_DECL_SUFFIX) \
128
504
{ \
129
504
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
504
                   HIGHBD_TAIL_SUFFIX); \
131
504
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
290
                                               HIGHBD_DECL_SUFFIX) \
128
290
{ \
129
290
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
290
                   HIGHBD_TAIL_SUFFIX); \
131
290
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
395
                                               HIGHBD_DECL_SUFFIX) \
128
395
{ \
129
395
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
395
                   HIGHBD_TAIL_SUFFIX); \
131
395
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_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_dct_dct_8x4_c
Line
Count
Source
127
21.2k
                                               HIGHBD_DECL_SUFFIX) \
128
21.2k
{ \
129
21.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.2k
                   HIGHBD_TAIL_SUFFIX); \
131
21.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
5.54k
                                               HIGHBD_DECL_SUFFIX) \
128
5.54k
{ \
129
5.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.54k
                   HIGHBD_TAIL_SUFFIX); \
131
5.54k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
13.6k
                                               HIGHBD_DECL_SUFFIX) \
128
13.6k
{ \
129
13.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.6k
                   HIGHBD_TAIL_SUFFIX); \
131
13.6k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_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_adst_adst_8x4_c
Line
Count
Source
127
16.1k
                                               HIGHBD_DECL_SUFFIX) \
128
16.1k
{ \
129
16.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.1k
                   HIGHBD_TAIL_SUFFIX); \
131
16.1k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
944
                                               HIGHBD_DECL_SUFFIX) \
128
944
{ \
129
944
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
944
                   HIGHBD_TAIL_SUFFIX); \
131
944
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
1.11k
                                               HIGHBD_DECL_SUFFIX) \
128
1.11k
{ \
129
1.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.11k
                   HIGHBD_TAIL_SUFFIX); \
131
1.11k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
826
                                               HIGHBD_DECL_SUFFIX) \
128
826
{ \
129
826
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
826
                   HIGHBD_TAIL_SUFFIX); \
131
826
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
595
                                               HIGHBD_DECL_SUFFIX) \
128
595
{ \
129
595
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
595
                   HIGHBD_TAIL_SUFFIX); \
131
595
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
649
                                               HIGHBD_DECL_SUFFIX) \
128
649
{ \
129
649
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
649
                   HIGHBD_TAIL_SUFFIX); \
131
649
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_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_identity_dct_8x4_c
Line
Count
Source
127
2.28k
                                               HIGHBD_DECL_SUFFIX) \
128
2.28k
{ \
129
2.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.28k
                   HIGHBD_TAIL_SUFFIX); \
131
2.28k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
1.44k
                                               HIGHBD_DECL_SUFFIX) \
128
1.44k
{ \
129
1.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.44k
                   HIGHBD_TAIL_SUFFIX); \
131
1.44k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
840
                                               HIGHBD_DECL_SUFFIX) \
128
840
{ \
129
840
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
840
                   HIGHBD_TAIL_SUFFIX); \
131
840
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_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_identity_adst_8x4_c
Line
Count
Source
127
1.12k
                                               HIGHBD_DECL_SUFFIX) \
128
1.12k
{ \
129
1.12k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.12k
                   HIGHBD_TAIL_SUFFIX); \
131
1.12k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
51.8k
                                               HIGHBD_DECL_SUFFIX) \
128
51.8k
{ \
129
51.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
51.8k
                   HIGHBD_TAIL_SUFFIX); \
131
51.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
13.2k
                                               HIGHBD_DECL_SUFFIX) \
128
13.2k
{ \
129
13.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.2k
                   HIGHBD_TAIL_SUFFIX); \
131
13.2k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
35.1k
                                               HIGHBD_DECL_SUFFIX) \
128
35.1k
{ \
129
35.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
35.1k
                   HIGHBD_TAIL_SUFFIX); \
131
35.1k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
27.5k
                                               HIGHBD_DECL_SUFFIX) \
128
27.5k
{ \
129
27.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
27.5k
                   HIGHBD_TAIL_SUFFIX); \
131
27.5k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
33.0k
                                               HIGHBD_DECL_SUFFIX) \
128
33.0k
{ \
129
33.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
33.0k
                   HIGHBD_TAIL_SUFFIX); \
131
33.0k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
1.75k
                                               HIGHBD_DECL_SUFFIX) \
128
1.75k
{ \
129
1.75k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.75k
                   HIGHBD_TAIL_SUFFIX); \
131
1.75k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
1.59k
                                               HIGHBD_DECL_SUFFIX) \
128
1.59k
{ \
129
1.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.59k
                   HIGHBD_TAIL_SUFFIX); \
131
1.59k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
2.18k
                                               HIGHBD_DECL_SUFFIX) \
128
2.18k
{ \
129
2.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.18k
                   HIGHBD_TAIL_SUFFIX); \
131
2.18k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
2.53k
                                               HIGHBD_DECL_SUFFIX) \
128
2.53k
{ \
129
2.53k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.53k
                   HIGHBD_TAIL_SUFFIX); \
131
2.53k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_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_dct_identity_8x8_c
Line
Count
Source
127
9.27k
                                               HIGHBD_DECL_SUFFIX) \
128
9.27k
{ \
129
9.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.27k
                   HIGHBD_TAIL_SUFFIX); \
131
9.27k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
5.06k
                                               HIGHBD_DECL_SUFFIX) \
128
5.06k
{ \
129
5.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.06k
                   HIGHBD_TAIL_SUFFIX); \
131
5.06k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
1.65k
                                               HIGHBD_DECL_SUFFIX) \
128
1.65k
{ \
129
1.65k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.65k
                   HIGHBD_TAIL_SUFFIX); \
131
1.65k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
753
                                               HIGHBD_DECL_SUFFIX) \
128
753
{ \
129
753
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
753
                   HIGHBD_TAIL_SUFFIX); \
131
753
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
2.89k
                                               HIGHBD_DECL_SUFFIX) \
128
2.89k
{ \
129
2.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.89k
                   HIGHBD_TAIL_SUFFIX); \
131
2.89k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_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_dct_8x16_c
Line
Count
Source
127
17.0k
                                               HIGHBD_DECL_SUFFIX) \
128
17.0k
{ \
129
17.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.0k
                   HIGHBD_TAIL_SUFFIX); \
131
17.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
3.83k
                                               HIGHBD_DECL_SUFFIX) \
128
3.83k
{ \
129
3.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.83k
                   HIGHBD_TAIL_SUFFIX); \
131
3.83k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
9.84k
                                               HIGHBD_DECL_SUFFIX) \
128
9.84k
{ \
129
9.84k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.84k
                   HIGHBD_TAIL_SUFFIX); \
131
9.84k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
7.51k
                                               HIGHBD_DECL_SUFFIX) \
128
7.51k
{ \
129
7.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.51k
                   HIGHBD_TAIL_SUFFIX); \
131
7.51k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
9.45k
                                               HIGHBD_DECL_SUFFIX) \
128
9.45k
{ \
129
9.45k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.45k
                   HIGHBD_TAIL_SUFFIX); \
131
9.45k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
776
                                               HIGHBD_DECL_SUFFIX) \
128
776
{ \
129
776
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
776
                   HIGHBD_TAIL_SUFFIX); \
131
776
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
824
                                               HIGHBD_DECL_SUFFIX) \
128
824
{ \
129
824
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
824
                   HIGHBD_TAIL_SUFFIX); \
131
824
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_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_flipadst_8x16_c
Line
Count
Source
127
767
                                               HIGHBD_DECL_SUFFIX) \
128
767
{ \
129
767
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
767
                   HIGHBD_TAIL_SUFFIX); \
131
767
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
701
                                               HIGHBD_DECL_SUFFIX) \
128
701
{ \
129
701
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
701
                   HIGHBD_TAIL_SUFFIX); \
131
701
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
2.30k
                                               HIGHBD_DECL_SUFFIX) \
128
2.30k
{ \
129
2.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.30k
                   HIGHBD_TAIL_SUFFIX); \
131
2.30k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
1.39k
                                               HIGHBD_DECL_SUFFIX) \
128
1.39k
{ \
129
1.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.39k
                   HIGHBD_TAIL_SUFFIX); \
131
1.39k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
767
                                               HIGHBD_DECL_SUFFIX) \
128
767
{ \
129
767
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
767
                   HIGHBD_TAIL_SUFFIX); \
131
767
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
359
                                               HIGHBD_DECL_SUFFIX) \
128
359
{ \
129
359
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
359
                   HIGHBD_TAIL_SUFFIX); \
131
359
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
730
                                               HIGHBD_DECL_SUFFIX) \
128
730
{ \
129
730
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
730
                   HIGHBD_TAIL_SUFFIX); \
131
730
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
399
                                               HIGHBD_DECL_SUFFIX) \
128
399
{ \
129
399
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
399
                   HIGHBD_TAIL_SUFFIX); \
131
399
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
13.1k
                                               HIGHBD_DECL_SUFFIX) \
128
13.1k
{ \
129
13.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.1k
                   HIGHBD_TAIL_SUFFIX); \
131
13.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
364
                                               HIGHBD_DECL_SUFFIX) \
128
364
{ \
129
364
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
364
                   HIGHBD_TAIL_SUFFIX); \
131
364
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
11.2k
                                               HIGHBD_DECL_SUFFIX) \
128
11.2k
{ \
129
11.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.2k
                   HIGHBD_TAIL_SUFFIX); \
131
11.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
3.20k
                                               HIGHBD_DECL_SUFFIX) \
128
3.20k
{ \
129
3.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.20k
                   HIGHBD_TAIL_SUFFIX); \
131
3.20k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
7.86k
                                               HIGHBD_DECL_SUFFIX) \
128
7.86k
{ \
129
7.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.86k
                   HIGHBD_TAIL_SUFFIX); \
131
7.86k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
6.16k
                                               HIGHBD_DECL_SUFFIX) \
128
6.16k
{ \
129
6.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.16k
                   HIGHBD_TAIL_SUFFIX); \
131
6.16k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
9.85k
                                               HIGHBD_DECL_SUFFIX) \
128
9.85k
{ \
129
9.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.85k
                   HIGHBD_TAIL_SUFFIX); \
131
9.85k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_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_adst_flipadst_16x4_c
Line
Count
Source
127
347
                                               HIGHBD_DECL_SUFFIX) \
128
347
{ \
129
347
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
347
                   HIGHBD_TAIL_SUFFIX); \
131
347
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
362
                                               HIGHBD_DECL_SUFFIX) \
128
362
{ \
129
362
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
362
                   HIGHBD_TAIL_SUFFIX); \
131
362
}
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
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_identity_16x4_c
Line
Count
Source
127
2.56k
                                               HIGHBD_DECL_SUFFIX) \
128
2.56k
{ \
129
2.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.56k
                   HIGHBD_TAIL_SUFFIX); \
131
2.56k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
1.60k
                                               HIGHBD_DECL_SUFFIX) \
128
1.60k
{ \
129
1.60k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.60k
                   HIGHBD_TAIL_SUFFIX); \
131
1.60k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
586
                                               HIGHBD_DECL_SUFFIX) \
128
586
{ \
129
586
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
586
                   HIGHBD_TAIL_SUFFIX); \
131
586
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
255
                                               HIGHBD_DECL_SUFFIX) \
128
255
{ \
129
255
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
255
                   HIGHBD_TAIL_SUFFIX); \
131
255
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
694
                                               HIGHBD_DECL_SUFFIX) \
128
694
{ \
129
694
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
694
                   HIGHBD_TAIL_SUFFIX); \
131
694
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
373
                                               HIGHBD_DECL_SUFFIX) \
128
373
{ \
129
373
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
373
                   HIGHBD_TAIL_SUFFIX); \
131
373
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
21.8k
                                               HIGHBD_DECL_SUFFIX) \
128
21.8k
{ \
129
21.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.8k
                   HIGHBD_TAIL_SUFFIX); \
131
21.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
4.90k
                                               HIGHBD_DECL_SUFFIX) \
128
4.90k
{ \
129
4.90k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.90k
                   HIGHBD_TAIL_SUFFIX); \
131
4.90k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
14.6k
                                               HIGHBD_DECL_SUFFIX) \
128
14.6k
{ \
129
14.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.6k
                   HIGHBD_TAIL_SUFFIX); \
131
14.6k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
10.5k
                                               HIGHBD_DECL_SUFFIX) \
128
10.5k
{ \
129
10.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.5k
                   HIGHBD_TAIL_SUFFIX); \
131
10.5k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_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_flipadst_adst_16x8_c
Line
Count
Source
127
980
                                               HIGHBD_DECL_SUFFIX) \
128
980
{ \
129
980
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
980
                   HIGHBD_TAIL_SUFFIX); \
131
980
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
814
                                               HIGHBD_DECL_SUFFIX) \
128
814
{ \
129
814
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
814
                   HIGHBD_TAIL_SUFFIX); \
131
814
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
914
                                               HIGHBD_DECL_SUFFIX) \
128
914
{ \
129
914
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
914
                   HIGHBD_TAIL_SUFFIX); \
131
914
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_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_flipadst_flipadst_16x8_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_dct_identity_16x8_c
Line
Count
Source
127
3.35k
                                               HIGHBD_DECL_SUFFIX) \
128
3.35k
{ \
129
3.35k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.35k
                   HIGHBD_TAIL_SUFFIX); \
131
3.35k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
1.98k
                                               HIGHBD_DECL_SUFFIX) \
128
1.98k
{ \
129
1.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.98k
                   HIGHBD_TAIL_SUFFIX); \
131
1.98k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
905
                                               HIGHBD_DECL_SUFFIX) \
128
905
{ \
129
905
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
905
                   HIGHBD_TAIL_SUFFIX); \
131
905
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
596
                                               HIGHBD_DECL_SUFFIX) \
128
596
{ \
129
596
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
596
                   HIGHBD_TAIL_SUFFIX); \
131
596
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_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_16x8_c
Line
Count
Source
127
498
                                               HIGHBD_DECL_SUFFIX) \
128
498
{ \
129
498
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
498
                   HIGHBD_TAIL_SUFFIX); \
131
498
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
44.0k
                                               HIGHBD_DECL_SUFFIX) \
128
44.0k
{ \
129
44.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
44.0k
                   HIGHBD_TAIL_SUFFIX); \
131
44.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
5.41k
                                               HIGHBD_DECL_SUFFIX) \
128
5.41k
{ \
129
5.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.41k
                   HIGHBD_TAIL_SUFFIX); \
131
5.41k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
37.2k
                                               HIGHBD_DECL_SUFFIX) \
128
37.2k
{ \
129
37.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
37.2k
                   HIGHBD_TAIL_SUFFIX); \
131
37.2k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
28.7k
                                               HIGHBD_DECL_SUFFIX) \
128
28.7k
{ \
129
28.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
28.7k
                   HIGHBD_TAIL_SUFFIX); \
131
28.7k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
37.6k
                                               HIGHBD_DECL_SUFFIX) \
128
37.6k
{ \
129
37.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
37.6k
                   HIGHBD_TAIL_SUFFIX); \
131
37.6k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
509
                                               HIGHBD_DECL_SUFFIX) \
128
509
{ \
129
509
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
509
                   HIGHBD_TAIL_SUFFIX); \
131
509
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
627
                                               HIGHBD_DECL_SUFFIX) \
128
627
{ \
129
627
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
627
                   HIGHBD_TAIL_SUFFIX); \
131
627
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
694
                                               HIGHBD_DECL_SUFFIX) \
128
694
{ \
129
694
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
694
                   HIGHBD_TAIL_SUFFIX); \
131
694
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_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_flipadst_flipadst_16x16_c
Line
Count
Source
127
626
                                               HIGHBD_DECL_SUFFIX) \
128
626
{ \
129
626
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
626
                   HIGHBD_TAIL_SUFFIX); \
131
626
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_c
Line
Count
Source
127
756
                                               HIGHBD_DECL_SUFFIX) \
128
756
{ \
129
756
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
756
                   HIGHBD_TAIL_SUFFIX); \
131
756
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_c
Line
Count
Source
127
450
                                               HIGHBD_DECL_SUFFIX) \
128
450
{ \
129
450
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
450
                   HIGHBD_TAIL_SUFFIX); \
131
450
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
40.9k
                                               HIGHBD_DECL_SUFFIX) \
128
40.9k
{ \
129
40.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
40.9k
                   HIGHBD_TAIL_SUFFIX); \
131
40.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
457
                                               HIGHBD_DECL_SUFFIX) \
128
457
{ \
129
457
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
457
                   HIGHBD_TAIL_SUFFIX); \
131
457
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
4.18k
                                               HIGHBD_DECL_SUFFIX) \
128
4.18k
{ \
129
4.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.18k
                   HIGHBD_TAIL_SUFFIX); \
131
4.18k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
21.0k
                                               HIGHBD_DECL_SUFFIX) \
128
21.0k
{ \
129
21.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.0k
                   HIGHBD_TAIL_SUFFIX); \
131
21.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
385
                                               HIGHBD_DECL_SUFFIX) \
128
385
{ \
129
385
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
385
                   HIGHBD_TAIL_SUFFIX); \
131
385
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
34.5k
                                               HIGHBD_DECL_SUFFIX) \
128
34.5k
{ \
129
34.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
34.5k
                   HIGHBD_TAIL_SUFFIX); \
131
34.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
336
                                               HIGHBD_DECL_SUFFIX) \
128
336
{ \
129
336
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
336
                   HIGHBD_TAIL_SUFFIX); \
131
336
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
269k
                                               HIGHBD_DECL_SUFFIX) \
128
269k
{ \
129
269k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
269k
                   HIGHBD_TAIL_SUFFIX); \
131
269k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_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_dct_32x64_c
Line
Count
Source
127
29.2k
                                               HIGHBD_DECL_SUFFIX) \
128
29.2k
{ \
129
29.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
29.2k
                   HIGHBD_TAIL_SUFFIX); \
131
29.2k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
4.65k
                                               HIGHBD_DECL_SUFFIX) \
128
4.65k
{ \
129
4.65k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.65k
                   HIGHBD_TAIL_SUFFIX); \
131
4.65k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
15.3k
                                               HIGHBD_DECL_SUFFIX) \
128
15.3k
{ \
129
15.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.3k
                   HIGHBD_TAIL_SUFFIX); \
131
15.3k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
109k
                                               HIGHBD_DECL_SUFFIX) \
128
109k
{ \
129
109k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
109k
                   HIGHBD_TAIL_SUFFIX); \
131
109k
}
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
374k
{
188
374k
    int32_t tmp[4 * 4], *c = tmp;
189
1.87M
    for (int y = 0; y < 4; y++, c += 4) {
190
7.48M
        for (int x = 0; x < 4; x++)
191
5.99M
            c[x] = coeff[y + x * 4] >> 2;
192
1.49M
        dav1d_inv_wht4_1d_c(c, 1);
193
1.49M
    }
194
374k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
1.87M
    for (int x = 0; x < 4; x++)
197
1.49M
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
374k
    c = tmp;
200
1.87M
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
7.48M
        for (int x = 0; x < 4; x++)
202
5.99M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
374k
}
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
59.4k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
59.4k
#define assign_itx_all_fn64(w, h, pfx) \
222
1.12M
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
1.12M
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
59.4k
#define assign_itx_all_fn32(w, h, pfx) \
226
831k
    assign_itx_all_fn64(w, h, pfx); \
227
831k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
831k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
59.4k
#define assign_itx_all_fn16(w, h, pfx) \
231
534k
    assign_itx_all_fn32(w, h, pfx); \
232
534k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
534k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
534k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
534k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
534k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
534k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
534k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
534k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
534k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
534k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
534k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
534k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
534k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
534k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
534k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
534k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
534k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
534k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
534k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
534k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
59.4k
#define assign_itx_all_fn84(w, h, pfx) \
254
475k
    assign_itx_all_fn16(w, h, pfx); \
255
475k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
475k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
475k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
475k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
475k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
475k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
475k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
475k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
59.4k
264
59.4k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
59.4k
  ARCH_AARCH64 || \
266
59.4k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
59.4k
))
268
59.4k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
59.4k
#endif
270
59.4k
    assign_itx_all_fn84( 4,  4, );
271
59.4k
    assign_itx_all_fn84( 4,  8, R);
272
59.4k
    assign_itx_all_fn84( 4, 16, R);
273
59.4k
    assign_itx_all_fn84( 8,  4, R);
274
59.4k
    assign_itx_all_fn84( 8,  8, );
275
59.4k
    assign_itx_all_fn84( 8, 16, R);
276
59.4k
    assign_itx_all_fn32( 8, 32, R);
277
59.4k
    assign_itx_all_fn84(16,  4, R);
278
59.4k
    assign_itx_all_fn84(16,  8, R);
279
59.4k
    assign_itx_all_fn16(16, 16, );
280
59.4k
    assign_itx_all_fn32(16, 32, R);
281
59.4k
    assign_itx_all_fn64(16, 64, R);
282
59.4k
    assign_itx_all_fn32(32,  8, R);
283
59.4k
    assign_itx_all_fn32(32, 16, R);
284
59.4k
    assign_itx_all_fn32(32, 32, );
285
59.4k
    assign_itx_all_fn64(32, 64, R);
286
59.4k
    assign_itx_all_fn64(64, 16, R);
287
59.4k
    assign_itx_all_fn64(64, 32, R);
288
59.4k
    assign_itx_all_fn64(64, 64, );
289
290
59.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
59.4k
    if (!all_simd)
310
59.4k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
59.4k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
27.6k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
27.6k
#define assign_itx_all_fn64(w, h, pfx) \
222
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
27.6k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
27.6k
#define assign_itx_all_fn32(w, h, pfx) \
226
27.6k
    assign_itx_all_fn64(w, h, pfx); \
227
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
27.6k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
27.6k
#define assign_itx_all_fn16(w, h, pfx) \
231
27.6k
    assign_itx_all_fn32(w, h, pfx); \
232
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
27.6k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
27.6k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
27.6k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
27.6k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
27.6k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
27.6k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
27.6k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
27.6k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
27.6k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
27.6k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
27.6k
#define assign_itx_all_fn84(w, h, pfx) \
254
27.6k
    assign_itx_all_fn16(w, h, pfx); \
255
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
27.6k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
27.6k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
27.6k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
27.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
27.6k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
27.6k
264
27.6k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
27.6k
  ARCH_AARCH64 || \
266
27.6k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
27.6k
))
268
27.6k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
27.6k
#endif
270
27.6k
    assign_itx_all_fn84( 4,  4, );
271
27.6k
    assign_itx_all_fn84( 4,  8, R);
272
27.6k
    assign_itx_all_fn84( 4, 16, R);
273
27.6k
    assign_itx_all_fn84( 8,  4, R);
274
27.6k
    assign_itx_all_fn84( 8,  8, );
275
27.6k
    assign_itx_all_fn84( 8, 16, R);
276
27.6k
    assign_itx_all_fn32( 8, 32, R);
277
27.6k
    assign_itx_all_fn84(16,  4, R);
278
27.6k
    assign_itx_all_fn84(16,  8, R);
279
27.6k
    assign_itx_all_fn16(16, 16, );
280
27.6k
    assign_itx_all_fn32(16, 32, R);
281
27.6k
    assign_itx_all_fn64(16, 64, R);
282
27.6k
    assign_itx_all_fn32(32,  8, R);
283
27.6k
    assign_itx_all_fn32(32, 16, R);
284
27.6k
    assign_itx_all_fn32(32, 32, );
285
27.6k
    assign_itx_all_fn64(32, 64, R);
286
27.6k
    assign_itx_all_fn64(64, 16, R);
287
27.6k
    assign_itx_all_fn64(64, 32, R);
288
27.6k
    assign_itx_all_fn64(64, 64, );
289
290
27.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
27.6k
    if (!all_simd)
310
27.6k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
27.6k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
31.7k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
31.7k
#define assign_itx_all_fn64(w, h, pfx) \
222
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
31.7k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
31.7k
#define assign_itx_all_fn32(w, h, pfx) \
226
31.7k
    assign_itx_all_fn64(w, h, pfx); \
227
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
31.7k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
31.7k
#define assign_itx_all_fn16(w, h, pfx) \
231
31.7k
    assign_itx_all_fn32(w, h, pfx); \
232
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
31.7k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
31.7k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
31.7k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
31.7k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
31.7k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
31.7k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
31.7k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
31.7k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
31.7k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
31.7k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
31.7k
#define assign_itx_all_fn84(w, h, pfx) \
254
31.7k
    assign_itx_all_fn16(w, h, pfx); \
255
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
31.7k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
31.7k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
31.7k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
31.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
31.7k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
31.7k
264
31.7k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
31.7k
  ARCH_AARCH64 || \
266
31.7k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
31.7k
))
268
31.7k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
31.7k
#endif
270
31.7k
    assign_itx_all_fn84( 4,  4, );
271
31.7k
    assign_itx_all_fn84( 4,  8, R);
272
31.7k
    assign_itx_all_fn84( 4, 16, R);
273
31.7k
    assign_itx_all_fn84( 8,  4, R);
274
31.7k
    assign_itx_all_fn84( 8,  8, );
275
31.7k
    assign_itx_all_fn84( 8, 16, R);
276
31.7k
    assign_itx_all_fn32( 8, 32, R);
277
31.7k
    assign_itx_all_fn84(16,  4, R);
278
31.7k
    assign_itx_all_fn84(16,  8, R);
279
31.7k
    assign_itx_all_fn16(16, 16, );
280
31.7k
    assign_itx_all_fn32(16, 32, R);
281
31.7k
    assign_itx_all_fn64(16, 64, R);
282
31.7k
    assign_itx_all_fn32(32,  8, R);
283
31.7k
    assign_itx_all_fn32(32, 16, R);
284
31.7k
    assign_itx_all_fn32(32, 32, );
285
31.7k
    assign_itx_all_fn64(32, 64, R);
286
31.7k
    assign_itx_all_fn64(64, 16, R);
287
31.7k
    assign_itx_all_fn64(64, 32, R);
288
31.7k
    assign_itx_all_fn64(64, 64, );
289
290
31.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
31.7k
    if (!all_simd)
310
31.7k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
31.7k
}