void ff_mpv_frame_end(MpegEncContext *s)

{

#if FF_API_XVMC

FF_DISABLE_DEPRECATION_WARNINGS

    /* redraw edges for the frame if decoding didn't complete */

    // just to make sure that all data is rendered.

    if (CONFIG_MPEG_XVMC_DECODER && s->avctx->xvmc_acceleration) {

        ff_xvmc_field_end(s);

    } else

FF_ENABLE_DEPRECATION_WARNINGS

#endif /* FF_API_XVMC */



    emms_c();



    if (s->current_picture.reference)

        ff_thread_report_progress(&s->current_picture_ptr->tf, INT_MAX, 0);

}

void ff_mpv_frame_end(MpegEncContext *s)

{

#if FF_API_XVMC

FF_DISABLE_DEPRECATION_WARNINGS

    

    

    if (CONFIG_MPEG_XVMC_DECODER && s->avctx->xvmc_acceleration) {

        ff_xvmc_field_end(s);

    } else

FF_ENABLE_DEPRECATION_WARNINGS

#endif 



    emms_c();



    if (s->current_picture.reference)

        ff_thread_report_progress(&s->current_picture_ptr->tf, INT_MAX, 0);

}

void FUNC_0(MpegEncContext *VAR_0)

{

#if FF_API_XVMC

FF_DISABLE_DEPRECATION_WARNINGS

    

    

    if (CONFIG_MPEG_XVMC_DECODER && VAR_0->avctx->xvmc_acceleration) {

        ff_xvmc_field_end(VAR_0);

    } else

FF_ENABLE_DEPRECATION_WARNINGS

#endif 



    emms_c();



    if (VAR_0->current_picture.reference)

        ff_thread_report_progress(&VAR_0->current_picture_ptr->tf, INT_MAX, 0);

}

void FUNC_0(MpegEncContext *VAR_0)
{ #if FF_API_XVMC
FF_DISABLE_DEPRECATION_WARNINGS
if (CONFIG_MPEG_XVMC_DECODER && VAR_0->avctx->xvmc_acceleration) { ff_xvmc_field_end(VAR_0); } else FF_ENABLE_DEPRECATION_WARNINGS
#endif
emms_c(); if (VAR_0->current_picture.reference)
ff_thread_report_progress(&VAR_0->current_picture_ptr->tf, INT_MAX, 0); }