Coverage Report

Created: 2026-10-28 06:12

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
263k
{
48
263k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
263k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
263k
    const int has_dconly = txtp == DCT_DCT;
51
263k
    assert(w >= 4 && w <= 64);
52
263k
    assert(h >= 4 && h <= 64);
53
263k
    assert(eob >= 0);
54
55
263k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
263k
    const int rnd = (1 << shift) >> 1;
57
58
263k
    if (eob < has_dconly) {
59
58.4k
        int dc = coeff[0];
60
58.4k
        coeff[0] = 0;
61
58.4k
        if (is_rect2)
62
25.1k
            dc = (dc * 181 + 128) >> 8;
63
58.4k
        dc = (dc * 181 + 128) >> 8;
64
58.4k
        dc = (dc + rnd) >> shift;
65
58.4k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
2.13M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
90.6M
            for (int x = 0; x < w; x++)
68
88.5M
                dst[x] = iclip_pixel(dst[x] + dc);
69
58.4k
        return;
70
58.4k
    }
71
72
205k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
205k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
205k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
205k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
205k
#if BITDEPTH == 8
77
205k
    const int row_clip_min = INT16_MIN;
78
205k
    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
205k
    const int row_clip_max = ~row_clip_min;
84
205k
    const int col_clip_max = ~col_clip_min;
85
86
205k
    int32_t tmp[64 * 64], *c = tmp;
87
205k
    int last_nonzero_col; // in first 1d itx
88
205k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
16.6k
        last_nonzero_col = imin(sh - 1, eob);
90
188k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
8.82k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
179k
    } else {
93
179k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
179k
    }
95
205k
    assert(last_nonzero_col < sh);
96
1.24M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
1.03M
        if (is_rect2)
98
8.39M
            for (int x = 0; x < sw; x++)
99
7.87M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
514k
        else
101
7.21M
            for (int x = 0; x < sw; x++)
102
6.70M
                c[x] = coeff[y + x * sh];
103
1.03M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
1.03M
    }
105
205k
    if (last_nonzero_col + 1 < sh)
106
156k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
205k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
50.7M
    for (int i = 0; i < w * sh; i++)
110
50.5M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
2.85M
    for (int x = 0; x < w; x++)
113
2.64M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
205k
    c = tmp;
116
3.23M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
69.3M
        for (int x = 0; x < w; x++)
118
66.3M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
205k
}
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
263k
                                               HIGHBD_DECL_SUFFIX) \
128
263k
{ \
129
263k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
263k
                   HIGHBD_TAIL_SUFFIX); \
131
263k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
7.91k
                                               HIGHBD_DECL_SUFFIX) \
128
7.91k
{ \
129
7.91k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.91k
                   HIGHBD_TAIL_SUFFIX); \
131
7.91k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_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_adst_dct_4x4_c
Line
Count
Source
127
4.42k
                                               HIGHBD_DECL_SUFFIX) \
128
4.42k
{ \
129
4.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.42k
                   HIGHBD_TAIL_SUFFIX); \
131
4.42k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
3.75k
                                               HIGHBD_DECL_SUFFIX) \
128
3.75k
{ \
129
3.75k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.75k
                   HIGHBD_TAIL_SUFFIX); \
131
3.75k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
5.38k
                                               HIGHBD_DECL_SUFFIX) \
128
5.38k
{ \
129
5.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.38k
                   HIGHBD_TAIL_SUFFIX); \
131
5.38k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
676
                                               HIGHBD_DECL_SUFFIX) \
128
676
{ \
129
676
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
676
                   HIGHBD_TAIL_SUFFIX); \
131
676
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_c
Line
Count
Source
127
844
                                               HIGHBD_DECL_SUFFIX) \
128
844
{ \
129
844
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
844
                   HIGHBD_TAIL_SUFFIX); \
131
844
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
760
                                               HIGHBD_DECL_SUFFIX) \
128
760
{ \
129
760
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
760
                   HIGHBD_TAIL_SUFFIX); \
131
760
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
504
                                               HIGHBD_DECL_SUFFIX) \
128
504
{ \
129
504
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
504
                   HIGHBD_TAIL_SUFFIX); \
131
504
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
553
                                               HIGHBD_DECL_SUFFIX) \
128
553
{ \
129
553
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
553
                   HIGHBD_TAIL_SUFFIX); \
131
553
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
1.89k
                                               HIGHBD_DECL_SUFFIX) \
128
1.89k
{ \
129
1.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.89k
                   HIGHBD_TAIL_SUFFIX); \
131
1.89k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
999
                                               HIGHBD_DECL_SUFFIX) \
128
999
{ \
129
999
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
999
                   HIGHBD_TAIL_SUFFIX); \
