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
461k
{
48
461k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
461k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
461k
    const int has_dconly = txtp == DCT_DCT;
51
461k
    assert(w >= 4 && w <= 64);
52
461k
    assert(h >= 4 && h <= 64);
53
461k
    assert(eob >= 0);
54
55
461k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
461k
    const int rnd = (1 << shift) >> 1;
57
58
461k
    if (eob < has_dconly) {
59
107k
        int dc = coeff[0];
60
107k
        coeff[0] = 0;
61
107k
        if (is_rect2)
62
30.5k
            dc = (dc * 181 + 128) >> 8;
63
107k
        dc = (dc * 181 + 128) >> 8;
64
107k
        dc = (dc + rnd) >> shift;
65
107k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
3.57M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
129M
            for (int x = 0; x < w; x++)
68
125M
                dst[x] = iclip_pixel(dst[x] + dc);
69
107k
        return;
70
107k
    }
71
72
353k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
353k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
353k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
353k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
353k
#if BITDEPTH == 8
77
353k
    const int row_clip_min = INT16_MIN;
78
353k
    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
353k
    const int row_clip_max = ~row_clip_min;
84
353k
    const int col_clip_max = ~col_clip_min;
85
86
353k
    int32_t tmp[64 * 64], *c = tmp;
87
353k
    int last_nonzero_col; // in first 1d itx
88
353k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
40.1k
        last_nonzero_col = imin(sh - 1, eob);
90
313k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
30.5k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
282k
    } else {
93
282k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
282k
    }
95
353k
    assert(last_nonzero_col < sh);
96
1.95M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
1.60M
        if (is_rect2)
98
10.7M
            for (int x = 0; x < sw; x++)
99
10.1M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
932k
        else
101
13.8M
            for (int x = 0; x < sw; x++)
102
12.9M
                c[x] = coeff[y + x * sh];
103
1.60M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
1.60M
    }
105
353k
    if (last_nonzero_col + 1 < sh)
106
271k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
353k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
82.3M
    for (int i = 0; i < w * sh; i++)
110
82.0M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
4.96M
    for (int x = 0; x < w; x++)
113
4.61M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
353k
    c = tmp;
116
5.15M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
112M
        for (int x = 0; x < w; x++)
118
107M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
353k
}
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
461k
                                               HIGHBD_DECL_SUFFIX) \
128
461k
{ \
129
461k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
461k
                   HIGHBD_TAIL_SUFFIX); \
131
461k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
11.0k
                                               HIGHBD_DECL_SUFFIX) \
128
11.0k
{ \
129
11.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.0k
                   HIGHBD_TAIL_SUFFIX); \
131
11.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
5.87k
                                               HIGHBD_DECL_SUFFIX) \
128
5.87k
{ \
129
5.87k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.87k
                   HIGHBD_TAIL_SUFFIX); \
131
5.87k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
4.38k
                                               HIGHBD_DECL_SUFFIX) \
128
4.38k
{ \
129
4.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.38k
                   HIGHBD_TAIL_SUFFIX); \
131
4.38k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
3.96k
                                               HIGHBD_DECL_SUFFIX) \
128
3.96k
{ \
129
3.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.96k
                   HIGHBD_TAIL_SUFFIX); \
131
3.96k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
6.16k
                                               HIGHBD_DECL_SUFFIX) \
128
6.16k
{ \
129
6.16k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.16k
                   HIGHBD_TAIL_SUFFIX); \
131
6.16k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
1.36k
                                               HIGHBD_DECL_SUFFIX) \
128
1.36k
{ \
129
1.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.36k
                   HIGHBD_TAIL_SUFFIX); \
131
1.36k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_dct_4x4_c
Line
Count
Source
127
1.18k
                                               HIGHBD_DECL_SUFFIX) \
128
1.18k
{ \
129
1.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.18k
                   HIGHBD_TAIL_SUFFIX); \
131
1.18k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
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_flipadst_flipadst_4x4_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_dct_identity_4x4_c
Line
Count
Source
127
4.33k
                                               HIGHBD_DECL_SUFFIX) \
128
4.33k
{ \
129
4.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.33k
                   HIGHBD_TAIL_SUFFIX); \
131
4.33k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x4_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_flipadst_identity_4x4_c
Line
Count
Source
127
2.13k
                                               HIGHBD_DECL_SUFFIX) \
128
2.13k
{ \
129
2.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.13k
                   HIGHBD_TAIL_SUFFIX); \
131
2.13k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
1.59k
                                               HIGHBD_DECL_SUFFIX) \
128
1.59k
{ \
129
1.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.59k
                   HIGHBD_TAIL_SUFFIX); \
131
1.59k
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
3.88k
                                               HIGHBD_DECL_SUFFIX) \
