Coverage Report

Created: 2026-08-13 07:20

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
781k
{
48
781k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
781k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
781k
    const int has_dconly = txtp == DCT_DCT;
51
781k
    assert(w >= 4 && w <= 64);
52
781k
    assert(h >= 4 && h <= 64);
53
781k
    assert(eob >= 0);
54
55
781k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
781k
    const int rnd = (1 << shift) >> 1;
57
58
781k
    if (eob < has_dconly) {
59
149k
        int dc = coeff[0];
60
149k
        coeff[0] = 0;
61
149k
        if (is_rect2)
62
34.9k
            dc = (dc * 181 + 128) >> 8;
63
149k
        dc = (dc * 181 + 128) >> 8;
64
149k
        dc = (dc + rnd) >> shift;
65
149k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
4.91M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
217M
            for (int x = 0; x < w; x++)
68
212M
                dst[x] = iclip_pixel(dst[x] + dc);
69
149k
        return;
70
149k
    }
71
72
631k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
631k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
631k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
631k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
631k
#if BITDEPTH == 8
77
631k
    const int row_clip_min = INT16_MIN;
78
631k
    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
631k
    const int row_clip_max = ~row_clip_min;
84
631k
    const int col_clip_max = ~col_clip_min;
85
86
631k
    int32_t tmp[64 * 64], *c = tmp;
87
631k
    int last_nonzero_col; // in first 1d itx
88
631k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
40.1k
        last_nonzero_col = imin(sh - 1, eob);
90
591k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
22.0k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
569k
    } else {
93
569k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
569k
    }
95
631k
    assert(last_nonzero_col < sh);
96
3.66M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
3.03M
        if (is_rect2)
98
14.5M
            for (int x = 0; x < sw; x++)
99
13.5M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
2.03M
        else
101
33.2M
            for (int x = 0; x < sw; x++)
102
31.2M
                c[x] = coeff[y + x * sh];
103
3.03M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
3.03M
    }
105
631k
    if (last_nonzero_col + 1 < sh)
106
488k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
631k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
156M
    for (int i = 0; i < w * sh; i++)
110
155M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
9.64M
    for (int x = 0; x < w; x++)
113
9.01M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
631k
    c = tmp;
116
9.27M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
220M
        for (int x = 0; x < w; x++)
118
212M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
631k
}
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
781k
                                               HIGHBD_DECL_SUFFIX) \
128
781k
{ \
129
781k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
781k
                   HIGHBD_TAIL_SUFFIX); \
131
781k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
20.9k
                                               HIGHBD_DECL_SUFFIX) \
128
20.9k
{ \
129
20.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
20.9k
                   HIGHBD_TAIL_SUFFIX); \
131
20.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
8.99k
                                               HIGHBD_DECL_SUFFIX) \
128
8.99k
{ \
129
8.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.99k
                   HIGHBD_TAIL_SUFFIX); \
131
8.99k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
12.9k
                                               HIGHBD_DECL_SUFFIX) \
128
12.9k
{ \
129
12.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
12.9k
                   HIGHBD_TAIL_SUFFIX); \
131
12.9k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_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_adst_adst_4x4_c
Line
Count
Source
127
15.0k
                                               HIGHBD_DECL_SUFFIX) \
128
15.0k
{ \
129
15.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.0k
                   HIGHBD_TAIL_SUFFIX); \
131
15.0k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
923
                                               HIGHBD_DECL_SUFFIX) \
128
923
{ \
129
923
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
923
                   HIGHBD_TAIL_SUFFIX); \
131
923
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_c
Line
Count
Source
127
1.13k
                                               HIGHBD_DECL_SUFFIX) \
128
1.13k
{ \
129
1.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.13k
                   HIGHBD_TAIL_SUFFIX); \
131
1.13k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x4_c
Line
Count
Source
127
839
                                               HIGHBD_DECL_SUFFIX) \
128
839
{ \
129
839
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
839
                   HIGHBD_TAIL_SUFFIX); \
131
839
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_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_flipadst_flipadst_4x4_c
Line
Count
Source
127
669
                                               HIGHBD_DECL_SUFFIX) \
128
669
{ \
129
669
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
669
                   HIGHBD_TAIL_SUFFIX); \
131
669
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
4.14k
                                               HIGHBD_DECL_SUFFIX) \
128
4.14k
{ \
129
4.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.14k
                   HIGHBD_TAIL_SUFFIX); \
131
4.14k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_c
Line
Count
Source
127
2.04k
                                               HIGHBD_DECL_SUFFIX) \