131
999
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
1.01k
                                               HIGHBD_DECL_SUFFIX) \
128
1.01k
{ \
129
1.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.01k
                   HIGHBD_TAIL_SUFFIX); \
131
1.01k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
537
                                               HIGHBD_DECL_SUFFIX) \
128
537
{ \
129
537
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
537
                   HIGHBD_TAIL_SUFFIX); \
131
537
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
1.35k
                                               HIGHBD_DECL_SUFFIX) \
128
1.35k
{ \
129
1.35k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.35k
                   HIGHBD_TAIL_SUFFIX); \
131
1.35k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
746
                                               HIGHBD_DECL_SUFFIX) \
128
746
{ \
129
746
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
746
                   HIGHBD_TAIL_SUFFIX); \
131
746
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_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_identity_identity_4x8_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_adst_dct_4x8_c
Line
Count
Source
127
2.27k
                                               HIGHBD_DECL_SUFFIX) \
128
2.27k
{ \
129
2.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.27k
                   HIGHBD_TAIL_SUFFIX); \
131
2.27k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
1.92k
                                               HIGHBD_DECL_SUFFIX) \
128
1.92k
{ \
129
1.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.92k
                   HIGHBD_TAIL_SUFFIX); \
131
1.92k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
2.77k
                                               HIGHBD_DECL_SUFFIX) \
128
2.77k
{ \
129
2.77k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.77k
                   HIGHBD_TAIL_SUFFIX); \
131
2.77k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
302
                                               HIGHBD_DECL_SUFFIX) \
128
302
{ \
129
302
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
302
                   HIGHBD_TAIL_SUFFIX); \
131
302
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
347
                                               HIGHBD_DECL_SUFFIX) \
128
347
{ \
129
347
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
347
                   HIGHBD_TAIL_SUFFIX); \
131
347
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
317
                                               HIGHBD_DECL_SUFFIX) \
128
317
{ \
129
317
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
317
                   HIGHBD_TAIL_SUFFIX); \
131
317
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
281
                                               HIGHBD_DECL_SUFFIX) \
128
281
{ \
129
281
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
281
                   HIGHBD_TAIL_SUFFIX); \
131
281
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
243
                                               HIGHBD_DECL_SUFFIX) \
128
243
{ \
129
243
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
243
                   HIGHBD_TAIL_SUFFIX); \
131
243
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
1.12k
                                               HIGHBD_DECL_SUFFIX) \
128
1.12k
{ \
129
1.12k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.12k
                   HIGHBD_TAIL_SUFFIX); \
131
1.12k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
560
                                               HIGHBD_DECL_SUFFIX) \
128
560
{ \
129
560
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
560
                   HIGHBD_TAIL_SUFFIX); \
131
560
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_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_identity_flipadst_4x8_c
Line
Count
Source
127
220
                                               HIGHBD_DECL_SUFFIX) \
128
220
{ \
129
220
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
220
                   HIGHBD_TAIL_SUFFIX); \
131
220
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_c
Line
Count
Source
127
569
                                               HIGHBD_DECL_SUFFIX) \
128
569
{ \
129
569
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
569
                   HIGHBD_TAIL_SUFFIX); \
131
569
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
349
                                               HIGHBD_DECL_SUFFIX) \
128
349
{ \
129
349
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
349
                   HIGHBD_TAIL_SUFFIX); \
131
349
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
1.08k
                                               HIGHBD_DECL_SUFFIX) \
128
1.08k
{ \
129
1.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.08k
                   HIGHBD_TAIL_SUFFIX); \
131
1.08k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
438
                                               HIGHBD_DECL_SUFFIX) \
128
438
{ \
129
438
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
438
                   HIGHBD_TAIL_SUFFIX); \
131
438
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
531
                                               HIGHBD_DECL_SUFFIX) \
128
531
{ \
129
531
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
531
                   HIGHBD_TAIL_SUFFIX); \
131
531
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
387
                                               HIGHBD_DECL_SUFFIX) \
128
387
{ \
129
387
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
387
                   HIGHBD_TAIL_SUFFIX); \
131
387
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
538
                                               HIGHBD_DECL_SUFFIX) \
128
538
{ \
129
538
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
538
                   HIGHBD_TAIL_SUFFIX); \
131
538
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
68
                                               HIGHBD_DECL_SUFFIX) \
128
68
{ \
129
68
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
68
                   HIGHBD_TAIL_SUFFIX); \
131
68
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
65
                                               HIGHBD_DECL_SUFFIX) \
128
65
{ \
129
65
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
65
                   HIGHBD_TAIL_SUFFIX); \
131
65
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
94
                                               HIGHBD_DECL_SUFFIX) \
