Coverage Report

Created: 2026-12-01 06:47

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
736k
{
48
736k
    const TxfmInfo *const t_dim = &dav1d_txfm_dimensions[tx];
49
736k
    const int w = 4 * t_dim->w, h = 4 * t_dim->h;
50
736k
    const int has_dconly = txtp == DCT_DCT;
51
736k
    assert(w >= 4 && w <= 64);
52
736k
    assert(h >= 4 && h <= 64);
53
736k
    assert(eob >= 0);
54
55
736k
    const int is_rect2 = w * 2 == h || h * 2 == w;
56
736k
    const int rnd = (1 << shift) >> 1;
57
58
736k
    if (eob < has_dconly) {
59
148k
        int dc = coeff[0];
60
148k
        coeff[0] = 0;
61
148k
        if (is_rect2)
62
32.1k
            dc = (dc * 181 + 128) >> 8;
63
148k
        dc = (dc * 181 + 128) >> 8;
64
148k
        dc = (dc + rnd) >> shift;
65
148k
        dc = (dc * 181 + 128 + 2048) >> 12;
66
4.00M
        for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
67
134M
            for (int x = 0; x < w; x++)
68
130M
                dst[x] = iclip_pixel(dst[x] + dc);
69
148k
        return;
70
148k
    }
71
72
588k
    const uint8_t *const txtps = dav1d_tx1d_types[txtp];
73
588k
    const itx_1d_fn first_1d_fn = dav1d_tx1d_fns[t_dim->lw][txtps[0]];
74
588k
    const itx_1d_fn second_1d_fn = dav1d_tx1d_fns[t_dim->lh][txtps[1]];
75
588k
    const int sh = imin(h, 32), sw = imin(w, 32);
76
588k
#if BITDEPTH == 8
77
588k
    const int row_clip_min = INT16_MIN;
78
588k
    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
588k
    const int row_clip_max = ~row_clip_min;
84
588k
    const int col_clip_max = ~col_clip_min;
85
86
588k
    int32_t tmp[64 * 64], *c = tmp;
87
588k
    int last_nonzero_col; // in first 1d itx
88
588k
    if (txtps[1] == IDENTITY && txtps[0] != IDENTITY) {
89
33.9k
        last_nonzero_col = imin(sh - 1, eob);
90
554k
    } else if (txtps[0] == IDENTITY && txtps[1] != IDENTITY) {
91
19.2k
        last_nonzero_col = eob >> (t_dim->lw + 2);
92
535k
    } else {
93
535k
        last_nonzero_col = dav1d_last_nonzero_col_from_eob[tx][eob];
94
535k
    }
95
588k
    assert(last_nonzero_col < sh);
96
3.61M
    for (int y = 0; y <= last_nonzero_col; y++, c += w) {
97
3.02M
        if (is_rect2)
98
13.7M
            for (int x = 0; x < sw; x++)
99
12.8M
                c[x] = (coeff[y + x * sh] * 181 + 128) >> 8;
100
2.10M
        else
101
39.2M
            for (int x = 0; x < sw; x++)
102
37.0M
                c[x] = coeff[y + x * sh];
103
3.02M
        first_1d_fn(c, 1, row_clip_min, row_clip_max);
104
3.02M
    }
105
588k
    if (last_nonzero_col + 1 < sh)
106
465k
        memset(c, 0, sizeof(*c) * (sh - last_nonzero_col - 1) * w);
107
108
588k
    memset(coeff, 0, sizeof(*coeff) * sw * sh);
109
171M
    for (int i = 0; i < w * sh; i++)
110
171M
        tmp[i] = iclip((tmp[i] + rnd) >> shift, col_clip_min, col_clip_max);
111
112
9.60M
    for (int x = 0; x < w; x++)
113
9.01M
        second_1d_fn(&tmp[x], w, col_clip_min, col_clip_max);
114
115
588k
    c = tmp;
116
9.34M
    for (int y = 0; y < h; y++, dst += PXSTRIDE(stride))
117
221M
        for (int x = 0; x < w; x++)
118
212M
            dst[x] = iclip_pixel(dst[x] + ((*c++ + 8) >> 4));
119
588k
}
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
736k
                                               HIGHBD_DECL_SUFFIX) \
128
736k
{ \
129
736k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
736k
                   HIGHBD_TAIL_SUFFIX); \
131
736k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x4_c
Line
Count
Source
127
17.6k
                                               HIGHBD_DECL_SUFFIX) \
128
17.6k
{ \
129
17.6k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.6k
                   HIGHBD_TAIL_SUFFIX); \
131
17.6k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x4_c
Line
Count
Source
127
8.04k
                                               HIGHBD_DECL_SUFFIX) \
128
8.04k
{ \
129
8.04k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.04k
                   HIGHBD_TAIL_SUFFIX); \
131
8.04k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x4_c
Line
Count
Source
127
9.38k
                                               HIGHBD_DECL_SUFFIX) \
128
9.38k
{ \
129
9.38k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.38k
                   HIGHBD_TAIL_SUFFIX); \
131
9.38k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x4_c
Line
Count
Source
127
8.92k
                                               HIGHBD_DECL_SUFFIX) \
128
8.92k
{ \
129
8.92k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.92k
                   HIGHBD_TAIL_SUFFIX); \
131
8.92k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x4_c
Line
Count
Source
127
9.26k
                                               HIGHBD_DECL_SUFFIX) \
128
9.26k
{ \
129
9.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.26k
                   HIGHBD_TAIL_SUFFIX); \
131
9.26k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x4_c
Line
Count
Source
127
850
                                               HIGHBD_DECL_SUFFIX) \
128
850
{ \
129
850
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
850
                   HIGHBD_TAIL_SUFFIX); \
131
850
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x4_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_flipadst_dct_4x4_c
Line
Count
Source
127
642
                                               HIGHBD_DECL_SUFFIX) \
128
642
{ \
129
642
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
642
                   HIGHBD_TAIL_SUFFIX); \
131
642
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x4_c
Line
Count
Source
127
595
                                               HIGHBD_DECL_SUFFIX) \
128
595
{ \
129
595
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
595
                   HIGHBD_TAIL_SUFFIX); \
131
595
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x4_c
Line
Count
Source
127
838
                                               HIGHBD_DECL_SUFFIX) \
128
838
{ \
129
838
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
838
                   HIGHBD_TAIL_SUFFIX); \
131
838
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x4_c
Line
Count
Source
127
2.70k
                                               HIGHBD_DECL_SUFFIX) \
128
2.70k
{ \
129
2.70k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.70k
                   HIGHBD_TAIL_SUFFIX); \
