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
849k
{
48
849k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
849k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
849k
    const int has_dconly = txtp == DCT_DCT;
51
849k
    assert(w >= 4 && w <= 64);
52
849k
    assert(h >= 4 && h <= 64);
53
849k
    assert(eob >= 0);
54
55
849k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
849k
    const int rnd = (1 << shift) >> 1;
57
58
849k
    if (eob < has_dconly) {
59
205k
        int dc = coeff[0];
60
205k
        coeff[0] = 0;
61
205k
        if (is_rect2)
62
37.3k
            dc = (dc * 181 + 128) >> 8;
63
205k
        dc = (dc * 181 + 128) >> 8;
64
205k
        dc = (dc + rnd) >> shift;
65
205k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
6.49M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
256M
            for (int x = 0; x < w; x++)
68
250M
                dst[x] = iclip_pixel(dst[x] + dc);
69
205k
        return;
70
205k
    }
71
72
644k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
644k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
644k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
644k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
644k
#if BITDEPTH == 8
77
644k
    const int row_clip_min = INT16_MIN;
78
644k
    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
644k
    const int row_clip_max = ~row_clip_min;
84
644k
    const int col_clip_max = ~col_clip_min;
85
86
644k
    int32_t tmp[64 * 64], *c = tmp;
87
644k
    int last_nonzero_col; // in first 1d itx
88
644k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
36.7k
        last_nonzero_col = imin(sh - 1, eob);
90
607k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
20.0k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
587k
    } else {
93
587k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
587k
    }
95
644k
    assert(last_nonzero_col < sh);
96
3.90M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
3.26M
        if (is_rect2)
98
13.3M
            for (int x = 0; x < sw; x++)
99
12.4M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
2.32M
        else
101
37.9M
            for (int x = 0; x < sw; x++)
102
35.6M
                c[x] = coeff[y + x * sh];
103
3.26M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
3.26M
    }
105
644k
    if (last_nonzero_col + 1 < sh)
106
473k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
644k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
153M
    for (int i = 0; i < w * sh; i++)
110
152M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
9.63M
    for (int x = 0; x < w; x++)
113
8.99M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
644k
    c = tmp;
116
9.04M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
204M
        for (int x = 0; x < w; x++)
118
195M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
644k
}
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
849k
                                               HIGHBD_DECL_SUFFIX) \
128
849k
{ \
129
849k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
849k
                   HIGHBD_TAIL_SUFFIX); \
131
849k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
24.1k
                                               HIGHBD_DECL_SUFFIX) \
128
24.1k
{ \
129
24.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
24.1k
                   HIGHBD_TAIL_SUFFIX); \
131
24.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
5.77k
                                               HIGHBD_DECL_SUFFIX) \
128
5.77k
{ \
129
5.77k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.77k
                   HIGHBD_TAIL_SUFFIX); \
131
5.77k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
16.7k
                                               HIGHBD_DECL_SUFFIX) \
128
16.7k
{ \
129
16.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.7k
                   HIGHBD_TAIL_SUFFIX); \
131
16.7k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
12.7k
                                               HIGHBD_DECL_SUFFIX) \
128
12.7k
{ \
129
12.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.7k
                   HIGHBD_TAIL_SUFFIX); \
131
12.7k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
19.6k
                                               HIGHBD_DECL_SUFFIX) \
128
19.6k
{ \
129
19.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.6k
                   HIGHBD_TAIL_SUFFIX); \
131
19.6k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
638
                                               HIGHBD_DECL_SUFFIX) \
128
638
{ \
129
638
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
638
                   HIGHBD_TAIL_SUFFIX); \
131
638
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_flipadst_dct_4x4_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_dct_flipadst_4x4_c
Line
Count
Source
127
583
                                               HIGHBD_DECL_SUFFIX) \
128
583
{ \
129
583
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
583
                   HIGHBD_TAIL_SUFFIX); \
131
583
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
666
                                               HIGHBD_DECL_SUFFIX) \
128
666
{ \
129
666
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
666
                   HIGHBD_TAIL_SUFFIX); \
131
666
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
5.40k
                                               HIGHBD_DECL_SUFFIX) \
128
5.40k
{ \
129
5.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.40k
                   HIGHBD_TAIL_SUFFIX); \
131
5.40k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
2.87k
                                               HIGHBD_DECL_SUFFIX) \
128
2.87k
{ \
129
2.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.87k
                   HIGHBD_TAIL_SUFFIX); \
131
2.87k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_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_identity_flipadst_4x4_c
Line
Count
Source
127
715
                                               HIGHBD_DECL_SUFFIX) \
