Coverage Report

Created: 2026-10-28 06:15

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
556k
{
48
556k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
556k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
556k
    const int has_dconly = txtp == DCT_DCT;
51
556k
    assert(w >= 4 && w <= 64);
52
556k
    assert(h >= 4 && h <= 64);
53
556k
    assert(eob >= 0);
54
55
556k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
556k
    const int rnd = (1 << shift) >> 1;
57
58
556k
    if (eob < has_dconly) {
59
124k
        int dc = coeff[0];
60
124k
        coeff[0] = 0;
61
124k
        if (is_rect2)
62
35.2k
            dc = (dc * 181 + 128) >> 8;
63
124k
        dc = (dc * 181 + 128) >> 8;
64
124k
        dc = (dc + rnd) >> shift;
65
124k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
3.94M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
147M
            for (int x = 0; x < w; x++)
68
143M
                dst[x] = iclip_pixel(dst[x] + dc);
69
124k
        return;
70
124k
    }
71
72
431k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
431k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
431k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
431k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
431k
#if BITDEPTH == 8
77
431k
    const int row_clip_min = INT16_MIN;
78
431k
    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
431k
    const int row_clip_max = ~row_clip_min;
84
431k
    const int col_clip_max = ~col_clip_min;
85
86
431k
    int32_t tmp[64 * 64], *c = tmp;
87
431k
    int last_nonzero_col; // in first 1d itx
88
431k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
29.6k
        last_nonzero_col = imin(sh - 1, eob);
90
401k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
16.3k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
385k
    } else {
93
385k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
385k
    }
95
431k
    assert(last_nonzero_col < sh);
96
2.61M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
2.18M
        if (is_rect2)
98
13.1M
            for (int x = 0; x < sw; x++)
99
12.4M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
1.39M
        else
101
22.6M
            for (int x = 0; x < sw; x++)
102
21.2M
                c[x] = coeff[y + x * sh];
103
2.18M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
2.18M
    }
105
431k
    if (last_nonzero_col + 1 < sh)
106
325k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
431k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
110M
    for (int i = 0; i < w * sh; i++)
110
110M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
6.62M
    for (int x = 0; x < w; x++)
113
6.19M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
431k
    c = tmp;
116
6.46M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
145M
        for (int x = 0; x < w; x++)
118
139M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
431k
}
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
556k
                                               HIGHBD_DECL_SUFFIX) \
128
556k
{ \
129
556k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
556k
                   HIGHBD_TAIL_SUFFIX); \
131
556k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
18.8k
                                               HIGHBD_DECL_SUFFIX) \
128
18.8k
{ \
129
18.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
18.8k
                   HIGHBD_TAIL_SUFFIX); \
131
18.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
12.4k
                                               HIGHBD_DECL_SUFFIX) \
128
12.4k
{ \
129
12.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.4k
                   HIGHBD_TAIL_SUFFIX); \
131
12.4k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
6.90k
                                               HIGHBD_DECL_SUFFIX) \
128
6.90k
{ \
129
6.90k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.90k
                   HIGHBD_TAIL_SUFFIX); \
131
6.90k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
5.96k
                                               HIGHBD_DECL_SUFFIX) \
128
5.96k
{ \
129
5.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.96k
                   HIGHBD_TAIL_SUFFIX); \
131
5.96k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
8.64k
                                               HIGHBD_DECL_SUFFIX) \
128
8.64k
{ \
129
8.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.64k
                   HIGHBD_TAIL_SUFFIX); \
131
8.64k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_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_adst_flipadst_4x4_c
Line
Count
Source
127
1.30k
                                               HIGHBD_DECL_SUFFIX) \
128
1.30k
{ \
129
1.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.30k
                   HIGHBD_TAIL_SUFFIX); \
131
1.30k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
1.18k
                                               HIGHBD_DECL_SUFFIX) \
128
1.18k
{ \
129
1.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.18k
                   HIGHBD_TAIL_SUFFIX); \
131
1.18k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
916
                                               HIGHBD_DECL_SUFFIX) \
128
916
{ \
129
916
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
916
                   HIGHBD_TAIL_SUFFIX); \
131
916
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
962
                                               HIGHBD_DECL_SUFFIX) \
128
962
{ \
129
962
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
962
                   HIGHBD_TAIL_SUFFIX); \
131
962
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
2.93k
                                               HIGHBD_DECL_SUFFIX) \
128
2.93k
{ \
129
2.93k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.93k
                   HIGHBD_TAIL_SUFFIX); \
131
2.93k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
1.53k
                                               HIGHBD_DECL_SUFFIX) \
