static void frame_end(MpegEncContext *s)

{

    if (s->unrestricted_mv &&

        s->current_picture.reference &&

        !s->intra_only) {

        const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->avctx->pix_fmt);

        int hshift = desc->log2_chroma_w;

        int vshift = desc->log2_chroma_h;

        s->mpvencdsp.draw_edges(s->current_picture.f->data[0],

                                s->current_picture.f->linesize[0],

                                s->h_edge_pos, s->v_edge_pos,

                                EDGE_WIDTH, EDGE_WIDTH,

                                EDGE_TOP | EDGE_BOTTOM);

        s->mpvencdsp.draw_edges(s->current_picture.f->data[1],

                                s->current_picture.f->linesize[1],

                                s->h_edge_pos >> hshift,

                                s->v_edge_pos >> vshift,

                                EDGE_WIDTH >> hshift,

                                EDGE_WIDTH >> vshift,

                                EDGE_TOP | EDGE_BOTTOM);

        s->mpvencdsp.draw_edges(s->current_picture.f->data[2],

                                s->current_picture.f->linesize[2],

                                s->h_edge_pos >> hshift,

                                s->v_edge_pos >> vshift,

                                EDGE_WIDTH >> hshift,

                                EDGE_WIDTH >> vshift,

                                EDGE_TOP | EDGE_BOTTOM);

    }



    emms_c();



    s->last_pict_type                 = s->pict_type;

    s->last_lambda_for [s->pict_type] = s->current_picture_ptr->f->quality;

    if (s->pict_type!= AV_PICTURE_TYPE_B)

        s->last_non_b_pict_type = s->pict_type;



#if FF_API_CODED_FRAME

FF_DISABLE_DEPRECATION_WARNINGS


    av_frame_copy_props(s->avctx->coded_frame, s->current_picture.f);

FF_ENABLE_DEPRECATION_WARNINGS

#endif

#if FF_API_ERROR_FRAME

FF_DISABLE_DEPRECATION_WARNINGS

    memcpy(s->current_picture.f->error, s->current_picture.encoding_error,

           sizeof(s->current_picture.encoding_error));

FF_ENABLE_DEPRECATION_WARNINGS

#endif

}
static void frame_end(MpegEncContext *s)

{

    if (s->unrestricted_mv &&

        s->current_picture.reference &&

        !s->intra_only) {

        const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->avctx->pix_fmt);

        int hshift = desc->log2_chroma_w;

        int vshift = desc->log2_chroma_h;

        s->mpvencdsp.draw_edges(s->current_picture.f->data[0],

                                s->current_picture.f->linesize[0],

                                s->h_edge_pos, s->v_edge_pos,

                                EDGE_WIDTH, EDGE_WIDTH,

                                EDGE_TOP | EDGE_BOTTOM);

        s->mpvencdsp.draw_edges(s->current_picture.f->data[1],

                                s->current_picture.f->linesize[1],

                                s->h_edge_pos >> hshift,

                                s->v_edge_pos >> vshift,

                                EDGE_WIDTH >> hshift,

                                EDGE_WIDTH >> vshift,

                                EDGE_TOP | EDGE_BOTTOM);

        s->mpvencdsp.draw_edges(s->current_picture.f->data[2],

                                s->current_picture.f->linesize[2],

                                s->h_edge_pos >> hshift,

                                s->v_edge_pos >> vshift,

                                EDGE_WIDTH >> hshift,

                                EDGE_WIDTH >> vshift,

                                EDGE_TOP | EDGE_BOTTOM);

    }



    emms_c();



    s->last_pict_type                 = s->pict_type;

    s->last_lambda_for [s->pict_type] = s->current_picture_ptr->f->quality;

    if (s->pict_type!= AV_PICTURE_TYPE_B)

        s->last_non_b_pict_type = s->pict_type;



#if FF_API_CODED_FRAME

FF_DISABLE_DEPRECATION_WARNINGS


    av_frame_copy_props(s->avctx->coded_frame, s->current_picture.f);

FF_ENABLE_DEPRECATION_WARNINGS

#endif

#if FF_API_ERROR_FRAME

FF_DISABLE_DEPRECATION_WARNINGS

    memcpy(s->current_picture.f->error, s->current_picture.encoding_error,

           sizeof(s->current_picture.encoding_error));

FF_ENABLE_DEPRECATION_WARNINGS

#endif

}
static void FUNC_0(MpegEncContext *VAR_0)

