int check_intra_pred8x8_mode_emuedge(int mode, int mb_x, int mb_y)

{

    switch (mode) {

    case DC_PRED8x8:

        return check_dc_pred8x8_mode(mode, mb_x, mb_y);

    case VERT_PRED8x8:

        return !mb_y ? DC_127_PRED8x8 : mode;

    case HOR_PRED8x8:

        return !mb_x ? DC_129_PRED8x8 : mode;

    case PLANE_PRED8x8: /* TM */

        return check_tm_pred8x8_mode(mode, mb_x, mb_y);

    }

    return mode;

}

int check_intra_pred8x8_mode_emuedge(int mode, int mb_x, int mb_y)

{

    switch (mode) {

    case DC_PRED8x8:

        return check_dc_pred8x8_mode(mode, mb_x, mb_y);

    case VERT_PRED8x8:

        return !mb_y ? DC_127_PRED8x8 : mode;

    case HOR_PRED8x8:

        return !mb_x ? DC_129_PRED8x8 : mode;

    case PLANE_PRED8x8: 

        return check_tm_pred8x8_mode(mode, mb_x, mb_y);

    }

    return mode;

}

int check_intra_pred8x8_mode_emuedge(int mode, int mb_x, int mb_y)         return !mb_y ? DC_127_PRED8x8 : mode;         return !mb_x ? DC_129_PRED8x8 : mode;         return check_tm_pred8x8_mode(mode, mb_x, mb_y);
int FUNC_0(int VAR_0, int VAR_1, int VAR_2)

{

    switch (VAR_0) {

    case DC_PRED8x8:

        return check_dc_pred8x8_mode(VAR_0, VAR_1, VAR_2);

    case VERT_PRED8x8:

        return !VAR_2 ? DC_127_PRED8x8 : VAR_0;

    case HOR_PRED8x8:

        return !VAR_1 ? DC_129_PRED8x8 : VAR_0;

    case PLANE_PRED8x8: 

        return check_tm_pred8x8_mode(VAR_0, VAR_1, VAR_2);

    }

    return VAR_0;

}

int FUNC_0(int VAR_0, int VAR_1, int VAR_2)
{ switch (VAR_0) { case DC_PRED8x8:
return check_dc_pred8x8_mode(VAR_0, VAR_1, VAR_2); case VERT_PRED8x8:
return !VAR_2 ? DC_127_PRED8x8 : VAR_0; case HOR_PRED8x8:
return !VAR_1 ? DC_129_PRED8x8 : VAR_0; case PLANE_PRED8x8:
return check_tm_pred8x8_mode(VAR_0, VAR_1, VAR_2); } return VAR_0; }