128
1.53k
{ \
129
1.53k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.53k
                   HIGHBD_TAIL_SUFFIX); \
131
1.53k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
1.76k
                                               HIGHBD_DECL_SUFFIX) \
128
1.76k
{ \
129
1.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.76k
                   HIGHBD_TAIL_SUFFIX); \
131
1.76k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
1.15k
                                               HIGHBD_DECL_SUFFIX) \
128
1.15k
{ \
129
1.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.15k
                   HIGHBD_TAIL_SUFFIX); \
131
1.15k
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
2.69k
                                               HIGHBD_DECL_SUFFIX) \
128
2.69k
{ \
129
2.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.69k
                   HIGHBD_TAIL_SUFFIX); \
131
2.69k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
1.45k
                                               HIGHBD_DECL_SUFFIX) \
128
1.45k
{ \
129
1.45k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.45k
                   HIGHBD_TAIL_SUFFIX); \
131
1.45k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
6.13k
                                               HIGHBD_DECL_SUFFIX) \
128
6.13k
{ \
129
6.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.13k
                   HIGHBD_TAIL_SUFFIX); \
131
6.13k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
3.24k
                                               HIGHBD_DECL_SUFFIX) \
128
3.24k
{ \
129
3.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.24k
                   HIGHBD_TAIL_SUFFIX); \
131
3.24k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
3.12k
                                               HIGHBD_DECL_SUFFIX) \
128
3.12k
{ \
129
3.12k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.12k
                   HIGHBD_TAIL_SUFFIX); \
131
3.12k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
2.32k
                                               HIGHBD_DECL_SUFFIX) \
128
2.32k
{ \
129
2.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.32k
                   HIGHBD_TAIL_SUFFIX); \
131
2.32k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
3.39k
                                               HIGHBD_DECL_SUFFIX) \
128
3.39k
{ \
129
3.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.39k
                   HIGHBD_TAIL_SUFFIX); \
131
3.39k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
432
                                               HIGHBD_DECL_SUFFIX) \
128
432
{ \
129
432
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
432
                   HIGHBD_TAIL_SUFFIX); \
131
432
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
446
                                               HIGHBD_DECL_SUFFIX) \
128
446
{ \
129
446
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
446
                   HIGHBD_TAIL_SUFFIX); \
131
446
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
409
                                               HIGHBD_DECL_SUFFIX) \
128
409
{ \
129
409
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
409
                   HIGHBD_TAIL_SUFFIX); \
131
409
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
329
                                               HIGHBD_DECL_SUFFIX) \
128
329
{ \
129
329
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
329
                   HIGHBD_TAIL_SUFFIX); \
131
329
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
342
                                               HIGHBD_DECL_SUFFIX) \
128
342
{ \
129
342
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
342
                   HIGHBD_TAIL_SUFFIX); \
131
342
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_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_identity_dct_4x8_c
Line
Count
Source
127
610
                                               HIGHBD_DECL_SUFFIX) \
128
610
{ \
129
610
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
610
                   HIGHBD_TAIL_SUFFIX); \
131
610
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_c
Line
Count
Source
127
656
                                               HIGHBD_DECL_SUFFIX) \
128
656
{ \
129
656
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
656
                   HIGHBD_TAIL_SUFFIX); \
131
656
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_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_adst_identity_4x8_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_identity_adst_4x8_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_dct_dct_4x16_c
Line
Count
Source
127
3.04k
                                               HIGHBD_DECL_SUFFIX) \
128
3.04k
{ \
129
3.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.04k
                   HIGHBD_TAIL_SUFFIX); \
131
3.04k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
1.47k
                                               HIGHBD_DECL_SUFFIX) \
128
1.47k
{ \
129
1.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.47k
                   HIGHBD_TAIL_SUFFIX); \
131
1.47k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
1.10k
                                               HIGHBD_DECL_SUFFIX) \
128
1.10k
{ \
129
1.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.10k
                   HIGHBD_TAIL_SUFFIX); \
131
1.10k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
994
                                               HIGHBD_DECL_SUFFIX) \
128
994
{ \
129
994
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
994
                   HIGHBD_TAIL_SUFFIX); \
131
994
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
1.47k
                                               HIGHBD_DECL_SUFFIX) \
128
1.47k
{ \
129
1.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.47k
                   HIGHBD_TAIL_SUFFIX); \
131
1.47k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
199
                                               HIGHBD_DECL_SUFFIX) \
128
199
{ \
129
199
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
199
                   HIGHBD_TAIL_SUFFIX); \
131
199
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
253
                                               HIGHBD_DECL_SUFFIX) \
