Lines Matching defs:var_values
117 double var_values[VAR_VARS_NB];
150 select->var_values[VAR_E] = M_E;
151 select->var_values[VAR_PHI] = M_PHI;
152 select->var_values[VAR_PI] = M_PI;
154 select->var_values[VAR_N] = 0.0;
155 select->var_values[VAR_SELECTED_N] = 0.0;
157 select->var_values[VAR_TB] = av_q2d(inlink->time_base);
159 select->var_values[VAR_PREV_PTS] = NAN;
160 select->var_values[VAR_PREV_SELECTED_PTS] = NAN;
161 select->var_values[VAR_PREV_SELECTED_T] = NAN;
162 select->var_values[VAR_START_PTS] = NAN;
163 select->var_values[VAR_START_T] = NAN;
165 select->var_values[VAR_PICT_TYPE_I] = AV_PICTURE_TYPE_I;
166 select->var_values[VAR_PICT_TYPE_P] = AV_PICTURE_TYPE_P;
167 select->var_values[VAR_PICT_TYPE_B] = AV_PICTURE_TYPE_B;
168 select->var_values[VAR_PICT_TYPE_SI] = AV_PICTURE_TYPE_SI;
169 select->var_values[VAR_PICT_TYPE_SP] = AV_PICTURE_TYPE_SP;
171 select->var_values[VAR_INTERLACE_TYPE_P] = INTERLACE_TYPE_P;
172 select->var_values[VAR_INTERLACE_TYPE_T] = INTERLACE_TYPE_T;
173 select->var_values[VAR_INTERLACE_TYPE_B] = INTERLACE_TYPE_B;;
187 if (isnan(select->var_values[VAR_START_PTS]))
188 select->var_values[VAR_START_PTS] = TS2D(picref->pts);
189 if (isnan(select->var_values[VAR_START_T]))
190 select->var_values[VAR_START_T] = TS2D(picref->pts) * av_q2d(inlink->time_base);
192 select->var_values[VAR_PTS] = TS2D(picref->pts);
193 select->var_values[VAR_T ] = TS2D(picref->pts) * av_q2d(inlink->time_base);
194 select->var_values[VAR_POS] = picref->pos == -1 ? NAN : picref->pos;
195 select->var_values[VAR_PREV_PTS] = TS2D(picref ->pts);
197 select->var_values[VAR_INTERLACE_TYPE] =
200 select->var_values[VAR_PICT_TYPE] = picref->video->pict_type;
202 res = av_expr_eval(select->expr, select->var_values, NULL);
206 (int)select->var_values[VAR_N],
207 (int)select->var_values[VAR_PTS],
208 select->var_values[VAR_T],
209 (int)select->var_values[VAR_POS],
210 select->var_values[VAR_INTERLACE_TYPE] == INTERLACE_TYPE_P ? 'P' :
211 select->var_values[VAR_INTERLACE_TYPE] == INTERLACE_TYPE_T ? 'T' :
212 select->var_values[VAR_INTERLACE_TYPE] == INTERLACE_TYPE_B ? 'B' : '?',
213 (int)select->var_values[VAR_KEY],
214 av_get_picture_type_char(select->var_values[VAR_PICT_TYPE]),
217 select->var_values[VAR_N] += 1.0;
220 select->var_values[VAR_PREV_SELECTED_N] = select->var_values[VAR_N];
221 select->var_values[VAR_PREV_SELECTED_PTS] = select->var_values[VAR_PTS];
222 select->var_values[VAR_PREV_SELECTED_T] = select->var_values[VAR_T];
223 select->var_values[VAR_SELECTED_N] += 1.0;