131
2.70k
}
itx_tmpl.c:inv_txfm_add_identity_dct_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_identity_4x4_c
Line
Count
Source
127
1.54k
                                               HIGHBD_DECL_SUFFIX) \
128
1.54k
{ \
129
1.54k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.54k
                   HIGHBD_TAIL_SUFFIX); \
131
1.54k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x4_c
Line
Count
Source
127
959
                                               HIGHBD_DECL_SUFFIX) \
128
959
{ \
129
959
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
959
                   HIGHBD_TAIL_SUFFIX); \
131
959
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x4_c
Line
Count
Source
127
1.94k
                                               HIGHBD_DECL_SUFFIX) \
128
1.94k
{ \
129
1.94k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.94k
                   HIGHBD_TAIL_SUFFIX); \
131
1.94k
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x4_c
Line
Count
Source
127
1.08k
                                               HIGHBD_DECL_SUFFIX) \
128
1.08k
{ \
129
1.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.08k
                   HIGHBD_TAIL_SUFFIX); \
131
1.08k
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x8_c
Line
Count
Source
127
9.56k
                                               HIGHBD_DECL_SUFFIX) \
128
9.56k
{ \
129
9.56k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.56k
                   HIGHBD_TAIL_SUFFIX); \
131
9.56k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x8_c
Line
Count
Source
127
5.13k
                                               HIGHBD_DECL_SUFFIX) \
128
5.13k
{ \
129
5.13k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.13k
                   HIGHBD_TAIL_SUFFIX); \
131
5.13k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x8_c
Line
Count
Source
127
3.82k
                                               HIGHBD_DECL_SUFFIX) \
128
3.82k
{ \
129
3.82k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.82k
                   HIGHBD_TAIL_SUFFIX); \
131
3.82k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x8_c
Line
Count
Source
127
4.18k
                                               HIGHBD_DECL_SUFFIX) \
128
4.18k
{ \
129
4.18k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.18k
                   HIGHBD_TAIL_SUFFIX); \
131
4.18k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x8_c
Line
Count
Source
127
8.02k
                                               HIGHBD_DECL_SUFFIX) \
128
8.02k
{ \
129
8.02k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
8.02k
                   HIGHBD_TAIL_SUFFIX); \
131
8.02k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x8_c
Line
Count
Source
127
572
                                               HIGHBD_DECL_SUFFIX) \
128
572
{ \
129
572
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
572
                   HIGHBD_TAIL_SUFFIX); \
131
572
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x8_c
Line
Count
Source
127
571
                                               HIGHBD_DECL_SUFFIX) \
128
571
{ \
129
571
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
571
                   HIGHBD_TAIL_SUFFIX); \
131
571
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x8_c
Line
Count
Source
127
433
                                               HIGHBD_DECL_SUFFIX) \
128
433
{ \
129
433
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
433
                   HIGHBD_TAIL_SUFFIX); \
131
433
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x8_c
Line
Count
Source
127
339
                                               HIGHBD_DECL_SUFFIX) \
128
339
{ \
129
339
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
339
                   HIGHBD_TAIL_SUFFIX); \
131
339
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x8_c
Line
Count
Source
127
467
                                               HIGHBD_DECL_SUFFIX) \
128
467
{ \
129
467
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
467
                   HIGHBD_TAIL_SUFFIX); \
131
467
}
itx_tmpl.c:inv_txfm_add_dct_identity_4x8_c
Line
Count
Source
127
1.51k
                                               HIGHBD_DECL_SUFFIX) \
128
1.51k
{ \
129
1.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.51k
                   HIGHBD_TAIL_SUFFIX); \
131
1.51k
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x8_c
Line
Count
Source
127
859
                                               HIGHBD_DECL_SUFFIX) \
128
859
{ \
129
859
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
859
                   HIGHBD_TAIL_SUFFIX); \
131
859
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x8_c
Line
Count
Source
127
805
                                               HIGHBD_DECL_SUFFIX) \
128
805
{ \
129
805
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
805
                   HIGHBD_TAIL_SUFFIX); \
131
805
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x8_c
Line
Count
Source
127
482
                                               HIGHBD_DECL_SUFFIX) \
128
482
{ \
129
482
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
482
                   HIGHBD_TAIL_SUFFIX); \
131
482
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x8_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_identity_adst_4x8_c
Line
Count
Source
127
541
                                               HIGHBD_DECL_SUFFIX) \
128
541
{ \
129
541
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
541
                   HIGHBD_TAIL_SUFFIX); \
131
541
}
itx_tmpl.c:inv_txfm_add_dct_dct_4x16_c
Line
Count
Source
127
5.95k
                                               HIGHBD_DECL_SUFFIX) \
128
5.95k
{ \
129
5.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.95k
                   HIGHBD_TAIL_SUFFIX); \
131
5.95k
}
itx_tmpl.c:inv_txfm_add_identity_identity_4x16_c
Line
Count
Source
127
3.19k
                                               HIGHBD_DECL_SUFFIX) \
128
3.19k
{ \
129
3.19k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.19k
                   HIGHBD_TAIL_SUFFIX); \
131
3.19k
}
itx_tmpl.c:inv_txfm_add_adst_dct_4x16_c
Line
Count
Source
127
2.39k
                                               HIGHBD_DECL_SUFFIX) \
128
2.39k
{ \
129
2.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.39k
                   HIGHBD_TAIL_SUFFIX); \
131
2.39k
}
itx_tmpl.c:inv_txfm_add_dct_adst_4x16_c
Line
Count
Source
127
2.49k
                                               HIGHBD_DECL_SUFFIX) \
128
2.49k
{ \
129
2.49k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
2.49k
                   HIGHBD_TAIL_SUFFIX); \
131
2.49k
}
itx_tmpl.c:inv_txfm_add_adst_adst_4x16_c
Line
Count
Source
127
3.37k
                                               HIGHBD_DECL_SUFFIX) \
128
3.37k
{ \
129
3.37k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.37k
                   HIGHBD_TAIL_SUFFIX); \
131
3.37k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_4x16_c
Line
Count
Source
127
433
                                               HIGHBD_DECL_SUFFIX) \
128
433
{ \
129
433
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
433
                   HIGHBD_TAIL_SUFFIX); \
131
433
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_4x16_c
Line
Count
Source
127
526
                                               HIGHBD_DECL_SUFFIX) \
128
526
{ \
129
526
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
526
                   HIGHBD_TAIL_SUFFIX); \
131
526
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_4x16_c
Line
Count
Source
127
237
                                               HIGHBD_DECL_SUFFIX) \
128
237
{ \
129
237
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
237
                   HIGHBD_TAIL_SUFFIX); \