128
715
{ \
129
715
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
715
                   HIGHBD_TAIL_SUFFIX); \
131
715
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_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_identity_adst_4x4_c
Line
Count
Source
127
803
                                               HIGHBD_DECL_SUFFIX) \
128
803
{ \
129
803
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
803
                   HIGHBD_TAIL_SUFFIX); \
131
803
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
9.30k
                                               HIGHBD_DECL_SUFFIX) \
128
9.30k
{ \
129
9.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.30k
                   HIGHBD_TAIL_SUFFIX); \
131
9.30k
}
itx_tmpl.c:inv_txfm_add_identity_identity_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_dct_4x8_c
Line
Count
Source
127
6.56k
                                               HIGHBD_DECL_SUFFIX) \
128
6.56k
{ \
129
6.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.56k
                   HIGHBD_TAIL_SUFFIX); \
131
6.56k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
5.52k
                                               HIGHBD_DECL_SUFFIX) \
128
5.52k
{ \
129
5.52k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.52k
                   HIGHBD_TAIL_SUFFIX); \
131
5.52k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
7.67k
                                               HIGHBD_DECL_SUFFIX) \
128
7.67k
{ \
129
7.67k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.67k
                   HIGHBD_TAIL_SUFFIX); \
131
7.67k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_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_flipadst_4x8_c
Line
Count
Source
127
300
                                               HIGHBD_DECL_SUFFIX) \
128
300
{ \
129
300
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
300
                   HIGHBD_TAIL_SUFFIX); \
131
300
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
261
                                               HIGHBD_DECL_SUFFIX) \
128
261
{ \
129
261
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
261
                   HIGHBD_TAIL_SUFFIX); \
131
261
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
201
                                               HIGHBD_DECL_SUFFIX) \
128
201
{ \
129
201
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
201
                   HIGHBD_TAIL_SUFFIX); \
131
201
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_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_4x8_c
Line
Count
Source
127
2.01k
                                               HIGHBD_DECL_SUFFIX) \
128
2.01k
{ \
129
2.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.01k
                   HIGHBD_TAIL_SUFFIX); \
131
2.01k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
1.24k
                                               HIGHBD_DECL_SUFFIX) \
128
1.24k
{ \
129
1.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.24k
                   HIGHBD_TAIL_SUFFIX); \
131
1.24k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_c
Line
Count
Source
127
500
                                               HIGHBD_DECL_SUFFIX) \
128
500
{ \
129
500
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
500
                   HIGHBD_TAIL_SUFFIX); \
131
500
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
259
                                               HIGHBD_DECL_SUFFIX) \
128
259
{ \
129
259
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
259
                   HIGHBD_TAIL_SUFFIX); \
131
259
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_c
Line
Count
Source
127
624
                                               HIGHBD_DECL_SUFFIX) \
128
624
{ \
129
624
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
624
                   HIGHBD_TAIL_SUFFIX); \
131
624
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
297
                                               HIGHBD_DECL_SUFFIX) \
128
297
{ \
129
297
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
297
                   HIGHBD_TAIL_SUFFIX); \
131
297
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
4.19k
                                               HIGHBD_DECL_SUFFIX) \
128
4.19k
{ \
129
4.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.19k
                   HIGHBD_TAIL_SUFFIX); \
131
4.19k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_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_dct_4x16_c
Line
Count
Source
127
2.91k
                                               HIGHBD_DECL_SUFFIX) \
128
2.91k
{ \
129
2.91k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.91k
                   HIGHBD_TAIL_SUFFIX); \
131
2.91k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
2.49k
                                               HIGHBD_DECL_SUFFIX) \
128
2.49k
{ \
129
2.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.49k
                   HIGHBD_TAIL_SUFFIX); \
131
2.49k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
3.89k
                                               HIGHBD_DECL_SUFFIX) \
128
3.89k
{ \
129
3.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.89k
                   HIGHBD_TAIL_SUFFIX); \
131
3.89k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
54
                                               HIGHBD_DECL_SUFFIX) \
128
54
{ \
129
54
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
54
                   HIGHBD_TAIL_SUFFIX); \
131
54
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
112
                                               HIGHBD_DECL_SUFFIX) \
128
112
{ \
129
112
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
112
                   HIGHBD_TAIL_SUFFIX); \
131
112
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
86
                                               HIGHBD_DECL_SUFFIX) \
128
86
{ \
129
86
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
86
                   HIGHBD_TAIL_SUFFIX); \
131
86
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
88
                                               HIGHBD_DECL_SUFFIX) \
128
88
{ \
129
88
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
88
                   HIGHBD_TAIL_SUFFIX); \