128
253
{ \
129
253
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
253
                   HIGHBD_TAIL_SUFFIX); \
131
253
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
184
                                               HIGHBD_DECL_SUFFIX) \
128
184
{ \
129
184
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
184
                   HIGHBD_TAIL_SUFFIX); \
131
184
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
189
                                               HIGHBD_DECL_SUFFIX) \
128
189
{ \
129
189
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
189
                   HIGHBD_TAIL_SUFFIX); \
131
189
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
131
                                               HIGHBD_DECL_SUFFIX) \
128
131
{ \
129
131
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
131
                   HIGHBD_TAIL_SUFFIX); \
131
131
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
609
                                               HIGHBD_DECL_SUFFIX) \
128
609
{ \
129
609
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
609
                   HIGHBD_TAIL_SUFFIX); \
131
609
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
307
                                               HIGHBD_DECL_SUFFIX) \
128
307
{ \
129
307
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
307
                   HIGHBD_TAIL_SUFFIX); \
131
307
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
331
                                               HIGHBD_DECL_SUFFIX) \
128
331
{ \
129
331
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
331
                   HIGHBD_TAIL_SUFFIX); \
131
331
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
242
                                               HIGHBD_DECL_SUFFIX) \
128
242
{ \
129
242
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
242
                   HIGHBD_TAIL_SUFFIX); \
131
242
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
382
                                               HIGHBD_DECL_SUFFIX) \
128
382
{ \
129
382
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
382
                   HIGHBD_TAIL_SUFFIX); \
131
382
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
288
                                               HIGHBD_DECL_SUFFIX) \
128
288
{ \
129
288
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
288
                   HIGHBD_TAIL_SUFFIX); \
131
288
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
8.89k
                                               HIGHBD_DECL_SUFFIX) \
128
8.89k
{ \
129
8.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.89k
                   HIGHBD_TAIL_SUFFIX); \
131
8.89k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
5.71k
                                               HIGHBD_DECL_SUFFIX) \
128
5.71k
{ \
129
5.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.71k
                   HIGHBD_TAIL_SUFFIX); \
131
5.71k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
3.68k
                                               HIGHBD_DECL_SUFFIX) \
128
3.68k
{ \
129
3.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.68k
                   HIGHBD_TAIL_SUFFIX); \
131
3.68k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
3.34k
                                               HIGHBD_DECL_SUFFIX) \
128
3.34k
{ \
129
3.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.34k
                   HIGHBD_TAIL_SUFFIX); \
131
3.34k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
4.69k
                                               HIGHBD_DECL_SUFFIX) \
128
4.69k
{ \
129
4.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.69k
                   HIGHBD_TAIL_SUFFIX); \
131
4.69k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
652
                                               HIGHBD_DECL_SUFFIX) \
128
652
{ \
129
652
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
652
                   HIGHBD_TAIL_SUFFIX); \
131
652
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
869
                                               HIGHBD_DECL_SUFFIX) \
128
869
{ \
129
869
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
869
                   HIGHBD_TAIL_SUFFIX); \
131
869
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_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_dct_flipadst_8x4_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_flipadst_flipadst_8x4_c
Line
Count
Source
127
530
                                               HIGHBD_DECL_SUFFIX) \
128
530
{ \
129
530
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
530
                   HIGHBD_TAIL_SUFFIX); \
131
530
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_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_identity_dct_8x4_c
Line
Count
Source
127
910
                                               HIGHBD_DECL_SUFFIX) \
128
910
{ \
129
910
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
910
                   HIGHBD_TAIL_SUFFIX); \
131
910
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
858
                                               HIGHBD_DECL_SUFFIX) \
128
858
{ \
129
858
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
858
                   HIGHBD_TAIL_SUFFIX); \
131
858
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
503
                                               HIGHBD_DECL_SUFFIX) \
128
503
{ \
129
503
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
503
                   HIGHBD_TAIL_SUFFIX); \
131
503
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
1.25k
                                               HIGHBD_DECL_SUFFIX) \
128
1.25k
{ \
129
1.25k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.25k
                   HIGHBD_TAIL_SUFFIX); \
131
1.25k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
659
                                               HIGHBD_DECL_SUFFIX) \
128
659
{ \
129
659
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
659
                   HIGHBD_TAIL_SUFFIX); \
131
659
}
itx_tmpl.c:inv_txfm_add_dct_dct_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_identity_identity_8x8_c
Line
Count
Source
127
7.88k
                                               HIGHBD_DECL_SUFFIX) \
128
7.88k
{ \
129
7.88k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.88k
                   HIGHBD_TAIL_SUFFIX); \
