int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)

{

    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);

    AVPicture dummy_pict;

    int ret;





    if ((ret = av_image_check_size(width, height, 0, NULL)) < 0)

        return ret;

    if (desc->flags & PIX_FMT_PSEUDOPAL)

        // do not include palette for these pseudo-paletted formats

        return width * height;

    return avpicture_fill(&dummy_pict, NULL, pix_fmt, width, height);

}
int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)

{

    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);

    AVPicture dummy_pict;

    int ret;





    if ((ret = av_image_check_size(width, height, 0, NULL)) < 0)

        return ret;

    if (desc->flags & PIX_FMT_PSEUDOPAL)

        

        return width * height;

    return avpicture_fill(&dummy_pict, NULL, pix_fmt, width, height);

}
int FUNC_0(enum AVPixelFormat VAR_0, int VAR_1, int VAR_2)

{

    const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_0);

    AVPicture dummy_pict;

    int VAR_4;





    if ((VAR_4 = av_image_check_size(VAR_1, VAR_2, 0, NULL)) < 0)

        return VAR_4;

    if (VAR_3->flags & PIX_FMT_PSEUDOPAL)

        

        return VAR_1 * VAR_2;

    return avpicture_fill(&dummy_pict, NULL, VAR_0, VAR_1, VAR_2);

}
int FUNC_0(enum AVPixelFormat VAR_0, int VAR_1, int VAR_2)
{ const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_0); AVPicture dummy_pict; int VAR_4; if ((VAR_4 = av_image_check_size(VAR_1, VAR_2, 0, NULL)) < 0)
return VAR_4; if (VAR_3->flags & PIX_FMT_PSEUDOPAL)
return VAR_1 * VAR_2; return avpicture_fill(&dummy_pict, NULL, VAR_0, VAR_1, VAR_2); }