131
237
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_4x16_c
Line
Count
Source
127
211
                                               HIGHBD_DECL_SUFFIX) \
128
211
{ \
129
211
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
211
                   HIGHBD_TAIL_SUFFIX); \
131
211
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_4x16_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_dct_identity_4x16_c
Line
Count
Source
127
973
                                               HIGHBD_DECL_SUFFIX) \
128
973
{ \
129
973
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
973
                   HIGHBD_TAIL_SUFFIX); \
131
973
}
itx_tmpl.c:inv_txfm_add_identity_dct_4x16_c
Line
Count
Source
127
602
                                               HIGHBD_DECL_SUFFIX) \
128
602
{ \
129
602
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
602
                   HIGHBD_TAIL_SUFFIX); \
131
602
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_4x16_c
Line
Count
Source
127
467
                                               HIGHBD_DECL_SUFFIX) \
128
467
{ \
129
467
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
467
                   HIGHBD_TAIL_SUFFIX); \
131
467
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_4x16_c
Line
Count
Source
127
253
                                               HIGHBD_DECL_SUFFIX) \
128
253
{ \
129
253
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
253
                   HIGHBD_TAIL_SUFFIX); \
131
253
}
itx_tmpl.c:inv_txfm_add_adst_identity_4x16_c
Line
Count
Source
127
661
                                               HIGHBD_DECL_SUFFIX) \
128
661
{ \
129
661
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
661
                   HIGHBD_TAIL_SUFFIX); \
131
661
}
itx_tmpl.c:inv_txfm_add_identity_adst_4x16_c
Line
Count
Source
127
539
                                               HIGHBD_DECL_SUFFIX) \
128
539
{ \
129
539
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
539
                   HIGHBD_TAIL_SUFFIX); \
131
539
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x4_c
Line
Count
Source
127
10.8k
                                               HIGHBD_DECL_SUFFIX) \
128
10.8k
{ \
129
10.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
10.8k
                   HIGHBD_TAIL_SUFFIX); \
131
10.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x4_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_adst_dct_8x4_c
Line
Count
Source
127
5.33k
                                               HIGHBD_DECL_SUFFIX) \
128
5.33k
{ \
129
5.33k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.33k
                   HIGHBD_TAIL_SUFFIX); \
131
5.33k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x4_c
Line
Count
Source
127
4.71k
                                               HIGHBD_DECL_SUFFIX) \
128
4.71k
{ \
129
4.71k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.71k
                   HIGHBD_TAIL_SUFFIX); \
131
4.71k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x4_c
Line
Count
Source
127
6.58k
                                               HIGHBD_DECL_SUFFIX) \
128
6.58k
{ \
129
6.58k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.58k
                   HIGHBD_TAIL_SUFFIX); \
131
6.58k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x4_c
Line
Count
Source
127
809
                                               HIGHBD_DECL_SUFFIX) \
128
809
{ \
129
809
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
809
                   HIGHBD_TAIL_SUFFIX); \
131
809
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x4_c
Line
Count
Source
127
892
                                               HIGHBD_DECL_SUFFIX) \
128
892
{ \
129
892
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
892
                   HIGHBD_TAIL_SUFFIX); \
131
892
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x4_c
Line
Count
Source
127
497
                                               HIGHBD_DECL_SUFFIX) \
128
497
{ \
129
497
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
497
                   HIGHBD_TAIL_SUFFIX); \
131
497
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x4_c
Line
Count
Source
127
579
                                               HIGHBD_DECL_SUFFIX) \
128
579
{ \
129
579
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
579
                   HIGHBD_TAIL_SUFFIX); \
131
579
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x4_c
Line
Count
Source
127
931
                                               HIGHBD_DECL_SUFFIX) \
128
931
{ \
129
931
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
931
                   HIGHBD_TAIL_SUFFIX); \
131
931
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x4_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_identity_dct_8x4_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_identity_8x4_c
Line
Count
Source
127
1.93k
                                               HIGHBD_DECL_SUFFIX) \
128
1.93k
{ \
129
1.93k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.93k
                   HIGHBD_TAIL_SUFFIX); \
131
1.93k
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x4_c
Line
Count
Source
127
632
                                               HIGHBD_DECL_SUFFIX) \
128
632
{ \
129
632
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
632
                   HIGHBD_TAIL_SUFFIX); \
131
632
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x4_c
Line
Count
Source
127
1.24k
                                               HIGHBD_DECL_SUFFIX) \
128
1.24k
{ \
129
1.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.24k
                   HIGHBD_TAIL_SUFFIX); \
131
1.24k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x4_c
Line
Count
Source
127
636
                                               HIGHBD_DECL_SUFFIX) \
128
636
{ \
129
636
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
636
                   HIGHBD_TAIL_SUFFIX); \
131
636
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x8_c
Line
Count
Source
127
33.7k
                                               HIGHBD_DECL_SUFFIX) \
128
33.7k
{ \
129
33.7k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
33.7k
                   HIGHBD_TAIL_SUFFIX); \
131
33.7k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x8_c
Line
Count
Source
127
9.24k
                                               HIGHBD_DECL_SUFFIX) \
128
9.24k
{ \
129
9.24k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.24k
                   HIGHBD_TAIL_SUFFIX); \
131
9.24k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x8_c
Line
Count
Source
127
17.0k
                                               HIGHBD_DECL_SUFFIX) \
128
17.0k
{ \
129
17.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
17.0k
                   HIGHBD_TAIL_SUFFIX); \
131
17.0k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x8_c
Line
Count
Source
127
14.9k
                                               HIGHBD_DECL_SUFFIX) \
128
14.9k
{ \
129
14.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.9k
                   HIGHBD_TAIL_SUFFIX); \
131
14.9k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x8_c
Line
Count
Source
127
16.9k
                                               HIGHBD_DECL_SUFFIX) \
128
16.9k
{ \
129
16.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
16.9k
                   HIGHBD_TAIL_SUFFIX); \
131
16.9k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_8x8_c
Line
Count
Source
127
1.51k
                                               HIGHBD_DECL_SUFFIX) \
128
1.51k
{ \
129
1.51k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.51k
                   HIGHBD_TAIL_SUFFIX); \
131
1.51k
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x8_c
Line
Count
Source
127
1.25k
                                               HIGHBD_DECL_SUFFIX) \
128
1.25k
{ \
129
1.25k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.25k
                   HIGHBD_TAIL_SUFFIX); \
131
1.25k
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_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_dct_flipadst_8x8_c
Line
Count
Source
127
1.60k
                                               HIGHBD_DECL_SUFFIX) \
