Lines Matching defs:var_values
89 double var_values[VAR_VARS_NB];
104 setpts->var_values[VAR_N] = 0.0;
105 setpts->var_values[VAR_S] = 0.0;
106 setpts->var_values[VAR_PREV_INPTS] = NAN;
107 setpts->var_values[VAR_PREV_INT] = NAN;
108 setpts->var_values[VAR_PREV_OUTPTS] = NAN;
109 setpts->var_values[VAR_PREV_OUTT] = NAN;
110 setpts->var_values[VAR_STARTPTS] = NAN;
111 setpts->var_values[VAR_STARTT] = NAN;
121 setpts->var_values[VAR_TB] = av_q2d(inlink->time_base);
122 setpts->var_values[VAR_RTCSTART] = av_gettime();
124 setpts->var_values[VAR_SR] =
125 setpts->var_values[VAR_SAMPLE_RATE] =
128 setpts->var_values[VAR_FRAME_RATE] = inlink->frame_rate.num && inlink->frame_rate.den ?
132 setpts->var_values[VAR_TB],
133 setpts->var_values[VAR_FRAME_RATE],
134 setpts->var_values[VAR_SAMPLE_RATE]);
159 if (isnan(setpts->var_values[VAR_STARTPTS])) {
160 setpts->var_values[VAR_STARTPTS] = TS2D(frame->pts);
161 setpts->var_values[VAR_STARTT ] = TS2T(frame->pts, inlink->time_base);
163 setpts->var_values[VAR_PTS ] = TS2D(frame->pts);
164 setpts->var_values[VAR_T ] = TS2T(frame->pts, inlink->time_base);
165 setpts->var_values[VAR_POS ] = av_frame_get_pkt_pos(frame) == -1 ? NAN : av_frame_get_pkt_pos(frame);
166 setpts->var_values[VAR_RTCTIME ] = av_gettime();
169 setpts->var_values[VAR_INTERLACED] = frame->interlaced_frame;
171 setpts->var_values[VAR_S] = frame->nb_samples;
172 setpts->var_values[VAR_NB_SAMPLES] = frame->nb_samples;
175 d = av_expr_eval(setpts->expr, setpts->var_values, NULL);
180 (int64_t)setpts->var_values[VAR_N],
181 d2istr(setpts->var_values[VAR_PTS]),
182 setpts->var_values[VAR_T],
183 d2istr(setpts->var_values[VAR_POS]));
187 (int64_t)setpts->var_values[VAR_INTERLACED]);
191 (int64_t)setpts->var_values[VAR_NB_SAMPLES],
192 (int64_t)setpts->var_values[VAR_NB_CONSUMED_SAMPLES]);
198 setpts->var_values[VAR_N] += 1.0;
200 setpts->var_values[VAR_N] += frame->nb_samples;
203 setpts->var_values[VAR_PREV_INPTS ] = TS2D(in_pts);
204 setpts->var_values[VAR_PREV_INT ] = TS2T(in_pts, inlink->time_base);
205 setpts->var_values[VAR_PREV_OUTPTS] = TS2D(frame->pts);
206 setpts->var_values[VAR_PREV_OUTT] = TS2T(frame->pts, inlink->time_base);
208 setpts->var_values[VAR_NB_CONSUMED_SAMPLES] += frame->nb_samples;