static void lowpass_line_complex_c(uint8_t *dstp, ptrdiff_t linesize,

                                   const uint8_t *srcp,

                                   ptrdiff_t mref, ptrdiff_t pref)

{

    const uint8_t *srcp_above = srcp + mref;

    const uint8_t *srcp_below = srcp + pref;

    const uint8_t *srcp_above2 = srcp + mref * 2;

    const uint8_t *srcp_below2 = srcp + pref * 2;

    int i;

    for (i = 0; i < linesize; i++) {

        // this calculation is an integer representation of

        // '0.75 * current + 0.25 * above + 0.25 * below - 0.125 * above2 - 0.125 * below2'

        // '4 +' is for rounding.

        dstp[i] = av_clip_uint8((4 + (srcp[i] << 2)

                  + ((srcp[i] + srcp_above[i] + srcp_below[i]) << 1)

                  - srcp_above2[i] - srcp_below2[i]) >> 3);

    }

}

static void lowpass_line_complex_c(uint8_t *dstp, ptrdiff_t linesize,

                                   const uint8_t *srcp,

                                   ptrdiff_t mref, ptrdiff_t pref)

{

    const uint8_t *srcp_above = srcp + mref;

    const uint8_t *srcp_below = srcp + pref;

    const uint8_t *srcp_above2 = srcp + mref * 2;

    const uint8_t *srcp_below2 = srcp + pref * 2;

    int i;

    for (i = 0; i < linesize; i++) {

        

        

        

        dstp[i] = av_clip_uint8((4 + (srcp[i] << 2)

                  + ((srcp[i] + srcp_above[i] + srcp_below[i]) << 1)

                  - srcp_above2[i] - srcp_below2[i]) >> 3);

    }

}

static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1,

                                   const uint8_t *VAR_2,

                                   ptrdiff_t VAR_3, ptrdiff_t VAR_4)

{

    const uint8_t *VAR_5 = VAR_2 + VAR_3;

    const uint8_t *VAR_6 = VAR_2 + VAR_4;

    const uint8_t *VAR_7 = VAR_2 + VAR_3 * 2;

    const uint8_t *VAR_8 = VAR_2 + VAR_4 * 2;

    int VAR_9;

    for (VAR_9 = 0; VAR_9 < VAR_1; VAR_9++) {

        

        

        

        VAR_0[VAR_9] = av_clip_uint8((4 + (VAR_2[VAR_9] << 2)

                  + ((VAR_2[VAR_9] + VAR_5[VAR_9] + VAR_6[VAR_9]) << 1)

                  - VAR_7[VAR_9] - VAR_8[VAR_9]) >> 3);

    }

}

static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1,
const uint8_t *VAR_2,
ptrdiff_t VAR_3, ptrdiff_t VAR_4)
{ const uint8_t *VAR_5 = VAR_2 + VAR_3; const uint8_t *VAR_6 = VAR_2 + VAR_4; const uint8_t *VAR_7 = VAR_2 + VAR_3 * 2; const uint8_t *VAR_8 = VAR_2 + VAR_4 * 2; int VAR_9; for (VAR_9 = 0; VAR_9 < VAR_1; VAR_9++) { VAR_0[VAR_9] = av_clip_uint8((4 + (VAR_2[VAR_9] << 2)
+ ((VAR_2[VAR_9] + VAR_5[VAR_9] + VAR_6[VAR_9]) << 1)
- VAR_7[VAR_9] - VAR_8[VAR_9]) >> 3); } }