This file is indexed.

/usr/include/libwildmagic/Wm5FastBlur.inl is in libwildmagic-dev 5.13-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
// Geometric Tools, LLC
// Copyright (c) 1998-2014
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.0 (2010/01/01)

//----------------------------------------------------------------------------
template <typename Numeric>
void FastBlur1 (int xBound, Numeric* image, Numeric* temp, double scale,
    double logBase)
{
    int x;
    for (x = 0; x < xBound; ++x) 
    {
        double rxp = x + scale;
        double rxm = x - scale;
        int xp = (int)Mathd::Floor(rxp);
        int xm = (int)Mathd::Ceil(rxm);

        double xsum = -2.0*image[x];

        if (xp >= xBound-1)  // use boundary value
        {
            xsum += image[xBound-1];
        }
        else  // linearly interpolate
        {
            xsum += image[xp] + (rxp - xp)*(image[xp+1] - image[xp]);
        }

        if (xm <= 0)  // use boundary value
        {
            xsum += image[0];
        }
        else  // linearly interpolate
        {
            xsum += image[xm] + (rxm - xm)*(image[xm] - image[xm-1]);
        }

        temp[x] = (Numeric)(image[x] + logBase*xsum);
    }

    for (x = 0; x < xBound; ++x)
    {
        image[x] = temp[x];
    }
}
//----------------------------------------------------------------------------
template <typename Numeric>
void FastBlur2 (int xBound, int yBound, Numeric** image, Numeric** temp,
    double scale, double logBase)
{
    int x, y;
    for (y = 0; y < yBound; ++y) 
    {
        double ryp = y + scale;
        double rym = y - scale;
        int yp = (int)Mathd::Floor(ryp);
        int ym = (int)Mathd::Ceil(rym);

        for (x = 0; x < xBound; ++x) 
        {
            double rxp = x + scale;
            double rxm = x - scale;
            int xp = (int)Mathd::Floor(rxp);
            int xm = (int)Mathd::Ceil(rxm);

            // x portion of second central difference
            double xsum = -2.0*image[y][x];
            if (xp >= xBound-1)  // use boundary value
            {
                xsum += image[y][xBound-1];
            }
            else  // linearly interpolate
            {
                xsum += image[y][xp] + (rxp - xp)*(image[y][xp+1] -
                    image[y][xp]);
            }

            if (xm <= 0)  // use boundary value
            {
                xsum += image[y][0];
            }
            else  // linearly interpolate
            {
                xsum += image[y][xm] + (rxm - xm)*(image[y][xm] -
                    image[y][xm-1]);
            }

            // y portion of second central difference
            double ysum = -2.0*image[y][x];
            if (yp >= yBound-1)  // use boundary value
            {
                ysum += image[yBound-1][x];
            }
            else  // linearly interpolate
            {
                ysum += image[yp][x] + (ryp - yp)*(image[yp+1][x] -
                    image[yp][x]);
            }

            if (ym <= 0)  // use boundary value
            {
                ysum += image[0][x];
            }
            else  // linearly interpolate
            {
                ysum += image[ym][x] + (rym - ym)*(image[ym][x] -
                    image[ym-1][x]);
            }

            temp[y][x] = (Numeric)(image[y][x] + logBase*(xsum + ysum));
        }
    }

    for (y = 0; y < yBound; ++y)
    {
        for (x = 0; x < xBound; ++x)
        {
            image[y][x] = temp[y][x];
        }
    }
}
//----------------------------------------------------------------------------
template <typename Numeric>
void FastBlur3 (int xBound, int yBound, int zBound, Numeric*** image,
    Numeric*** temp, double scale, double logBase)
{
    int x, y, z;
    for (z = 0; z < zBound; ++z)
    {
        double rzp = z + scale;
        double rzm = z - scale;
        int zp = (int)Mathd::Floor(rzp);
        int zm = (int)Mathd::Ceil(rzm);

        for (y = 0; y < yBound; ++y) 
        {
            double ryp = y + scale;
            double rym = y - scale;
            int yp = (int)Mathd::Floor(ryp);
            int ym = (int)Mathd::Ceil(rym);

            for (x = 0; x < xBound; ++x) 
            {
                double rxp = x + scale;
                double rxm = x - scale;
                int xp = (int)Mathd::Floor(rxp);
                int xm = (int)Mathd::Ceil(rxm);

                // x portion of second central difference
                double xsum = -2.0*image[z][y][x];
                if (xp >= xBound-1)  // use boundary value
                {
                    xsum += image[z][y][xBound-1];
                }
                else  // linearly interpolate
                {
                    xsum += image[z][y][xp] + (rxp - xp)*(
                        image[z][y][xp+1] - image[z][y][xp]);
                }

                if (xm <= 0)  // use boundary value
                {
                    xsum += image[z][y][0];
                }
                else  // linearly interpolate
                {
                    xsum += image[z][y][xm] + (rxm - xm)*(
                        image[z][y][xm] - image[z][y][xm-1]);
                }

                // y portion of second central difference
                double ysum = -2.0*image[z][y][x];
                if (yp >= yBound-1)  // use boundary value
                {
                    ysum += image[z][yBound-1][x];
                }
                else  // linearly interpolate
                {
                    ysum += image[z][yp][x] + (ryp-yp)*(
                        image[z][yp+1][x] - image[z][yp][x]);
                }

                if (ym <= 0)  // use boundary value
                {
                    ysum += image[z][0][x];
                }
                else  // linearly interpolate
                {
                    ysum += image[z][ym][x] + (rym - ym)*(
                        image[z][ym][x] - image[z][ym-1][x]);
                }

                // z portion of second central difference
                double zsum = -2.0*image[z][y][x];
                if (zp >= zBound-1)  // use boundary value
                {
                    zsum += image[zBound-1][y][x];
                }
                else  // linearly interpolate
                {
                    zsum += image[zp][y][x] + (rzp - zp)*(
                        image[zp+1][y][x] - image[zp][y][x]);
                }

                if (zm <= 0)  // use boundary value
                {
                    zsum += image[0][y][x];
                }
                else  // linearly interpolate
                {
                    zsum += image[zm][y][x] + (rzm - zm)*(
                        image[zm][y][x] - image[zm-1][y][x]);
                }

                temp[z][y][x] = (Numeric)(image[z][y][x] +
                    logBase*(xsum + ysum + zsum));
            }
        }
    }

    for (z = 0; z < zBound; ++z)
    {
        for (y = 0; y < yBound; ++y)
        {
            for (x = 0; x < xBound; ++x)
            {
                image[z][y][x] = temp[z][y][x];
            }
        }
    }
}
//----------------------------------------------------------------------------