Coverage Report

Created: 2026-06-15 06:22

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
210k
{
48
210k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
210k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
210k
    const int has_dconly = txtp == DCT_DCT;
51
210k
    assert(w >= 4 && w <= 64);
52
210k
    assert(h >= 4 && h <= 64);
53
210k
    assert(eob >= 0);
54
55
210k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
210k
    const int rnd = (1 << shift) >> 1;
57
58
210k
    if (eob < has_dconly) {
59
81.6k
        int dc = coeff[0];
60
81.6k
        coeff[0] = 0;
61
81.6k
        if (is_rect2)
62
21.8k
            dc = (dc * 181 + 128) >> 8;
63
81.6k
        dc = (dc * 181 + 128) >> 8;
64
81.6k
        dc = (dc + rnd) >> shift;
65
81.6k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
2.88M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
108M
            for (int x = 0; x < w; x++)
68
105M
                dst[x] = iclip_pixel(dst[x] + dc);
69
81.6k
        return;
70
81.6k
    }
71
72
128k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
128k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
128k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
128k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
128k
#if BITDEPTH == 8
77
128k
    const int row_clip_min = INT16_MIN;
78
128k
    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
128k
    const int row_clip_max = ~row_clip_min;
84
128k
    const int col_clip_max = ~col_clip_min;
85
86
128k
    int32_t tmp[64 * 64], *c = tmp;
87
128k
    int last_nonzero_col; // in first 1d itx
88
128k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
9.57k
        last_nonzero_col = imin(sh - 1, eob);
90
119k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
5.57k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
113k
    } else {
93
113k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
113k
    }
95
128k
    assert(last_nonzero_col < sh);
96
719k
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
590k
        if (is_rect2)
98
5.20M
            for (int x = 0; x < sw; x++)
99
4.91M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
296k
        else
101
4.89M
            for (int x = 0; x < sw; x++)
102
4.60M
                c[x] = coeff[y + x * sh];
103
590k
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
590k
    }
105
128k
    if (last_nonzero_col + 1 < sh)
106
104k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
128k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
36.6M
    for (int i = 0; i < w * sh; i++)
110
36.4M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
2.01M
    for (int x = 0; x < w; x++)
113
1.88M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
128k
    c = tmp;
116
2.04M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
48.3M
        for (int x = 0; x < w; x++)
118
46.4M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
128k
}
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
210k
                                               HIGHBD_DECL_SUFFIX) \
128
210k
{ \
129
210k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
210k
                   HIGHBD_TAIL_SUFFIX); \
131
210k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
3.71k
                                               HIGHBD_DECL_SUFFIX) \
128
3.71k
{ \
129
3.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.71k
                   HIGHBD_TAIL_SUFFIX); \
131
3.71k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
1.78k
                                               HIGHBD_DECL_SUFFIX) \
128
1.78k
{ \
129
1.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.78k
                   HIGHBD_TAIL_SUFFIX); \
131
1.78k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
2.85k
                                               HIGHBD_DECL_SUFFIX) \
128
2.85k
{ \
129
2.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.85k
                   HIGHBD_TAIL_SUFFIX); \
131
2.85k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
2.37k
                                               HIGHBD_DECL_SUFFIX) \
128
2.37k
{ \
129
2.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.37k
                   HIGHBD_TAIL_SUFFIX); \
131
2.37k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
3.28k
                                               HIGHBD_DECL_SUFFIX) \
128
3.28k
{ \
129
3.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.28k
                   HIGHBD_TAIL_SUFFIX); \
131
3.28k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_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_adst_flipadst_4x4_c
Line
Count
Source
127
311
                                               HIGHBD_DECL_SUFFIX) \
128
311
{ \
129
311
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
311
                   HIGHBD_TAIL_SUFFIX); \
131
311
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
215
                                               HIGHBD_DECL_SUFFIX) \
128
215
{ \
129
215
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
215
                   HIGHBD_TAIL_SUFFIX); \
131
215
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
199
                                               HIGHBD_DECL_SUFFIX) \
128
199
{ \
129
199
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
199
                   HIGHBD_TAIL_SUFFIX); \
131
199
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
205
                                               HIGHBD_DECL_SUFFIX) \
128
205
{ \
129
205
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
205
                   HIGHBD_TAIL_SUFFIX); \
131
205
}
itx_tmpl.c:inv_txfm_add_dct_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_dct_4x4_c
Line
Count
Source
127
611
                                               HIGHBD_DECL_SUFFIX) \
128
611
{ \
129
611
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
611
                   HIGHBD_TAIL_SUFFIX); \
131
611
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_c
Line
Count
Source
127
452
                                               HIGHBD_DECL_SUFFIX) \
128
452
{ \
129
452
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
452
                   HIGHBD_TAIL_SUFFIX); \
131
452
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
223
                                               HIGHBD_DECL_SUFFIX) \