128
3.88k
{ \
129
3.88k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.88k
                   HIGHBD_TAIL_SUFFIX); \
131
3.88k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
4.41k
                                               HIGHBD_DECL_SUFFIX) \
128
4.41k
{ \
129
4.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.41k
                   HIGHBD_TAIL_SUFFIX); \
131
4.41k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
5.15k
                                               HIGHBD_DECL_SUFFIX) \
128
5.15k
{ \
129
5.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.15k
                   HIGHBD_TAIL_SUFFIX); \
131
5.15k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
2.78k
                                               HIGHBD_DECL_SUFFIX) \
128
2.78k
{ \
129
2.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.78k
                   HIGHBD_TAIL_SUFFIX); \
131
2.78k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
1.83k
                                               HIGHBD_DECL_SUFFIX) \
128
1.83k
{ \
129
1.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.83k
                   HIGHBD_TAIL_SUFFIX); \
131
1.83k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
1.69k
                                               HIGHBD_DECL_SUFFIX) \
128
1.69k
{ \
129
1.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.69k
                   HIGHBD_TAIL_SUFFIX); \
131
1.69k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_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_flipadst_adst_4x8_c
Line
Count
Source
127
1.40k
                                               HIGHBD_DECL_SUFFIX) \
128
1.40k
{ \
129
1.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.40k
                   HIGHBD_TAIL_SUFFIX); \
131
1.40k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
1.09k
                                               HIGHBD_DECL_SUFFIX) \
128
1.09k
{ \
129
1.09k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.09k
                   HIGHBD_TAIL_SUFFIX); \
131
1.09k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
736
                                               HIGHBD_DECL_SUFFIX) \
128
736
{ \
129
736
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
736
                   HIGHBD_TAIL_SUFFIX); \
131
736
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
971
                                               HIGHBD_DECL_SUFFIX) \
128
971
{ \
129
971
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
971
                   HIGHBD_TAIL_SUFFIX); \
131
971
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
675
                                               HIGHBD_DECL_SUFFIX) \
128
675
{ \
129
675
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
675
                   HIGHBD_TAIL_SUFFIX); \
131
675
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
1.64k
                                               HIGHBD_DECL_SUFFIX) \
128
1.64k
{ \
129
1.64k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.64k
                   HIGHBD_TAIL_SUFFIX); \
131
1.64k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_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_4x8_c
Line
Count
Source
127
743
                                               HIGHBD_DECL_SUFFIX) \
128
743
{ \
129
743
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
743
                   HIGHBD_TAIL_SUFFIX); \
131
743
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_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_adst_identity_4x8_c
Line
Count
Source
127
1.04k
                                               HIGHBD_DECL_SUFFIX) \
128
1.04k
{ \
129
1.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.04k
                   HIGHBD_TAIL_SUFFIX); \
131
1.04k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x8_c
Line
Count
Source
127
787
                                               HIGHBD_DECL_SUFFIX) \
128
787
{ \
129
787
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
787
                   HIGHBD_TAIL_SUFFIX); \
131
787
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
2.03k
                                               HIGHBD_DECL_SUFFIX) \
128
2.03k
{ \
129
2.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.03k
                   HIGHBD_TAIL_SUFFIX); \
131
2.03k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
924
                                               HIGHBD_DECL_SUFFIX) \
128
924
{ \
129
924
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
924
                   HIGHBD_TAIL_SUFFIX); \
131
924
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_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_dct_adst_4x16_c
Line
Count
Source
127
831
                                               HIGHBD_DECL_SUFFIX) \
128
831
{ \
129
831
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
831
                   HIGHBD_TAIL_SUFFIX); \
131
831
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_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_flipadst_adst_4x16_c
Line
Count
Source
127
277
                                               HIGHBD_DECL_SUFFIX) \
128
277
{ \
129
277
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
277
                   HIGHBD_TAIL_SUFFIX); \
131
277
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
559
                                               HIGHBD_DECL_SUFFIX) \
128
559
{ \
129
559
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
559
                   HIGHBD_TAIL_SUFFIX); \
131
559
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
260
                                               HIGHBD_DECL_SUFFIX) \
128
260
{ \
129
260
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
260
                   HIGHBD_TAIL_SUFFIX); \
131
260
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
307
                                               HIGHBD_DECL_SUFFIX) \
128
307
{ \
129
307
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
307
                   HIGHBD_TAIL_SUFFIX); \
131
307
}
itx_tmpl.c:inv_txfm_add_flipadst_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
613
                                               HIGHBD_DECL_SUFFIX) \
128
613
{ \
129
613
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
613
                   HIGHBD_TAIL_SUFFIX); \
131
613
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
241
                                               HIGHBD_DECL_SUFFIX) \