128
2.04k
{ \
129
2.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.04k
                   HIGHBD_TAIL_SUFFIX); \
131
2.04k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x4_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_flipadst_4x4_c
Line
Count
Source
127
914
                                               HIGHBD_DECL_SUFFIX) \
128
914
{ \
129
914
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
914
                   HIGHBD_TAIL_SUFFIX); \
131
914
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
1.53k
                                               HIGHBD_DECL_SUFFIX) \
128
1.53k
{ \
129
1.53k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.53k
                   HIGHBD_TAIL_SUFFIX); \
131
1.53k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
965
                                               HIGHBD_DECL_SUFFIX) \
128
965
{ \
129
965
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
965
                   HIGHBD_TAIL_SUFFIX); \
131
965
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_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_4x8_c
Line
Count
Source
127
4.11k
                                               HIGHBD_DECL_SUFFIX) \
128
4.11k
{ \
129
4.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.11k
                   HIGHBD_TAIL_SUFFIX); \
131
4.11k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
7.58k
                                               HIGHBD_DECL_SUFFIX) \
128
7.58k
{ \
129
7.58k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.58k
                   HIGHBD_TAIL_SUFFIX); \
131
7.58k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
5.73k
                                               HIGHBD_DECL_SUFFIX) \
128
5.73k
{ \
129
5.73k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.73k
                   HIGHBD_TAIL_SUFFIX); \
131
5.73k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
8.81k
                                               HIGHBD_DECL_SUFFIX) \
128
8.81k
{ \
129
8.81k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.81k
                   HIGHBD_TAIL_SUFFIX); \
131
8.81k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
607
                                               HIGHBD_DECL_SUFFIX) \
128
607
{ \
129
607
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
607
                   HIGHBD_TAIL_SUFFIX); \
131
607
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
604
                                               HIGHBD_DECL_SUFFIX) \
128
604
{ \
129
604
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
604
                   HIGHBD_TAIL_SUFFIX); \
131
604
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
462
                                               HIGHBD_DECL_SUFFIX) \
128
462
{ \
129
462
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
462
                   HIGHBD_TAIL_SUFFIX); \
131
462
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
437
                                               HIGHBD_DECL_SUFFIX) \
128
437
{ \
129
437
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
437
                   HIGHBD_TAIL_SUFFIX); \
131
437
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
420
                                               HIGHBD_DECL_SUFFIX) \
128
420
{ \
129
420
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
420
                   HIGHBD_TAIL_SUFFIX); \
131
420
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
2.88k
                                               HIGHBD_DECL_SUFFIX) \
128
2.88k
{ \
129
2.88k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.88k
                   HIGHBD_TAIL_SUFFIX); \
131
2.88k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
1.68k
                                               HIGHBD_DECL_SUFFIX) \
128
1.68k
{ \
129
1.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.68k
                   HIGHBD_TAIL_SUFFIX); \
131
1.68k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_c
Line
Count
Source
127
722
                                               HIGHBD_DECL_SUFFIX) \
128
722
{ \
129
722
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
722
                   HIGHBD_TAIL_SUFFIX); \
131
722
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
507
                                               HIGHBD_DECL_SUFFIX) \
128
507
{ \
129
507
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
507
                   HIGHBD_TAIL_SUFFIX); \
131
507
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_c
Line
Count
Source
127
772
                                               HIGHBD_DECL_SUFFIX) \
128
772
{ \
129
772
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
772
                   HIGHBD_TAIL_SUFFIX); \
131
772
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
499
                                               HIGHBD_DECL_SUFFIX) \
128
499
{ \
129
499
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
499
                   HIGHBD_TAIL_SUFFIX); \
131
499
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
4.63k
                                               HIGHBD_DECL_SUFFIX) \
128
4.63k
{ \
129
4.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.63k
                   HIGHBD_TAIL_SUFFIX); \
131
4.63k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
2.31k
                                               HIGHBD_DECL_SUFFIX) \
128
2.31k
{ \
129
2.31k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.31k
                   HIGHBD_TAIL_SUFFIX); \
131
2.31k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_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_dct_adst_4x16_c
Line
Count
Source
127
3.01k
                                               HIGHBD_DECL_SUFFIX) \
128
3.01k
{ \
129
3.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.01k
                   HIGHBD_TAIL_SUFFIX); \
131
3.01k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
4.25k
                                               HIGHBD_DECL_SUFFIX) \
128
4.25k
{ \
129
4.25k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.25k
                   HIGHBD_TAIL_SUFFIX); \
131
4.25k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
372
                                               HIGHBD_DECL_SUFFIX) \