131
88
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
58
                                               HIGHBD_DECL_SUFFIX) \
128
58
{ \
129
58
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
58
                   HIGHBD_TAIL_SUFFIX); \
131
58
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
934
                                               HIGHBD_DECL_SUFFIX) \
128
934
{ \
129
934
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
934
                   HIGHBD_TAIL_SUFFIX); \
131
934
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
633
                                               HIGHBD_DECL_SUFFIX) \
128
633
{ \
129
633
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
633
                   HIGHBD_TAIL_SUFFIX); \
131
633
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
118
                                               HIGHBD_DECL_SUFFIX) \
128
118
{ \
129
118
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
118
                   HIGHBD_TAIL_SUFFIX); \
131
118
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
55
                                               HIGHBD_DECL_SUFFIX) \
128
55
{ \
129
55
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
55
                   HIGHBD_TAIL_SUFFIX); \
131
55
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
137
                                               HIGHBD_DECL_SUFFIX) \
128
137
{ \
129
137
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
137
                   HIGHBD_TAIL_SUFFIX); \
131
137
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
75
                                               HIGHBD_DECL_SUFFIX) \
128
75
{ \
129
75
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
75
                   HIGHBD_TAIL_SUFFIX); \
131
75
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
16.5k
                                               HIGHBD_DECL_SUFFIX) \
128
16.5k
{ \
129
16.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.5k
                   HIGHBD_TAIL_SUFFIX); \
131
16.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
3.61k
                                               HIGHBD_DECL_SUFFIX) \
128
3.61k
{ \
129
3.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.61k
                   HIGHBD_TAIL_SUFFIX); \
131
3.61k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
10.2k
                                               HIGHBD_DECL_SUFFIX) \
128
10.2k
{ \
129
10.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.2k
                   HIGHBD_TAIL_SUFFIX); \
131
10.2k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
8.30k
                                               HIGHBD_DECL_SUFFIX) \
128
8.30k
{ \
129
8.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.30k
                   HIGHBD_TAIL_SUFFIX); \
131
8.30k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
12.2k
                                               HIGHBD_DECL_SUFFIX) \
128
12.2k
{ \
129
12.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.2k
                   HIGHBD_TAIL_SUFFIX); \
131
12.2k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_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_adst_flipadst_8x4_c
Line
Count
Source
127
732
                                               HIGHBD_DECL_SUFFIX) \
128
732
{ \
129
732
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
732
                   HIGHBD_TAIL_SUFFIX); \
131
732
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
572
                                               HIGHBD_DECL_SUFFIX) \
128
572
{ \
129
572
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
572
                   HIGHBD_TAIL_SUFFIX); \
131
572
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
390
                                               HIGHBD_DECL_SUFFIX) \
128
390
{ \
129
390
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
390
                   HIGHBD_TAIL_SUFFIX); \
131
390
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
400
                                               HIGHBD_DECL_SUFFIX) \
128
400
{ \
129
400
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
400
                   HIGHBD_TAIL_SUFFIX); \
131
400
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
2.92k
                                               HIGHBD_DECL_SUFFIX) \
128
2.92k
{ \
129
2.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.92k
                   HIGHBD_TAIL_SUFFIX); \
131
2.92k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
1.58k
                                               HIGHBD_DECL_SUFFIX) \
128
1.58k
{ \
129
1.58k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.58k
                   HIGHBD_TAIL_SUFFIX); \
131
1.58k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
932
                                               HIGHBD_DECL_SUFFIX) \
128
932
{ \
129
932
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
932
                   HIGHBD_TAIL_SUFFIX); \
131
932
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_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_adst_identity_8x4_c
Line
Count
Source
127
1.24k
                                               HIGHBD_DECL_SUFFIX) \
128
1.24k
{ \
129
1.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.24k
                   HIGHBD_TAIL_SUFFIX); \
131
1.24k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
822
                                               HIGHBD_DECL_SUFFIX) \
128
822
{ \
129
822
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
822
                   HIGHBD_TAIL_SUFFIX); \
131
822
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
37.8k
                                               HIGHBD_DECL_SUFFIX) \
128
37.8k
{ \
129
37.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
37.8k
                   HIGHBD_TAIL_SUFFIX); \
131
37.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
8.43k
                                               HIGHBD_DECL_SUFFIX) \
128
8.43k
{ \
129
8.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.43k
                   HIGHBD_TAIL_SUFFIX); \
131
8.43k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
26.9k
                                               HIGHBD_DECL_SUFFIX) \
128
26.9k
{ \
129
26.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
26.9k
                   HIGHBD_TAIL_SUFFIX); \