131
7.88k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_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_8x8_c
Line
Count
Source
127
9.17k
                                               HIGHBD_DECL_SUFFIX) \
128
9.17k
{ \
129
9.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.17k
                   HIGHBD_TAIL_SUFFIX); \
131
9.17k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
9.65k
                                               HIGHBD_DECL_SUFFIX) \
128
9.65k
{ \
129
9.65k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.65k
                   HIGHBD_TAIL_SUFFIX); \
131
9.65k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
1.52k
                                               HIGHBD_DECL_SUFFIX) \
128
1.52k
{ \
129
1.52k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.52k
                   HIGHBD_TAIL_SUFFIX); \
131
1.52k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
1.61k
                                               HIGHBD_DECL_SUFFIX) \
128
1.61k
{ \
129
1.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.61k
                   HIGHBD_TAIL_SUFFIX); \
131
1.61k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
2.16k
                                               HIGHBD_DECL_SUFFIX) \
128
2.16k
{ \
129
2.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.16k
                   HIGHBD_TAIL_SUFFIX); \
131
2.16k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
1.80k
                                               HIGHBD_DECL_SUFFIX) \
128
1.80k
{ \
129
1.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.80k
                   HIGHBD_TAIL_SUFFIX); \
131
1.80k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
1.63k
                                               HIGHBD_DECL_SUFFIX) \
128
1.63k
{ \
129
1.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.63k
                   HIGHBD_TAIL_SUFFIX); \
131
1.63k
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_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_identity_dct_8x8_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_8x8_c
Line
Count
Source
127
1.47k
                                               HIGHBD_DECL_SUFFIX) \
128
1.47k
{ \
129
1.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.47k
                   HIGHBD_TAIL_SUFFIX); \
131
1.47k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
727
                                               HIGHBD_DECL_SUFFIX) \
128
727
{ \
129
727
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
727
                   HIGHBD_TAIL_SUFFIX); \
131
727
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
1.70k
                                               HIGHBD_DECL_SUFFIX) \
128
1.70k
{ \
129
1.70k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.70k
                   HIGHBD_TAIL_SUFFIX); \
131
1.70k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
836
                                               HIGHBD_DECL_SUFFIX) \
128
836
{ \
129
836
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
836
                   HIGHBD_TAIL_SUFFIX); \
131
836
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
10.6k
                                               HIGHBD_DECL_SUFFIX) \
128
10.6k
{ \
129
10.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.6k
                   HIGHBD_TAIL_SUFFIX); \
131
10.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
2.19k
                                               HIGHBD_DECL_SUFFIX) \
128
2.19k
{ \
129
2.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.19k
                   HIGHBD_TAIL_SUFFIX); \
131
2.19k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
3.92k
                                               HIGHBD_DECL_SUFFIX) \
128
3.92k
{ \
129
3.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.92k
                   HIGHBD_TAIL_SUFFIX); \
131
3.92k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
3.16k
                                               HIGHBD_DECL_SUFFIX) \
128
3.16k
{ \
129
3.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.16k
                   HIGHBD_TAIL_SUFFIX); \
131
3.16k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
3.64k
                                               HIGHBD_DECL_SUFFIX) \
128
3.64k
{ \
129
3.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.64k
                   HIGHBD_TAIL_SUFFIX); \
131
3.64k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
474
                                               HIGHBD_DECL_SUFFIX) \
128
474
{ \
129
474
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
474
                   HIGHBD_TAIL_SUFFIX); \
131
474
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
593
                                               HIGHBD_DECL_SUFFIX) \
128
593
{ \
129
593
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
593
                   HIGHBD_TAIL_SUFFIX); \
131
593
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
794
                                               HIGHBD_DECL_SUFFIX) \
128
794
{ \
129
794
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
794
                   HIGHBD_TAIL_SUFFIX); \
131
794
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
574
                                               HIGHBD_DECL_SUFFIX) \
128
574
{ \
129
574
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
574
                   HIGHBD_TAIL_SUFFIX); \
131
574
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_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_8x16_c
Line
Count
Source
127
987
                                               HIGHBD_DECL_SUFFIX) \
128
987
{ \
129
987
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
987
                   HIGHBD_TAIL_SUFFIX); \
131
987
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
615
                                               HIGHBD_DECL_SUFFIX) \
128
615
{ \
129
615
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
615
                   HIGHBD_TAIL_SUFFIX); \
131
615
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
448
                                               HIGHBD_DECL_SUFFIX) \
128
448
{ \
129
448
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
448
                   HIGHBD_TAIL_SUFFIX); \
131
448
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
250
                                               HIGHBD_DECL_SUFFIX) \
