static void filter_mb_edgeh( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) {

    int i, d;

    const int index_a = qp + h->slice_alpha_c0_offset;

    const int alpha = (alpha_table+52)[index_a];

    const int beta  = (beta_table+52)[qp + h->slice_beta_offset];

    const int pix_next  = stride;



    if( bS[0] < 4 ) {

        int8_t tc[4];

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

            tc[i] = bS[i] ? (tc0_table+52)[index_a][bS[i] - 1] : -1;

        h->s.dsp.h264_v_loop_filter_luma(pix, stride, alpha, beta, tc);

    } else {

        h->s.dsp.h264_v_loop_filter_luma_intra(pix, stride, alpha, beta);

    }

}

static void filter_mb_edgeh( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) {

    int i, d;

    const int index_a = qp + h->slice_alpha_c0_offset;

    const int alpha = (alpha_table+52)[index_a];

    const int beta  = (beta_table+52)[qp + h->slice_beta_offset];

    const int pix_next  = stride;



    if( bS[0] < 4 ) {

        int8_t tc[4];

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

            tc[i] = bS[i] ? (tc0_table+52)[index_a][bS[i] - 1] : -1;

        h->s.dsp.h264_v_loop_filter_luma(pix, stride, alpha, beta, tc);

    } else {

        h->s.dsp.h264_v_loop_filter_luma_intra(pix, stride, alpha, beta);

    }

}

static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) {

    int VAR_5, VAR_6;

    const int VAR_7 = VAR_4 + VAR_0->slice_alpha_c0_offset;

    const int VAR_8 = (alpha_table+52)[VAR_7];

    const int VAR_9  = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset];

    const int VAR_10  = VAR_2;



    if( VAR_3[0] < 4 ) {

        int8_t tc[4];

        for(VAR_5=0; VAR_5<4; VAR_5++)

            tc[VAR_5] = VAR_3[VAR_5] ? (tc0_table+52)[VAR_7][VAR_3[VAR_5] - 1] : -1;

        VAR_0->s.dsp.h264_v_loop_filter_luma(VAR_1, VAR_2, VAR_8, VAR_9, tc);

    } else {

        VAR_0->s.dsp.h264_v_loop_filter_luma_intra(VAR_1, VAR_2, VAR_8, VAR_9);

    }

}

static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) { int VAR_5, VAR_6; const int VAR_7 = VAR_4 + VAR_0->slice_alpha_c0_offset; const int VAR_8 = (alpha_table+52)[VAR_7]; const int VAR_9  = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset]; const int VAR_10  = VAR_2; if( VAR_3[0] < 4 ) { int8_t tc[4]; for(VAR_5=0; VAR_5<4; VAR_5++) tc[VAR_5] = VAR_3[VAR_5] ? (tc0_table+52)[VAR_7][VAR_3[VAR_5] - 1] : -1; VAR_0->s.dsp.h264_v_loop_filter_luma(VAR_1, VAR_2, VAR_8, VAR_9, tc); } else { VAR_0->s.dsp.h264_v_loop_filter_luma_intra(VAR_1, VAR_2, VAR_8, VAR_9); } }