128
372
{ \
129
372
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
372
                   HIGHBD_TAIL_SUFFIX); \
131
372
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_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_4x16_c
Line
Count
Source
127
254
                                               HIGHBD_DECL_SUFFIX) \
128
254
{ \
129
254
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
254
                   HIGHBD_TAIL_SUFFIX); \
131
254
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_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_flipadst_flipadst_4x16_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_dct_identity_4x16_c
Line
Count
Source
127
1.63k
                                               HIGHBD_DECL_SUFFIX) \
128
1.63k
{ \
129
1.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.63k
                   HIGHBD_TAIL_SUFFIX); \
131
1.63k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
956
                                               HIGHBD_DECL_SUFFIX) \
128
956
{ \
129
956
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
956
                   HIGHBD_TAIL_SUFFIX); \
131
956
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_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_flipadst_4x16_c
Line
Count
Source
127
222
                                               HIGHBD_DECL_SUFFIX) \
128
222
{ \
129
222
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
222
                   HIGHBD_TAIL_SUFFIX); \
131
222
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
427
                                               HIGHBD_DECL_SUFFIX) \
128
427
{ \
129
427
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
427
                   HIGHBD_TAIL_SUFFIX); \
131
427
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_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_dct_dct_8x4_c
Line
Count
Source
127
14.0k
                                               HIGHBD_DECL_SUFFIX) \
128
14.0k
{ \
129
14.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.0k
                   HIGHBD_TAIL_SUFFIX); \
131
14.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_c
Line
Count
Source
127
5.36k
                                               HIGHBD_DECL_SUFFIX) \
128
5.36k
{ \
129
5.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.36k
                   HIGHBD_TAIL_SUFFIX); \
131
5.36k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
9.44k
                                               HIGHBD_DECL_SUFFIX) \
128
9.44k
{ \
129
9.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.44k
                   HIGHBD_TAIL_SUFFIX); \
131
9.44k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
7.82k
                                               HIGHBD_DECL_SUFFIX) \
128
7.82k
{ \
129
7.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.82k
                   HIGHBD_TAIL_SUFFIX); \
131
7.82k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
11.3k
                                               HIGHBD_DECL_SUFFIX) \
128
11.3k
{ \
129
11.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.3k
                   HIGHBD_TAIL_SUFFIX); \
131
11.3k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
695
                                               HIGHBD_DECL_SUFFIX) \
128
695
{ \
129
695
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
695
                   HIGHBD_TAIL_SUFFIX); \
131
695
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
768
                                               HIGHBD_DECL_SUFFIX) \
128
768
{ \
129
768
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
768
                   HIGHBD_TAIL_SUFFIX); \
131
768
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
558
                                               HIGHBD_DECL_SUFFIX) \
128
558
{ \
129
558
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
558
                   HIGHBD_TAIL_SUFFIX); \
131
558
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
543
                                               HIGHBD_DECL_SUFFIX) \
128
543
{ \
129
543
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
543
                   HIGHBD_TAIL_SUFFIX); \
131
543
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
512
                                               HIGHBD_DECL_SUFFIX) \
128
512
{ \
129
512
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
512
                   HIGHBD_TAIL_SUFFIX); \
131
512
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
3.42k
                                               HIGHBD_DECL_SUFFIX) \
128
3.42k
{ \
129
3.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.42k
                   HIGHBD_TAIL_SUFFIX); \
131
3.42k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
1.76k
                                               HIGHBD_DECL_SUFFIX) \
128
1.76k
{ \
129
1.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.76k
                   HIGHBD_TAIL_SUFFIX); \
131
1.76k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
852
                                               HIGHBD_DECL_SUFFIX) \
128
852
{ \
129
852
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
852
                   HIGHBD_TAIL_SUFFIX); \
131
852
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_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_adst_identity_8x4_c
Line
Count
Source
127
917
                                               HIGHBD_DECL_SUFFIX) \
128
917
{ \
129
917
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
917
                   HIGHBD_TAIL_SUFFIX); \
131
917
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
637
                                               HIGHBD_DECL_SUFFIX) \
128
637
{ \
129
637
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
637
                   HIGHBD_TAIL_SUFFIX); \
131
637
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
36.2k
                                               HIGHBD_DECL_SUFFIX) \
128
36.2k
{ \
129
36.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
36.2k
                   HIGHBD_TAIL_SUFFIX); \
131
36.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
9.74k
                                               HIGHBD_DECL_SUFFIX) \
128
9.74k
{ \
129
9.74k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.74k
                   HIGHBD_TAIL_SUFFIX); \