128
223
{ \
129
223
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
223
                   HIGHBD_TAIL_SUFFIX); \
131
223
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
480
                                               HIGHBD_DECL_SUFFIX) \
128
480
{ \
129
480
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
480
                   HIGHBD_TAIL_SUFFIX); \
131
480
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
298
                                               HIGHBD_DECL_SUFFIX) \
128
298
{ \
129
298
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
298
                   HIGHBD_TAIL_SUFFIX); \
131
298
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
1.80k
                                               HIGHBD_DECL_SUFFIX) \
128
1.80k
{ \
129
1.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.80k
                   HIGHBD_TAIL_SUFFIX); \
131
1.80k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
853
                                               HIGHBD_DECL_SUFFIX) \
128
853
{ \
129
853
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
853
                   HIGHBD_TAIL_SUFFIX); \
131
853
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
1.33k
                                               HIGHBD_DECL_SUFFIX) \
128
1.33k
{ \
129
1.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.33k
                   HIGHBD_TAIL_SUFFIX); \
131
1.33k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_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_adst_adst_4x8_c
Line
Count
Source
127
1.62k
                                               HIGHBD_DECL_SUFFIX) \
128
1.62k
{ \
129
1.62k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.62k
                   HIGHBD_TAIL_SUFFIX); \
131
1.62k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
171
                                               HIGHBD_DECL_SUFFIX) \
128
171
{ \
129
171
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
171
                   HIGHBD_TAIL_SUFFIX); \
131
171
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
253
                                               HIGHBD_DECL_SUFFIX) \
128
253
{ \
129
253
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
253
                   HIGHBD_TAIL_SUFFIX); \
131
253
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_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_dct_flipadst_4x8_c
Line
Count
Source
127
120
                                               HIGHBD_DECL_SUFFIX) \
128
120
{ \
129
120
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
120
                   HIGHBD_TAIL_SUFFIX); \
131
120
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
136
                                               HIGHBD_DECL_SUFFIX) \
128
136
{ \
129
136
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
136
                   HIGHBD_TAIL_SUFFIX); \
131
136
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
601
                                               HIGHBD_DECL_SUFFIX) \
128
601
{ \
129
601
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
601
                   HIGHBD_TAIL_SUFFIX); \
131
601
}
itx_tmpl.c:inv_txfm_add_identity_dct_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_flipadst_identity_4x8_c
Line
Count
Source
127
212
                                               HIGHBD_DECL_SUFFIX) \
128
212
{ \
129
212
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
212
                   HIGHBD_TAIL_SUFFIX); \
131
212
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
177
                                               HIGHBD_DECL_SUFFIX) \
128
177
{ \
129
177
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
177
                   HIGHBD_TAIL_SUFFIX); \
131
177
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_c
Line
Count
Source
127
264
                                               HIGHBD_DECL_SUFFIX) \
128
264
{ \
129
264
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
264
                   HIGHBD_TAIL_SUFFIX); \
131
264
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
216
                                               HIGHBD_DECL_SUFFIX) \
128
216
{ \
129
216
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
216
                   HIGHBD_TAIL_SUFFIX); \
131
216
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
664
                                               HIGHBD_DECL_SUFFIX) \
128
664
{ \
129
664
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
664
                   HIGHBD_TAIL_SUFFIX); \
131
664
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
177
                                               HIGHBD_DECL_SUFFIX) \
128
177
{ \
129
177
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
177
                   HIGHBD_TAIL_SUFFIX); \
131
177
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
328
                                               HIGHBD_DECL_SUFFIX) \
128
328
{ \
129
328
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
328
                   HIGHBD_TAIL_SUFFIX); \
131
328
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
287
                                               HIGHBD_DECL_SUFFIX) \
128
287
{ \
129
287
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
287
                   HIGHBD_TAIL_SUFFIX); \
131
287
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_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_flipadst_adst_4x16_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_adst_flipadst_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_flipadst_dct_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_flipadst_4x16_c
Line
Count
Source
127
62
                                               HIGHBD_DECL_SUFFIX) \
128
62
{ \
129
62
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
62
                   HIGHBD_TAIL_SUFFIX); \
131
62
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_c
Line
Count
Source
127
36
                                               HIGHBD_DECL_SUFFIX) \
128
36
{ \
129
36
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
36
                   HIGHBD_TAIL_SUFFIX); \
131
36
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x16_c
Line
Count
Source
127
219
                                               HIGHBD_DECL_SUFFIX) \
128
219
{ \
129
219
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
219
                   HIGHBD_TAIL_SUFFIX); \
131
219
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
117
                                               HIGHBD_DECL_SUFFIX) \
128
117
{ \
129
117
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
117
                   HIGHBD_TAIL_SUFFIX); \
131
117
}
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
49
                                               HIGHBD_DECL_SUFFIX) \