128
250
{ \
129
250
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
250
                   HIGHBD_TAIL_SUFFIX); \
131
250
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
488
                                               HIGHBD_DECL_SUFFIX) \
128
488
{ \
129
488
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
488
                   HIGHBD_TAIL_SUFFIX); \
131
488
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
238
                                               HIGHBD_DECL_SUFFIX) \
128
238
{ \
129
238
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
238
                   HIGHBD_TAIL_SUFFIX); \
131
238
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
7.25k
                                               HIGHBD_DECL_SUFFIX) \
128
7.25k
{ \
129
7.25k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.25k
                   HIGHBD_TAIL_SUFFIX); \
131
7.25k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
411
                                               HIGHBD_DECL_SUFFIX) \
128
411
{ \
129
411
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
411
                   HIGHBD_TAIL_SUFFIX); \
131
411
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
4.46k
                                               HIGHBD_DECL_SUFFIX) \
128
4.46k
{ \
129
4.46k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.46k
                   HIGHBD_TAIL_SUFFIX); \
131
4.46k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_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_adst_dct_16x4_c
Line
Count
Source
127
2.19k
                                               HIGHBD_DECL_SUFFIX) \
128
2.19k
{ \
129
2.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.19k
                   HIGHBD_TAIL_SUFFIX); \
131
2.19k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_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_adst_adst_16x4_c
Line
Count
Source
127
2.26k
                                               HIGHBD_DECL_SUFFIX) \
128
2.26k
{ \
129
2.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.26k
                   HIGHBD_TAIL_SUFFIX); \
131
2.26k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
1.73k
                                               HIGHBD_DECL_SUFFIX) \
128
1.73k
{ \
129
1.73k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.73k
                   HIGHBD_TAIL_SUFFIX); \
131
1.73k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
615
                                               HIGHBD_DECL_SUFFIX) \
128
615
{ \
129
615
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
615
                   HIGHBD_TAIL_SUFFIX); \
131
615
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
414
                                               HIGHBD_DECL_SUFFIX) \
128
414
{ \
129
414
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
414
                   HIGHBD_TAIL_SUFFIX); \
131
414
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
332
                                               HIGHBD_DECL_SUFFIX) \
128
332
{ \
129
332
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
332
                   HIGHBD_TAIL_SUFFIX); \
131
332
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
314
                                               HIGHBD_DECL_SUFFIX) \
128
314
{ \
129
314
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
314
                   HIGHBD_TAIL_SUFFIX); \
131
314
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
1.14k
                                               HIGHBD_DECL_SUFFIX) \
128
1.14k
{ \
129
1.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.14k
                   HIGHBD_TAIL_SUFFIX); \
131
1.14k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
588
                                               HIGHBD_DECL_SUFFIX) \
128
588
{ \
129
588
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
588
                   HIGHBD_TAIL_SUFFIX); \
131
588
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_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_identity_flipadst_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_adst_identity_16x4_c
Line
Count
Source
127
741
                                               HIGHBD_DECL_SUFFIX) \
128
741
{ \
129
741
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
741
                   HIGHBD_TAIL_SUFFIX); \
131
741
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
475
                                               HIGHBD_DECL_SUFFIX) \
128
475
{ \
129
475
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
475
                   HIGHBD_TAIL_SUFFIX); \
131
475
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
11.8k
                                               HIGHBD_DECL_SUFFIX) \
128
11.8k
{ \
129
11.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.8k
                   HIGHBD_TAIL_SUFFIX); \
131
11.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
2.74k
                                               HIGHBD_DECL_SUFFIX) \
128
2.74k
{ \
129
2.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.74k
                   HIGHBD_TAIL_SUFFIX); \
131
2.74k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
4.32k
                                               HIGHBD_DECL_SUFFIX) \
128
4.32k
{ \
129
4.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.32k
                   HIGHBD_TAIL_SUFFIX); \
131
4.32k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_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_adst_adst_16x8_c
Line
Count
Source
127
3.94k
                                               HIGHBD_DECL_SUFFIX) \
128
3.94k
{ \
129
3.94k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.94k
                   HIGHBD_TAIL_SUFFIX); \
131
3.94k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
891
                                               HIGHBD_DECL_SUFFIX) \
128
891
{ \
129
891
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
891
                   HIGHBD_TAIL_SUFFIX); \
131
891
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
705
                                               HIGHBD_DECL_SUFFIX) \
128
705
{ \
129
705
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
705
                   HIGHBD_TAIL_SUFFIX); \
131
705
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
947
                                               HIGHBD_DECL_SUFFIX) \
128
947
{ \
129
947
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
947
                   HIGHBD_TAIL_SUFFIX); \
