static void vp7_luma_dc_wht_c(int16_t block[4][4][16], int16_t dc[16])

{

    int i, a1, b1, c1, d1;

    int16_t tmp[16];



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

        a1 = (dc[i * 4 + 0] + dc[i * 4 + 2]) * 23170;

        b1 = (dc[i * 4 + 0] - dc[i * 4 + 2]) * 23170;

        c1 = dc[i * 4 + 1] * 12540 - dc[i * 4 + 3] * 30274;

        d1 = dc[i * 4 + 1] * 30274 + dc[i * 4 + 3] * 12540;

        tmp[i * 4 + 0] = (a1 + d1) >> 14;

        tmp[i * 4 + 3] = (a1 - d1) >> 14;

        tmp[i * 4 + 1] = (b1 + c1) >> 14;

        tmp[i * 4 + 2] = (b1 - c1) >> 14;

    }



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

        a1 = (tmp[i + 0] + tmp[i + 8]) * 23170;

        b1 = (tmp[i + 0] - tmp[i + 8]) * 23170;

        c1 = tmp[i + 4] * 12540 - tmp[i + 12] * 30274;

        d1 = tmp[i + 4] * 30274 + tmp[i + 12] * 12540;

        AV_ZERO64(dc + i * 4);

        block[0][i][0] = (a1 + d1 + 0x20000) >> 18;

        block[3][i][0] = (a1 - d1 + 0x20000) >> 18;

        block[1][i][0] = (b1 + c1 + 0x20000) >> 18;

        block[2][i][0] = (b1 - c1 + 0x20000) >> 18;

    }

}

static void vp7_luma_dc_wht_c(int16_t block[4][4][16], int16_t dc[16])

{

    int i, a1, b1, c1, d1;

    int16_t tmp[16];



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

        a1 = (dc[i * 4 + 0] + dc[i * 4 + 2]) * 23170;

        b1 = (dc[i * 4 + 0] - dc[i * 4 + 2]) * 23170;

        c1 = dc[i * 4 + 1] * 12540 - dc[i * 4 + 3] * 30274;

        d1 = dc[i * 4 + 1] * 30274 + dc[i * 4 + 3] * 12540;

        tmp[i * 4 + 0] = (a1 + d1) >> 14;

        tmp[i * 4 + 3] = (a1 - d1) >> 14;

        tmp[i * 4 + 1] = (b1 + c1) >> 14;

        tmp[i * 4 + 2] = (b1 - c1) >> 14;

    }



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

        a1 = (tmp[i + 0] + tmp[i + 8]) * 23170;

        b1 = (tmp[i + 0] - tmp[i + 8]) * 23170;

        c1 = tmp[i + 4] * 12540 - tmp[i + 12] * 30274;

        d1 = tmp[i + 4] * 30274 + tmp[i + 12] * 12540;

        AV_ZERO64(dc + i * 4);

        block[0][i][0] = (a1 + d1 + 0x20000) >> 18;

        block[3][i][0] = (a1 - d1 + 0x20000) >> 18;

        block[1][i][0] = (b1 + c1 + 0x20000) >> 18;

        block[2][i][0] = (b1 - c1 + 0x20000) >> 18;

    }

}

    int i, a1, b1, c1, d1;         tmp[i * 4 + 0] = (a1 + d1) >> 14;         tmp[i * 4 + 3] = (a1 - d1) >> 14;         tmp[i * 4 + 1] = (b1 + c1) >> 14;         tmp[i * 4 + 2] = (b1 - c1) >> 14;         block[0][i][0] = (a1 + d1 + 0x20000) >> 18;         block[3][i][0] = (a1 - d1 + 0x20000) >> 18;         block[1][i][0] = (b1 + c1 + 0x20000) >> 18;         block[2][i][0] = (b1 - c1 + 0x20000) >> 18;
static void FUNC_0(int16_t VAR_0[4][4][16], int16_t VAR_1[16])