128
49
{ \
129
49
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
49
                   HIGHBD_TAIL_SUFFIX); \
131
49
}
itx_tmpl.c:inv_txfm_add_adst_identity_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_identity_adst_4x16_c
Line
Count
Source
127
53
                                               HIGHBD_DECL_SUFFIX) \
128
53
{ \
129
53
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
53
                   HIGHBD_TAIL_SUFFIX); \
131
53
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
2.48k
                                               HIGHBD_DECL_SUFFIX) \
128
2.48k
{ \
129
2.48k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.48k
                   HIGHBD_TAIL_SUFFIX); \
131
2.48k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
990
                                               HIGHBD_DECL_SUFFIX) \
128
990
{ \
129
990
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
990
                   HIGHBD_TAIL_SUFFIX); \
131
990
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_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_dct_adst_8x4_c
Line
Count
Source
127
1.54k
                                               HIGHBD_DECL_SUFFIX) \
128
1.54k
{ \
129
1.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.54k
                   HIGHBD_TAIL_SUFFIX); \
131
1.54k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
2.28k
                                               HIGHBD_DECL_SUFFIX) \
128
2.28k
{ \
129
2.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.28k
                   HIGHBD_TAIL_SUFFIX); \
131
2.28k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
226
                                               HIGHBD_DECL_SUFFIX) \
128
226
{ \
129
226
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
226
                   HIGHBD_TAIL_SUFFIX); \
131
226
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
279
                                               HIGHBD_DECL_SUFFIX) \
128
279
{ \
129
279
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
279
                   HIGHBD_TAIL_SUFFIX); \
131
279
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
193
                                               HIGHBD_DECL_SUFFIX) \
128
193
{ \
129
193
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
193
                   HIGHBD_TAIL_SUFFIX); \
131
193
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
135
                                               HIGHBD_DECL_SUFFIX) \
128
135
{ \
129
135
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
135
                   HIGHBD_TAIL_SUFFIX); \
131
135
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_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_dct_identity_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_identity_dct_8x4_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_flipadst_identity_8x4_c
Line
Count
Source
127
314
                                               HIGHBD_DECL_SUFFIX) \
128
314
{ \
129
314
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
314
                   HIGHBD_TAIL_SUFFIX); \
131
314
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
218
                                               HIGHBD_DECL_SUFFIX) \
128
218
{ \
129
218
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
218
                   HIGHBD_TAIL_SUFFIX); \
131
218
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
413
                                               HIGHBD_DECL_SUFFIX) \
128
413
{ \
129
413
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
413
                   HIGHBD_TAIL_SUFFIX); \
131
413
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_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_8x8_c
Line
Count
Source
127
6.01k
                                               HIGHBD_DECL_SUFFIX) \
128
6.01k
{ \
129
6.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.01k
                   HIGHBD_TAIL_SUFFIX); \
131
6.01k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
1.97k
                                               HIGHBD_DECL_SUFFIX) \
128
1.97k
{ \
129
1.97k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.97k
                   HIGHBD_TAIL_SUFFIX); \
131
1.97k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
3.80k
                                               HIGHBD_DECL_SUFFIX) \
128
3.80k
{ \
129
3.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.80k
                   HIGHBD_TAIL_SUFFIX); \
131
3.80k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
2.98k
                                               HIGHBD_DECL_SUFFIX) \
128
2.98k
{ \
129
2.98k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.98k
                   HIGHBD_TAIL_SUFFIX); \
131
2.98k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
3.59k
                                               HIGHBD_DECL_SUFFIX) \
128
3.59k
{ \
129
3.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.59k
                   HIGHBD_TAIL_SUFFIX); \
131
3.59k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
379
                                               HIGHBD_DECL_SUFFIX) \
128
379
{ \
129
379
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
379
                   HIGHBD_TAIL_SUFFIX); \
131
379
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
396
                                               HIGHBD_DECL_SUFFIX) \
128
396
{ \
129
396
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
396
                   HIGHBD_TAIL_SUFFIX); \
131
396
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
433
                                               HIGHBD_DECL_SUFFIX) \
128
433
{ \
129
433
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
433
                   HIGHBD_TAIL_SUFFIX); \
131
433
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_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_flipadst_8x8_c
Line
Count
Source
127
282
                                               HIGHBD_DECL_SUFFIX) \
128
282
{ \
129
282
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
282
                   HIGHBD_TAIL_SUFFIX); \
131
282
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
962
                                               HIGHBD_DECL_SUFFIX) \
128
962
{ \
129
962
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
962
                   HIGHBD_TAIL_SUFFIX); \
131
962
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
582
                                               HIGHBD_DECL_SUFFIX) \
128
582
{ \
129
582
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
582
                   HIGHBD_TAIL_SUFFIX); \
131
582
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
402
                                               HIGHBD_DECL_SUFFIX) \