128
94
{ \
129
94
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
94
                   HIGHBD_TAIL_SUFFIX); \
131
94
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
65
                                               HIGHBD_DECL_SUFFIX) \
128
65
{ \
129
65
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
65
                   HIGHBD_TAIL_SUFFIX); \
131
65
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
51
                                               HIGHBD_DECL_SUFFIX) \
128
51
{ \
129
51
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
51
                   HIGHBD_TAIL_SUFFIX); \
131
51
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
231
                                               HIGHBD_DECL_SUFFIX) \
128
231
{ \
129
231
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
231
                   HIGHBD_TAIL_SUFFIX); \
131
231
}
itx_tmpl.c:inv_txfm_add_identity_dct_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_flipadst_identity_4x16_c
Line
Count
Source
127
96
                                               HIGHBD_DECL_SUFFIX) \
128
96
{ \
129
96
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
96
                   HIGHBD_TAIL_SUFFIX); \
131
96
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
66
                                               HIGHBD_DECL_SUFFIX) \
128
66
{ \
129
66
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
66
                   HIGHBD_TAIL_SUFFIX); \
131
66
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_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_identity_adst_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_dct_dct_8x4_c
Line
Count
Source
127
3.78k
                                               HIGHBD_DECL_SUFFIX) \
128
3.78k
{ \
129
3.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.78k
                   HIGHBD_TAIL_SUFFIX); \
131
3.78k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
1.96k
                                               HIGHBD_DECL_SUFFIX) \
128
1.96k
{ \
129
1.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.96k
                   HIGHBD_TAIL_SUFFIX); \
131
1.96k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
2.59k
                                               HIGHBD_DECL_SUFFIX) \
128
2.59k
{ \
129
2.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.59k
                   HIGHBD_TAIL_SUFFIX); \
131
2.59k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
2.18k
                                               HIGHBD_DECL_SUFFIX) \
128
2.18k
{ \
129
2.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.18k
                   HIGHBD_TAIL_SUFFIX); \
131
2.18k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
3.37k
                                               HIGHBD_DECL_SUFFIX) \
128
3.37k
{ \
129
3.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.37k
                   HIGHBD_TAIL_SUFFIX); \
131
3.37k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
341
                                               HIGHBD_DECL_SUFFIX) \
128
341
{ \
129
341
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
341
                   HIGHBD_TAIL_SUFFIX); \
131
341
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
391
                                               HIGHBD_DECL_SUFFIX) \
128
391
{ \
129
391
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
391
                   HIGHBD_TAIL_SUFFIX); \
131
391
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
364
                                               HIGHBD_DECL_SUFFIX) \
128
364
{ \
129
364
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
364
                   HIGHBD_TAIL_SUFFIX); \
131
364
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
284
                                               HIGHBD_DECL_SUFFIX) \
128
284
{ \
129
284
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
284
                   HIGHBD_TAIL_SUFFIX); \
131
284
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
241
                                               HIGHBD_DECL_SUFFIX) \
128
241
{ \
129
241
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
241
                   HIGHBD_TAIL_SUFFIX); \
131
241
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
1.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_identity_dct_8x4_c
Line
Count
Source
127
696
                                               HIGHBD_DECL_SUFFIX) \
128
696
{ \
129
696
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
696
                   HIGHBD_TAIL_SUFFIX); \
131
696
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_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_8x4_c
Line
Count
Source
127
340
                                               HIGHBD_DECL_SUFFIX) \
128
340
{ \
129
340
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
340
                   HIGHBD_TAIL_SUFFIX); \
131
340
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
671
                                               HIGHBD_DECL_SUFFIX) \
128
671
{ \
129
671
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
671
                   HIGHBD_TAIL_SUFFIX); \
131
671
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
349
                                               HIGHBD_DECL_SUFFIX) \
128
349
{ \
129
349
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
349
                   HIGHBD_TAIL_SUFFIX); \
131
349
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
10.4k
                                               HIGHBD_DECL_SUFFIX) \
128
10.4k
{ \
129
10.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.4k
                   HIGHBD_TAIL_SUFFIX); \
131
10.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
3.26k
                                               HIGHBD_DECL_SUFFIX) \
128
3.26k
{ \
129
3.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.26k
                   HIGHBD_TAIL_SUFFIX); \
131
3.26k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
5.85k
                                               HIGHBD_DECL_SUFFIX) \
128
5.85k
{ \
129
5.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.85k
                   HIGHBD_TAIL_SUFFIX); \
131
5.85k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
4.89k
                                               HIGHBD_DECL_SUFFIX) \
128
4.89k
{ \
129
4.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.89k
                   HIGHBD_TAIL_SUFFIX); \