128
241
{ \
129
241
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
241
                   HIGHBD_TAIL_SUFFIX); \
131
241
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
416
                                               HIGHBD_DECL_SUFFIX) \
128
416
{ \
129
416
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
416
                   HIGHBD_TAIL_SUFFIX); \
131
416
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
238
                                               HIGHBD_DECL_SUFFIX) \
128
238
{ \
129
238
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
238
                   HIGHBD_TAIL_SUFFIX); \
131
238
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
436
                                               HIGHBD_DECL_SUFFIX) \
128
436
{ \
129
436
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
436
                   HIGHBD_TAIL_SUFFIX); \
131
436
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
322
                                               HIGHBD_DECL_SUFFIX) \
128
322
{ \
129
322
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
322
                   HIGHBD_TAIL_SUFFIX); \
131
322
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_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_8x4_c
Line
Count
Source
127
3.69k
                                               HIGHBD_DECL_SUFFIX) \
128
3.69k
{ \
129
3.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.69k
                   HIGHBD_TAIL_SUFFIX); \
131
3.69k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x4_c
Line
Count
Source
127
2.96k
                                               HIGHBD_DECL_SUFFIX) \
128
2.96k
{ \
129
2.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.96k
                   HIGHBD_TAIL_SUFFIX); \
131
2.96k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
2.20k
                                               HIGHBD_DECL_SUFFIX) \
128
2.20k
{ \
129
2.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.20k
                   HIGHBD_TAIL_SUFFIX); \
131
2.20k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
3.11k
                                               HIGHBD_DECL_SUFFIX) \
128
3.11k
{ \
129
3.11k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.11k
                   HIGHBD_TAIL_SUFFIX); \
131
3.11k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
4.42k
                                               HIGHBD_DECL_SUFFIX) \
128
4.42k
{ \
129
4.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.42k
                   HIGHBD_TAIL_SUFFIX); \
131
4.42k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
989
                                               HIGHBD_DECL_SUFFIX) \
128
989
{ \
129
989
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
989
                   HIGHBD_TAIL_SUFFIX); \
131
989
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
1.69k
                                               HIGHBD_DECL_SUFFIX) \
128
1.69k
{ \
129
1.69k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.69k
                   HIGHBD_TAIL_SUFFIX); \
131
1.69k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
858
                                               HIGHBD_DECL_SUFFIX) \
128
858
{ \
129
858
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
858
                   HIGHBD_TAIL_SUFFIX); \
131
858
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
2.34k
                                               HIGHBD_DECL_SUFFIX) \
128
2.34k
{ \
129
2.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.34k
                   HIGHBD_TAIL_SUFFIX); \
131
2.34k
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_c
Line
Count
Source
127
2.32k
                                               HIGHBD_DECL_SUFFIX) \
128
2.32k
{ \
129
2.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.32k
                   HIGHBD_TAIL_SUFFIX); \
131
2.32k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x4_c
Line
Count
Source
127
934
                                               HIGHBD_DECL_SUFFIX) \
128
934
{ \
129
934
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
934
                   HIGHBD_TAIL_SUFFIX); \
131
934
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x4_c
Line
Count
Source
127
2.14k
                                               HIGHBD_DECL_SUFFIX) \
128
2.14k
{ \
129
2.14k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.14k
                   HIGHBD_TAIL_SUFFIX); \
131
2.14k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
4.02k
                                               HIGHBD_DECL_SUFFIX) \
128
4.02k
{ \
129
4.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.02k
                   HIGHBD_TAIL_SUFFIX); \
131
4.02k
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
2.47k
                                               HIGHBD_DECL_SUFFIX) \
128
2.47k
{ \
129
2.47k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.47k
                   HIGHBD_TAIL_SUFFIX); \
131
2.47k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
1.36k
                                               HIGHBD_DECL_SUFFIX) \
128
1.36k
{ \
129
1.36k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.36k
                   HIGHBD_TAIL_SUFFIX); \
131
1.36k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
18.6k
                                               HIGHBD_DECL_SUFFIX) \
128
18.6k
{ \
129
18.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
18.6k
                   HIGHBD_TAIL_SUFFIX); \
131
18.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
7.56k
                                               HIGHBD_DECL_SUFFIX) \
128
7.56k
{ \
129
7.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.56k
                   HIGHBD_TAIL_SUFFIX); \
131
7.56k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
7.73k
                                               HIGHBD_DECL_SUFFIX) \
128
7.73k
{ \
129
7.73k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.73k
                   HIGHBD_TAIL_SUFFIX); \
131
7.73k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
7.68k
                                               HIGHBD_DECL_SUFFIX) \
128
7.68k
{ \
129
7.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.68k
                   HIGHBD_TAIL_SUFFIX); \