128
402
{ \
129
402
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
402
                   HIGHBD_TAIL_SUFFIX); \
131
402
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
130
                                               HIGHBD_DECL_SUFFIX) \
128
130
{ \
129
130
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
130
                   HIGHBD_TAIL_SUFFIX); \
131
130
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
378
                                               HIGHBD_DECL_SUFFIX) \
128
378
{ \
129
378
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
378
                   HIGHBD_TAIL_SUFFIX); \
131
378
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
217
                                               HIGHBD_DECL_SUFFIX) \
128
217
{ \
129
217
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
217
                   HIGHBD_TAIL_SUFFIX); \
131
217
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
3.79k
                                               HIGHBD_DECL_SUFFIX) \
128
3.79k
{ \
129
3.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.79k
                   HIGHBD_TAIL_SUFFIX); \
131
3.79k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
615
                                               HIGHBD_DECL_SUFFIX) \
128
615
{ \
129
615
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
615
                   HIGHBD_TAIL_SUFFIX); \
131
615
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_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_dct_adst_8x16_c
Line
Count
Source
127
1.56k
                                               HIGHBD_DECL_SUFFIX) \
128
1.56k
{ \
129
1.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.56k
                   HIGHBD_TAIL_SUFFIX); \
131
1.56k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
2.08k
                                               HIGHBD_DECL_SUFFIX) \
128
2.08k
{ \
129
2.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.08k
                   HIGHBD_TAIL_SUFFIX); \
131
2.08k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_c
Line
Count
Source
127
275
                                               HIGHBD_DECL_SUFFIX) \
128
275
{ \
129
275
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
275
                   HIGHBD_TAIL_SUFFIX); \
131
275
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
385
                                               HIGHBD_DECL_SUFFIX) \
128
385
{ \
129
385
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
385
                   HIGHBD_TAIL_SUFFIX); \
131
385
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
375
                                               HIGHBD_DECL_SUFFIX) \
128
375
{ \
129
375
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
375
                   HIGHBD_TAIL_SUFFIX); \
131
375
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
342
                                               HIGHBD_DECL_SUFFIX) \
128
342
{ \
129
342
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
342
                   HIGHBD_TAIL_SUFFIX); \
131
342
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
270
                                               HIGHBD_DECL_SUFFIX) \
128
270
{ \
129
270
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
270
                   HIGHBD_TAIL_SUFFIX); \
131
270
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
550
                                               HIGHBD_DECL_SUFFIX) \
128
550
{ \
129
550
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
550
                   HIGHBD_TAIL_SUFFIX); \
131
550
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
415
                                               HIGHBD_DECL_SUFFIX) \
128
415
{ \
129
415
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
415
                   HIGHBD_TAIL_SUFFIX); \
131
415
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_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_identity_flipadst_8x16_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_adst_identity_8x16_c
Line
Count
Source
127
286
                                               HIGHBD_DECL_SUFFIX) \
128
286
{ \
129
286
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
286
                   HIGHBD_TAIL_SUFFIX); \
131
286
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
156
                                               HIGHBD_DECL_SUFFIX) \
128
156
{ \
129
156
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
156
                   HIGHBD_TAIL_SUFFIX); \
131
156
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
891
                                               HIGHBD_DECL_SUFFIX) \
128
891
{ \
129
891
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
891
                   HIGHBD_TAIL_SUFFIX); \
131
891
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
101
                                               HIGHBD_DECL_SUFFIX) \
128
101
{ \
129
101
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
101
                   HIGHBD_TAIL_SUFFIX); \
131
101
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
1.07k
                                               HIGHBD_DECL_SUFFIX) \
128
1.07k
{ \
129
1.07k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.07k
                   HIGHBD_TAIL_SUFFIX); \
131
1.07k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
285
                                               HIGHBD_DECL_SUFFIX) \
128
285
{ \
129
285
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
285
                   HIGHBD_TAIL_SUFFIX); \
131
285
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
647
                                               HIGHBD_DECL_SUFFIX) \
128
647
{ \
129
647
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
647
                   HIGHBD_TAIL_SUFFIX); \
131
647
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
529
                                               HIGHBD_DECL_SUFFIX) \
128
529
{ \
129
529
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
529
                   HIGHBD_TAIL_SUFFIX); \
131
529
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
926
                                               HIGHBD_DECL_SUFFIX) \
128
926
{ \
129
926
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
926
                   HIGHBD_TAIL_SUFFIX); \
131
926
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
128
                                               HIGHBD_DECL_SUFFIX) \
128
128
{ \
129
128
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
128
                   HIGHBD_TAIL_SUFFIX); \
131
128
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
161
                                               HIGHBD_DECL_SUFFIX) \
128
161
{ \
129
161
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
161
                   HIGHBD_TAIL_SUFFIX); \
131
161
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
119
                                               HIGHBD_DECL_SUFFIX) \