131
947
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
616
                                               HIGHBD_DECL_SUFFIX) \
128
616
{ \
129
616
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
616
                   HIGHBD_TAIL_SUFFIX); \
131
616
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
723
                                               HIGHBD_DECL_SUFFIX) \
128
723
{ \
129
723
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
723
                   HIGHBD_TAIL_SUFFIX); \
131
723
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_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_dct_16x8_c
Line
Count
Source
127
723
                                               HIGHBD_DECL_SUFFIX) \
128
723
{ \
129
723
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
723
                   HIGHBD_TAIL_SUFFIX); \
131
723
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
591
                                               HIGHBD_DECL_SUFFIX) \
128
591
{ \
129
591
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
591
                   HIGHBD_TAIL_SUFFIX); \
131
591
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_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_adst_identity_16x8_c
Line
Count
Source
127
706
                                               HIGHBD_DECL_SUFFIX) \
128
706
{ \
129
706
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
706
                   HIGHBD_TAIL_SUFFIX); \
131
706
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
351
                                               HIGHBD_DECL_SUFFIX) \
128
351
{ \
129
351
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
351
                   HIGHBD_TAIL_SUFFIX); \
131
351
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
22.0k
                                               HIGHBD_DECL_SUFFIX) \
128
22.0k
{ \
129
22.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
22.0k
                   HIGHBD_TAIL_SUFFIX); \
131
22.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
2.00k
                                               HIGHBD_DECL_SUFFIX) \
128
2.00k
{ \
129
2.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.00k
                   HIGHBD_TAIL_SUFFIX); \
131
2.00k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
13.0k
                                               HIGHBD_DECL_SUFFIX) \
128
13.0k
{ \
129
13.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.0k
                   HIGHBD_TAIL_SUFFIX); \
131
13.0k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
11.1k
                                               HIGHBD_DECL_SUFFIX) \
128
11.1k
{ \
129
11.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.1k
                   HIGHBD_TAIL_SUFFIX); \
131
11.1k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
11.8k
                                               HIGHBD_DECL_SUFFIX) \
128
11.8k
{ \
129
11.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.8k
                   HIGHBD_TAIL_SUFFIX); \
131
11.8k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
861
                                               HIGHBD_DECL_SUFFIX) \
128
861
{ \
129
861
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
861
                   HIGHBD_TAIL_SUFFIX); \
131
861
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_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_flipadst_dct_16x16_c
Line
Count
Source
127
1.23k
                                               HIGHBD_DECL_SUFFIX) \
128
1.23k
{ \
129
1.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.23k
                   HIGHBD_TAIL_SUFFIX); \
131
1.23k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
1.71k
                                               HIGHBD_DECL_SUFFIX) \
128
1.71k
{ \
129
1.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.71k
                   HIGHBD_TAIL_SUFFIX); \
131
1.71k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
736
                                               HIGHBD_DECL_SUFFIX) \
128
736
{ \
129
736
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
736
                   HIGHBD_TAIL_SUFFIX); \
131
736
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_c
Line
Count
Source
127
1.05k
                                               HIGHBD_DECL_SUFFIX) \
128
1.05k
{ \
129
1.05k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.05k
                   HIGHBD_TAIL_SUFFIX); \
131
1.05k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_c
Line
Count
Source
127
574
                                               HIGHBD_DECL_SUFFIX) \
128
574
{ \
129
574
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
574
                   HIGHBD_TAIL_SUFFIX); \
131
574
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
21.7k
                                               HIGHBD_DECL_SUFFIX) \
128
21.7k
{ \
129
21.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.7k
                   HIGHBD_TAIL_SUFFIX); \
131
21.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
442
                                               HIGHBD_DECL_SUFFIX) \
128
442
{ \
129
442
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
442
                   HIGHBD_TAIL_SUFFIX); \
131
442
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
4.96k
                                               HIGHBD_DECL_SUFFIX) \
128
4.96k
{ \
129
4.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.96k
                   HIGHBD_TAIL_SUFFIX); \
131
4.96k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
12.8k
                                               HIGHBD_DECL_SUFFIX) \
128
12.8k
{ \
129
12.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.8k
                   HIGHBD_TAIL_SUFFIX); \
131
12.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
656
                                               HIGHBD_DECL_SUFFIX) \
128
656
{ \
129
656
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
656
                   HIGHBD_TAIL_SUFFIX); \
131
656
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_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_identity_identity_32x16_c
Line
Count
Source
127
214
                                               HIGHBD_DECL_SUFFIX) \
128
214
{ \
129
214
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
214
                   HIGHBD_TAIL_SUFFIX); \