131
7.68k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
7.97k
                                               HIGHBD_DECL_SUFFIX) \
128
7.97k
{ \
129
7.97k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.97k
                   HIGHBD_TAIL_SUFFIX); \
131
7.97k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
2.26k
                                               HIGHBD_DECL_SUFFIX) \
128
2.26k
{ \
129
2.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.26k
                   HIGHBD_TAIL_SUFFIX); \
131
2.26k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
1.71k
                                               HIGHBD_DECL_SUFFIX) \
128
1.71k
{ \
129
1.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.71k
                   HIGHBD_TAIL_SUFFIX); \
131
1.71k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x8_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_dct_flipadst_8x8_c
Line
Count
Source
127
2.13k
                                               HIGHBD_DECL_SUFFIX) \
128
2.13k
{ \
129
2.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.13k
                   HIGHBD_TAIL_SUFFIX); \
131
2.13k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
1.67k
                                               HIGHBD_DECL_SUFFIX) \
128
1.67k
{ \
129
1.67k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.67k
                   HIGHBD_TAIL_SUFFIX); \
131
1.67k
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
4.06k
                                               HIGHBD_DECL_SUFFIX) \
128
4.06k
{ \
129
4.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.06k
                   HIGHBD_TAIL_SUFFIX); \
131
4.06k
}
itx_tmpl.c:inv_txfm_add_identity_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_flipadst_identity_8x8_c
Line
Count
Source
127
2.32k
                                               HIGHBD_DECL_SUFFIX) \
128
2.32k
{ \
129
2.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.32k
                   HIGHBD_TAIL_SUFFIX); \
131
2.32k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
1.40k
                                               HIGHBD_DECL_SUFFIX) \
128
1.40k
{ \
129
1.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.40k
                   HIGHBD_TAIL_SUFFIX); \
131
1.40k
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
2.12k
                                               HIGHBD_DECL_SUFFIX) \
128
2.12k
{ \
129
2.12k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.12k
                   HIGHBD_TAIL_SUFFIX); \
131
2.12k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
1.96k
                                               HIGHBD_DECL_SUFFIX) \
128
1.96k
{ \
129
1.96k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.96k
                   HIGHBD_TAIL_SUFFIX); \
131
1.96k
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
8.61k
                                               HIGHBD_DECL_SUFFIX) \
128
8.61k
{ \
129
8.61k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.61k
                   HIGHBD_TAIL_SUFFIX); \
131
8.61k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
1.34k
                                               HIGHBD_DECL_SUFFIX) \
128
1.34k
{ \
129
1.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.34k
                   HIGHBD_TAIL_SUFFIX); \
131
1.34k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
2.29k
                                               HIGHBD_DECL_SUFFIX) \
128
2.29k
{ \
129
2.29k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.29k
                   HIGHBD_TAIL_SUFFIX); \
131
2.29k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
2.27k
                                               HIGHBD_DECL_SUFFIX) \
128
2.27k
{ \
129
2.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.27k
                   HIGHBD_TAIL_SUFFIX); \
131
2.27k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_c
Line
Count
Source
127
4.08k
                                               HIGHBD_DECL_SUFFIX) \
128
4.08k
{ \
129
4.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.08k
                   HIGHBD_TAIL_SUFFIX); \
131
4.08k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x16_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_adst_flipadst_8x16_c
Line
Count
Source
127
840
                                               HIGHBD_DECL_SUFFIX) \
128
840
{ \
129
840
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
840
                   HIGHBD_TAIL_SUFFIX); \
131
840
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
816
                                               HIGHBD_DECL_SUFFIX) \
128
816
{ \
129
816
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
816
                   HIGHBD_TAIL_SUFFIX); \
131
816
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
785
                                               HIGHBD_DECL_SUFFIX) \
128
785
{ \
129
785
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
785
                   HIGHBD_TAIL_SUFFIX); \
131
785
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
1.19k
                                               HIGHBD_DECL_SUFFIX) \
128
1.19k
{ \
129
1.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.19k
                   HIGHBD_TAIL_SUFFIX); \
131
1.19k
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
1.37k
                                               HIGHBD_DECL_SUFFIX) \
128
1.37k
{ \
129
1.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.37k
                   HIGHBD_TAIL_SUFFIX); \
131
1.37k
}
itx_tmpl.c:inv_txfm_add_identity_dct_8x16_c
Line
Count
Source
127
818
                                               HIGHBD_DECL_SUFFIX) \
128
818
{ \
129
818
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
818
                   HIGHBD_TAIL_SUFFIX); \
131
818
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_8x16_c
Line
Count
Source
127
787
                                               HIGHBD_DECL_SUFFIX) \