131
4.89k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
5.08k
                                               HIGHBD_DECL_SUFFIX) \
128
5.08k
{ \
129
5.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.08k
                   HIGHBD_TAIL_SUFFIX); \
131
5.08k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
707
                                               HIGHBD_DECL_SUFFIX) \
128
707
{ \
129
707
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
707
                   HIGHBD_TAIL_SUFFIX); \
131
707
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
703
                                               HIGHBD_DECL_SUFFIX) \
128
703
{ \
129
703
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
703
                   HIGHBD_TAIL_SUFFIX); \
131
703
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
991
                                               HIGHBD_DECL_SUFFIX) \
128
991
{ \
129
991
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
991
                   HIGHBD_TAIL_SUFFIX); \
131
991
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_c
Line
Count
Source
127
860
                                               HIGHBD_DECL_SUFFIX) \
128
860
{ \
129
860
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
860
                   HIGHBD_TAIL_SUFFIX); \
131
860
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
725
                                               HIGHBD_DECL_SUFFIX) \
128
725
{ \
129
725
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
725
                   HIGHBD_TAIL_SUFFIX); \
131
725
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
1.79k
                                               HIGHBD_DECL_SUFFIX) \
128
1.79k
{ \
129
1.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.79k
                   HIGHBD_TAIL_SUFFIX); \
131
1.79k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
946
                                               HIGHBD_DECL_SUFFIX) \
128
946
{ \
129
946
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
946
                   HIGHBD_TAIL_SUFFIX); \
131
946
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
685
                                               HIGHBD_DECL_SUFFIX) \
128
685
{ \
129
685
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
685
                   HIGHBD_TAIL_SUFFIX); \
131
685
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
299
                                               HIGHBD_DECL_SUFFIX) \
128
299
{ \
129
299
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
299
                   HIGHBD_TAIL_SUFFIX); \
131
299
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
832
                                               HIGHBD_DECL_SUFFIX) \
128
832
{ \
129
832
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
832
                   HIGHBD_TAIL_SUFFIX); \
131
832
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
389
                                               HIGHBD_DECL_SUFFIX) \
128
389
{ \
129
389
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
389
                   HIGHBD_TAIL_SUFFIX); \
131
389
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
6.97k
                                               HIGHBD_DECL_SUFFIX) \
128
6.97k
{ \
129
6.97k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.97k
                   HIGHBD_TAIL_SUFFIX); \
131
6.97k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
1.48k
                                               HIGHBD_DECL_SUFFIX) \
128
1.48k
{ \
129
1.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.48k
                   HIGHBD_TAIL_SUFFIX); \
131
1.48k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
3.67k
                                               HIGHBD_DECL_SUFFIX) \
128
3.67k
{ \
129
3.67k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.67k
                   HIGHBD_TAIL_SUFFIX); \
131
3.67k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
2.84k
                                               HIGHBD_DECL_SUFFIX) \
128
2.84k
{ \
129
2.84k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.84k
                   HIGHBD_TAIL_SUFFIX); \
131
2.84k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
3.23k
                                               HIGHBD_DECL_SUFFIX) \
128
3.23k
{ \
129
3.23k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.23k
                   HIGHBD_TAIL_SUFFIX); \
131
3.23k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
435
                                               HIGHBD_DECL_SUFFIX) \
128
435
{ \
129
435
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
435
                   HIGHBD_TAIL_SUFFIX); \
131
435
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
417
                                               HIGHBD_DECL_SUFFIX) \
128
417
{ \
129
417
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
417
                   HIGHBD_TAIL_SUFFIX); \
131
417
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
561
                                               HIGHBD_DECL_SUFFIX) \
128
561
{ \
129
561
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
561
                   HIGHBD_TAIL_SUFFIX); \
131
561
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
517
                                               HIGHBD_DECL_SUFFIX) \
128
517
{ \
129
517
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
517
                   HIGHBD_TAIL_SUFFIX); \
131
517
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
517
                                               HIGHBD_DECL_SUFFIX) \
128
517
{ \
129
517
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
517
                   HIGHBD_TAIL_SUFFIX); \
131
517
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
1.19k
                                               HIGHBD_DECL_SUFFIX) \
128
1.19k
{ \
129
1.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.19k
                   HIGHBD_TAIL_SUFFIX); \
131
1.19k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
600
                                               HIGHBD_DECL_SUFFIX) \
128
600
{ \
129
600
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
600
                   HIGHBD_TAIL_SUFFIX); \
131
600
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
482
                                               HIGHBD_DECL_SUFFIX) \
128
482
{ \
129
482
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
482
                   HIGHBD_TAIL_SUFFIX); \
131
482
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
208
                                               HIGHBD_DECL_SUFFIX) \