128
1.60k
{ \
129
1.60k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.60k
                   HIGHBD_TAIL_SUFFIX); \
131
1.60k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x8_c
Line
Count
Source
127
1.42k
                                               HIGHBD_DECL_SUFFIX) \
128
1.42k
{ \
129
1.42k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.42k
                   HIGHBD_TAIL_SUFFIX); \
131
1.42k
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x8_c
Line
Count
Source
127
4.39k
                                               HIGHBD_DECL_SUFFIX) \
128
4.39k
{ \
129
4.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.39k
                   HIGHBD_TAIL_SUFFIX); \
131
4.39k
}
itx_tmpl.c:inv_txfm_add_identity_dct_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_flipadst_identity_8x8_c
Line
Count
Source
127
993
                                               HIGHBD_DECL_SUFFIX) \
128
993
{ \
129
993
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
993
                   HIGHBD_TAIL_SUFFIX); \
131
993
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x8_c
Line
Count
Source
127
648
                                               HIGHBD_DECL_SUFFIX) \
128
648
{ \
129
648
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
648
                   HIGHBD_TAIL_SUFFIX); \
131
648
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x8_c
Line
Count
Source
127
1.39k
                                               HIGHBD_DECL_SUFFIX) \
128
1.39k
{ \
129
1.39k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.39k
                   HIGHBD_TAIL_SUFFIX); \
131
1.39k
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x8_c
Line
Count
Source
127
893
                                               HIGHBD_DECL_SUFFIX) \
128
893
{ \
129
893
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
893
                   HIGHBD_TAIL_SUFFIX); \
131
893
}
itx_tmpl.c:inv_txfm_add_dct_dct_8x16_c
Line
Count
Source
127
14.2k
                                               HIGHBD_DECL_SUFFIX) \
128
14.2k
{ \
129
14.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.2k
                   HIGHBD_TAIL_SUFFIX); \
131
14.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x16_c
Line
Count
Source
127
3.26k
                                               HIGHBD_DECL_SUFFIX) \
128
3.26k
{ \
129
3.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.26k
                   HIGHBD_TAIL_SUFFIX); \
131
3.26k
}
itx_tmpl.c:inv_txfm_add_adst_dct_8x16_c
Line
Count
Source
127
6.40k
                                               HIGHBD_DECL_SUFFIX) \
128
6.40k
{ \
129
6.40k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
6.40k
                   HIGHBD_TAIL_SUFFIX); \
131
6.40k
}
itx_tmpl.c:inv_txfm_add_dct_adst_8x16_c
Line
Count
Source
127
5.26k
                                               HIGHBD_DECL_SUFFIX) \
128
5.26k
{ \
129
5.26k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.26k
                   HIGHBD_TAIL_SUFFIX); \
131
5.26k
}
itx_tmpl.c:inv_txfm_add_adst_adst_8x16_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_flipadst_adst_8x16_c
Line
Count
Source
127
703
                                               HIGHBD_DECL_SUFFIX) \
128
703
{ \
129
703
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
703
                   HIGHBD_TAIL_SUFFIX); \
131
703
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_8x16_c
Line
Count
Source
127
639
                                               HIGHBD_DECL_SUFFIX) \
128
639
{ \
129
639
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
639
                   HIGHBD_TAIL_SUFFIX); \
131
639
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_8x16_c
Line
Count
Source
127
775
                                               HIGHBD_DECL_SUFFIX) \
128
775
{ \
129
775
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
775
                   HIGHBD_TAIL_SUFFIX); \
131
775
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_8x16_c
Line
Count
Source
127
587
                                               HIGHBD_DECL_SUFFIX) \
128
587
{ \
129
587
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
587
                   HIGHBD_TAIL_SUFFIX); \
131
587
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_8x16_c
Line
Count
Source
127
726
                                               HIGHBD_DECL_SUFFIX) \
128
726
{ \
129
726
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
726
                   HIGHBD_TAIL_SUFFIX); \
131
726
}
itx_tmpl.c:inv_txfm_add_dct_identity_8x16_c
Line
Count
Source
127
1.22k
                                               HIGHBD_DECL_SUFFIX) \
128
1.22k
{ \
129
1.22k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.22k
                   HIGHBD_TAIL_SUFFIX); \
131
1.22k
}
itx_tmpl.c:inv_txfm_add_identity_dct_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_identity_8x16_c
Line
Count
Source
127
480
                                               HIGHBD_DECL_SUFFIX) \
128
480
{ \
129
480
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
480
                   HIGHBD_TAIL_SUFFIX); \
131
480
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_8x16_c
Line
Count
Source
127
433
                                               HIGHBD_DECL_SUFFIX) \
128
433
{ \
129
433
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
433
                   HIGHBD_TAIL_SUFFIX); \
131
433
}
itx_tmpl.c:inv_txfm_add_adst_identity_8x16_c
Line
Count
Source
127
758
                                               HIGHBD_DECL_SUFFIX) \
128
758
{ \
129
758
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
758
                   HIGHBD_TAIL_SUFFIX); \
131
758
}
itx_tmpl.c:inv_txfm_add_identity_adst_8x16_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_dct_dct_8x32_c
Line
Count
Source
127
13.3k
                                               HIGHBD_DECL_SUFFIX) \
128
13.3k
{ \
129
13.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.3k
                   HIGHBD_TAIL_SUFFIX); \
131
13.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_8x32_c
Line
Count
Source
127
464
                                               HIGHBD_DECL_SUFFIX) \
128
464
{ \
129
464
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
464
                   HIGHBD_TAIL_SUFFIX); \
131
464
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x4_c
Line
Count
Source
127
9.72k
                                               HIGHBD_DECL_SUFFIX) \
128
9.72k
{ \
129
9.72k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
9.72k
                   HIGHBD_TAIL_SUFFIX); \
131
9.72k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x4_c
Line
Count
Source
127
4.00k
                                               HIGHBD_DECL_SUFFIX) \
128
4.00k
{ \
129
4.00k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.00k
                   HIGHBD_TAIL_SUFFIX); \
131
4.00k
}
itx_tmpl.c:inv_txfm_add_adst_dct_16x4_c
Line
Count
Source
127
4.32k
                                               HIGHBD_DECL_SUFFIX) \
128
4.32k
{ \
129
4.32k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.32k
                   HIGHBD_TAIL_SUFFIX); \
131
4.32k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x4_c
Line
Count
Source
127
4.12k
                                               HIGHBD_DECL_SUFFIX) \
128
4.12k
{ \
129
4.12k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
4.12k
                   HIGHBD_TAIL_SUFFIX); \