131
9.74k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
22.9k
                                               HIGHBD_DECL_SUFFIX) \
128
22.9k
{ \
129
22.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
22.9k
                   HIGHBD_TAIL_SUFFIX); \
131
22.9k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
19.3k
                                               HIGHBD_DECL_SUFFIX) \
128
19.3k
{ \
129
19.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.3k
                   HIGHBD_TAIL_SUFFIX); \
131
19.3k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
20.3k
                                               HIGHBD_DECL_SUFFIX) \
128
20.3k
{ \
129
20.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
20.3k
                   HIGHBD_TAIL_SUFFIX); \
131
20.3k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_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_adst_flipadst_8x8_c
Line
Count
Source
127
1.21k
                                               HIGHBD_DECL_SUFFIX) \
128
1.21k
{ \
129
1.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.21k
                   HIGHBD_TAIL_SUFFIX); \
131
1.21k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_c
Line
Count
Source
127
1.65k
                                               HIGHBD_DECL_SUFFIX) \
128
1.65k
{ \
129
1.65k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.65k
                   HIGHBD_TAIL_SUFFIX); \
131
1.65k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x8_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_flipadst_8x8_c
Line
Count
Source
127
854
                                               HIGHBD_DECL_SUFFIX) \
128
854
{ \
129
854
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
854
                   HIGHBD_TAIL_SUFFIX); \
131
854
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
5.44k
                                               HIGHBD_DECL_SUFFIX) \
128
5.44k
{ \
129
5.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.44k
                   HIGHBD_TAIL_SUFFIX); \
131
5.44k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x8_c
Line
Count
Source
127
2.82k
                                               HIGHBD_DECL_SUFFIX) \
128
2.82k
{ \
129
2.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.82k
                   HIGHBD_TAIL_SUFFIX); \
131
2.82k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x8_c
Line
Count
Source
127
1.44k
                                               HIGHBD_DECL_SUFFIX) \
128
1.44k
{ \
129
1.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.44k
                   HIGHBD_TAIL_SUFFIX); \
131
1.44k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
668
                                               HIGHBD_DECL_SUFFIX) \
128
668
{ \
129
668
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
668
                   HIGHBD_TAIL_SUFFIX); \
131
668
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
1.47k
                                               HIGHBD_DECL_SUFFIX) \
128
1.47k
{ \
129
1.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.47k
                   HIGHBD_TAIL_SUFFIX); \
131
1.47k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
616
                                               HIGHBD_DECL_SUFFIX) \
128
616
{ \
129
616
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
616
                   HIGHBD_TAIL_SUFFIX); \
131
616
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
10.7k
                                               HIGHBD_DECL_SUFFIX) \
128
10.7k
{ \
129
10.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.7k
                   HIGHBD_TAIL_SUFFIX); \
131
10.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
2.45k
                                               HIGHBD_DECL_SUFFIX) \
128
2.45k
{ \
129
2.45k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.45k
                   HIGHBD_TAIL_SUFFIX); \
131
2.45k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
6.76k
                                               HIGHBD_DECL_SUFFIX) \
128
6.76k
{ \
129
6.76k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.76k
                   HIGHBD_TAIL_SUFFIX); \
131
6.76k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
5.24k
                                               HIGHBD_DECL_SUFFIX) \
128
5.24k
{ \
129
5.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.24k
                   HIGHBD_TAIL_SUFFIX); \
131
5.24k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
5.99k
                                               HIGHBD_DECL_SUFFIX) \
128
5.99k
{ \
129
5.99k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.99k
                   HIGHBD_TAIL_SUFFIX); \
131
5.99k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_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_flipadst_8x16_c
Line
Count
Source
127
458
                                               HIGHBD_DECL_SUFFIX) \
128
458
{ \
129
458
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
458
                   HIGHBD_TAIL_SUFFIX); \
131
458
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
509
                                               HIGHBD_DECL_SUFFIX) \
128
509
{ \
129
509
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
509
                   HIGHBD_TAIL_SUFFIX); \
131
509
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
473
                                               HIGHBD_DECL_SUFFIX) \
128
473
{ \
129
473
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
473
                   HIGHBD_TAIL_SUFFIX); \
131
473
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
268
                                               HIGHBD_DECL_SUFFIX) \
128
268
{ \
129
268
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
268
                   HIGHBD_TAIL_SUFFIX); \
131
268
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_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_identity_dct_8x16_c
Line
Count
Source
127
933
                                               HIGHBD_DECL_SUFFIX) \
128
933
{ \
129
933
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
933
                   HIGHBD_TAIL_SUFFIX); \