128
208
{ \
129
208
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
208
                   HIGHBD_TAIL_SUFFIX); \
131
208
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
546
                                               HIGHBD_DECL_SUFFIX) \
128
546
{ \
129
546
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
546
                   HIGHBD_TAIL_SUFFIX); \
131
546
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
252
                                               HIGHBD_DECL_SUFFIX) \
128
252
{ \
129
252
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
252
                   HIGHBD_TAIL_SUFFIX); \
131
252
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
2.11k
                                               HIGHBD_DECL_SUFFIX) \
128
2.11k
{ \
129
2.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.11k
                   HIGHBD_TAIL_SUFFIX); \
131
2.11k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
187
                                               HIGHBD_DECL_SUFFIX) \
128
187
{ \
129
187
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
187
                   HIGHBD_TAIL_SUFFIX); \
131
187
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
856
                                               HIGHBD_DECL_SUFFIX) \
128
856
{ \
129
856
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
856
                   HIGHBD_TAIL_SUFFIX); \
131
856
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
450
                                               HIGHBD_DECL_SUFFIX) \
128
450
{ \
129
450
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
450
                   HIGHBD_TAIL_SUFFIX); \
131
450
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
563
                                               HIGHBD_DECL_SUFFIX) \
128
563
{ \
129
563
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
563
                   HIGHBD_TAIL_SUFFIX); \
131
563
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
491
                                               HIGHBD_DECL_SUFFIX) \
128
491
{ \
129
491
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
491
                   HIGHBD_TAIL_SUFFIX); \
131
491
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
704
                                               HIGHBD_DECL_SUFFIX) \
128
704
{ \
129
704
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
704
                   HIGHBD_TAIL_SUFFIX); \
131
704
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
57
                                               HIGHBD_DECL_SUFFIX) \
128
57
{ \
129
57
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
57
                   HIGHBD_TAIL_SUFFIX); \
131
57
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
82
                                               HIGHBD_DECL_SUFFIX) \
128
82
{ \
129
82
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
82
                   HIGHBD_TAIL_SUFFIX); \
131
82
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
83
                                               HIGHBD_DECL_SUFFIX) \
128
83
{ \
129
83
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
83
                   HIGHBD_TAIL_SUFFIX); \
131
83
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
63
                                               HIGHBD_DECL_SUFFIX) \
128
63
{ \
129
63
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
63
                   HIGHBD_TAIL_SUFFIX); \
131
63
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_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_16x4_c
Line
Count
Source
127
213
                                               HIGHBD_DECL_SUFFIX) \
128
213
{ \
129
213
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
213
                   HIGHBD_TAIL_SUFFIX); \
131
213
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
133
                                               HIGHBD_DECL_SUFFIX) \
128
133
{ \
129
133
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
133
                   HIGHBD_TAIL_SUFFIX); \
131
133
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
85
                                               HIGHBD_DECL_SUFFIX) \
128
85
{ \
129
85
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
85
                   HIGHBD_TAIL_SUFFIX); \
131
85
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
61
                                               HIGHBD_DECL_SUFFIX) \
128
61
{ \
129
61
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
61
                   HIGHBD_TAIL_SUFFIX); \
131
61
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
141
                                               HIGHBD_DECL_SUFFIX) \
128
141
{ \
129
141
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
141
                   HIGHBD_TAIL_SUFFIX); \
131
141
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
69
                                               HIGHBD_DECL_SUFFIX) \
128
69
{ \
129
69
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
69
                   HIGHBD_TAIL_SUFFIX); \
131
69
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
3.88k
                                               HIGHBD_DECL_SUFFIX) \
128
3.88k
{ \
129
3.88k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.88k
                   HIGHBD_TAIL_SUFFIX); \
131
3.88k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
893
                                               HIGHBD_DECL_SUFFIX) \
128
893
{ \
129
893
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
893
                   HIGHBD_TAIL_SUFFIX); \
131
893
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
1.89k
                                               HIGHBD_DECL_SUFFIX) \
128
1.89k
{ \
129
1.89k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.89k
                   HIGHBD_TAIL_SUFFIX); \
131
1.89k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
1.49k
                                               HIGHBD_DECL_SUFFIX) \
128
1.49k
{ \
129
1.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.49k
                   HIGHBD_TAIL_SUFFIX); \
131
1.49k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
1.86k
                                               HIGHBD_DECL_SUFFIX) \
128
1.86k
{ \
129
1.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.86k
                   HIGHBD_TAIL_SUFFIX); \
131
1.86k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
247
                                               HIGHBD_DECL_SUFFIX) \
128
247
{ \
129
247
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
247
                   HIGHBD_TAIL_SUFFIX); \