131
26.9k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
20.9k
                                               HIGHBD_DECL_SUFFIX) \
128
20.9k
{ \
129
20.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
20.9k
                   HIGHBD_TAIL_SUFFIX); \
131
20.9k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
25.3k
                                               HIGHBD_DECL_SUFFIX) \
128
25.3k
{ \
129
25.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
25.3k
                   HIGHBD_TAIL_SUFFIX); \
131
25.3k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_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_adst_flipadst_8x8_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_flipadst_dct_8x8_c
Line
Count
Source
127
1.47k
                                               HIGHBD_DECL_SUFFIX) \
128
1.47k
{ \
129
1.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.47k
                   HIGHBD_TAIL_SUFFIX); \
131
1.47k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
1.88k
                                               HIGHBD_DECL_SUFFIX) \
128
1.88k
{ \
129
1.88k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.88k
                   HIGHBD_TAIL_SUFFIX); \
131
1.88k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_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_dct_identity_8x8_c
Line
Count
Source
127
7.36k
                                               HIGHBD_DECL_SUFFIX) \
128
7.36k
{ \
129
7.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.36k
                   HIGHBD_TAIL_SUFFIX); \
131
7.36k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
4.01k
                                               HIGHBD_DECL_SUFFIX) \
128
4.01k
{ \
129
4.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.01k
                   HIGHBD_TAIL_SUFFIX); \
131
4.01k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_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_identity_flipadst_8x8_c
Line
Count
Source
127
426
                                               HIGHBD_DECL_SUFFIX) \
128
426
{ \
129
426
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
426
                   HIGHBD_TAIL_SUFFIX); \
131
426
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_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_adst_8x8_c
Line
Count
Source
127
1.07k
                                               HIGHBD_DECL_SUFFIX) \
128
1.07k
{ \
129
1.07k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.07k
                   HIGHBD_TAIL_SUFFIX); \
131
1.07k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
9.54k
                                               HIGHBD_DECL_SUFFIX) \
128
9.54k
{ \
129
9.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.54k
                   HIGHBD_TAIL_SUFFIX); \
131
9.54k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
1.94k
                                               HIGHBD_DECL_SUFFIX) \
128
1.94k
{ \
129
1.94k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.94k
                   HIGHBD_TAIL_SUFFIX); \
131
1.94k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
6.51k
                                               HIGHBD_DECL_SUFFIX) \
128
6.51k
{ \
129
6.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.51k
                   HIGHBD_TAIL_SUFFIX); \
131
6.51k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
4.78k
                                               HIGHBD_DECL_SUFFIX) \
128
4.78k
{ \
129
4.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.78k
                   HIGHBD_TAIL_SUFFIX); \
131
4.78k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
6.12k
                                               HIGHBD_DECL_SUFFIX) \
128
6.12k
{ \
129
6.12k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.12k
                   HIGHBD_TAIL_SUFFIX); \
131
6.12k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
412
                                               HIGHBD_DECL_SUFFIX) \
128
412
{ \
129
412
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
412
                   HIGHBD_TAIL_SUFFIX); \
131
412
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
393
                                               HIGHBD_DECL_SUFFIX) \
128
393
{ \
129
393
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
393
                   HIGHBD_TAIL_SUFFIX); \
131
393
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
224
                                               HIGHBD_DECL_SUFFIX) \
128
224
{ \
129
224
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
224
                   HIGHBD_TAIL_SUFFIX); \
131
224
}
itx_tmpl.c:inv_txfm_add_dct_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_flipadst_flipadst_8x16_c
Line
Count
Source
127
291
                                               HIGHBD_DECL_SUFFIX) \
128
291
{ \
129
291
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
291
                   HIGHBD_TAIL_SUFFIX); \
131
291
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
1.26k
                                               HIGHBD_DECL_SUFFIX) \
128
1.26k
{ \
129
1.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.26k
                   HIGHBD_TAIL_SUFFIX); \
131
1.26k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
715
                                               HIGHBD_DECL_SUFFIX) \
128
715
{ \
129
715
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
715
                   HIGHBD_TAIL_SUFFIX); \
131
715
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
386
                                               HIGHBD_DECL_SUFFIX) \
128
386
{ \
129
386
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
386
                   HIGHBD_TAIL_SUFFIX); \
131
386
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
124
                                               HIGHBD_DECL_SUFFIX) \
128
124
{ \
129
124
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
124
                   HIGHBD_TAIL_SUFFIX); \
131
124
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
357
                                               HIGHBD_DECL_SUFFIX) \
128
357
{ \
129
357
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
357
                   HIGHBD_TAIL_SUFFIX); \