131
933
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_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_identity_flipadst_8x16_c
Line
Count
Source
127
236
                                               HIGHBD_DECL_SUFFIX) \
128
236
{ \
129
236
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
236
                   HIGHBD_TAIL_SUFFIX); \
131
236
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
430
                                               HIGHBD_DECL_SUFFIX) \
128
430
{ \
129
430
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
430
                   HIGHBD_TAIL_SUFFIX); \
131
430
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
201
                                               HIGHBD_DECL_SUFFIX) \
128
201
{ \
129
201
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
201
                   HIGHBD_TAIL_SUFFIX); \
131
201
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
11.5k
                                               HIGHBD_DECL_SUFFIX) \
128
11.5k
{ \
129
11.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.5k
                   HIGHBD_TAIL_SUFFIX); \
131
11.5k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
638
                                               HIGHBD_DECL_SUFFIX) \
128
638
{ \
129
638
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
638
                   HIGHBD_TAIL_SUFFIX); \
131
638
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
8.17k
                                               HIGHBD_DECL_SUFFIX) \
128
8.17k
{ \
129
8.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.17k
                   HIGHBD_TAIL_SUFFIX); \
131
8.17k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
4.30k
                                               HIGHBD_DECL_SUFFIX) \
128
4.30k
{ \
129
4.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.30k
                   HIGHBD_TAIL_SUFFIX); \
131
4.30k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
7.39k
                                               HIGHBD_DECL_SUFFIX) \
128
7.39k
{ \
129
7.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.39k
                   HIGHBD_TAIL_SUFFIX); \
131
7.39k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
6.20k
                                               HIGHBD_DECL_SUFFIX) \
128
6.20k
{ \
129
6.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.20k
                   HIGHBD_TAIL_SUFFIX); \
131
6.20k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
8.78k
                                               HIGHBD_DECL_SUFFIX) \
128
8.78k
{ \
129
8.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.78k
                   HIGHBD_TAIL_SUFFIX); \
131
8.78k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
659
                                               HIGHBD_DECL_SUFFIX) \
128
659
{ \
129
659
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
659
                   HIGHBD_TAIL_SUFFIX); \
131
659
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
472
                                               HIGHBD_DECL_SUFFIX) \
128
472
{ \
129
472
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
472
                   HIGHBD_TAIL_SUFFIX); \
131
472
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x4_c
Line
Count
Source
127
456
                                               HIGHBD_DECL_SUFFIX) \
128
456
{ \
129
456
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
456
                   HIGHBD_TAIL_SUFFIX); \
131
456
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_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_flipadst_flipadst_16x4_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_identity_16x4_c
Line
Count
Source
127
3.36k
                                               HIGHBD_DECL_SUFFIX) \
128
3.36k
{ \
129
3.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.36k
                   HIGHBD_TAIL_SUFFIX); \
131
3.36k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_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_flipadst_identity_16x4_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_identity_flipadst_16x4_c
Line
Count
Source
127
515
                                               HIGHBD_DECL_SUFFIX) \
128
515
{ \
129
515
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
515
                   HIGHBD_TAIL_SUFFIX); \
131
515
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
762
                                               HIGHBD_DECL_SUFFIX) \
128
762
{ \
129
762
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
762
                   HIGHBD_TAIL_SUFFIX); \
131
762
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
668
                                               HIGHBD_DECL_SUFFIX) \
128
668
{ \
129
668
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
668
                   HIGHBD_TAIL_SUFFIX); \
131
668
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
15.0k
                                               HIGHBD_DECL_SUFFIX) \
128
15.0k
{ \
129
15.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.0k
                   HIGHBD_TAIL_SUFFIX); \
131
15.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
3.51k
                                               HIGHBD_DECL_SUFFIX) \
128
3.51k
{ \
129
3.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.51k
                   HIGHBD_TAIL_SUFFIX); \
131
3.51k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
9.63k
                                               HIGHBD_DECL_SUFFIX) \
128
9.63k
{ \
129
9.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.63k
                   HIGHBD_TAIL_SUFFIX); \
131
9.63k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
7.96k
                                               HIGHBD_DECL_SUFFIX) \
128
7.96k
{ \
129
7.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.96k
                   HIGHBD_TAIL_SUFFIX); \
131
7.96k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
8.83k
                                               HIGHBD_DECL_SUFFIX) \
128
8.83k
{ \
129
8.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.83k
                   HIGHBD_TAIL_SUFFIX); \
131
8.83k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
734
                                               HIGHBD_DECL_SUFFIX) \