131
4.12k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x4_c
Line
Count
Source
127
5.68k
                                               HIGHBD_DECL_SUFFIX) \
128
5.68k
{ \
129
5.68k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.68k
                   HIGHBD_TAIL_SUFFIX); \
131
5.68k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x4_c
Line
Count
Source
127
658
                                               HIGHBD_DECL_SUFFIX) \
128
658
{ \
129
658
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
658
                   HIGHBD_TAIL_SUFFIX); \
131
658
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x4_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_flipadst_dct_16x4_c
Line
Count
Source
127
479
                                               HIGHBD_DECL_SUFFIX) \
128
479
{ \
129
479
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
479
                   HIGHBD_TAIL_SUFFIX); \
131
479
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x4_c
Line
Count
Source
127
233
                                               HIGHBD_DECL_SUFFIX) \
128
233
{ \
129
233
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
233
                   HIGHBD_TAIL_SUFFIX); \
131
233
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x4_c
Line
Count
Source
127
888
                                               HIGHBD_DECL_SUFFIX) \
128
888
{ \
129
888
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
888
                   HIGHBD_TAIL_SUFFIX); \
131
888
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x4_c
Line
Count
Source
127
1.95k
                                               HIGHBD_DECL_SUFFIX) \
128
1.95k
{ \
129
1.95k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.95k
                   HIGHBD_TAIL_SUFFIX); \
131
1.95k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x4_c
Line
Count
Source
127
1.17k
                                               HIGHBD_DECL_SUFFIX) \
128
1.17k
{ \
129
1.17k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.17k
                   HIGHBD_TAIL_SUFFIX); \
131
1.17k
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x4_c
Line
Count
Source
127
899
                                               HIGHBD_DECL_SUFFIX) \
128
899
{ \
129
899
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
899
                   HIGHBD_TAIL_SUFFIX); \
131
899
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x4_c
Line
Count
Source
127
589
                                               HIGHBD_DECL_SUFFIX) \
128
589
{ \
129
589
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
589
                   HIGHBD_TAIL_SUFFIX); \
131
589
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x4_c
Line
Count
Source
127
825
                                               HIGHBD_DECL_SUFFIX) \
128
825
{ \
129
825
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
825
                   HIGHBD_TAIL_SUFFIX); \
131
825
}
itx_tmpl.c:inv_txfm_add_identity_adst_16x4_c
Line
Count
Source
127
716
                                               HIGHBD_DECL_SUFFIX) \
128
716
{ \
129
716
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
716
                   HIGHBD_TAIL_SUFFIX); \
131
716
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x8_c
Line
Count
Source
127
14.9k
                                               HIGHBD_DECL_SUFFIX) \
128
14.9k
{ \
129
14.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
14.9k
                   HIGHBD_TAIL_SUFFIX); \
131
14.9k
}
itx_tmpl.c:inv_txfm_add_identity_identity_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_adst_dct_16x8_c
Line
Count
Source
127
7.44k
                                               HIGHBD_DECL_SUFFIX) \
128
7.44k
{ \
129
7.44k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.44k
                   HIGHBD_TAIL_SUFFIX); \
131
7.44k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x8_c
Line
Count
Source
127
5.62k
                                               HIGHBD_DECL_SUFFIX) \
128
5.62k
{ \
129
5.62k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.62k
                   HIGHBD_TAIL_SUFFIX); \
131
5.62k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x8_c
Line
Count
Source
127
7.06k
                                               HIGHBD_DECL_SUFFIX) \
128
7.06k
{ \
129
7.06k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.06k
                   HIGHBD_TAIL_SUFFIX); \
131
7.06k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x8_c
Line
Count
Source
127
719
                                               HIGHBD_DECL_SUFFIX) \
128
719
{ \
129
719
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
719
                   HIGHBD_TAIL_SUFFIX); \
131
719
}
itx_tmpl.c:inv_txfm_add_adst_flipadst_16x8_c
Line
Count
Source
127
725
                                               HIGHBD_DECL_SUFFIX) \
128
725
{ \
129
725
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
725
                   HIGHBD_TAIL_SUFFIX); \
131
725
}
itx_tmpl.c:inv_txfm_add_flipadst_dct_16x8_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_dct_flipadst_16x8_c
Line
Count
Source
127
731
                                               HIGHBD_DECL_SUFFIX) \
128
731
{ \
129
731
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
731
                   HIGHBD_TAIL_SUFFIX); \
131
731
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x8_c
Line
Count
Source
127
644
                                               HIGHBD_DECL_SUFFIX) \
128
644
{ \
129
644
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
644
                   HIGHBD_TAIL_SUFFIX); \
131
644
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x8_c
Line
Count
Source
127
1.43k
                                               HIGHBD_DECL_SUFFIX) \
128
1.43k
{ \
129
1.43k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.43k
                   HIGHBD_TAIL_SUFFIX); \
131
1.43k
}
itx_tmpl.c:inv_txfm_add_identity_dct_16x8_c
Line
Count
Source
127
928
                                               HIGHBD_DECL_SUFFIX) \
128
928
{ \
129
928
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
928
                   HIGHBD_TAIL_SUFFIX); \
131
928
}
itx_tmpl.c:inv_txfm_add_flipadst_identity_16x8_c
Line
Count
Source
127
597
                                               HIGHBD_DECL_SUFFIX) \
128
597
{ \
129
597
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
597
                   HIGHBD_TAIL_SUFFIX); \
131
597
}
itx_tmpl.c:inv_txfm_add_identity_flipadst_16x8_c
Line
Count
Source
127
395
                                               HIGHBD_DECL_SUFFIX) \
128
395
{ \
129
395
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
395
                   HIGHBD_TAIL_SUFFIX); \
131
395
}
itx_tmpl.c:inv_txfm_add_adst_identity_16x8_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_identity_adst_16x8_c
Line
Count
Source
127
371
                                               HIGHBD_DECL_SUFFIX) \
128
371
{ \
129
371
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
371
                   HIGHBD_TAIL_SUFFIX); \
131
371
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x16_c
Line
Count
Source
127
27.3k
                                               HIGHBD_DECL_SUFFIX) \
128
27.3k
{ \
129
27.3k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
27.3k
                   HIGHBD_TAIL_SUFFIX); \
131
27.3k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x16_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_adst_dct_16x16_c
Line
Count
Source
127
22.4k
                                               HIGHBD_DECL_SUFFIX) \
128
22.4k
{ \
129
22.4k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
22.4k
                   HIGHBD_TAIL_SUFFIX); \
131
22.4k
}
itx_tmpl.c:inv_txfm_add_dct_adst_16x16_c
Line
Count
Source
127
15.9k
                                               HIGHBD_DECL_SUFFIX) \