131
357
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
142
                                               HIGHBD_DECL_SUFFIX) \
128
142
{ \
129
142
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
142
                   HIGHBD_TAIL_SUFFIX); \
131
142
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
9.98k
                                               HIGHBD_DECL_SUFFIX) \
128
9.98k
{ \
129
9.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.98k
                   HIGHBD_TAIL_SUFFIX); \
131
9.98k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
144
                                               HIGHBD_DECL_SUFFIX) \
128
144
{ \
129
144
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
144
                   HIGHBD_TAIL_SUFFIX); \
131
144
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
9.39k
                                               HIGHBD_DECL_SUFFIX) \
128
9.39k
{ \
129
9.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.39k
                   HIGHBD_TAIL_SUFFIX); \
131
9.39k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
2.41k
                                               HIGHBD_DECL_SUFFIX) \
128
2.41k
{ \
129
2.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.41k
                   HIGHBD_TAIL_SUFFIX); \
131
2.41k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
6.67k
                                               HIGHBD_DECL_SUFFIX) \
128
6.67k
{ \
129
6.67k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.67k
                   HIGHBD_TAIL_SUFFIX); \
131
6.67k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
5.10k
                                               HIGHBD_DECL_SUFFIX) \
128
5.10k
{ \
129
5.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.10k
                   HIGHBD_TAIL_SUFFIX); \
131
5.10k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
8.11k
                                               HIGHBD_DECL_SUFFIX) \
128
8.11k
{ \
129
8.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.11k
                   HIGHBD_TAIL_SUFFIX); \
131
8.11k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
124
                                               HIGHBD_DECL_SUFFIX) \
128
124
{ \
129
124
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
124
                   HIGHBD_TAIL_SUFFIX); \
131
124
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
143
                                               HIGHBD_DECL_SUFFIX) \
128
143
{ \
129
143
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
143
                   HIGHBD_TAIL_SUFFIX); \
131
143
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
165
                                               HIGHBD_DECL_SUFFIX) \
128
165
{ \
129
165
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
165
                   HIGHBD_TAIL_SUFFIX); \
131
165
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
104
                                               HIGHBD_DECL_SUFFIX) \
128
104
{ \
129
104
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
104
                   HIGHBD_TAIL_SUFFIX); \
131
104
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
152
                                               HIGHBD_DECL_SUFFIX) \
128
152
{ \
129
152
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
152
                   HIGHBD_TAIL_SUFFIX); \
131
152
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
2.06k
                                               HIGHBD_DECL_SUFFIX) \
128
2.06k
{ \
129
2.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.06k
                   HIGHBD_TAIL_SUFFIX); \
131
2.06k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_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_flipadst_identity_16x4_c
Line
Count
Source
127
295
                                               HIGHBD_DECL_SUFFIX) \
128
295
{ \
129
295
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
295
                   HIGHBD_TAIL_SUFFIX); \
131
295
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
110
                                               HIGHBD_DECL_SUFFIX) \
128
110
{ \
129
110
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
110
                   HIGHBD_TAIL_SUFFIX); \
131
110
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
315
                                               HIGHBD_DECL_SUFFIX) \
128
315
{ \
129
315
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
315
                   HIGHBD_TAIL_SUFFIX); \
131
315
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
152
                                               HIGHBD_DECL_SUFFIX) \
128
152
{ \
129
152
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
152
                   HIGHBD_TAIL_SUFFIX); \
131
152
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
14.3k
                                               HIGHBD_DECL_SUFFIX) \
128
14.3k
{ \
129
14.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.3k
                   HIGHBD_TAIL_SUFFIX); \
131
14.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
3.15k
                                               HIGHBD_DECL_SUFFIX) \
128
3.15k
{ \
129
3.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.15k
                   HIGHBD_TAIL_SUFFIX); \
131
3.15k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
9.96k
                                               HIGHBD_DECL_SUFFIX) \
128
9.96k
{ \
129
9.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.96k
                   HIGHBD_TAIL_SUFFIX); \
131
9.96k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
7.24k
                                               HIGHBD_DECL_SUFFIX) \
128
7.24k
{ \
129
7.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.24k
                   HIGHBD_TAIL_SUFFIX); \
131
7.24k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
8.79k
                                               HIGHBD_DECL_SUFFIX) \
128
8.79k
{ \
129
8.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.79k
                   HIGHBD_TAIL_SUFFIX); \
131
8.79k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
563
                                               HIGHBD_DECL_SUFFIX) \
128
563
{ \
129
563
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
563
                   HIGHBD_TAIL_SUFFIX); \
131
563
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
564
                                               HIGHBD_DECL_SUFFIX) \