128
734
{ \
129
734
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
734
                   HIGHBD_TAIL_SUFFIX); \
131
734
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
649
                                               HIGHBD_DECL_SUFFIX) \
128
649
{ \
129
649
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
649
                   HIGHBD_TAIL_SUFFIX); \
131
649
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
778
                                               HIGHBD_DECL_SUFFIX) \
128
778
{ \
129
778
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
778
                   HIGHBD_TAIL_SUFFIX); \
131
778
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
721
                                               HIGHBD_DECL_SUFFIX) \
128
721
{ \
129
721
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
721
                   HIGHBD_TAIL_SUFFIX); \
131
721
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_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_identity_16x8_c
Line
Count
Source
127
2.68k
                                               HIGHBD_DECL_SUFFIX) \
128
2.68k
{ \
129
2.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.68k
                   HIGHBD_TAIL_SUFFIX); \
131
2.68k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
1.30k
                                               HIGHBD_DECL_SUFFIX) \
128
1.30k
{ \
129
1.30k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.30k
                   HIGHBD_TAIL_SUFFIX); \
131
1.30k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_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_identity_flipadst_16x8_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_adst_identity_16x8_c
Line
Count
Source
127
742
                                               HIGHBD_DECL_SUFFIX) \
128
742
{ \
129
742
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
742
                   HIGHBD_TAIL_SUFFIX); \
131
742
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x8_c
Line
Count
Source
127
293
                                               HIGHBD_DECL_SUFFIX) \
128
293
{ \
129
293
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
293
                   HIGHBD_TAIL_SUFFIX); \
131
293
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
28.2k
                                               HIGHBD_DECL_SUFFIX) \
128
28.2k
{ \
129
28.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
28.2k
                   HIGHBD_TAIL_SUFFIX); \
131
28.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_c
Line
Count
Source
127
3.16k
                                               HIGHBD_DECL_SUFFIX) \
128
3.16k
{ \
129
3.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.16k
                   HIGHBD_TAIL_SUFFIX); \
131
3.16k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
21.0k
                                               HIGHBD_DECL_SUFFIX) \
128
21.0k
{ \
129
21.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.0k
                   HIGHBD_TAIL_SUFFIX); \
131
21.0k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
17.1k
                                               HIGHBD_DECL_SUFFIX) \
128
17.1k
{ \
129
17.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.1k
                   HIGHBD_TAIL_SUFFIX); \
131
17.1k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
21.1k
                                               HIGHBD_DECL_SUFFIX) \
128
21.1k
{ \
129
21.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
21.1k
                   HIGHBD_TAIL_SUFFIX); \
131
21.1k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
869
                                               HIGHBD_DECL_SUFFIX) \
128
869
{ \
129
869
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
869
                   HIGHBD_TAIL_SUFFIX); \
131
869
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_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_16x16_c
Line
Count
Source
127
1.02k
                                               HIGHBD_DECL_SUFFIX) \
128
1.02k
{ \
129
1.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.02k
                   HIGHBD_TAIL_SUFFIX); \
131
1.02k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
883
                                               HIGHBD_DECL_SUFFIX) \
128
883
{ \
129
883
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
883
                   HIGHBD_TAIL_SUFFIX); \
131
883
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
953
                                               HIGHBD_DECL_SUFFIX) \
128
953
{ \
129
953
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
953
                   HIGHBD_TAIL_SUFFIX); \
131
953
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_16x16_c
Line
Count
Source
127
717
                                               HIGHBD_DECL_SUFFIX) \
128
717
{ \
129
717
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
717
                   HIGHBD_TAIL_SUFFIX); \
131
717
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
17.9k
                                               HIGHBD_DECL_SUFFIX) \
128
17.9k
{ \
129
17.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.9k
                   HIGHBD_TAIL_SUFFIX); \
131
17.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_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_dct_dct_16x64_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_dct_dct_32x8_c
Line
Count
Source
127
16.0k
                                               HIGHBD_DECL_SUFFIX) \
128
16.0k
{ \
129
16.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.0k
                   HIGHBD_TAIL_SUFFIX); \
131
16.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
827
                                               HIGHBD_DECL_SUFFIX) \
128
827
{ \
129
827
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
827
                   HIGHBD_TAIL_SUFFIX); \
131
827
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
15.0k
                                               HIGHBD_DECL_SUFFIX) \
128
15.0k
{ \
129
15.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.0k
                   HIGHBD_TAIL_SUFFIX); \
131
15.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_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_dct_32x32_c
Line
Count
Source
127
62.3k
                                               HIGHBD_DECL_SUFFIX) \
