static void await_reference_mb_row(const H264Context *const h, H264Picture *ref,

                                   int mb_y)

{

    int ref_field         = ref->reference - 1;

    int ref_field_picture = ref->field_picture;

    int ref_height        = 16 * h->mb_height >> ref_field_picture;



    if (!HAVE_THREADS || !(h->avctx->active_thread_type & FF_THREAD_FRAME))

        return;



    /* FIXME: It can be safe to access mb stuff

     * even if pixels aren't deblocked yet. */



    ff_thread_await_progress(&ref->tf,

                             FFMIN(16 * mb_y >> ref_field_picture,

                                   ref_height - 1),

                             ref_field_picture && ref_field);

}

static void await_reference_mb_row(const H264Context *const h, H264Picture *ref,

                                   int mb_y)

{

    int ref_field         = ref->reference - 1;

    int ref_field_picture = ref->field_picture;

    int ref_height        = 16 * h->mb_height >> ref_field_picture;



    if (!HAVE_THREADS || !(h->avctx->active_thread_type & FF_THREAD_FRAME))

        return;



    





    ff_thread_await_progress(&ref->tf,

                             FFMIN(16 * mb_y >> ref_field_picture,

                                   ref_height - 1),

                             ref_field_picture && ref_field);

}

static void await_reference_mb_row(const H264Context *const h, H264Picture *ref,     int ref_field_picture = ref->field_picture;     ff_thread_await_progress(&ref->tf,
static void FUNC_0(const H264Context *const VAR_0, H264Picture *VAR_1,

                                   int VAR_2)

{

    int VAR_3         = VAR_1->reference - 1;

    int VAR_4 = VAR_1->field_picture;

    int VAR_5        = 16 * VAR_0->mb_height >> VAR_4;



    if (!HAVE_THREADS || !(VAR_0->avctx->active_thread_type & FF_THREAD_FRAME))

        return;



    





    ff_thread_await_progress(&VAR_1->tf,

                             FFMIN(16 * VAR_2 >> VAR_4,

                                   VAR_5 - 1),

                             VAR_4 && VAR_3);

}

static void FUNC_0(const H264Context *const VAR_0, H264Picture *VAR_1,
int VAR_2)
{ int VAR_3         = VAR_1->reference - 1; int VAR_4 = VAR_1->field_picture; int VAR_5        = 16 * VAR_0->mb_height >> VAR_4; if (!HAVE_THREADS || !(VAR_0->avctx->active_thread_type & FF_THREAD_FRAME))
return; ff_thread_await_progress(&VAR_1->tf,
FFMIN(16 * VAR_2 >> VAR_4,
VAR_5 - 1),
VAR_4 && VAR_3); }