128
564
{ \
129
564
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
564
                   HIGHBD_TAIL_SUFFIX); \
131
564
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
571
                                               HIGHBD_DECL_SUFFIX) \
128
571
{ \
129
571
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
571
                   HIGHBD_TAIL_SUFFIX); \
131
571
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
613
                                               HIGHBD_DECL_SUFFIX) \
128
613
{ \
129
613
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
613
                   HIGHBD_TAIL_SUFFIX); \
131
613
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
479
                                               HIGHBD_DECL_SUFFIX) \
128
479
{ \
129
479
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
479
                   HIGHBD_TAIL_SUFFIX); \
131
479
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
2.24k
                                               HIGHBD_DECL_SUFFIX) \
128
2.24k
{ \
129
2.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.24k
                   HIGHBD_TAIL_SUFFIX); \
131
2.24k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_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_flipadst_identity_16x8_c
Line
Count
Source
127
483
                                               HIGHBD_DECL_SUFFIX) \
128
483
{ \
129
483
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
483
                   HIGHBD_TAIL_SUFFIX); \
131
483
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
327
                                               HIGHBD_DECL_SUFFIX) \
128
327
{ \
129
327
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
327
                   HIGHBD_TAIL_SUFFIX); \
131
327
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
570
                                               HIGHBD_DECL_SUFFIX) \
128
570
{ \
129
570
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
570
                   HIGHBD_TAIL_SUFFIX); \
131
570
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
276
                                               HIGHBD_DECL_SUFFIX) \
128
276
{ \
129
276
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
276
                   HIGHBD_TAIL_SUFFIX); \
131
276
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
32.2k
                                               HIGHBD_DECL_SUFFIX) \
128
32.2k
{ \
129
32.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
32.2k
                   HIGHBD_TAIL_SUFFIX); \
131
32.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
3.72k
                                               HIGHBD_DECL_SUFFIX) \
128
3.72k
{ \
129
3.72k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.72k
                   HIGHBD_TAIL_SUFFIX); \
131
3.72k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
28.1k
                                               HIGHBD_DECL_SUFFIX) \
128
28.1k
{ \
129
28.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
28.1k
                   HIGHBD_TAIL_SUFFIX); \
131
28.1k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
21.4k
                                               HIGHBD_DECL_SUFFIX) \
128
21.4k
{ \
129
21.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.4k
                   HIGHBD_TAIL_SUFFIX); \
131
21.4k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
27.1k
                                               HIGHBD_DECL_SUFFIX) \
128
27.1k
{ \
129
27.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
27.1k
                   HIGHBD_TAIL_SUFFIX); \
131
27.1k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
207
                                               HIGHBD_DECL_SUFFIX) \
128
207
{ \
129
207
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
207
                   HIGHBD_TAIL_SUFFIX); \
131
207
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
312
                                               HIGHBD_DECL_SUFFIX) \
128
312
{ \
129
312
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
312
                   HIGHBD_TAIL_SUFFIX); \
131
312
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_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_dct_flipadst_16x16_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_flipadst_flipadst_16x16_c
Line
Count
Source
127
381
                                               HIGHBD_DECL_SUFFIX) \
128
381
{ \
129
381
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
381
                   HIGHBD_TAIL_SUFFIX); \
131
381
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_identity_dct_16x16_c
Line
Count
Source
127
239
                                               HIGHBD_DECL_SUFFIX) \
128
239
{ \
129
239
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
239
                   HIGHBD_TAIL_SUFFIX); \
131
239
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
14.4k
                                               HIGHBD_DECL_SUFFIX) \
128
14.4k
{ \
129
14.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.4k
                   HIGHBD_TAIL_SUFFIX); \
131
14.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
70
                                               HIGHBD_DECL_SUFFIX) \
128
70
{ \
129
70
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
70
                   HIGHBD_TAIL_SUFFIX); \
131
70
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
2.22k
                                               HIGHBD_DECL_SUFFIX) \
128
2.22k
{ \
129
2.22k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.22k
                   HIGHBD_TAIL_SUFFIX); \
131
2.22k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
17.6k
                                               HIGHBD_DECL_SUFFIX) \
128
17.6k
{ \
129
17.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.6k
                   HIGHBD_TAIL_SUFFIX); \
131
17.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
240
                                               HIGHBD_DECL_SUFFIX) \
128
240
{ \
129
240
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
240
                   HIGHBD_TAIL_SUFFIX); \
131
240
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
18.3k
                                               HIGHBD_DECL_SUFFIX) \
128
18.3k
{ \
129
18.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
18.3k
                   HIGHBD_TAIL_SUFFIX); \