128
62.3k
{ \
129
62.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
62.3k
                   HIGHBD_TAIL_SUFFIX); \
131
62.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
174
                                               HIGHBD_DECL_SUFFIX) \
128
174
{ \
129
174
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
174
                   HIGHBD_TAIL_SUFFIX); \
131
174
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
8.87k
                                               HIGHBD_DECL_SUFFIX) \
128
8.87k
{ \
129
8.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.87k
                   HIGHBD_TAIL_SUFFIX); \
131
8.87k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
2.63k
                                               HIGHBD_DECL_SUFFIX) \
128
2.63k
{ \
129
2.63k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.63k
                   HIGHBD_TAIL_SUFFIX); \
131
2.63k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
5.21k
                                               HIGHBD_DECL_SUFFIX) \
128
5.21k
{ \
129
5.21k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.21k
                   HIGHBD_TAIL_SUFFIX); \
131
5.21k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
59.7k
                                               HIGHBD_DECL_SUFFIX) \
128
59.7k
{ \
129
59.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
59.7k
                   HIGHBD_TAIL_SUFFIX); \
131
59.7k
}
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
52.3k
{
188
52.3k
    int32_t tmp[4 * 4], *c = tmp;
189
261k
    for (int y = 0; y < 4; y++, c += 4) {
190
1.04M
        for (int x = 0; x < 4; x++)
191
837k
            c[x] = coeff[y + x * 4] >> 2;
192
209k
        dav1d_inv_wht4_1d_c(c, 1);
193
209k
    }
194
52.3k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
261k
    for (int x = 0; x < 4; x++)
197
209k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
52.3k
    c = tmp;
200
261k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
1.04M
        for (int x = 0; x < 4; x++)
202
837k
            dst[x] = iclip_pixel(dst[x] + *c++);
203
52.3k
}
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
24.4k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
24.4k
#define assign_itx_all_fn64(w, h, pfx) \
222
464k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
464k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
24.4k
#define assign_itx_all_fn32(w, h, pfx) \
226
342k
    assign_itx_all_fn64(w, h, pfx); \
227
342k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
342k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
24.4k
#define assign_itx_all_fn16(w, h, pfx) \
231
219k
    assign_itx_all_fn32(w, h, pfx); \
232
219k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
219k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
219k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
219k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
219k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
219k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
219k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
219k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
219k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
219k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
219k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
219k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
219k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
219k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
219k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
219k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
219k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
219k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
219k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
219k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
24.4k
#define assign_itx_all_fn84(w, h, pfx) \
254
195k
    assign_itx_all_fn16(w, h, pfx); \
255
195k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
195k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
195k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
195k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
195k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
195k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
195k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
195k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
24.4k
264
24.4k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
24.4k
  ARCH_AARCH64 || \
266
24.4k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
24.4k
))
268
24.4k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
24.4k
#endif
270
24.4k
    assign_itx_all_fn84( 4,  4, );
271
24.4k
    assign_itx_all_fn84( 4,  8, R);
272
24.4k
    assign_itx_all_fn84( 4, 16, R);
273
24.4k
    assign_itx_all_fn84( 8,  4, R);
274
24.4k
    assign_itx_all_fn84( 8,  8, );
275
24.4k
    assign_itx_all_fn84( 8, 16, R);
276
24.4k
    assign_itx_all_fn32( 8, 32, R);
277
24.4k
    assign_itx_all_fn84(16,  4, R);
278
24.4k
    assign_itx_all_fn84(16,  8, R);
279
24.4k
    assign_itx_all_fn16(16, 16, );
280
24.4k
    assign_itx_all_fn32(16, 32, R);
281
24.4k
    assign_itx_all_fn64(16, 64, R);
282
24.4k
    assign_itx_all_fn32(32,  8, R);
283
24.4k
    assign_itx_all_fn32(32, 16, R);
284
24.4k
    assign_itx_all_fn32(32, 32, );
285
24.4k
    assign_itx_all_fn64(32, 64, R);
286
24.4k
    assign_itx_all_fn64(64, 16, R);
287
24.4k
    assign_itx_all_fn64(64, 32, R);
288
24.4k
    assign_itx_all_fn64(64, 64, );
289
290
24.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
24.4k
    if (!all_simd)
310
24.4k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
24.4k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
10.6k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
10.6k
#define assign_itx_all_fn64(w, h, pfx) \
222
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
10.6k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
10.6k
#define assign_itx_all_fn32(w, h, pfx) \
226
10.6k
    assign_itx_all_fn64(w, h, pfx); \