128
787
{ \
129
787
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
787
                   HIGHBD_TAIL_SUFFIX); \
131
787
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
715
                                               HIGHBD_DECL_SUFFIX) \
128
715
{ \
129
715
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
715
                   HIGHBD_TAIL_SUFFIX); \
131
715
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
771
                                               HIGHBD_DECL_SUFFIX) \
128
771
{ \
129
771
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
771
                   HIGHBD_TAIL_SUFFIX); \
131
771
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_c
Line
Count
Source
127
736
                                               HIGHBD_DECL_SUFFIX) \
128
736
{ \
129
736
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
736
                   HIGHBD_TAIL_SUFFIX); \
131
736
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x32_c
Line
Count
Source
127
3.78k
                                               HIGHBD_DECL_SUFFIX) \
128
3.78k
{ \
129
3.78k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.78k
                   HIGHBD_TAIL_SUFFIX); \
131
3.78k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
359
                                               HIGHBD_DECL_SUFFIX) \
128
359
{ \
129
359
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
359
                   HIGHBD_TAIL_SUFFIX); \
131
359
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
2.65k
                                               HIGHBD_DECL_SUFFIX) \
128
2.65k
{ \
129
2.65k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.65k
                   HIGHBD_TAIL_SUFFIX); \
131
2.65k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
1.27k
                                               HIGHBD_DECL_SUFFIX) \
128
1.27k
{ \
129
1.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.27k
                   HIGHBD_TAIL_SUFFIX); \
131
1.27k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
1.34k
                                               HIGHBD_DECL_SUFFIX) \
128
1.34k
{ \
129
1.34k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.34k
                   HIGHBD_TAIL_SUFFIX); \
131
1.34k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
1.06k
                                               HIGHBD_DECL_SUFFIX) \
128
1.06k
{ \
129
1.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.06k
                   HIGHBD_TAIL_SUFFIX); \
131
1.06k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_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_flipadst_adst_16x4_c
Line
Count
Source
127
367
                                               HIGHBD_DECL_SUFFIX) \
128
367
{ \
129
367
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
367
                   HIGHBD_TAIL_SUFFIX); \
131
367
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_c
Line
Count
Source
127
483
                                               HIGHBD_DECL_SUFFIX) \
128
483
{ \
129
483
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
483
                   HIGHBD_TAIL_SUFFIX); \
131
483
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_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_dct_flipadst_16x4_c
Line
Count
Source
127
451
                                               HIGHBD_DECL_SUFFIX) \
128
451
{ \
129
451
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
451
                   HIGHBD_TAIL_SUFFIX); \
131
451
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
338
                                               HIGHBD_DECL_SUFFIX) \
128
338
{ \
129
338
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
338
                   HIGHBD_TAIL_SUFFIX); \
131
338
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
688
                                               HIGHBD_DECL_SUFFIX) \
128
688
{ \
129
688
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
688
                   HIGHBD_TAIL_SUFFIX); \
131
688
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
431
                                               HIGHBD_DECL_SUFFIX) \
128
431
{ \
129
431
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
431
                   HIGHBD_TAIL_SUFFIX); \
131
431
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
471
                                               HIGHBD_DECL_SUFFIX) \
128
471
{ \
129
471
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
471
                   HIGHBD_TAIL_SUFFIX); \
131
471
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
386
                                               HIGHBD_DECL_SUFFIX) \
128
386
{ \
129
386
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
386
                   HIGHBD_TAIL_SUFFIX); \
131
386
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
678
                                               HIGHBD_DECL_SUFFIX) \
128
678
{ \
129
678
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
678
                   HIGHBD_TAIL_SUFFIX); \
131
678
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
360
                                               HIGHBD_DECL_SUFFIX) \
128
360
{ \
129
360
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
360
                   HIGHBD_TAIL_SUFFIX); \
131
360
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
7.03k
                                               HIGHBD_DECL_SUFFIX) \
128
7.03k
{ \
129
7.03k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.03k
                   HIGHBD_TAIL_SUFFIX); \
131
7.03k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x8_c
Line
Count
Source
127
1.85k
                                               HIGHBD_DECL_SUFFIX) \
128
1.85k
{ \
129
1.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.85k
                   HIGHBD_TAIL_SUFFIX); \
131
1.85k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x8_c
Line
Count
Source
127
2.79k
                                               HIGHBD_DECL_SUFFIX) \
128
2.79k
{ \
129
2.79k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.79k
                   HIGHBD_TAIL_SUFFIX); \
131
2.79k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
2.00k
                                               HIGHBD_DECL_SUFFIX) \
128
2.00k
{ \
129
2.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.00k
                   HIGHBD_TAIL_SUFFIX); \
131
2.00k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
2.83k
                                               HIGHBD_DECL_SUFFIX) \