131
247
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
190
                                               HIGHBD_DECL_SUFFIX) \
128
190
{ \
129
190
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
190
                   HIGHBD_TAIL_SUFFIX); \
131
190
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
241
                                               HIGHBD_DECL_SUFFIX) \
128
241
{ \
129
241
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
241
                   HIGHBD_TAIL_SUFFIX); \
131
241
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
220
                                               HIGHBD_DECL_SUFFIX) \
128
220
{ \
129
220
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
220
                   HIGHBD_TAIL_SUFFIX); \
131
220
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
172
                                               HIGHBD_DECL_SUFFIX) \
128
172
{ \
129
172
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
172
                   HIGHBD_TAIL_SUFFIX); \
131
172
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
594
                                               HIGHBD_DECL_SUFFIX) \
128
594
{ \
129
594
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
594
                   HIGHBD_TAIL_SUFFIX); \
131
594
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
320
                                               HIGHBD_DECL_SUFFIX) \
128
320
{ \
129
320
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
320
                   HIGHBD_TAIL_SUFFIX); \
131
320
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
179
                                               HIGHBD_DECL_SUFFIX) \
128
179
{ \
129
179
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
179
                   HIGHBD_TAIL_SUFFIX); \
131
179
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
93
                                               HIGHBD_DECL_SUFFIX) \
128
93
{ \
129
93
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
93
                   HIGHBD_TAIL_SUFFIX); \
131
93
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_c
Line
Count
Source
127
209
                                               HIGHBD_DECL_SUFFIX) \
128
209
{ \
129
209
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
209
                   HIGHBD_TAIL_SUFFIX); \
131
209
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
108
                                               HIGHBD_DECL_SUFFIX) \
128
108
{ \
129
108
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
108
                   HIGHBD_TAIL_SUFFIX); \
131
108
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
5.74k
                                               HIGHBD_DECL_SUFFIX) \
128
5.74k
{ \
129
5.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.74k
                   HIGHBD_TAIL_SUFFIX); \
131
5.74k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
643
                                               HIGHBD_DECL_SUFFIX) \
128
643
{ \
129
643
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
643
                   HIGHBD_TAIL_SUFFIX); \
131
643
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
4.26k
                                               HIGHBD_DECL_SUFFIX) \
128
4.26k
{ \
129
4.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.26k
                   HIGHBD_TAIL_SUFFIX); \
131
4.26k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
3.69k
                                               HIGHBD_DECL_SUFFIX) \
128
3.69k
{ \
129
3.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.69k
                   HIGHBD_TAIL_SUFFIX); \
131
3.69k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
4.10k
                                               HIGHBD_DECL_SUFFIX) \
128
4.10k
{ \
129
4.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.10k
                   HIGHBD_TAIL_SUFFIX); \
131
4.10k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
247
                                               HIGHBD_DECL_SUFFIX) \
128
247
{ \
129
247
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
247
                   HIGHBD_TAIL_SUFFIX); \
131
247
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
292
                                               HIGHBD_DECL_SUFFIX) \
128
292
{ \
129
292
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
292
                   HIGHBD_TAIL_SUFFIX); \
131
292
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
358
                                               HIGHBD_DECL_SUFFIX) \
128
358
{ \
129
358
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
358
                   HIGHBD_TAIL_SUFFIX); \
131
358
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
371
                                               HIGHBD_DECL_SUFFIX) \
128
371
{ \
129
371
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
371
                   HIGHBD_TAIL_SUFFIX); \
131
371
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
233
                                               HIGHBD_DECL_SUFFIX) \
128
233
{ \
129
233
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
233
                   HIGHBD_TAIL_SUFFIX); \
131
233
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_c
Line
Count
Source
127
345
                                               HIGHBD_DECL_SUFFIX) \
128
345
{ \
129
345
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
345
                   HIGHBD_TAIL_SUFFIX); \
131
345
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_c
Line
Count
Source
127
263
                                               HIGHBD_DECL_SUFFIX) \
128
263
{ \
129
263
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
263
                   HIGHBD_TAIL_SUFFIX); \
131
263
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
19.0k
                                               HIGHBD_DECL_SUFFIX) \
128
19.0k
{ \
129
19.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.0k
                   HIGHBD_TAIL_SUFFIX); \
131
19.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
355
                                               HIGHBD_DECL_SUFFIX) \
128
355
{ \
129
355
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
355
                   HIGHBD_TAIL_SUFFIX); \
131
355
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
401
                                               HIGHBD_DECL_SUFFIX) \
128
401
{ \
129
401
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
401
                   HIGHBD_TAIL_SUFFIX); \
131
401
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_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_identity_identity_32x8_c
Line
Count
Source
127
41
                                               HIGHBD_DECL_SUFFIX) \