128
15.9k
{ \
129
15.9k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
15.9k
                   HIGHBD_TAIL_SUFFIX); \
131
15.9k
}
itx_tmpl.c:inv_txfm_add_adst_adst_16x16_c
Line
Count
Source
127
22.2k
                                               HIGHBD_DECL_SUFFIX) \
128
22.2k
{ \
129
22.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
22.2k
                   HIGHBD_TAIL_SUFFIX); \
131
22.2k
}
itx_tmpl.c:inv_txfm_add_flipadst_adst_16x16_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_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_dct_16x16_c
Line
Count
Source
127
912
                                               HIGHBD_DECL_SUFFIX) \
128
912
{ \
129
912
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
912
                   HIGHBD_TAIL_SUFFIX); \
131
912
}
itx_tmpl.c:inv_txfm_add_dct_flipadst_16x16_c
Line
Count
Source
127
1.15k
                                               HIGHBD_DECL_SUFFIX) \
128
1.15k
{ \
129
1.15k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
1.15k
                   HIGHBD_TAIL_SUFFIX); \
131
1.15k
}
itx_tmpl.c:inv_txfm_add_flipadst_flipadst_16x16_c
Line
Count
Source
127
634
                                               HIGHBD_DECL_SUFFIX) \
128
634
{ \
129
634
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
634
                   HIGHBD_TAIL_SUFFIX); \
131
634
}
itx_tmpl.c:inv_txfm_add_dct_identity_16x16_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_dct_16x16_c
Line
Count
Source
127
537
                                               HIGHBD_DECL_SUFFIX) \
128
537
{ \
129
537
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
537
                   HIGHBD_TAIL_SUFFIX); \
131
537
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x32_c
Line
Count
Source
127
19.2k
                                               HIGHBD_DECL_SUFFIX) \
128
19.2k
{ \
129
19.2k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
19.2k
                   HIGHBD_TAIL_SUFFIX); \
131
19.2k
}
itx_tmpl.c:inv_txfm_add_identity_identity_16x32_c
Line
Count
Source
127
220
                                               HIGHBD_DECL_SUFFIX) \
128
220
{ \
129
220
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
220
                   HIGHBD_TAIL_SUFFIX); \
131
220
}
itx_tmpl.c:inv_txfm_add_dct_dct_16x64_c
Line
Count
Source
127
3.08k
                                               HIGHBD_DECL_SUFFIX) \
128
3.08k
{ \
129
3.08k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
3.08k
                   HIGHBD_TAIL_SUFFIX); \
131
3.08k
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x8_c
Line
Count
Source
127
13.8k
                                               HIGHBD_DECL_SUFFIX) \
128
13.8k
{ \
129
13.8k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
13.8k
                   HIGHBD_TAIL_SUFFIX); \
131
13.8k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x8_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_32x16_c
Line
Count
Source
127
18.0k
                                               HIGHBD_DECL_SUFFIX) \
128
18.0k
{ \
129
18.0k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
18.0k
                   HIGHBD_TAIL_SUFFIX); \
131
18.0k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x16_c
Line
Count
Source
127
466
                                               HIGHBD_DECL_SUFFIX) \
128
466
{ \
129
466
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
466
                   HIGHBD_TAIL_SUFFIX); \
131
466
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x32_c
Line
Count
Source
127
110k
                                               HIGHBD_DECL_SUFFIX) \
128
110k
{ \
129
110k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
110k
                   HIGHBD_TAIL_SUFFIX); \
131
110k
}
itx_tmpl.c:inv_txfm_add_identity_identity_32x32_c
Line
Count
Source
127
394
                                               HIGHBD_DECL_SUFFIX) \
128
394
{ \
129
394
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
394
                   HIGHBD_TAIL_SUFFIX); \
131
394
}
itx_tmpl.c:inv_txfm_add_dct_dct_32x64_c
Line
Count
Source
127
7.59k
                                               HIGHBD_DECL_SUFFIX) \
128
7.59k
{ \
129
7.59k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
7.59k
                   HIGHBD_TAIL_SUFFIX); \
131
7.59k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x16_c
Line
Count
Source
127
5.90k
                                               HIGHBD_DECL_SUFFIX) \
128
5.90k
{ \
129
5.90k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.90k
                   HIGHBD_TAIL_SUFFIX); \
131
5.90k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x32_c
Line
Count
Source
127
5.80k
                                               HIGHBD_DECL_SUFFIX) \
128
5.80k
{ \
129
5.80k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
5.80k
                   HIGHBD_TAIL_SUFFIX); \
131
5.80k
}
itx_tmpl.c:inv_txfm_add_dct_dct_64x64_c
Line
Count
Source
127
29.5k
                                               HIGHBD_DECL_SUFFIX) \
128
29.5k
{ \
129
29.5k
    inv_txfm_add_c(dst, stride, coeff, eob, pfx##TX_##w##X##h, shift, type \
130
29.5k
                   HIGHBD_TAIL_SUFFIX); \
131
29.5k
}
132
133
#define inv_txfm_fn64(pfx, w, h, shift) \
134
inv_txfm_fn(dct, dct, DCT_DCT, pfx, w, h, shift)
135
136
#define inv_txfm_fn32(pfx, w, h, shift) \
137
inv_txfm_fn64(pfx, w, h, shift) \
138
inv_txfm_fn(identity, identity, IDTX, pfx, w, h, shift)
139
140
#define inv_txfm_fn16(pfx, w, h, shift) \
141
inv_txfm_fn32(pfx, w, h, shift) \
142
inv_txfm_fn(adst,     dct,      ADST_DCT,          pfx,  w, h, shift) \
143
inv_txfm_fn(dct,      adst,     DCT_ADST,          pfx, w, h, shift) \
144
inv_txfm_fn(adst,     adst,     ADST_ADST,         pfx, w, h, shift) \
145
inv_txfm_fn(dct,      flipadst, DCT_FLIPADST,      pfx, w, h, shift) \
146
inv_txfm_fn(flipadst, dct,      FLIPADST_DCT,      pfx, w, h, shift) \
147
inv_txfm_fn(adst,     flipadst, ADST_FLIPADST,     pfx, w, h, shift) \
148
inv_txfm_fn(flipadst, adst,     FLIPADST_ADST,     pfx, w, h, shift) \
149
inv_txfm_fn(flipadst, flipadst, FLIPADST_FLIPADST, pfx, w, h, shift) \
150
inv_txfm_fn(identity, dct,      H_DCT,             pfx, w, h, shift) \
151
inv_txfm_fn(dct,      identity, V_DCT,             pfx, w, h, shift) \
152
153
#define inv_txfm_fn84(pfx, w, h, shift) \
154
inv_txfm_fn16(pfx, w, h, shift) \
155
inv_txfm_fn(identity, flipadst, H_FLIPADST, pfx, w, h, shift) \
156
inv_txfm_fn(flipadst, identity, V_FLIPADST, pfx, w, h, shift) \
157
inv_txfm_fn(identity, adst,     H_ADST,     pfx, w, h, shift) \
158
inv_txfm_fn(adst,     identity, V_ADST,     pfx, w, h, shift) \
159
160
inv_txfm_fn84( ,  4,  4, 0)
161
inv_txfm_fn84(R,  4,  8, 0)
162
inv_txfm_fn84(R,  4, 16, 1)
163
inv_txfm_fn84(R,  8,  4, 0)
164
inv_txfm_fn84( ,  8,  8, 1)
165
inv_txfm_fn84(R,  8, 16, 1)
166
inv_txfm_fn32(R,  8, 32, 2)
167
inv_txfm_fn84(R, 16,  4, 1)
168
inv_txfm_fn84(R, 16,  8, 1)
169
inv_txfm_fn16( , 16, 16, 2)
170
inv_txfm_fn32(R, 16, 32, 1)
171
inv_txfm_fn64(R, 16, 64, 2)
172
inv_txfm_fn32(R, 32,  8, 2)
173
inv_txfm_fn32(R, 32, 16, 1)
174
inv_txfm_fn32( , 32, 32, 2)
175
inv_txfm_fn64(R, 32, 64, 1)
176
inv_txfm_fn64(R, 64, 16, 2)
177
inv_txfm_fn64(R, 64, 32, 1)
178
inv_txfm_fn64( , 64, 64, 2)
179
180
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
181
  ARCH_AARCH64 || \