128
2.83k
{ \
129
2.83k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.83k
                   HIGHBD_TAIL_SUFFIX); \
131
2.83k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_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_flipadst_16x8_c
Line
Count
Source
127
938
                                               HIGHBD_DECL_SUFFIX) \
128
938
{ \
129
938
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
938
                   HIGHBD_TAIL_SUFFIX); \
131
938
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_c
Line
Count
Source
127
971
                                               HIGHBD_DECL_SUFFIX) \
128
971
{ \
129
971
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
971
                   HIGHBD_TAIL_SUFFIX); \
131
971
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x8_c
Line
Count
Source
127
1.10k
                                               HIGHBD_DECL_SUFFIX) \
128
1.10k
{ \
129
1.10k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.10k
                   HIGHBD_TAIL_SUFFIX); \
131
1.10k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
797
                                               HIGHBD_DECL_SUFFIX) \
128
797
{ \
129
797
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
797
                   HIGHBD_TAIL_SUFFIX); \
131
797
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_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_identity_dct_16x8_c
Line
Count
Source
127
945
                                               HIGHBD_DECL_SUFFIX) \
128
945
{ \
129
945
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
945
                   HIGHBD_TAIL_SUFFIX); \
131
945
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
943
                                               HIGHBD_DECL_SUFFIX) \
128
943
{ \
129
943
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
943
                   HIGHBD_TAIL_SUFFIX); \
131
943
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
733
                                               HIGHBD_DECL_SUFFIX) \
128
733
{ \
129
733
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
733
                   HIGHBD_TAIL_SUFFIX); \
131
733
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_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_adst_16x8_c
Line
Count
Source
127
748
                                               HIGHBD_DECL_SUFFIX) \
128
748
{ \
129
748
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
748
                   HIGHBD_TAIL_SUFFIX); \
131
748
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_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_16x16_c
Line
Count
Source
127
1.20k
                                               HIGHBD_DECL_SUFFIX) \
128
1.20k
{ \
129
1.20k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.20k
                   HIGHBD_TAIL_SUFFIX); \
131
1.20k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x16_c
Line
Count
Source
127
6.41k
                                               HIGHBD_DECL_SUFFIX) \
128
6.41k
{ \
129
6.41k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.41k
                   HIGHBD_TAIL_SUFFIX); \
131
6.41k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
6.85k
                                               HIGHBD_DECL_SUFFIX) \
128
6.85k
{ \
129
6.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.85k
                   HIGHBD_TAIL_SUFFIX); \
131
6.85k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
7.85k
                                               HIGHBD_DECL_SUFFIX) \
128
7.85k
{ \
129
7.85k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.85k
                   HIGHBD_TAIL_SUFFIX); \
131
7.85k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_c
Line
Count
Source
127
1.01k
                                               HIGHBD_DECL_SUFFIX) \
128
1.01k
{ \
129
1.01k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.01k
                   HIGHBD_TAIL_SUFFIX); \
131
1.01k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x16_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_flipadst_dct_16x16_c
Line
Count
Source
127
1.28k
                                               HIGHBD_DECL_SUFFIX) \
128
1.28k
{ \
129
1.28k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.28k
                   HIGHBD_TAIL_SUFFIX); \
131
1.28k
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_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_flipadst_16x16_c
Line
Count
Source
127
945
                                               HIGHBD_DECL_SUFFIX) \
128
945
{ \
129
945
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
945
                   HIGHBD_TAIL_SUFFIX); \
131
945
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_c
Line
Count
Source
127
1.18k
                                               HIGHBD_DECL_SUFFIX) \
128
1.18k
{ \
129
1.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.18k
                   HIGHBD_TAIL_SUFFIX); \
131
1.18k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x16_c
Line
Count
Source
127
862
                                               HIGHBD_DECL_SUFFIX) \
128
862
{ \
129
862
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
862
                   HIGHBD_TAIL_SUFFIX); \
131
862
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
15.2k
                                               HIGHBD_DECL_SUFFIX) \
128
15.2k
{ \
129
15.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.2k
                   HIGHBD_TAIL_SUFFIX); \
131
15.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
2.05k
                                               HIGHBD_DECL_SUFFIX) \
128
2.05k
{ \
129
2.05k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.05k
                   HIGHBD_TAIL_SUFFIX); \
131
2.05k
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
1.05k
                                               HIGHBD_DECL_SUFFIX) \
128
1.05k
{ \
129
1.05k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.05k
                   HIGHBD_TAIL_SUFFIX); \
131
1.05k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
3.27k
                                               HIGHBD_DECL_SUFFIX) \
128
3.27k
{ \
129
3.27k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.27k
                   HIGHBD_TAIL_SUFFIX); \