131
18.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
56
                                               HIGHBD_DECL_SUFFIX) \
128
56
{ \
129
56
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
56
                   HIGHBD_TAIL_SUFFIX); \
131
56
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
129k
                                               HIGHBD_DECL_SUFFIX) \
128
129k
{ \
129
129k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
129k
                   HIGHBD_TAIL_SUFFIX); \
131
129k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
80
                                               HIGHBD_DECL_SUFFIX) \
128
80
{ \
129
80
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
80
                   HIGHBD_TAIL_SUFFIX); \
131
80
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
9.26k
                                               HIGHBD_DECL_SUFFIX) \
128
9.26k
{ \
129
9.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.26k
                   HIGHBD_TAIL_SUFFIX); \
131
9.26k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_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_dct_dct_64x32_c
Line
Count
Source
127
5.11k
                                               HIGHBD_DECL_SUFFIX) \
128
5.11k
{ \
129
5.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.11k
                   HIGHBD_TAIL_SUFFIX); \
131
5.11k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
48.1k
                                               HIGHBD_DECL_SUFFIX) \
128
48.1k
{ \
129
48.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
48.1k
                   HIGHBD_TAIL_SUFFIX); \
131
48.1k
}
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
166k
{
188
166k
    int32_t tmp[4 * 4], *c = tmp;
189
831k
    for (int y = 0; y < 4; y++, c += 4) {
190
3.32M
        for (int x = 0; x < 4; x++)
191
2.66M
            c[x] = coeff[y + x * 4] >> 2;
192
665k
        dav1d_inv_wht4_1d_c(c, 1);
193
665k
    }
194
166k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
831k
    for (int x = 0; x < 4; x++)
197
665k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
166k
    c = tmp;
200
831k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
3.32M
        for (int x = 0; x < 4; x++)
202
2.66M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
166k
}
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
5.12k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
5.12k
#define assign_itx_all_fn64(w, h, pfx) \
222
97.4k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
97.4k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
5.12k
#define assign_itx_all_fn32(w, h, pfx) \
226
71.8k
    assign_itx_all_fn64(w, h, pfx); \
227
71.8k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
71.8k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
5.12k
#define assign_itx_all_fn16(w, h, pfx) \
231
46.1k
    assign_itx_all_fn32(w, h, pfx); \
232
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
46.1k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
46.1k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
46.1k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
46.1k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
46.1k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
46.1k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
46.1k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
46.1k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
46.1k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
46.1k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
46.1k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
5.12k
#define assign_itx_all_fn84(w, h, pfx) \
254
41.0k
    assign_itx_all_fn16(w, h, pfx); \
255
41.0k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
41.0k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
41.0k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
41.0k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
41.0k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
41.0k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
41.0k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
41.0k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
5.12k
264
5.12k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
5.12k
  ARCH_AARCH64 || \
266
5.12k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
5.12k
))
268
5.12k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
5.12k
#endif
270
5.12k
    assign_itx_all_fn84( 4,  4, );
271
5.12k
    assign_itx_all_fn84( 4,  8, R);
272
5.12k
    assign_itx_all_fn84( 4, 16, R);
273
5.12k
    assign_itx_all_fn84( 8,  4, R);
274
5.12k
    assign_itx_all_fn84( 8,  8, );
275
5.12k
    assign_itx_all_fn84( 8, 16, R);
276
5.12k
    assign_itx_all_fn32( 8, 32, R);
277
5.12k
    assign_itx_all_fn84(16,  4, R);
278
5.12k
    assign_itx_all_fn84(16,  8, R);
279
5.12k
    assign_itx_all_fn16(16, 16, );
280
5.12k
    assign_itx_all_fn32(16, 32, R);
281
5.12k
    assign_itx_all_fn64(16, 64, R);
282
5.12k
    assign_itx_all_fn32(32,  8, R);
283
5.12k
    assign_itx_all_fn32(32, 16, R);
284
5.12k
    assign_itx_all_fn32(32, 32, );
285
5.12k
    assign_itx_all_fn64(32, 64, R);
286
5.12k
    assign_itx_all_fn64(64, 16, R);
287
5.12k
    assign_itx_all_fn64(64, 32, R);
288
5.12k
    assign_itx_all_fn64(64, 64, );
289
290
5.12k
    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
5.12k
    if (!all_simd)
310
5.12k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
5.12k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
2.71k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
2.71k
#define assign_itx_all_fn64(w, h, pfx) \
222
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
2.71k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
2.71k
#define assign_itx_all_fn32(w, h, pfx) \
226
2.71k
    assign_itx_all_fn64(w, h, pfx); \