131
214
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
63.2k
                                               HIGHBD_DECL_SUFFIX) \
128
63.2k
{ \
129
63.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
63.2k
                   HIGHBD_TAIL_SUFFIX); \
131
63.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
168
                                               HIGHBD_DECL_SUFFIX) \
128
168
{ \
129
168
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
168
                   HIGHBD_TAIL_SUFFIX); \
131
168
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
12.3k
                                               HIGHBD_DECL_SUFFIX) \
128
12.3k
{ \
129
12.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.3k
                   HIGHBD_TAIL_SUFFIX); \
131
12.3k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
2.71k
                                               HIGHBD_DECL_SUFFIX) \
128
2.71k
{ \
129
2.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.71k
                   HIGHBD_TAIL_SUFFIX); \
131
2.71k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
6.84k
                                               HIGHBD_DECL_SUFFIX) \
128
6.84k
{ \
129
6.84k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.84k
                   HIGHBD_TAIL_SUFFIX); \
131
6.84k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
26.5k
                                               HIGHBD_DECL_SUFFIX) \
128
26.5k
{ \
129
26.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
26.5k
                   HIGHBD_TAIL_SUFFIX); \
131
26.5k
}
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
32.7k
{
188
32.7k
    int32_t tmp[4 * 4], *c = tmp;
189
163k
    for (int y = 0; y < 4; y++, c += 4) {
190
655k
        for (int x = 0; x < 4; x++)
191
524k
            c[x] = coeff[y + x * 4] >> 2;
192
131k
        dav1d_inv_wht4_1d_c(c, 1);
193
131k
    }
194
32.7k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
163k
    for (int x = 0; x < 4; x++)
197
131k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
32.7k
    c = tmp;
200
163k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
655k
        for (int x = 0; x < 4; x++)
202
524k
            dst[x] = iclip_pixel(dst[x] + *c++);
203
32.7k
}
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
26.6k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
26.6k
#define assign_itx_all_fn64(w, h, pfx) \
222
506k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
506k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
26.6k
#define assign_itx_all_fn32(w, h, pfx) \
226
373k
    assign_itx_all_fn64(w, h, pfx); \
227
373k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
373k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
26.6k
#define assign_itx_all_fn16(w, h, pfx) \
231
240k
    assign_itx_all_fn32(w, h, pfx); \
232
240k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
240k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
240k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
240k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
240k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
240k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
240k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
240k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
240k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
240k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
240k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
240k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
240k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
240k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
240k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
240k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
240k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
240k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
240k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
240k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
26.6k
#define assign_itx_all_fn84(w, h, pfx) \
254
213k
    assign_itx_all_fn16(w, h, pfx); \
255
213k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
213k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
213k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
213k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
213k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
213k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
213k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
213k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
26.6k
264
26.6k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
26.6k
  ARCH_AARCH64 || \
266
26.6k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
26.6k
))
268
26.6k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
26.6k
#endif
270
26.6k
    assign_itx_all_fn84( 4,  4, );
271
26.6k
    assign_itx_all_fn84( 4,  8, R);
272
26.6k
    assign_itx_all_fn84( 4, 16, R);
273
26.6k
    assign_itx_all_fn84( 8,  4, R);
274
26.6k
    assign_itx_all_fn84( 8,  8, );
275
26.6k
    assign_itx_all_fn84( 8, 16, R);
276
26.6k
    assign_itx_all_fn32( 8, 32, R);
277
26.6k
    assign_itx_all_fn84(16,  4, R);
278
26.6k
    assign_itx_all_fn84(16,  8, R);
279
26.6k
    assign_itx_all_fn16(16, 16, );
280
26.6k
    assign_itx_all_fn32(16, 32, R);
281
26.6k
    assign_itx_all_fn64(16, 64, R);
282
26.6k
    assign_itx_all_fn32(32,  8, R);
283
26.6k
    assign_itx_all_fn32(32, 16, R);
284
26.6k
    assign_itx_all_fn32(32, 32, );
285
26.6k
    assign_itx_all_fn64(32, 64, R);
286
26.6k
    assign_itx_all_fn64(64, 16, R);
287
26.6k
    assign_itx_all_fn64(64, 32, R);
288
26.6k
    assign_itx_all_fn64(64, 64, );
289
290
26.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
26.6k
    if (!all_simd)
310
26.6k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
26.6k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
12.2k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
12.2k
#define assign_itx_all_fn64(w, h, pfx) \
222
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
12.2k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
12.2k
#define assign_itx_all_fn32(w, h, pfx) \
226
12.2k
    assign_itx_all_fn64(w, h, pfx); \