128
119
{ \
129
119
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
119
                   HIGHBD_TAIL_SUFFIX); \
131
119
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_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_flipadst_16x4_c
Line
Count
Source
127
90
                                               HIGHBD_DECL_SUFFIX) \
128
90
{ \
129
90
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
90
                   HIGHBD_TAIL_SUFFIX); \
131
90
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
324
                                               HIGHBD_DECL_SUFFIX) \
128
324
{ \
129
324
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
324
                   HIGHBD_TAIL_SUFFIX); \
131
324
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
192
                                               HIGHBD_DECL_SUFFIX) \
128
192
{ \
129
192
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
192
                   HIGHBD_TAIL_SUFFIX); \
131
192
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_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_identity_flipadst_16x4_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_adst_identity_16x4_c
Line
Count
Source
127
185
                                               HIGHBD_DECL_SUFFIX) \
128
185
{ \
129
185
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
185
                   HIGHBD_TAIL_SUFFIX); \
131
185
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
102
                                               HIGHBD_DECL_SUFFIX) \
128
102
{ \
129
102
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
102
                   HIGHBD_TAIL_SUFFIX); \
131
102
}
itx_tmpl.c:inv_txfm_add_dct_dct_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_identity_identity_16x8_c
Line
Count
Source
127
745
                                               HIGHBD_DECL_SUFFIX) \
128
745
{ \
129
745
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
745
                   HIGHBD_TAIL_SUFFIX); \
131
745
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
1.84k
                                               HIGHBD_DECL_SUFFIX) \
128
1.84k
{ \
129
1.84k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.84k
                   HIGHBD_TAIL_SUFFIX); \
131
1.84k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
1.43k
                                               HIGHBD_DECL_SUFFIX) \
128
1.43k
{ \
129
1.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.43k
                   HIGHBD_TAIL_SUFFIX); \
131
1.43k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_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_flipadst_adst_16x8_c
Line
Count
Source
127
216
                                               HIGHBD_DECL_SUFFIX) \
128
216
{ \
129
216
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
216
                   HIGHBD_TAIL_SUFFIX); \
131
216
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
225
                                               HIGHBD_DECL_SUFFIX) \
128
225
{ \
129
225
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
225
                   HIGHBD_TAIL_SUFFIX); \
131
225
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
256
                                               HIGHBD_DECL_SUFFIX) \
128
256
{ \
129
256
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
256
                   HIGHBD_TAIL_SUFFIX); \
131
256
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
159
                                               HIGHBD_DECL_SUFFIX) \
128
159
{ \
129
159
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
159
                   HIGHBD_TAIL_SUFFIX); \
131
159
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
197
                                               HIGHBD_DECL_SUFFIX) \
128
197
{ \
129
197
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
197
                   HIGHBD_TAIL_SUFFIX); \
131
197
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
506
                                               HIGHBD_DECL_SUFFIX) \
128
506
{ \
129
506
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
506
                   HIGHBD_TAIL_SUFFIX); \
131
506
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
331
                                               HIGHBD_DECL_SUFFIX) \
128
331
{ \
129
331
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
331
                   HIGHBD_TAIL_SUFFIX); \
131
331
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
255
                                               HIGHBD_DECL_SUFFIX) \
128
255
{ \
129
255
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
255
                   HIGHBD_TAIL_SUFFIX); \
131
255
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_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_adst_identity_16x8_c
Line
Count
Source
127
212
                                               HIGHBD_DECL_SUFFIX) \
128
212
{ \
129
212
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
212
                   HIGHBD_TAIL_SUFFIX); \
131
212
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_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_dct_16x16_c
Line
Count
Source
127
4.00k
                                               HIGHBD_DECL_SUFFIX) \
128
4.00k
{ \
129
4.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.00k
                   HIGHBD_TAIL_SUFFIX); \
131
4.00k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
557
                                               HIGHBD_DECL_SUFFIX) \
128
557
{ \
129
557
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
557
                   HIGHBD_TAIL_SUFFIX); \
131
557
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
3.06k
                                               HIGHBD_DECL_SUFFIX) \
128
3.06k
{ \
129
3.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.06k
                   HIGHBD_TAIL_SUFFIX); \
131
3.06k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
2.43k
                                               HIGHBD_DECL_SUFFIX) \
128
2.43k
{ \
129
2.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.43k
                   HIGHBD_TAIL_SUFFIX); \
131
2.43k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
2.97k
                                               HIGHBD_DECL_SUFFIX) \
128
2.97k
{ \
129
2.97k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.97k
                   HIGHBD_TAIL_SUFFIX); \
131
2.97k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
139
                                               HIGHBD_DECL_SUFFIX) \
128
139
{ \
129
139
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
139
                   HIGHBD_TAIL_SUFFIX); \
131
139
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_c
Line
Count
Source
127
121
                                               HIGHBD_DECL_SUFFIX) \