128
41
{ \
129
41
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
41
                   HIGHBD_TAIL_SUFFIX); \
131
41
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
8.86k
                                               HIGHBD_DECL_SUFFIX) \
128
8.86k
{ \
129
8.86k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.86k
                   HIGHBD_TAIL_SUFFIX); \
131
8.86k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_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_dct_dct_32x32_c
Line
Count
Source
127
19.8k
                                               HIGHBD_DECL_SUFFIX) \
128
19.8k
{ \
129
19.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.8k
                   HIGHBD_TAIL_SUFFIX); \
131
19.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
40
                                               HIGHBD_DECL_SUFFIX) \
128
40
{ \
129
40
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
40
                   HIGHBD_TAIL_SUFFIX); \
131
40
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_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_dct_dct_64x16_c
Line
Count
Source
127
441
                                               HIGHBD_DECL_SUFFIX) \
128
441
{ \
129
441
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
441
                   HIGHBD_TAIL_SUFFIX); \
131
441
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
6.38k
                                               HIGHBD_DECL_SUFFIX) \
128
6.38k
{ \
129
6.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.38k
                   HIGHBD_TAIL_SUFFIX); \
131
6.38k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
15.6k
                                               HIGHBD_DECL_SUFFIX) \
128
15.6k
{ \
129
15.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.6k
                   HIGHBD_TAIL_SUFFIX); \
131
15.6k
}
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
79.4k
{
188
79.4k
    int32_t tmp[4 * 4], *c = tmp;
189
397k
    for (int y = 0; y < 4; y++, c += 4) {
190
1.58M
        for (int x = 0; x < 4; x++)
191
1.27M
            c[x] = coeff[y + x * 4] >> 2;
192
317k
        dav1d_inv_wht4_1d_c(c, 1);
193
317k
    }
194
79.4k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
397k
    for (int x = 0; x < 4; x++)
197
317k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
79.4k
    c = tmp;
200
397k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
1.58M
        for (int x = 0; x < 4; x++)
202
1.27M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
79.4k
}
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
16.6k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
16.6k
#define assign_itx_all_fn64(w, h, pfx) \
222
316k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
316k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
16.6k
#define assign_itx_all_fn32(w, h, pfx) \
226
232k
    assign_itx_all_fn64(w, h, pfx); \
227
232k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
232k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
16.6k
#define assign_itx_all_fn16(w, h, pfx) \
231
149k
    assign_itx_all_fn32(w, h, pfx); \
232
149k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
149k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
149k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
149k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
149k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
149k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
149k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
149k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
149k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
149k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
149k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
149k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
149k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
149k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
149k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
149k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
149k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
149k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
149k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
149k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
16.6k
#define assign_itx_all_fn84(w, h, pfx) \
254
133k
    assign_itx_all_fn16(w, h, pfx); \
255
133k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
133k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
133k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
133k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
133k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
133k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
133k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
133k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
16.6k
264
16.6k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
16.6k
  ARCH_AARCH64 || \
266
16.6k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
16.6k
))
268
16.6k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
16.6k
#endif
270
16.6k
    assign_itx_all_fn84( 4,  4, );
271
16.6k
    assign_itx_all_fn84( 4,  8, R);
272
16.6k
    assign_itx_all_fn84( 4, 16, R);
273
16.6k
    assign_itx_all_fn84( 8,  4, R);
274
16.6k
    assign_itx_all_fn84( 8,  8, );
275
16.6k
    assign_itx_all_fn84( 8, 16, R);
276
16.6k
    assign_itx_all_fn32( 8, 32, R);
277
16.6k
    assign_itx_all_fn84(16,  4, R);
278
16.6k
    assign_itx_all_fn84(16,  8, R);
279
16.6k
    assign_itx_all_fn16(16, 16, );
280
16.6k
    assign_itx_all_fn32(16, 32, R);
281
16.6k
    assign_itx_all_fn64(16, 64, R);
282
16.6k
    assign_itx_all_fn32(32,  8, R);
283
16.6k
    assign_itx_all_fn32(32, 16, R);
284
16.6k
    assign_itx_all_fn32(32, 32, );
285
16.6k
    assign_itx_all_fn64(32, 64, R);
286
16.6k
    assign_itx_all_fn64(64, 16, R);
287
16.6k
    assign_itx_all_fn64(64, 32, R);
288
16.6k
    assign_itx_all_fn64(64, 64, );
289
290
16.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
16.6k
    if (!all_simd)
310
16.6k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
16.6k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
8.14k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
8.14k
#define assign_itx_all_fn64(w, h, pfx) \
222
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
8.14k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
8.14k
#define assign_itx_all_fn32(w, h, pfx) \
226
8.14k
    assign_itx_all_fn64(w, h, pfx); \
