static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,

                           char *res, int res_len, int flags)

{

    OverlayContext *over = ctx->priv;

    int ret;



    if      (!strcmp(cmd, "x"))

        ret = set_expr(&over->x_pexpr, args, ctx);

    else if (!strcmp(cmd, "y"))

        ret = set_expr(&over->y_pexpr, args, ctx);

    else if (!strcmp(cmd, "enable"))

        ret = set_expr(&over->enable_pexpr, args, ctx);

    else

        ret = AVERROR(ENOSYS);



    if (ret < 0)

        return ret;



    if (over->eval_mode == EVAL_MODE_INIT) {

        eval_expr(ctx, EVAL_ALL);

        av_log(ctx, AV_LOG_VERBOSE, "x:%f xi:%d y:%f yi:%d enable:%f\n",

               over->var_values[VAR_X], over->x,

               over->var_values[VAR_Y], over->y,

               over->enable);

    }

    return ret;

}

static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,

                           char *res, int res_len, int flags)

{

    OverlayContext *over = ctx->priv;

    int ret;



    if      (!strcmp(cmd, "x"))

        ret = set_expr(&over->x_pexpr, args, ctx);

    else if (!strcmp(cmd, "y"))

        ret = set_expr(&over->y_pexpr, args, ctx);

    else if (!strcmp(cmd, "enable"))

        ret = set_expr(&over->enable_pexpr, args, ctx);

    else

        ret = AVERROR(ENOSYS);



    if (ret < 0)

        return ret;



    if (over->eval_mode == EVAL_MODE_INIT) {

        eval_expr(ctx, EVAL_ALL);

        av_log(ctx, AV_LOG_VERBOSE, "x:%f xi:%d y:%f yi:%d enable:%f\n",

               over->var_values[VAR_X], over->x,

               over->var_values[VAR_Y], over->y,

               over->enable);

    }

    return ret;

}

static int FUNC_0(AVFilterContext *VAR_0, const char *VAR_1, const char *VAR_2,

                           char *VAR_3, int VAR_4, int VAR_5)

{

    OverlayContext *over = VAR_0->priv;

    int VAR_6;



    if      (!strcmp(VAR_1, "x"))

        VAR_6 = set_expr(&over->x_pexpr, VAR_2, VAR_0);

    else if (!strcmp(VAR_1, "y"))

        VAR_6 = set_expr(&over->y_pexpr, VAR_2, VAR_0);

    else if (!strcmp(VAR_1, "enable"))

        VAR_6 = set_expr(&over->enable_pexpr, VAR_2, VAR_0);

    else

        VAR_6 = AVERROR(ENOSYS);



    if (VAR_6 < 0)

        return VAR_6;



    if (over->eval_mode == EVAL_MODE_INIT) {

        eval_expr(VAR_0, EVAL_ALL);

        av_log(VAR_0, AV_LOG_VERBOSE, "x:%f xi:%d y:%f yi:%d enable:%f\n",

               over->var_values[VAR_X], over->x,

               over->var_values[VAR_Y], over->y,

               over->enable);

    }

    return VAR_6;

}

static int FUNC_0(AVFilterContext *VAR_0, const char *VAR_1, const char *VAR_2,
char *VAR_3, int VAR_4, int VAR_5)
{ OverlayContext *over = VAR_0->priv; int VAR_6; if      (!strcmp(VAR_1, "x"))
VAR_6 = set_expr(&over->x_pexpr, VAR_2, VAR_0); else if (!strcmp(VAR_1, "y"))
VAR_6 = set_expr(&over->y_pexpr, VAR_2, VAR_0); else if (!strcmp(VAR_1, "enable"))
VAR_6 = set_expr(&over->enable_pexpr, VAR_2, VAR_0); else
VAR_6 = AVERROR(ENOSYS); if (VAR_6 < 0)
return VAR_6; if (over->eval_mode == EVAL_MODE_INIT) { eval_expr(VAR_0, EVAL_ALL); av_log(VAR_0, AV_LOG_VERBOSE, "x:%f xi:%d y:%f yi:%d enable:%f\n",
over->var_values[VAR_X], over->x,
over->var_values[VAR_Y], over->y,
over->enable); } return VAR_6; }