128
121
{ \
129
121
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
121
                   HIGHBD_TAIL_SUFFIX); \
131
121
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x16_c
Line
Count
Source
127
123
                                               HIGHBD_DECL_SUFFIX) \
128
123
{ \
129
123
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
123
                   HIGHBD_TAIL_SUFFIX); \
131
123
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_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_flipadst_flipadst_16x16_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_identity_16x16_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_identity_dct_16x16_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_dct_dct_16x32_c
Line
Count
Source
127
12.4k
                                               HIGHBD_DECL_SUFFIX) \
128
12.4k
{ \
129
12.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.4k
                   HIGHBD_TAIL_SUFFIX); \
131
12.4k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
366
                                               HIGHBD_DECL_SUFFIX) \
128
366
{ \
129
366
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
366
                   HIGHBD_TAIL_SUFFIX); \
131
366
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
465
                                               HIGHBD_DECL_SUFFIX) \
128
465
{ \
129
465
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
465
                   HIGHBD_TAIL_SUFFIX); \
131
465
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
1.38k
                                               HIGHBD_DECL_SUFFIX) \
128
1.38k
{ \
129
1.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.38k
                   HIGHBD_TAIL_SUFFIX); \
131
1.38k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_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_dct_dct_32x16_c
Line
Count
Source
127
8.64k
                                               HIGHBD_DECL_SUFFIX) \
128
8.64k
{ \
129
8.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.64k
                   HIGHBD_TAIL_SUFFIX); \
131
8.64k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
168
                                               HIGHBD_DECL_SUFFIX) \
128
168
{ \
129
168
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
168
                   HIGHBD_TAIL_SUFFIX); \
131
168
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
48.8k
                                               HIGHBD_DECL_SUFFIX) \
128
48.8k
{ \
129
48.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
48.8k
                   HIGHBD_TAIL_SUFFIX); \
131
48.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
72
                                               HIGHBD_DECL_SUFFIX) \
128
72
{ \
129
72
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
72
                   HIGHBD_TAIL_SUFFIX); \
131
72
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
9.53k
                                               HIGHBD_DECL_SUFFIX) \
128
9.53k
{ \
129
9.53k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.53k
                   HIGHBD_TAIL_SUFFIX); \
131
9.53k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
290
                                               HIGHBD_DECL_SUFFIX) \
128
290
{ \
129
290
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
290
                   HIGHBD_TAIL_SUFFIX); \
131
290
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
4.39k
                                               HIGHBD_DECL_SUFFIX) \
128
4.39k
{ \
129
4.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.39k
                   HIGHBD_TAIL_SUFFIX); \
131
4.39k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
12.5k
                                               HIGHBD_DECL_SUFFIX) \
128
12.5k
{ \
129
12.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.5k
                   HIGHBD_TAIL_SUFFIX); \
131
12.5k
}
132
133
#define inv_txfm_fn64(pfx, w, h, shift) \
134
inv_txfm_fn(dct, dct, DCT_DCT, pfx, w, h, shift)
135
136
#define inv_txfm_fn32(pfx, w, h, shift) \
137
inv_txfm_fn64(pfx, w, h, shift) \
138
inv_txfm_fn(identity, identity, IDTX, pfx, w, h, shift)
139
140
#define inv_txfm_fn16(pfx, w, h, shift) \
141
inv_txfm_fn32(pfx, w, h, shift) \
142
inv_txfm_fn(adst,     dct,      ADST_DCT,          pfx,  w, h, shift) \
143
inv_txfm_fn(dct,      adst,     DCT_ADST,          pfx, w, h, shift) \
144
inv_txfm_fn(adst,     adst,     ADST_ADST,         pfx, w, h, shift) \
145
inv_txfm_fn(dct,      flipadst, DCT_FLIPADST,      pfx, w, h, shift) \
146
inv_txfm_fn(flipadst, dct,      FLIPADST_DCT,      pfx, w, h, shift) \
147
inv_txfm_fn(adst,     flipadst, ADST_FLIPADST,     pfx, w, h, shift) \
148
inv_txfm_fn(flipadst, adst,     FLIPADST_ADST,     pfx, w, h, shift) \
149
inv_txfm_fn(flipadst, flipadst, FLIPADST_FLIPADST, pfx, w, h, shift) \
150
inv_txfm_fn(identity, dct,      H_DCT,             pfx, w, h, shift) \
151
inv_txfm_fn(dct,      identity, V_DCT,             pfx, w, h, shift) \
152
153
#define inv_txfm_fn84(pfx, w, h, shift) \
154
inv_txfm_fn16(pfx, w, h, shift) \
155
inv_txfm_fn(identity, flipadst, H_FLIPADST, pfx, w, h, shift) \
156
inv_txfm_fn(flipadst, identity, V_FLIPADST, pfx, w, h, shift) \
157
inv_txfm_fn(identity, adst,     H_ADST,     pfx, w, h, shift) \
158
inv_txfm_fn(adst,     identity, V_ADST,     pfx, w, h, shift) \
159
160
inv_txfm_fn84( ,  4,  4, 0)
161
inv_txfm_fn84(R,  4,  8, 0)
162
inv_txfm_fn84(R,  4, 16, 1)
163
inv_txfm_fn84(R,  8,  4, 0)
164
inv_txfm_fn84( ,  8,  8, 1)
165
inv_txfm_fn84(R,  8, 16, 1)
166
inv_txfm_fn32(R,  8, 32, 2)
167
inv_txfm_fn84(R, 16,  4, 1)
168
inv_txfm_fn84(R, 16,  8, 1)
169
inv_txfm_fn16( , 16, 16, 2)
170
inv_txfm_fn32(R, 16, 32, 1)
171
inv_txfm_fn64(R, 16, 64, 2)
172
inv_txfm_fn32(R, 32,  8, 2)
173
inv_txfm_fn32(R, 32, 16, 1)
174
inv_txfm_fn32( , 32, 32, 2)
175
inv_txfm_fn64(R, 32, 64, 1)
176
inv_txfm_fn64(R, 64, 16, 2)
177
inv_txfm_fn64(R, 64, 32, 1)
178
inv_txfm_fn64( , 64, 64, 2)
179
180
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
181
  ARCH_AARCH64 || \