{

    if (VAR_0->unrestricted_mv &&

        VAR_0->current_picture.reference &&

        !VAR_0->intra_only) {

        const AVPixFmtDescriptor *VAR_1 = av_pix_fmt_desc_get(VAR_0->avctx->pix_fmt);

        int VAR_2 = VAR_1->log2_chroma_w;

        int VAR_3 = VAR_1->log2_chroma_h;

        VAR_0->mpvencdsp.draw_edges(VAR_0->current_picture.f->data[0],

                                VAR_0->current_picture.f->linesize[0],

                                VAR_0->h_edge_pos, VAR_0->v_edge_pos,

                                EDGE_WIDTH, EDGE_WIDTH,

                                EDGE_TOP | EDGE_BOTTOM);

        VAR_0->mpvencdsp.draw_edges(VAR_0->current_picture.f->data[1],

                                VAR_0->current_picture.f->linesize[1],

                                VAR_0->h_edge_pos >> VAR_2,

                                VAR_0->v_edge_pos >> VAR_3,

                                EDGE_WIDTH >> VAR_2,

                                EDGE_WIDTH >> VAR_3,

                                EDGE_TOP | EDGE_BOTTOM);

        VAR_0->mpvencdsp.draw_edges(VAR_0->current_picture.f->data[2],

                                VAR_0->current_picture.f->linesize[2],

                                VAR_0->h_edge_pos >> VAR_2,

                                VAR_0->v_edge_pos >> VAR_3,

                                EDGE_WIDTH >> VAR_2,

                                EDGE_WIDTH >> VAR_3,

                                EDGE_TOP | EDGE_BOTTOM);

    }



    emms_c();



    VAR_0->last_pict_type                 = VAR_0->pict_type;

    VAR_0->last_lambda_for [VAR_0->pict_type] = VAR_0->current_picture_ptr->f->quality;

    if (VAR_0->pict_type!= AV_PICTURE_TYPE_B)

        VAR_0->last_non_b_pict_type = VAR_0->pict_type;



#if FF_API_CODED_FRAME

FF_DISABLE_DEPRECATION_WARNINGS


    av_frame_copy_props(VAR_0->avctx->coded_frame, VAR_0->current_picture.f);

FF_ENABLE_DEPRECATION_WARNINGS

#endif

#if FF_API_ERROR_FRAME

FF_DISABLE_DEPRECATION_WARNINGS

    memcpy(VAR_0->current_picture.f->error, VAR_0->current_picture.encoding_error,

           sizeof(VAR_0->current_picture.encoding_error));

FF_ENABLE_DEPRECATION_WARNINGS

#endif

}
static void FUNC_0(MpegEncContext *VAR_0)
{ if (VAR_0->unrestricted_mv &&
VAR_0->current_picture.reference &&
!VAR_0->intra_only) { const AVPixFmtDescriptor *VAR_1 = av_pix_fmt_desc_get(VAR_0->avctx->pix_fmt); int VAR_2 = VAR_1->log2_chroma_w; int VAR_3 = VAR_1->log2_chroma_h; VAR_0->mpvencdsp.draw_edges(VAR_0->current_picture.f->data[0],
VAR_0->current_picture.f->linesize[0],
VAR_0->h_edge_pos, VAR_0->v_edge_pos,
EDGE_WIDTH, EDGE_WIDTH,
EDGE_TOP | EDGE_BOTTOM); VAR_0->mpvencdsp.draw_edges(VAR_0->current_picture.f->data[1],
VAR_0->current_picture.f->linesize[1],
VAR_0->h_edge_pos >> VAR_2,
VAR_0->v_edge_pos >> VAR_3,
EDGE_WIDTH >> VAR_2,
EDGE_WIDTH >> VAR_3,
EDGE_TOP | EDGE_BOTTOM); VAR_0->mpvencdsp.draw_edges(VAR_0->current_picture.f->data[2],
VAR_0->current_picture.f->linesize[2],
VAR_0->h_edge_pos >> VAR_2,
VAR_0->v_edge_pos >> VAR_3,
EDGE_WIDTH >> VAR_2,
EDGE_WIDTH >> VAR_3,
EDGE_TOP | EDGE_BOTTOM); } emms_c(); VAR_0->last_pict_type                 = VAR_0->pict_type; VAR_0->last_lambda_for [VAR_0->pict_type] = VAR_0->current_picture_ptr->f->quality; if (VAR_0->pict_type!= AV_PICTURE_TYPE_B)
VAR_0->last_non_b_pict_type = VAR_0->pict_type; #if FF_API_CODED_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
av_frame_copy_props(VAR_0->avctx->coded_frame, VAR_0->current_picture.f); FF_ENABLE_DEPRECATION_WARNINGS
#endif
#if FF_API_ERROR_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
memcpy(VAR_0->current_picture.f->error, VAR_0->current_picture.encoding_error,
sizeof(VAR_0->current_picture.encoding_error)); FF_ENABLE_DEPRECATION_WARNINGS
#endif
}