static void tqi_calculate_qtable(TqiContext *t, int quant)

{

    const int qscale = (215 - 2*quant)*5;

    int i;



    t->intra_matrix[0] = (ff_inv_aanscales[0] * ff_mpeg1_default_intra_matrix[0]) >> 11;

    for(i=1; i<64; i++)

        t->intra_matrix[i] = (ff_inv_aanscales[i] * ff_mpeg1_default_intra_matrix[i] * qscale + 32) >> 14;

}

static void tqi_calculate_qtable(TqiContext *t, int quant)

{

    const int qscale = (215 - 2*quant)*5;

    int i;



    t->intra_matrix[0] = (ff_inv_aanscales[0] * ff_mpeg1_default_intra_matrix[0]) >> 11;

    for(i=1; i<64; i++)

        t->intra_matrix[i] = (ff_inv_aanscales[i] * ff_mpeg1_default_intra_matrix[i] * qscale + 32) >> 14;

}

    const int qscale = (215 - 2*quant)*5;
static void FUNC_0(TqiContext *VAR_0, int VAR_1)

{

    const int VAR_2 = (215 - 2*VAR_1)*5;

    int VAR_3;



    VAR_0->intra_matrix[0] = (ff_inv_aanscales[0] * ff_mpeg1_default_intra_matrix[0]) >> 11;

    for(VAR_3=1; VAR_3<64; VAR_3++)

        VAR_0->intra_matrix[VAR_3] = (ff_inv_aanscales[VAR_3] * ff_mpeg1_default_intra_matrix[VAR_3] * VAR_2 + 32) >> 14;

}

static void FUNC_0(TqiContext *VAR_0, int VAR_1)
{ const int VAR_2 = (215 - 2*VAR_1)*5; int VAR_3; VAR_0->intra_matrix[0] = (ff_inv_aanscales[0] * ff_mpeg1_default_intra_matrix[0]) >> 11; for(VAR_3=1; VAR_3<64; VAR_3++) VAR_0->intra_matrix[VAR_3] = (ff_inv_aanscales[VAR_3] * ff_mpeg1_default_intra_matrix[VAR_3] * VAR_2 + 32) >> 14; }