182
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
183
))
184
static void inv_txfm_add_wht_wht_4x4_c(pixel *dst, const ptrdiff_t stride,
185
                                       coef *const coeff, const int eob
186
                                       HIGHBD_DECL_SUFFIX)
187
161k
{
188
161k
    int32_t tmp[4 * 4], *c = tmp;
189
806k
    for (int y = 0; y < 4; y++, c += 4) {
190
3.22M
        for (int x = 0; x < 4; x++)
191
2.58M
            c[x] = coeff[y + x * 4] >> 2;
192
645k
        dav1d_inv_wht4_1d_c(c, 1);
193
645k
    }
194
161k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
806k
    for (int x = 0; x < 4; x++)
197
645k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
161k
    c = tmp;
200
806k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
3.22M
        for (int x = 0; x < 4; x++)
202
2.58M
            dst[x] = iclip_pixel(dst[x] + *c++);
203
161k
}
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
18.4k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
18.4k
#define assign_itx_all_fn64(w, h, pfx) \
222
349k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
349k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
18.4k
#define assign_itx_all_fn32(w, h, pfx) \
226
257k
    assign_itx_all_fn64(w, h, pfx); \
227
257k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
257k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
18.4k
#define assign_itx_all_fn16(w, h, pfx) \
231
165k
    assign_itx_all_fn32(w, h, pfx); \
232
165k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
165k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
165k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
165k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
165k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
165k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
165k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
165k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
165k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
165k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
165k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
165k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
165k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
165k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
165k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
165k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
165k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
165k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
165k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
165k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
18.4k
#define assign_itx_all_fn84(w, h, pfx) \
254
147k
    assign_itx_all_fn16(w, h, pfx); \
255
147k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
147k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
147k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
147k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
147k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
147k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
147k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
147k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
18.4k
264
18.4k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
18.4k
  ARCH_AARCH64 || \
266
18.4k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
18.4k
))
268
18.4k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
18.4k
#endif
270
18.4k
    assign_itx_all_fn84( 4,  4, );
271
18.4k
    assign_itx_all_fn84( 4,  8, R);
272
18.4k
    assign_itx_all_fn84( 4, 16, R);
273
18.4k
    assign_itx_all_fn84( 8,  4, R);
274
18.4k
    assign_itx_all_fn84( 8,  8, );
275
18.4k
    assign_itx_all_fn84( 8, 16, R);
276
18.4k
    assign_itx_all_fn32( 8, 32, R);
277
18.4k
    assign_itx_all_fn84(16,  4, R);
278
18.4k
    assign_itx_all_fn84(16,  8, R);
279
18.4k
    assign_itx_all_fn16(16, 16, );
280
18.4k
    assign_itx_all_fn32(16, 32, R);
281
18.4k
    assign_itx_all_fn64(16, 64, R);
282
18.4k
    assign_itx_all_fn32(32,  8, R);
283
18.4k
    assign_itx_all_fn32(32, 16, R);
284
18.4k
    assign_itx_all_fn32(32, 32, );
285
18.4k
    assign_itx_all_fn64(32, 64, R);
286
18.4k
    assign_itx_all_fn64(64, 16, R);
287
18.4k
    assign_itx_all_fn64(64, 32, R);
288
18.4k
    assign_itx_all_fn64(64, 64, );
289
290
18.4k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
18.4k
    if (!all_simd)