131
3.27k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_c
Line
Count
Source
127
347
                                               HIGHBD_DECL_SUFFIX) \
128
347
{ \
129
347
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
347
                   HIGHBD_TAIL_SUFFIX); \
131
347
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x16_c
Line
Count
Source
127
11.9k
                                               HIGHBD_DECL_SUFFIX) \
128
11.9k
{ \
129
11.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
11.9k
                   HIGHBD_TAIL_SUFFIX); \
131
11.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
729
                                               HIGHBD_DECL_SUFFIX) \
128
729
{ \
129
729
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
729
                   HIGHBD_TAIL_SUFFIX); \
131
729
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
59.1k
                                               HIGHBD_DECL_SUFFIX) \
128
59.1k
{ \
129
59.1k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
59.1k
                   HIGHBD_TAIL_SUFFIX); \
131
59.1k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
229
                                               HIGHBD_DECL_SUFFIX) \
128
229
{ \
129
229
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
229
                   HIGHBD_TAIL_SUFFIX); \
131
229
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
20.6k
                                               HIGHBD_DECL_SUFFIX) \
128
20.6k
{ \
129
20.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
20.6k
                   HIGHBD_TAIL_SUFFIX); \
131
20.6k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
824
                                               HIGHBD_DECL_SUFFIX) \
128
824
{ \
129
824
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
824
                   HIGHBD_TAIL_SUFFIX); \
131
824
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_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_dct_64x64_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
}
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
40.3k
{
188
40.3k
    int32_t tmp[4 * 4], *c = tmp;
189
201k
    for (int y = 0; y < 4; y++, c += 4) {
190
806k
        for (int x = 0; x < 4; x++)
191
645k
            c[x] = coeff[y + x * 4] >> 2;
192
161k
        dav1d_inv_wht4_1d_c(c, 1);
193
161k
    }
194
40.3k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
201k
    for (int x = 0; x < 4; x++)
197
161k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
40.3k
    c = tmp;
200
201k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
806k
        for (int x = 0; x < 4; x++)
202
645k
            dst[x] = iclip_pixel(dst[x] + *c++);
203
40.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
28.0k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
28.0k
#define assign_itx_all_fn64(w, h, pfx) \
222
532k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
532k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
28.0k
#define assign_itx_all_fn32(w, h, pfx) \
226
392k
    assign_itx_all_fn64(w, h, pfx); \
227
392k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
392k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
28.0k
#define assign_itx_all_fn16(w, h, pfx) \
231
252k
    assign_itx_all_fn32(w, h, pfx); \
232
252k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
252k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
252k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
252k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
252k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
252k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
252k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
252k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
252k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
252k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
252k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
252k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
252k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
252k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
252k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
252k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
252k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
252k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
252k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
252k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
28.0k
#define assign_itx_all_fn84(w, h, pfx) \
254
224k
    assign_itx_all_fn16(w, h, pfx); \
255
224k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
224k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
224k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
224k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
224k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
224k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
224k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
224k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
28.0k
264
28.0k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
28.0k
  ARCH_AARCH64 || \
266
28.0k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
28.0k
))
268
28.0k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
28.0k
#endif
270
28.0k
    assign_itx_all_fn84( 4,  4, );
271
28.0k
    assign_itx_all_fn84( 4,  8, R);
272
28.0k
    assign_itx_all_fn84( 4, 16, R);
273
28.0k
    assign_itx_all_fn84( 8,  4, R);
274
28.0k
    assign_itx_all_fn84( 8,  8, );
275
28.0k
    assign_itx_all_fn84( 8, 16, R);
276
28.0k
    assign_itx_all_fn32( 8, 32, R);
277
28.0k
    assign_itx_all_fn84(16,  4, R);
278
28.0k
    assign_itx_all_fn84(16,  8, R);
279
28.0k
    assign_itx_all_fn16(16, 16, );
280
28.0k
    assign_itx_all_fn32(16, 32, R);
281
28.0k
    assign_itx_all_fn64(16, 64, R);
282
28.0k
    assign_itx_all_fn32(32,  8, R);
283
28.0k
    assign_itx_all_fn32(32, 16, R);
284
28.0k
    assign_itx_all_fn32(32, 32, );
285
28.0k
    assign_itx_all_fn64(32, 64, R);
286
28.0k
    assign_itx_all_fn64(64, 16, R);
287
28.0k
    assign_itx_all_fn64(64, 32, R);
288
28.0k
    assign_itx_all_fn64(64, 64, );
289
290
28.0k
    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
28.0k
    if (!all_simd)
310
28.0k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
28.0k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
12.8k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
12.8k
#define assign_itx_all_fn64(w, h, pfx) \
222
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
12.8k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
12.8k
#define assign_itx_all_fn32(w, h, pfx) \
226
12.8k
    assign_itx_all_fn64(w, h, pfx); \
