static void decode_finish_row(H264Context *h, H264SliceContext *sl)

{

    int top            = 16 * (h->mb_y      >> FIELD_PICTURE(h));

    int pic_height     = 16 *  h->mb_height >> FIELD_PICTURE(h);

    int height         =  16      << FRAME_MBAFF(h);

    int deblock_border = (16 + 4) << FRAME_MBAFF(h);



    if (h->deblocking_filter) {

        if ((top + height) >= pic_height)

            height += deblock_border;

        top -= deblock_border;

    }



    if (top >= pic_height || (top + height) < 0)

        return;



    height = FFMIN(height, pic_height - top);

    if (top < 0) {

        height = top + height;

        top    = 0;

    }



    ff_h264_draw_horiz_band(h, sl, top, height);



    if (h->droppable)

        return;



    ff_thread_report_progress(&h->cur_pic_ptr->tf, top + height - 1,

                              h->picture_structure == PICT_BOTTOM_FIELD);

}

static void decode_finish_row(H264Context *h, H264SliceContext *sl)

{

    int top            = 16 * (h->mb_y      >> FIELD_PICTURE(h));

    int pic_height     = 16 *  h->mb_height >> FIELD_PICTURE(h);

    int height         =  16      << FRAME_MBAFF(h);

    int deblock_border = (16 + 4) << FRAME_MBAFF(h);



    if (h->deblocking_filter) {

        if ((top + height) >= pic_height)

            height += deblock_border;

        top -= deblock_border;

    }



    if (top >= pic_height || (top + height) < 0)

        return;



    height = FFMIN(height, pic_height - top);

    if (top < 0) {

        height = top + height;

        top    = 0;

    }



    ff_h264_draw_horiz_band(h, sl, top, height);



    if (h->droppable)

        return;



    ff_thread_report_progress(&h->cur_pic_ptr->tf, top + height - 1,

                              h->picture_structure == PICT_BOTTOM_FIELD);

}

static void FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1)

{

    int VAR_2            = 16 * (VAR_0->mb_y      >> FIELD_PICTURE(VAR_0));

    int VAR_3     = 16 *  VAR_0->mb_height >> FIELD_PICTURE(VAR_0);

    int VAR_4         =  16      << FRAME_MBAFF(VAR_0);

    int VAR_5 = (16 + 4) << FRAME_MBAFF(VAR_0);



    if (VAR_0->deblocking_filter) {

        if ((VAR_2 + VAR_4) >= VAR_3)

            VAR_4 += VAR_5;

        VAR_2 -= VAR_5;

    }



    if (VAR_2 >= VAR_3 || (VAR_2 + VAR_4) < 0)

        return;



    VAR_4 = FFMIN(VAR_4, VAR_3 - VAR_2);

    if (VAR_2 < 0) {

        VAR_4 = VAR_2 + VAR_4;

        VAR_2    = 0;

    }



    ff_h264_draw_horiz_band(VAR_0, VAR_1, VAR_2, VAR_4);



    if (VAR_0->droppable)

        return;



    ff_thread_report_progress(&VAR_0->cur_pic_ptr->tf, VAR_2 + VAR_4 - 1,

                              VAR_0->picture_structure == PICT_BOTTOM_FIELD);

}

static void FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1)
{ int VAR_2            = 16 * (VAR_0->mb_y      >> FIELD_PICTURE(VAR_0)); int VAR_3     = 16 *  VAR_0->mb_height >> FIELD_PICTURE(VAR_0); int VAR_4         =  16      << FRAME_MBAFF(VAR_0); int VAR_5 = (16 + 4) << FRAME_MBAFF(VAR_0); if (VAR_0->deblocking_filter) { if ((VAR_2 + VAR_4) >= VAR_3)
VAR_4 += VAR_5; VAR_2 -= VAR_5; } if (VAR_2 >= VAR_3 || (VAR_2 + VAR_4) < 0)
return; VAR_4 = FFMIN(VAR_4, VAR_3 - VAR_2); if (VAR_2 < 0) { VAR_4 = VAR_2 + VAR_4; VAR_2    = 0; } ff_h264_draw_horiz_band(VAR_0, VAR_1, VAR_2, VAR_4); if (VAR_0->droppable)
return; ff_thread_report_progress(&VAR_0->cur_pic_ptr->tf, VAR_2 + VAR_4 - 1,
VAR_0->picture_structure == PICT_BOTTOM_FIELD); }