227
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
2.71k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
2.71k
#define assign_itx_all_fn16(w, h, pfx) \
231
2.71k
    assign_itx_all_fn32(w, h, pfx); \
232
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
2.71k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
2.71k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
2.71k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
2.71k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
2.71k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
2.71k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
2.71k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
2.71k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
2.71k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
2.71k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
2.71k
#define assign_itx_all_fn84(w, h, pfx) \
254
2.71k
    assign_itx_all_fn16(w, h, pfx); \
255
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
2.71k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
2.71k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
2.71k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
2.71k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
2.71k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
2.71k
264
2.71k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
2.71k
  ARCH_AARCH64 || \
266
2.71k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
2.71k
))
268
2.71k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
2.71k
#endif
270
2.71k
    assign_itx_all_fn84( 4,  4, );
271
2.71k
    assign_itx_all_fn84( 4,  8, R);
272
2.71k
    assign_itx_all_fn84( 4, 16, R);
273
2.71k
    assign_itx_all_fn84( 8,  4, R);
274
2.71k
    assign_itx_all_fn84( 8,  8, );
275
2.71k
    assign_itx_all_fn84( 8, 16, R);
276
2.71k
    assign_itx_all_fn32( 8, 32, R);
277
2.71k
    assign_itx_all_fn84(16,  4, R);
278
2.71k
    assign_itx_all_fn84(16,  8, R);
279
2.71k
    assign_itx_all_fn16(16, 16, );
280
2.71k
    assign_itx_all_fn32(16, 32, R);
281
2.71k
    assign_itx_all_fn64(16, 64, R);
282
2.71k
    assign_itx_all_fn32(32,  8, R);
283
2.71k
    assign_itx_all_fn32(32, 16, R);
284
2.71k
    assign_itx_all_fn32(32, 32, );
285
2.71k
    assign_itx_all_fn64(32, 64, R);
286
2.71k
    assign_itx_all_fn64(64, 16, R);
287
2.71k
    assign_itx_all_fn64(64, 32, R);
288
2.71k
    assign_itx_all_fn64(64, 64, );
289
290
2.71k
    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
2.71k
    if (!all_simd)
310
2.71k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
2.71k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
2.41k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
2.41k
#define assign_itx_all_fn64(w, h, pfx) \
222
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
2.41k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
2.41k
#define assign_itx_all_fn32(w, h, pfx) \
226
2.41k
    assign_itx_all_fn64(w, h, pfx); \
227
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
2.41k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
2.41k
#define assign_itx_all_fn16(w, h, pfx) \
231
2.41k
    assign_itx_all_fn32(w, h, pfx); \
232
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
2.41k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
2.41k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
2.41k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
2.41k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
2.41k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
2.41k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
2.41k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
2.41k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
2.41k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
2.41k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
2.41k
#define assign_itx_all_fn84(w, h, pfx) \
254
2.41k
    assign_itx_all_fn16(w, h, pfx); \
255
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
2.41k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
2.41k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
2.41k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
2.41k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
2.41k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
2.41k
264
2.41k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
2.41k
  ARCH_AARCH64 || \
266
2.41k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
2.41k
))
268
2.41k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
2.41k
#endif
270
2.41k
    assign_itx_all_fn84( 4,  4, );
271
2.41k
    assign_itx_all_fn84( 4,  8, R);
272
2.41k
    assign_itx_all_fn84( 4, 16, R);
273
2.41k
    assign_itx_all_fn84( 8,  4, R);
274
2.41k
    assign_itx_all_fn84( 8,  8, );
275
2.41k
    assign_itx_all_fn84( 8, 16, R);
276
2.41k
    assign_itx_all_fn32( 8, 32, R);
277
2.41k
    assign_itx_all_fn84(16,  4, R);
278
2.41k
    assign_itx_all_fn84(16,  8, R);
279
2.41k
    assign_itx_all_fn16(16, 16, );
280
2.41k
    assign_itx_all_fn32(16, 32, R);
281
2.41k
    assign_itx_all_fn64(16, 64, R);
282
2.41k
    assign_itx_all_fn32(32,  8, R);
283
2.41k
    assign_itx_all_fn32(32, 16, R);
284
2.41k
    assign_itx_all_fn32(32, 32, );
285
2.41k
    assign_itx_all_fn64(32, 64, R);
286
2.41k
    assign_itx_all_fn64(64, 16, R);
287
2.41k
    assign_itx_all_fn64(64, 32, R);
288
2.41k
    assign_itx_all_fn64(64, 64, );
289
290
2.41k
    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
2.41k
    if (!all_simd)
310
2.41k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
2.41k
}