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

    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];

    if (alpha ==0 || beta == 0) return;



    if( bS[0] < 4 ) {

        int8_t tc[4];

        tc[0] = (tc0_table+52)[index_a][bS[0]]+1;

        tc[1] = (tc0_table+52)[index_a][bS[1]]+1;

        tc[2] = (tc0_table+52)[index_a][bS[2]]+1;

        tc[3] = (tc0_table+52)[index_a][bS[3]]+1;

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

    } else {

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

    }

}

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

    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];

    if (alpha ==0 || beta == 0) return;



    if( bS[0] < 4 ) {

        int8_t tc[4];

        tc[0] = (tc0_table+52)[index_a][bS[0]]+1;

        tc[1] = (tc0_table+52)[index_a][bS[1]]+1;

        tc[2] = (tc0_table+52)[index_a][bS[2]]+1;

        tc[3] = (tc0_table+52)[index_a][bS[3]]+1;

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

    } else {

        h->s.dsp.h264_h_loop_filter_chroma_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 ) {

    const int VAR_5 = VAR_4 + VAR_0->slice_alpha_c0_offset;

    const int VAR_6 = (alpha_table+52)[VAR_5];

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

    if (VAR_6 ==0 || VAR_7 == 0) return;



    if( VAR_3[0] < 4 ) {

        int8_t tc[4];

        tc[0] = (tc0_table+52)[VAR_5][VAR_3[0]]+1;

        tc[1] = (tc0_table+52)[VAR_5][VAR_3[1]]+1;

        tc[2] = (tc0_table+52)[VAR_5][VAR_3[2]]+1;

        tc[3] = (tc0_table+52)[VAR_5][VAR_3[3]]+1;

        VAR_0->s.dsp.h264_h_loop_filter_chroma(VAR_1, VAR_2, VAR_6, VAR_7, tc);

    } else {

        VAR_0->s.dsp.h264_h_loop_filter_chroma_intra(VAR_1, VAR_2, VAR_6, VAR_7);

    }

}

static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) { const int VAR_5 = VAR_4 + VAR_0->slice_alpha_c0_offset; const int VAR_6 = (alpha_table+52)[VAR_5]; const int VAR_7  = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset]; if (VAR_6 ==0 || VAR_7 == 0) return; if( VAR_3[0] < 4 ) { int8_t tc[4]; tc[0] = (tc0_table+52)[VAR_5][VAR_3[0]]+1; tc[1] = (tc0_table+52)[VAR_5][VAR_3[1]]+1; tc[2] = (tc0_table+52)[VAR_5][VAR_3[2]]+1; tc[3] = (tc0_table+52)[VAR_5][VAR_3[3]]+1; VAR_0->s.dsp.h264_h_loop_filter_chroma(VAR_1, VAR_2, VAR_6, VAR_7, tc); } else { VAR_0->s.dsp.h264_h_loop_filter_chroma_intra(VAR_1, VAR_2, VAR_6, VAR_7); } }