static enum AVPixelFormat mpeg_get_pixelformat(AVCodecContext *avctx)

{

    Mpeg1Context *s1  = avctx->priv_data;

    MpegEncContext *s = &s1->mpeg_enc_ctx;

    const enum AVPixelFormat *pix_fmts;



#if FF_API_XVMC

FF_DISABLE_DEPRECATION_WARNINGS

    if (avctx->xvmc_acceleration)

        return ff_get_format(avctx, pixfmt_xvmc_mpg2_420);

FF_ENABLE_DEPRECATION_WARNINGS

#endif /* FF_API_XVMC */



    if (s->chroma_format < 2)

        pix_fmts = mpeg12_hwaccel_pixfmt_list_420;

    else if (s->chroma_format == 2)

        pix_fmts = mpeg12_pixfmt_list_422;

    else

        pix_fmts = mpeg12_pixfmt_list_444;



    return ff_get_format(avctx, pix_fmts);

}

static enum AVPixelFormat mpeg_get_pixelformat(AVCodecContext *avctx)

{

    Mpeg1Context *s1  = avctx->priv_data;

    MpegEncContext *s = &s1->mpeg_enc_ctx;

    const enum AVPixelFormat *pix_fmts;



#if FF_API_XVMC

FF_DISABLE_DEPRECATION_WARNINGS

    if (avctx->xvmc_acceleration)

        return ff_get_format(avctx, pixfmt_xvmc_mpg2_420);

FF_ENABLE_DEPRECATION_WARNINGS

#endif 



    if (s->chroma_format < 2)

        pix_fmts = mpeg12_hwaccel_pixfmt_list_420;

    else if (s->chroma_format == 2)

        pix_fmts = mpeg12_pixfmt_list_422;

    else

        pix_fmts = mpeg12_pixfmt_list_444;



    return ff_get_format(avctx, pix_fmts);

}

static enum AVPixelFormat FUNC_0(AVCodecContext *VAR_0)

{

    Mpeg1Context *s1  = VAR_0->priv_data;

    MpegEncContext *s = &s1->mpeg_enc_ctx;

    const enum AVPixelFormat *VAR_1;



#if FF_API_XVMC

FF_DISABLE_DEPRECATION_WARNINGS

    if (VAR_0->xvmc_acceleration)

        return ff_get_format(VAR_0, pixfmt_xvmc_mpg2_420);

FF_ENABLE_DEPRECATION_WARNINGS

#endif 



    if (s->chroma_format < 2)

        VAR_1 = mpeg12_hwaccel_pixfmt_list_420;

    else if (s->chroma_format == 2)

        VAR_1 = mpeg12_pixfmt_list_422;

    else

        VAR_1 = mpeg12_pixfmt_list_444;



    return ff_get_format(VAR_0, VAR_1);

}

static enum AVPixelFormat FUNC_0(AVCodecContext *VAR_0)
{ Mpeg1Context *s1  = VAR_0->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; const enum AVPixelFormat *VAR_1; #if FF_API_XVMC
FF_DISABLE_DEPRECATION_WARNINGS
if (VAR_0->xvmc_acceleration)
return ff_get_format(VAR_0, pixfmt_xvmc_mpg2_420); FF_ENABLE_DEPRECATION_WARNINGS
#endif
if (s->chroma_format < 2)
VAR_1 = mpeg12_hwaccel_pixfmt_list_420; else if (s->chroma_format == 2)
VAR_1 = mpeg12_pixfmt_list_422; else
VAR_1 = mpeg12_pixfmt_list_444; return ff_get_format(VAR_0, VAR_1); }