310
18.4k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
18.4k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
8.44k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
8.44k
#define assign_itx_all_fn64(w, h, pfx) \
222
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
8.44k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
8.44k
#define assign_itx_all_fn32(w, h, pfx) \
226
8.44k
    assign_itx_all_fn64(w, h, pfx); \
227
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
8.44k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
8.44k
#define assign_itx_all_fn16(w, h, pfx) \
231
8.44k
    assign_itx_all_fn32(w, h, pfx); \
232
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
8.44k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
8.44k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
8.44k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
8.44k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
8.44k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
8.44k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
8.44k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
8.44k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
8.44k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
8.44k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
8.44k
#define assign_itx_all_fn84(w, h, pfx) \
254
8.44k
    assign_itx_all_fn16(w, h, pfx); \
255
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
8.44k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
8.44k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
8.44k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
8.44k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
8.44k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
8.44k
264
8.44k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
8.44k
  ARCH_AARCH64 || \
266
8.44k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
8.44k
))
268
8.44k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
8.44k
#endif
270
8.44k
    assign_itx_all_fn84( 4,  4, );
271
8.44k
    assign_itx_all_fn84( 4,  8, R);
272
8.44k
    assign_itx_all_fn84( 4, 16, R);
273
8.44k
    assign_itx_all_fn84( 8,  4, R);
274
8.44k
    assign_itx_all_fn84( 8,  8, );
275
8.44k
    assign_itx_all_fn84( 8, 16, R);
276
8.44k
    assign_itx_all_fn32( 8, 32, R);
277
8.44k
    assign_itx_all_fn84(16,  4, R);
278
8.44k
    assign_itx_all_fn84(16,  8, R);
279
8.44k
    assign_itx_all_fn16(16, 16, );
280
8.44k
    assign_itx_all_fn32(16, 32, R);
281
8.44k
    assign_itx_all_fn64(16, 64, R);
282
8.44k
    assign_itx_all_fn32(32,  8, R);
283
8.44k
    assign_itx_all_fn32(32, 16, R);
284
8.44k
    assign_itx_all_fn32(32, 32, );
285
8.44k
    assign_itx_all_fn64(32, 64, R);
286
8.44k
    assign_itx_all_fn64(64, 16, R);
287
8.44k
    assign_itx_all_fn64(64, 32, R);
288
8.44k
    assign_itx_all_fn64(64, 64, );
289
290
8.44k
    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.44k
    if (!all_simd)
310
8.44k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
8.44k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
9.97k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
9.97k
#define assign_itx_all_fn64(w, h, pfx) \
222
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
9.97k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
9.97k
#define assign_itx_all_fn32(w, h, pfx) \
226
9.97k
    assign_itx_all_fn64(w, h, pfx); \
227
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
9.97k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
9.97k
#define assign_itx_all_fn16(w, h, pfx) \
231
9.97k
    assign_itx_all_fn32(w, h, pfx); \
232
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
9.97k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
9.97k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
9.97k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
9.97k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
9.97k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
9.97k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
9.97k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
9.97k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
9.97k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
9.97k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
9.97k
#define assign_itx_all_fn84(w, h, pfx) \
254
9.97k
    assign_itx_all_fn16(w, h, pfx); \
255
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
9.97k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
9.97k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
9.97k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
9.97k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
9.97k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
9.97k
264
9.97k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
9.97k
  ARCH_AARCH64 || \
266
9.97k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
9.97k
))
268
9.97k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
9.97k
#endif
270
9.97k
    assign_itx_all_fn84( 4,  4, );
271
9.97k
    assign_itx_all_fn84( 4,  8, R);
272
9.97k
    assign_itx_all_fn84( 4, 16, R);
273
9.97k
    assign_itx_all_fn84( 8,  4, R);
274
9.97k
    assign_itx_all_fn84( 8,  8, );
275
9.97k
    assign_itx_all_fn84( 8, 16, R);
276
9.97k
    assign_itx_all_fn32( 8, 32, R);
277
9.97k
    assign_itx_all_fn84(16,  4, R);
278
9.97k
    assign_itx_all_fn84(16,  8, R);
279
9.97k
    assign_itx_all_fn16(16, 16, );
280
9.97k
    assign_itx_all_fn32(16, 32, R);
281
9.97k
    assign_itx_all_fn64(16, 64, R);
282
9.97k
    assign_itx_all_fn32(32,  8, R);
283
9.97k
    assign_itx_all_fn32(32, 16, R);
284
9.97k
    assign_itx_all_fn32(32, 32, );
285
9.97k
    assign_itx_all_fn64(32, 64, R);
286
9.97k
    assign_itx_all_fn64(64, 16, R);
287
9.97k
    assign_itx_all_fn64(64, 32, R);
288
9.97k
    assign_itx_all_fn64(64, 64, );
289
290
9.97k
    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
9.97k
    if (!all_simd)
310
9.97k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
9.97k
}