{

    int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;

    int16_t tmp[16];



    for (VAR_2 = 0; VAR_2 < 4; VAR_2++) {

        VAR_3 = (VAR_1[VAR_2 * 4 + 0] + VAR_1[VAR_2 * 4 + 2]) * 23170;

        VAR_4 = (VAR_1[VAR_2 * 4 + 0] - VAR_1[VAR_2 * 4 + 2]) * 23170;

        VAR_5 = VAR_1[VAR_2 * 4 + 1] * 12540 - VAR_1[VAR_2 * 4 + 3] * 30274;

        VAR_6 = VAR_1[VAR_2 * 4 + 1] * 30274 + VAR_1[VAR_2 * 4 + 3] * 12540;

        tmp[VAR_2 * 4 + 0] = (VAR_3 + VAR_6) >> 14;

        tmp[VAR_2 * 4 + 3] = (VAR_3 - VAR_6) >> 14;

        tmp[VAR_2 * 4 + 1] = (VAR_4 + VAR_5) >> 14;

        tmp[VAR_2 * 4 + 2] = (VAR_4 - VAR_5) >> 14;

    }



    for (VAR_2 = 0; VAR_2 < 4; VAR_2++) {

        VAR_3 = (tmp[VAR_2 + 0] + tmp[VAR_2 + 8]) * 23170;

        VAR_4 = (tmp[VAR_2 + 0] - tmp[VAR_2 + 8]) * 23170;

        VAR_5 = tmp[VAR_2 + 4] * 12540 - tmp[VAR_2 + 12] * 30274;

        VAR_6 = tmp[VAR_2 + 4] * 30274 + tmp[VAR_2 + 12] * 12540;

        AV_ZERO64(VAR_1 + VAR_2 * 4);

        VAR_0[0][VAR_2][0] = (VAR_3 + VAR_6 + 0x20000) >> 18;

        VAR_0[3][VAR_2][0] = (VAR_3 - VAR_6 + 0x20000) >> 18;

        VAR_0[1][VAR_2][0] = (VAR_4 + VAR_5 + 0x20000) >> 18;

        VAR_0[2][VAR_2][0] = (VAR_4 - VAR_5 + 0x20000) >> 18;

    }

}

static void FUNC_0(int16_t VAR_0[4][4][16], int16_t VAR_1[16])
{ int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; int16_t tmp[16]; for (VAR_2 = 0; VAR_2 < 4; VAR_2++) { VAR_3 = (VAR_1[VAR_2 * 4 + 0] + VAR_1[VAR_2 * 4 + 2]) * 23170; VAR_4 = (VAR_1[VAR_2 * 4 + 0] - VAR_1[VAR_2 * 4 + 2]) * 23170; VAR_5 = VAR_1[VAR_2 * 4 + 1] * 12540 - VAR_1[VAR_2 * 4 + 3] * 30274; VAR_6 = VAR_1[VAR_2 * 4 + 1] * 30274 + VAR_1[VAR_2 * 4 + 3] * 12540; tmp[VAR_2 * 4 + 0] = (VAR_3 + VAR_6) >> 14; tmp[VAR_2 * 4 + 3] = (VAR_3 - VAR_6) >> 14; tmp[VAR_2 * 4 + 1] = (VAR_4 + VAR_5) >> 14; tmp[VAR_2 * 4 + 2] = (VAR_4 - VAR_5) >> 14; } for (VAR_2 = 0; VAR_2 < 4; VAR_2++) { VAR_3 = (tmp[VAR_2 + 0] + tmp[VAR_2 + 8]) * 23170; VAR_4 = (tmp[VAR_2 + 0] - tmp[VAR_2 + 8]) * 23170; VAR_5 = tmp[VAR_2 + 4] * 12540 - tmp[VAR_2 + 12] * 30274; VAR_6 = tmp[VAR_2 + 4] * 30274 + tmp[VAR_2 + 12] * 12540; AV_ZERO64(VAR_1 + VAR_2 * 4); VAR_0[0][VAR_2][0] = (VAR_3 + VAR_6 + 0x20000) >> 18; VAR_0[3][VAR_2][0] = (VAR_3 - VAR_6 + 0x20000) >> 18; VAR_0[1][VAR_2][0] = (VAR_4 + VAR_5 + 0x20000) >> 18; VAR_0[2][VAR_2][0] = (VAR_4 - VAR_5 + 0x20000) >> 18; } }