227
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
10.6k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
10.6k
#define assign_itx_all_fn16(w, h, pfx) \
231
10.6k
    assign_itx_all_fn32(w, h, pfx); \
232
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
10.6k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
10.6k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
10.6k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
10.6k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
10.6k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
10.6k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
10.6k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
10.6k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
10.6k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
10.6k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
10.6k
#define assign_itx_all_fn84(w, h, pfx) \
254
10.6k
    assign_itx_all_fn16(w, h, pfx); \
255
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
10.6k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
10.6k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
10.6k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
10.6k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
10.6k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
10.6k
264
10.6k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
10.6k
  ARCH_AARCH64 || \
266
10.6k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
10.6k
))
268
10.6k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
10.6k
#endif
270
10.6k
    assign_itx_all_fn84( 4,  4, );
271
10.6k
    assign_itx_all_fn84( 4,  8, R);
272
10.6k
    assign_itx_all_fn84( 4, 16, R);
273
10.6k
    assign_itx_all_fn84( 8,  4, R);
274
10.6k
    assign_itx_all_fn84( 8,  8, );
275
10.6k
    assign_itx_all_fn84( 8, 16, R);
276
10.6k
    assign_itx_all_fn32( 8, 32, R);
277
10.6k
    assign_itx_all_fn84(16,  4, R);
278
10.6k
    assign_itx_all_fn84(16,  8, R);
279
10.6k
    assign_itx_all_fn16(16, 16, );
280
10.6k
    assign_itx_all_fn32(16, 32, R);
281
10.6k
    assign_itx_all_fn64(16, 64, R);
282
10.6k
    assign_itx_all_fn32(32,  8, R);
283
10.6k
    assign_itx_all_fn32(32, 16, R);
284
10.6k
    assign_itx_all_fn32(32, 32, );
285
10.6k
    assign_itx_all_fn64(32, 64, R);
286
10.6k
    assign_itx_all_fn64(64, 16, R);
287
10.6k
    assign_itx_all_fn64(64, 32, R);
288
10.6k
    assign_itx_all_fn64(64, 64, );
289
290
10.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
10.6k
    if (!all_simd)
310
10.6k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
10.6k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
13.7k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
13.7k
#define assign_itx_all_fn64(w, h, pfx) \
222
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
13.7k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
13.7k
#define assign_itx_all_fn32(w, h, pfx) \
226
13.7k
    assign_itx_all_fn64(w, h, pfx); \
227
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
13.7k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
13.7k
#define assign_itx_all_fn16(w, h, pfx) \
231
13.7k
    assign_itx_all_fn32(w, h, pfx); \
232
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
13.7k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
13.7k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
13.7k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
13.7k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
13.7k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
13.7k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
13.7k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
13.7k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
13.7k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
13.7k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
13.7k
#define assign_itx_all_fn84(w, h, pfx) \
254
13.7k
    assign_itx_all_fn16(w, h, pfx); \
255
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
13.7k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
13.7k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
13.7k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
13.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
13.7k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
13.7k
264
13.7k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
13.7k
  ARCH_AARCH64 || \
266
13.7k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
13.7k
))
268
13.7k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
13.7k
#endif
270
13.7k
    assign_itx_all_fn84( 4,  4, );
271
13.7k
    assign_itx_all_fn84( 4,  8, R);
272
13.7k
    assign_itx_all_fn84( 4, 16, R);
273
13.7k
    assign_itx_all_fn84( 8,  4, R);
274
13.7k
    assign_itx_all_fn84( 8,  8, );
275
13.7k
    assign_itx_all_fn84( 8, 16, R);
276
13.7k
    assign_itx_all_fn32( 8, 32, R);
277
13.7k
    assign_itx_all_fn84(16,  4, R);
278
13.7k
    assign_itx_all_fn84(16,  8, R);
279
13.7k
    assign_itx_all_fn16(16, 16, );
280
13.7k
    assign_itx_all_fn32(16, 32, R);
281
13.7k
    assign_itx_all_fn64(16, 64, R);
282
13.7k
    assign_itx_all_fn32(32,  8, R);
283
13.7k
    assign_itx_all_fn32(32, 16, R);
284
13.7k
    assign_itx_all_fn32(32, 32, );
285
13.7k
    assign_itx_all_fn64(32, 64, R);
286
13.7k
    assign_itx_all_fn64(64, 16, R);
287
13.7k
    assign_itx_all_fn64(64, 32, R);
288
13.7k
    assign_itx_all_fn64(64, 64, );
289
290
13.7k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
13.7k
    if (!all_simd)
310
13.7k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
13.7k
}