Lines Matching defs:setpts
70 SetPTSContext *setpts = ctx->priv;
73 if ((ret = av_expr_parse(&setpts->expr, args ? args : "PTS",
79 setpts->var_values[VAR_E ] = M_E;
80 setpts->var_values[VAR_N ] = 0.0;
81 setpts->var_values[VAR_PHI ] = M_PHI;
82 setpts->var_values[VAR_PI ] = M_PI;
83 setpts->var_values[VAR_PREV_INPTS ] = NAN;
84 setpts->var_values[VAR_PREV_OUTPTS] = NAN;
85 setpts->var_values[VAR_STARTPTS ] = NAN;
91 SetPTSContext *setpts = inlink->dst->priv;
93 setpts->var_values[VAR_TB] = av_q2d(inlink->time_base);
95 av_log(inlink->src, AV_LOG_INFO, "TB:%f\n", setpts->var_values[VAR_TB]);
104 SetPTSContext *setpts = inlink->dst->priv;
108 if (isnan(setpts->var_values[VAR_STARTPTS]))
109 setpts->var_values[VAR_STARTPTS] = TS2D(inpicref->pts);
111 setpts->var_values[VAR_INTERLACED] = inpicref->video->interlaced;
112 setpts->var_values[VAR_PTS ] = TS2D(inpicref->pts);
113 setpts->var_values[VAR_POS ] = inpicref->pos == -1 ? NAN : inpicref->pos;
115 d = av_expr_eval(setpts->expr, setpts->var_values, NULL);
121 (int64_t)setpts->var_values[VAR_N],
122 (int)setpts->var_values[VAR_INTERLACED],
128 setpts->var_values[VAR_N] += 1.0;
129 setpts->var_values[VAR_PREV_INPTS ] = TS2D(inpicref ->pts);
130 setpts->var_values[VAR_PREV_OUTPTS] = TS2D(outpicref->pts);
136 SetPTSContext *setpts = ctx->priv;
137 av_expr_free(setpts->expr);
138 setpts->expr = NULL;
142 .name = "setpts",