227
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
12.8k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
12.8k
#define assign_itx_all_fn16(w, h, pfx) \
231
12.8k
    assign_itx_all_fn32(w, h, pfx); \
232
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
12.8k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
12.8k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
12.8k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
12.8k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
12.8k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
12.8k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
12.8k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
12.8k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
12.8k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
12.8k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
12.8k
#define assign_itx_all_fn84(w, h, pfx) \
254
12.8k
    assign_itx_all_fn16(w, h, pfx); \
255
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
12.8k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
12.8k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
12.8k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
12.8k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
12.8k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
12.8k
264
12.8k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
12.8k
  ARCH_AARCH64 || \
266
12.8k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
12.8k
))
268
12.8k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
12.8k
#endif
270
12.8k
    assign_itx_all_fn84( 4,  4, );
271
12.8k
    assign_itx_all_fn84( 4,  8, R);
272
12.8k
    assign_itx_all_fn84( 4, 16, R);
273
12.8k
    assign_itx_all_fn84( 8,  4, R);
274
12.8k
    assign_itx_all_fn84( 8,  8, );
275
12.8k
    assign_itx_all_fn84( 8, 16, R);
276
12.8k
    assign_itx_all_fn32( 8, 32, R);
277
12.8k
    assign_itx_all_fn84(16,  4, R);
278
12.8k
    assign_itx_all_fn84(16,  8, R);
279
12.8k
    assign_itx_all_fn16(16, 16, );
280
12.8k
    assign_itx_all_fn32(16, 32, R);
281
12.8k
    assign_itx_all_fn64(16, 64, R);
282
12.8k
    assign_itx_all_fn32(32,  8, R);
283
12.8k
    assign_itx_all_fn32(32, 16, R);
284
12.8k
    assign_itx_all_fn32(32, 32, );
285
12.8k
    assign_itx_all_fn64(32, 64, R);
286
12.8k
    assign_itx_all_fn64(64, 16, R);
287
12.8k
    assign_itx_all_fn64(64, 32, R);
288
12.8k
    assign_itx_all_fn64(64, 64, );
289
290
12.8k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
12.8k
    if (!all_simd)
310
12.8k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
12.8k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
15.1k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
15.1k
#define assign_itx_all_fn64(w, h, pfx) \
222
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
15.1k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
15.1k
#define assign_itx_all_fn32(w, h, pfx) \
226
15.1k
    assign_itx_all_fn64(w, h, pfx); \
227
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
15.1k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
15.1k
#define assign_itx_all_fn16(w, h, pfx) \
231
15.1k
    assign_itx_all_fn32(w, h, pfx); \
232
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
15.1k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
15.1k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
15.1k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
15.1k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
15.1k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
15.1k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
15.1k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
15.1k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
15.1k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
15.1k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
15.1k
#define assign_itx_all_fn84(w, h, pfx) \
254
15.1k
    assign_itx_all_fn16(w, h, pfx); \
255
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
15.1k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
15.1k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
15.1k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
15.1k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
15.1k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
15.1k
264
15.1k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
15.1k
  ARCH_AARCH64 || \
266
15.1k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
15.1k
))
268
15.1k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
15.1k
#endif
270
15.1k
    assign_itx_all_fn84( 4,  4, );
271
15.1k
    assign_itx_all_fn84( 4,  8, R);
272
15.1k
    assign_itx_all_fn84( 4, 16, R);
273
15.1k
    assign_itx_all_fn84( 8,  4, R);
274
15.1k
    assign_itx_all_fn84( 8,  8, );
275
15.1k
    assign_itx_all_fn84( 8, 16, R);
276
15.1k
    assign_itx_all_fn32( 8, 32, R);
277
15.1k
    assign_itx_all_fn84(16,  4, R);
278
15.1k
    assign_itx_all_fn84(16,  8, R);
279
15.1k
    assign_itx_all_fn16(16, 16, );
280
15.1k
    assign_itx_all_fn32(16, 32, R);
281
15.1k
    assign_itx_all_fn64(16, 64, R);
282
15.1k
    assign_itx_all_fn32(32,  8, R);
283
15.1k
    assign_itx_all_fn32(32, 16, R);
284
15.1k
    assign_itx_all_fn32(32, 32, );
285
15.1k
    assign_itx_all_fn64(32, 64, R);
286
15.1k
    assign_itx_all_fn64(64, 16, R);
287
15.1k
    assign_itx_all_fn64(64, 32, R);
288
15.1k
    assign_itx_all_fn64(64, 64, );
289
290
15.1k
    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
15.1k
    if (!all_simd)
310
15.1k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
15.1k
}