static int cudaupload_query_formats(AVFilterContext *ctx)

{

    int ret;



    static const enum AVPixelFormat input_pix_fmts[] = {

        AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,

        AV_PIX_FMT_NONE,

    };

    static const enum AVPixelFormat output_pix_fmts[] = {

        AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,

    };

    AVFilterFormats *in_fmts  = ff_make_format_list(input_pix_fmts);

    AVFilterFormats *out_fmts = ff_make_format_list(output_pix_fmts);



    ret = ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats);

    if (ret < 0)

        return ret;



    ret = ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats);

    if (ret < 0)

        return ret;



    return 0;

}

static int cudaupload_query_formats(AVFilterContext *ctx)

{

    int ret;



    static const enum AVPixelFormat input_pix_fmts[] = {

        AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,

        AV_PIX_FMT_NONE,

    };

    static const enum AVPixelFormat output_pix_fmts[] = {

        AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,

    };

    AVFilterFormats *in_fmts  = ff_make_format_list(input_pix_fmts);

    AVFilterFormats *out_fmts = ff_make_format_list(output_pix_fmts);



    ret = ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats);

    if (ret < 0)

        return ret;



    ret = ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats);

    if (ret < 0)

        return ret;



    return 0;

}

    AVFilterFormats *out_fmts = ff_make_format_list(output_pix_fmts);
static int FUNC_0(AVFilterContext *VAR_0)

{

    int VAR_1;



    static const enum AVPixelFormat VAR_2[] = {

        AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,

        AV_PIX_FMT_NONE,

    };

    static const enum AVPixelFormat VAR_3[] = {

        AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,

    };

    AVFilterFormats *in_fmts  = ff_make_format_list(VAR_2);

    AVFilterFormats *out_fmts = ff_make_format_list(VAR_3);



    VAR_1 = ff_formats_ref(in_fmts, &VAR_0->inputs[0]->out_formats);

    if (VAR_1 < 0)

        return VAR_1;



    VAR_1 = ff_formats_ref(out_fmts, &VAR_0->outputs[0]->in_formats);

    if (VAR_1 < 0)

        return VAR_1;



    return 0;

}

static int FUNC_0(AVFilterContext *VAR_0)
{ int VAR_1; static const enum AVPixelFormat VAR_2[] = { AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,
AV_PIX_FMT_NONE,
}; static const enum AVPixelFormat VAR_3[] = { AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,
}; AVFilterFormats *in_fmts  = ff_make_format_list(VAR_2); AVFilterFormats *out_fmts = ff_make_format_list(VAR_3); VAR_1 = ff_formats_ref(in_fmts, &VAR_0->inputs[0]->out_formats); if (VAR_1 < 0)
return VAR_1; VAR_1 = ff_formats_ref(out_fmts, &VAR_0->outputs[0]->in_formats); if (VAR_1 < 0)
return VAR_1; return 0; }