227
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
12.2k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
12.2k
#define assign_itx_all_fn16(w, h, pfx) \
231
12.2k
    assign_itx_all_fn32(w, h, pfx); \
232
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
12.2k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
12.2k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
12.2k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
12.2k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
12.2k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
12.2k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
12.2k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
12.2k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
12.2k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
12.2k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
12.2k
#define assign_itx_all_fn84(w, h, pfx) \
254
12.2k
    assign_itx_all_fn16(w, h, pfx); \
255
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
12.2k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
12.2k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
12.2k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
12.2k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
12.2k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
12.2k
264
12.2k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
12.2k
  ARCH_AARCH64 || \
266
12.2k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
12.2k
))
268
12.2k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
12.2k
#endif
270
12.2k
    assign_itx_all_fn84( 4,  4, );
271
12.2k
    assign_itx_all_fn84( 4,  8, R);
272
12.2k
    assign_itx_all_fn84( 4, 16, R);
273
12.2k
    assign_itx_all_fn84( 8,  4, R);
274
12.2k
    assign_itx_all_fn84( 8,  8, );
275
12.2k
    assign_itx_all_fn84( 8, 16, R);
276
12.2k
    assign_itx_all_fn32( 8, 32, R);
277
12.2k
    assign_itx_all_fn84(16,  4, R);
278
12.2k
    assign_itx_all_fn84(16,  8, R);
279
12.2k
    assign_itx_all_fn16(16, 16, );
280
12.2k
    assign_itx_all_fn32(16, 32, R);
281
12.2k
    assign_itx_all_fn64(16, 64, R);
282
12.2k
    assign_itx_all_fn32(32,  8, R);
283
12.2k
    assign_itx_all_fn32(32, 16, R);
284
12.2k
    assign_itx_all_fn32(32, 32, );
285
12.2k
    assign_itx_all_fn64(32, 64, R);
286
12.2k
    assign_itx_all_fn64(64, 16, R);
287
12.2k
    assign_itx_all_fn64(64, 32, R);
288
12.2k
    assign_itx_all_fn64(64, 64, );
289
290
12.2k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
12.2k
    if (!all_simd)
310
12.2k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
12.2k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
14.4k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
14.4k
#define assign_itx_all_fn64(w, h, pfx) \
222
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
14.4k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
14.4k
#define assign_itx_all_fn32(w, h, pfx) \
226
14.4k
    assign_itx_all_fn64(w, h, pfx); \
227
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
14.4k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
14.4k
#define assign_itx_all_fn16(w, h, pfx) \
231
14.4k
    assign_itx_all_fn32(w, h, pfx); \
232
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
14.4k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
14.4k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
14.4k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
14.4k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
14.4k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
14.4k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
14.4k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
14.4k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
14.4k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
14.4k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
14.4k
#define assign_itx_all_fn84(w, h, pfx) \
254
14.4k
    assign_itx_all_fn16(w, h, pfx); \
255
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
14.4k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
14.4k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
14.4k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
14.4k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
14.4k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
14.4k
264
14.4k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
14.4k
  ARCH_AARCH64 || \
266
14.4k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
14.4k
))
268
14.4k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
14.4k
#endif
270
14.4k
    assign_itx_all_fn84( 4,  4, );
271
14.4k
    assign_itx_all_fn84( 4,  8, R);
272
14.4k
    assign_itx_all_fn84( 4, 16, R);
273
14.4k
    assign_itx_all_fn84( 8,  4, R);
274
14.4k
    assign_itx_all_fn84( 8,  8, );
275
14.4k
    assign_itx_all_fn84( 8, 16, R);
276
14.4k
    assign_itx_all_fn32( 8, 32, R);
277
14.4k
    assign_itx_all_fn84(16,  4, R);
278
14.4k
    assign_itx_all_fn84(16,  8, R);
279
14.4k
    assign_itx_all_fn16(16, 16, );
280
14.4k
    assign_itx_all_fn32(16, 32, R);
281
14.4k
    assign_itx_all_fn64(16, 64, R);
282
14.4k
    assign_itx_all_fn32(32,  8, R);
283
14.4k
    assign_itx_all_fn32(32, 16, R);
284
14.4k
    assign_itx_all_fn32(32, 32, );
285
14.4k
    assign_itx_all_fn64(32, 64, R);
286
14.4k
    assign_itx_all_fn64(64, 16, R);
287
14.4k
    assign_itx_all_fn64(64, 32, R);
288
14.4k
    assign_itx_all_fn64(64, 64, );
289
290
14.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
14.4k
    if (!all_simd)
310
14.4k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
14.4k
}