182
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
183
))
184
static void inv_txfm_add_wht_wht_4x4_c(pixel *dst, const ptrdiff_t stride,
185
                                       coef *const coeff, const int eob
186
                                       HIGHBD_DECL_SUFFIX)
187
23.2k
{
188
23.2k
    int32_t tmp[4 * 4], *c = tmp;
189
116k
    for (int y = 0; y < 4; y++, c += 4) {
190
464k
        for (int x = 0; x < 4; x++)
191
371k
            c[x] = coeff[y + x * 4] >> 2;
192
92.8k
        dav1d_inv_wht4_1d_c(c, 1);
193
92.8k
    }
194
23.2k
    memset(coeff, 0, sizeof(*coeff) * 4 * 4);
195
196
116k
    for (int x = 0; x < 4; x++)
197
92.8k
        dav1d_inv_wht4_1d_c(&tmp[x], 4);
198
199
23.2k
    c = tmp;
200
116k
    for (int y = 0; y < 4; y++, dst += PXSTRIDE(stride))
201
464k
        for (int x = 0; x < 4; x++)
202
371k
            dst[x] = iclip_pixel(dst[x] + *c++);
203
23.2k
}
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
9.19k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
9.19k
#define assign_itx_all_fn64(w, h, pfx) \
222
174k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
174k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
9.19k
#define assign_itx_all_fn32(w, h, pfx) \
226
128k
    assign_itx_all_fn64(w, h, pfx); \
227
128k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
128k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
9.19k
#define assign_itx_all_fn16(w, h, pfx) \
231
82.7k
    assign_itx_all_fn32(w, h, pfx); \
232
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
82.7k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
82.7k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
82.7k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
82.7k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
82.7k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
82.7k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
82.7k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
82.7k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
82.7k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
82.7k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
82.7k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
9.19k
#define assign_itx_all_fn84(w, h, pfx) \
254
73.5k
    assign_itx_all_fn16(w, h, pfx); \
255
73.5k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
73.5k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
73.5k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
73.5k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
73.5k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
73.5k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
73.5k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
73.5k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
9.19k
264
9.19k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
9.19k
  ARCH_AARCH64 || \
266
9.19k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
9.19k
))
268
9.19k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
9.19k
#endif
270
9.19k
    assign_itx_all_fn84( 4,  4, );
271
9.19k
    assign_itx_all_fn84( 4,  8, R);
272
9.19k
    assign_itx_all_fn84( 4, 16, R);
273
9.19k
    assign_itx_all_fn84( 8,  4, R);
274
9.19k
    assign_itx_all_fn84( 8,  8, );
275
9.19k
    assign_itx_all_fn84( 8, 16, R);
276
9.19k
    assign_itx_all_fn32( 8, 32, R);
277
9.19k
    assign_itx_all_fn84(16,  4, R);
278
9.19k
    assign_itx_all_fn84(16,  8, R);
279
9.19k
    assign_itx_all_fn16(16, 16, );
280
9.19k
    assign_itx_all_fn32(16, 32, R);
281
9.19k
    assign_itx_all_fn64(16, 64, R);
282
9.19k
    assign_itx_all_fn32(32,  8, R);
283
9.19k
    assign_itx_all_fn32(32, 16, R);
284
9.19k
    assign_itx_all_fn32(32, 32, );
285
9.19k
    assign_itx_all_fn64(32, 64, R);
286
9.19k
    assign_itx_all_fn64(64, 16, R);
287
9.19k
    assign_itx_all_fn64(64, 32, R);
288
9.19k
    assign_itx_all_fn64(64, 64, );
289
290
9.19k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
9.19k
    if (!all_simd)
310
9.19k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
9.19k
}
dav1d_itx_dsp_init_8bpc
Line
Count
Source
220
4.07k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
4.07k
#define assign_itx_all_fn64(w, h, pfx) \
222
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
4.07k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
4.07k
#define assign_itx_all_fn32(w, h, pfx) \
226
4.07k
    assign_itx_all_fn64(w, h, pfx); \
227
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
4.07k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
4.07k
#define assign_itx_all_fn16(w, h, pfx) \
231
4.07k
    assign_itx_all_fn32(w, h, pfx); \
232
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
4.07k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
4.07k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
4.07k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
4.07k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
4.07k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
4.07k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
4.07k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
4.07k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
4.07k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
4.07k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
4.07k
#define assign_itx_all_fn84(w, h, pfx) \
254
4.07k
    assign_itx_all_fn16(w, h, pfx); \
255
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
4.07k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
4.07k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
4.07k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
4.07k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
4.07k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
4.07k
264
4.07k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
4.07k
  ARCH_AARCH64 || \
266
4.07k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
4.07k
))
268
4.07k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
4.07k
#endif
270
4.07k
    assign_itx_all_fn84( 4,  4, );
271
4.07k
    assign_itx_all_fn84( 4,  8, R);
