static void init_custom_qm(VC2EncContext *s)

{

    int level, orientation;



    if (s->quant_matrix == VC2_QM_DEF) {

        for (level = 0; level < s->wavelet_depth; level++) {

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

                if (level <= 3)

                    s->quant[level][orientation] = ff_dirac_default_qmat[s->wavelet_idx][level][orientation];

                else

                    s->quant[level][orientation] = vc2_qm_col_tab[level][orientation];

            }

        }

    } else if (s->quant_matrix == VC2_QM_COL) {

        for (level = 0; level < s->wavelet_depth; level++) {

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

                s->quant[level][orientation] = vc2_qm_col_tab[level][orientation];

            }

        }

    } else {

        for (level = 0; level < s->wavelet_depth; level++) {

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

                s->quant[level][orientation] = vc2_qm_flat_tab[level][orientation];

            }

        }

    }

}

static void init_custom_qm(VC2EncContext *s)

{

    int level, orientation;



    if (s->quant_matrix == VC2_QM_DEF) {

        for (level = 0; level < s->wavelet_depth; level++) {

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

                if (level <= 3)

                    s->quant[level][orientation] = ff_dirac_default_qmat[s->wavelet_idx][level][orientation];

                else

                    s->quant[level][orientation] = vc2_qm_col_tab[level][orientation];

            }

        }

    } else if (s->quant_matrix == VC2_QM_COL) {

        for (level = 0; level < s->wavelet_depth; level++) {

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

                s->quant[level][orientation] = vc2_qm_col_tab[level][orientation];

            }

        }

    } else {

        for (level = 0; level < s->wavelet_depth; level++) {

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

                s->quant[level][orientation] = vc2_qm_flat_tab[level][orientation];

            }

        }

    }

}

    } else { static void init_custom_qm(VC2EncContext *s)     } else {         for (level = 0; level < s->wavelet_depth; level++) {     } else {
static void FUNC_0(VC2EncContext *VAR_0)

{

    int VAR_1, VAR_2;



    if (VAR_0->quant_matrix == VC2_QM_DEF) {

        for (VAR_1 = 0; VAR_1 < VAR_0->wavelet_depth; VAR_1++) {

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

                if (VAR_1 <= 3)

                    VAR_0->quant[VAR_1][VAR_2] = ff_dirac_default_qmat[VAR_0->wavelet_idx][VAR_1][VAR_2];

                else

                    VAR_0->quant[VAR_1][VAR_2] = vc2_qm_col_tab[VAR_1][VAR_2];

            }

        }

    } else if (VAR_0->quant_matrix == VC2_QM_COL) {

        for (VAR_1 = 0; VAR_1 < VAR_0->wavelet_depth; VAR_1++) {

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

                VAR_0->quant[VAR_1][VAR_2] = vc2_qm_col_tab[VAR_1][VAR_2];

            }

        }

    } else {

        for (VAR_1 = 0; VAR_1 < VAR_0->wavelet_depth; VAR_1++) {

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

                VAR_0->quant[VAR_1][VAR_2] = vc2_qm_flat_tab[VAR_1][VAR_2];

            }

        }

    }

}

static void FUNC_0(VC2EncContext *VAR_0)
{ int VAR_1, VAR_2; if (VAR_0->quant_matrix == VC2_QM_DEF) { for (VAR_1 = 0; VAR_1 < VAR_0->wavelet_depth; VAR_1++) { for (VAR_2 = 0; VAR_2 < 4; VAR_2++) { if (VAR_1 <= 3)
VAR_0->quant[VAR_1][VAR_2] = ff_dirac_default_qmat[VAR_0->wavelet_idx][VAR_1][VAR_2]; else
VAR_0->quant[VAR_1][VAR_2] = vc2_qm_col_tab[VAR_1][VAR_2]; } } } else if (VAR_0->quant_matrix == VC2_QM_COL) { for (VAR_1 = 0; VAR_1 < VAR_0->wavelet_depth; VAR_1++) { for (VAR_2 = 0; VAR_2 < 4; VAR_2++) { VAR_0->quant[VAR_1][VAR_2] = vc2_qm_col_tab[VAR_1][VAR_2]; } } } else { for (VAR_1 = 0; VAR_1 < VAR_0->wavelet_depth; VAR_1++) { for (VAR_2 = 0; VAR_2 < 4; VAR_2++) { VAR_0->quant[VAR_1][VAR_2] = vc2_qm_flat_tab[VAR_1][VAR_2]; } } } }