227
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
8.14k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
8.14k
#define assign_itx_all_fn16(w, h, pfx) \
231
8.14k
    assign_itx_all_fn32(w, h, pfx); \
232
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
8.14k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
8.14k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
8.14k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
8.14k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
8.14k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
8.14k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
8.14k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
8.14k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
8.14k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
8.14k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
8.14k
#define assign_itx_all_fn84(w, h, pfx) \
254
8.14k
    assign_itx_all_fn16(w, h, pfx); \
255
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
8.14k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
8.14k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
8.14k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
8.14k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
8.14k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
8.14k
264
8.14k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
8.14k
  ARCH_AARCH64 || \
266
8.14k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
8.14k
))
268
8.14k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
8.14k
#endif
270
8.14k
    assign_itx_all_fn84( 4,  4, );
271
8.14k
    assign_itx_all_fn84( 4,  8, R);
272
8.14k
    assign_itx_all_fn84( 4, 16, R);
273
8.14k
    assign_itx_all_fn84( 8,  4, R);
274
8.14k
    assign_itx_all_fn84( 8,  8, );
275
8.14k
    assign_itx_all_fn84( 8, 16, R);
276
8.14k
    assign_itx_all_fn32( 8, 32, R);
277
8.14k
    assign_itx_all_fn84(16,  4, R);
278
8.14k
    assign_itx_all_fn84(16,  8, R);
279
8.14k
    assign_itx_all_fn16(16, 16, );
280
8.14k
    assign_itx_all_fn32(16, 32, R);
281
8.14k
    assign_itx_all_fn64(16, 64, R);
282
8.14k
    assign_itx_all_fn32(32,  8, R);
283
8.14k
    assign_itx_all_fn32(32, 16, R);
284
8.14k
    assign_itx_all_fn32(32, 32, );
285
8.14k
    assign_itx_all_fn64(32, 64, R);
286
8.14k
    assign_itx_all_fn64(64, 16, R);
287
8.14k
    assign_itx_all_fn64(64, 32, R);
288
8.14k
    assign_itx_all_fn64(64, 64, );
289
290
8.14k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
8.14k
    if (!all_simd)
310
8.14k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
8.14k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
8.49k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
8.49k
#define assign_itx_all_fn64(w, h, pfx) \
222
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
8.49k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
8.49k
#define assign_itx_all_fn32(w, h, pfx) \
226
8.49k
    assign_itx_all_fn64(w, h, pfx); \
227
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
8.49k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
8.49k
#define assign_itx_all_fn16(w, h, pfx) \
231
8.49k
    assign_itx_all_fn32(w, h, pfx); \
232
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
8.49k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
8.49k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
8.49k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
8.49k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
8.49k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
8.49k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
8.49k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
8.49k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
8.49k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
8.49k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
8.49k
#define assign_itx_all_fn84(w, h, pfx) \
254
8.49k
    assign_itx_all_fn16(w, h, pfx); \
255
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
8.49k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
8.49k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
8.49k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
8.49k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
8.49k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
8.49k
264
8.49k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
8.49k
  ARCH_AARCH64 || \
266
8.49k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
8.49k
))
268
8.49k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
8.49k
#endif
270
8.49k
    assign_itx_all_fn84( 4,  4, );
271
8.49k
    assign_itx_all_fn84( 4,  8, R);
272
8.49k
    assign_itx_all_fn84( 4, 16, R);
273
8.49k
    assign_itx_all_fn84( 8,  4, R);
274
8.49k
    assign_itx_all_fn84( 8,  8, );
275
8.49k
    assign_itx_all_fn84( 8, 16, R);
276
8.49k
    assign_itx_all_fn32( 8, 32, R);
277
8.49k
    assign_itx_all_fn84(16,  4, R);
278
8.49k
    assign_itx_all_fn84(16,  8, R);
279
8.49k
    assign_itx_all_fn16(16, 16, );
280
8.49k
    assign_itx_all_fn32(16, 32, R);
281
8.49k
    assign_itx_all_fn64(16, 64, R);
282
8.49k
    assign_itx_all_fn32(32,  8, R);
283
8.49k
    assign_itx_all_fn32(32, 16, R);
284
8.49k
    assign_itx_all_fn32(32, 32, );
285
8.49k
    assign_itx_all_fn64(32, 64, R);
286
8.49k
    assign_itx_all_fn64(64, 16, R);
287
8.49k
    assign_itx_all_fn64(64, 32, R);
288
8.49k
    assign_itx_all_fn64(64, 64, );
289
290
8.49k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
8.49k
    if (!all_simd)
310
8.49k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
8.49k
}