272
4.07k
    assign_itx_all_fn84( 4, 16, R);
273
4.07k
    assign_itx_all_fn84( 8,  4, R);
274
4.07k
    assign_itx_all_fn84( 8,  8, );
275
4.07k
    assign_itx_all_fn84( 8, 16, R);
276
4.07k
    assign_itx_all_fn32( 8, 32, R);
277
4.07k
    assign_itx_all_fn84(16,  4, R);
278
4.07k
    assign_itx_all_fn84(16,  8, R);
279
4.07k
    assign_itx_all_fn16(16, 16, );
280
4.07k
    assign_itx_all_fn32(16, 32, R);
281
4.07k
    assign_itx_all_fn64(16, 64, R);
282
4.07k
    assign_itx_all_fn32(32,  8, R);
283
4.07k
    assign_itx_all_fn32(32, 16, R);
284
4.07k
    assign_itx_all_fn32(32, 32, );
285
4.07k
    assign_itx_all_fn64(32, 64, R);
286
4.07k
    assign_itx_all_fn64(64, 16, R);
287
4.07k
    assign_itx_all_fn64(64, 32, R);
288
4.07k
    assign_itx_all_fn64(64, 64, );
289
290
4.07k
    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
4.07k
    if (!all_simd)
310
4.07k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
4.07k
}
dav1d_itx_dsp_init_16bpc
Line
Count
Source
220
5.11k
COLD void bitfn(dav1d_itx_dsp_init)(Dav1dInvTxfmDSPContext *const c, int bpc) {
221
5.11k
#define assign_itx_all_fn64(w, h, pfx) \
222
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_DCT  ] = \
223
5.11k
        inv_txfm_add_dct_dct_##w##x##h##_c
224
225
5.11k
#define assign_itx_all_fn32(w, h, pfx) \
226
5.11k
    assign_itx_all_fn64(w, h, pfx); \
227
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][IDTX] = \
228
5.11k
        inv_txfm_add_identity_identity_##w##x##h##_c
229
230
5.11k
#define assign_itx_all_fn16(w, h, pfx) \
231
5.11k
    assign_itx_all_fn32(w, h, pfx); \
232
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_ADST ] = \
233
5.11k
        inv_txfm_add_adst_dct_##w##x##h##_c; \
234
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_DCT ] = \
235
5.11k
        inv_txfm_add_dct_adst_##w##x##h##_c; \
236
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_ADST] = \
237
5.11k
        inv_txfm_add_adst_adst_##w##x##h##_c; \
238
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][ADST_FLIPADST] = \
239
5.11k
        inv_txfm_add_flipadst_adst_##w##x##h##_c; \
240
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_ADST] = \
241
5.11k
        inv_txfm_add_adst_flipadst_##w##x##h##_c; \
242
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][DCT_FLIPADST] = \
243
5.11k
        inv_txfm_add_flipadst_dct_##w##x##h##_c; \
244
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_DCT] = \
245
5.11k
        inv_txfm_add_dct_flipadst_##w##x##h##_c; \
246
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][FLIPADST_FLIPADST] = \
247
5.11k
        inv_txfm_add_flipadst_flipadst_##w##x##h##_c; \
248
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][H_DCT] = \
249
5.11k
        inv_txfm_add_dct_identity_##w##x##h##_c; \
250
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][V_DCT] = \
251
5.11k
        inv_txfm_add_identity_dct_##w##x##h##_c
252
253
5.11k
#define assign_itx_all_fn84(w, h, pfx) \
254
5.11k
    assign_itx_all_fn16(w, h, pfx); \
255
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][H_FLIPADST] = \
256
5.11k
        inv_txfm_add_flipadst_identity_##w##x##h##_c; \
257
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][V_FLIPADST] = \
258
5.11k
        inv_txfm_add_identity_flipadst_##w##x##h##_c; \
259
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][H_ADST] = \
260
5.11k
        inv_txfm_add_adst_identity_##w##x##h##_c; \
261
5.11k
    c->itxfm_add[pfx##TX_##w##X##h][V_ADST] = \
262
5.11k
        inv_txfm_add_identity_adst_##w##x##h##_c; \
263
5.11k
264
5.11k
#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
265
5.11k
  ARCH_AARCH64 || \
266
5.11k
  (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
267
5.11k
))
268
5.11k
    c->itxfm_add[TX_4X4][WHT_WHT] = inv_txfm_add_wht_wht_4x4_c;
269
5.11k
#endif
270
5.11k
    assign_itx_all_fn84( 4,  4, );
271
5.11k
    assign_itx_all_fn84( 4,  8, R);
272
5.11k
    assign_itx_all_fn84( 4, 16, R);
273
5.11k
    assign_itx_all_fn84( 8,  4, R);
274
5.11k
    assign_itx_all_fn84( 8,  8, );
275
5.11k
    assign_itx_all_fn84( 8, 16, R);
276
5.11k
    assign_itx_all_fn32( 8, 32, R);
277
5.11k
    assign_itx_all_fn84(16,  4, R);
278
5.11k
    assign_itx_all_fn84(16,  8, R);
279
5.11k
    assign_itx_all_fn16(16, 16, );
280
5.11k
    assign_itx_all_fn32(16, 32, R);
281
5.11k
    assign_itx_all_fn64(16, 64, R);
282
5.11k
    assign_itx_all_fn32(32,  8, R);
283
5.11k
    assign_itx_all_fn32(32, 16, R);
284
5.11k
    assign_itx_all_fn32(32, 32, );
285
5.11k
    assign_itx_all_fn64(32, 64, R);
286
5.11k
    assign_itx_all_fn64(64, 16, R);
287
5.11k
    assign_itx_all_fn64(64, 32, R);
288
5.11k
    assign_itx_all_fn64(64, 64, );
289
290
5.11k
    int all_simd = 0;
291
#if HAVE_ASM
292
#if ARCH_AARCH64 || ARCH_ARM
293
    itx_dsp_init_arm(c, bpc, &all_simd);
294
#endif
295
#if ARCH_LOONGARCH64
296
    itx_dsp_init_loongarch(c, bpc);
297
#endif
298
#if ARCH_PPC64LE
299
    itx_dsp_init_ppc(c, bpc);
300
#endif
301
#if ARCH_RISCV
302
    itx_dsp_init_riscv(c, bpc);
303
#endif
304
#if ARCH_X86
305
    itx_dsp_init_x86(c, bpc, &all_simd);
306
#endif
307
#endif
308
309
5.11k
    if (!all_simd)
310
5.11k
        dav1d_init_last_nonzero_col_from_eob_tables();
311
5.11k
}