/third_party/ffmpeg/libavfilter/ |
H A D | f_select.c | 150 double var_values[VAR_VARS_NB]; member 227 select->var_values[VAR_N] = 0.0; in config_input() 228 select->var_values[VAR_SELECTED_N] = 0.0; in config_input() 230 select->var_values[VAR_TB] = av_q2d(inlink->time_base); in config_input() 232 select->var_values[VAR_PREV_PTS] = NAN; in config_input() 233 select->var_values[VAR_PREV_SELECTED_PTS] = NAN; in config_input() 234 select->var_values[VAR_PREV_SELECTED_T] = NAN; in config_input() 235 select->var_values[VAR_PREV_T] = NAN; in config_input() 236 select->var_values[VAR_START_PTS] = NAN; in config_input() 237 select->var_values[VAR_START_ in config_input() [all...] |
H A D | setpts.c | 96 double var_values[VAR_VARS_NB]; member 111 setpts->var_values[VAR_N] = 0.0; in init() 112 setpts->var_values[VAR_S] = 0.0; in init() 113 setpts->var_values[VAR_PREV_INPTS] = NAN; in init() 114 setpts->var_values[VAR_PREV_INT] = NAN; in init() 115 setpts->var_values[VAR_PREV_OUTPTS] = NAN; in init() 116 setpts->var_values[VAR_PREV_OUTT] = NAN; in init() 117 setpts->var_values[VAR_STARTPTS] = NAN; in init() 118 setpts->var_values[VAR_STARTT] = NAN; in init() 128 setpts->var_values[VAR_T in config_input() [all...] |
H A D | scale_eval.c | 67 double var_values[VARS_NB], res; in ff_scale_eval_dimensions() local 69 var_values[VAR_IN_W] = var_values[VAR_IW] = inlink->w; in ff_scale_eval_dimensions() 70 var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h; in ff_scale_eval_dimensions() 71 var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN; in ff_scale_eval_dimensions() 72 var_values[VAR_OUT_H] = var_values[VAR_OH] = NAN; in ff_scale_eval_dimensions() 73 var_values[VAR_ in ff_scale_eval_dimensions() [all...] |
H A D | vf_zoompan.c | 96 double var_values[VARS_NB]; member 154 static int output_single_frame(AVFilterContext *ctx, AVFrame *in, double *var_values, int i, in output_single_frame() argument 166 var_values[VAR_PX] = s->x; in output_single_frame() 167 var_values[VAR_PY] = s->y; in output_single_frame() 168 var_values[VAR_PZOOM] = s->prev_zoom; in output_single_frame() 169 var_values[VAR_PDURATION] = s->prev_nb_frames; in output_single_frame() 170 var_values[VAR_IN_TIME] = var_values[VAR_IT] = in->pts == AV_NOPTS_VALUE ? in output_single_frame() 172 var_values[VAR_OUT_TIME] = pts * av_q2d(outlink->time_base); in output_single_frame() 173 var_values[VAR_TIM in output_single_frame() [all...] |
H A D | vf_crop.c | 91 double var_values[VAR_VARS_NB]; member 135 s->var_values[VAR_IN_W] = s->var_values[VAR_IW] = ctx->inputs[0]->w; in config_input() 136 s->var_values[VAR_IN_H] = s->var_values[VAR_IH] = ctx->inputs[0]->h; in config_input() 137 s->var_values[VAR_A] = (float) link->w / link->h; in config_input() 138 s->var_values[VAR_SAR] = link->sample_aspect_ratio.num ? av_q2d(link->sample_aspect_ratio) : 1; in config_input() 139 s->var_values[VAR_DAR] = s->var_values[VAR_A] * s->var_values[VAR_SA in config_input() [all...] |
H A D | vf_overlay_qsv.c | 66 double var_values[VAR_VARS_NB]; member 107 double *var_values = vpp->var_values; in eval_expr() local 125 var_values[VAR_OVERLAY_W] = in eval_expr() 126 var_values[VAR_OW] = av_expr_eval(ow_expr, var_values, NULL); in eval_expr() 127 var_values[VAR_OVERLAY_H] = in eval_expr() 128 var_values[VAR_OH] = av_expr_eval(oh_expr, var_values, NULL); in eval_expr() 131 var_values[VAR_OVERLAY_ in eval_expr() [all...] |
H A D | vf_pad_opencl.c | 255 double var_values[VARS_NB], res; in pad_opencl_config_output() local 259 var_values[VAR_IN_W] = var_values[VAR_IW] = inlink->w; in pad_opencl_config_output() 260 var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h; in pad_opencl_config_output() 261 var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN; in pad_opencl_config_output() 262 var_values[VAR_OUT_H] = var_values[VAR_OH] = NAN; in pad_opencl_config_output() 263 var_values[VAR_ in pad_opencl_config_output() [all...] |
H A D | vf_pad.c | 111 double var_values[VARS_NB], res; in config_input() local 117 var_values[VAR_IN_W] = var_values[VAR_IW] = inlink->w; in config_input() 118 var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h; in config_input() 119 var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN; in config_input() 120 var_values[VAR_OUT_H] = var_values[VAR_OH] = NAN; in config_input() 121 var_values[VAR_ in config_input() [all...] |
H A D | vf_overlay_cuda.c | 117 double var_values[VAR_VARS_NB]; member 145 s->var_values[VAR_X] = av_expr_eval(s->x_pexpr, s->var_values, NULL); in eval_expr() 146 s->var_values[VAR_Y] = av_expr_eval(s->y_pexpr, s->var_values, NULL); in eval_expr() 148 s->var_values[VAR_X] = av_expr_eval(s->x_pexpr, s->var_values, NULL); in eval_expr() 150 s->x_position = normalize_xy(s->var_values[VAR_X], 1); in eval_expr() 153 s->y_position = s->var_values[VAR_Y]; in eval_expr() 271 ctx->var_values[VAR_ in overlay_cuda_blend() [all...] |
H A D | af_volume.c | 250 vol->volume = av_expr_eval(vol->volume_pexpr, vol->var_values, NULL); in set_volume() 260 vol->var_values[VAR_VOLUME] = vol->volume; in set_volume() 263 vol->var_values[VAR_N], vol->var_values[VAR_T], vol->var_values[VAR_PTS], in set_volume() 288 vol->var_values[VAR_N] = in config_output() 289 vol->var_values[VAR_NB_CONSUMED_SAMPLES] = in config_output() 290 vol->var_values[VAR_NB_SAMPLES] = in config_output() 291 vol->var_values[VAR_POS] = in config_output() 292 vol->var_values[VAR_PT in config_output() [all...] |
H A D | vf_swaprect.c | 75 double var_values[VAR_VARS_NB]; in filter_frame() local 86 var_values[VAR_W] = inlink->w; in filter_frame() 87 var_values[VAR_H] = inlink->h; in filter_frame() 88 var_values[VAR_A] = (float) inlink->w / inlink->h; in filter_frame() 89 var_values[VAR_SAR] = inlink->sample_aspect_ratio.num ? av_q2d(inlink->sample_aspect_ratio) : 1; in filter_frame() 90 var_values[VAR_DAR] = var_values[VAR_A] * var_values[VAR_SAR]; in filter_frame() 91 var_values[VAR_N] = inlink->frame_count_out; in filter_frame() 92 var_values[VAR_ in filter_frame() [all...] |
H A D | vf_scale.c | 133 double var_values[VARS_NB]; member 424 scale->var_values[VAR_IN_W] = scale->var_values[VAR_IW] = inlink->w; in scale_eval_dimensions() 425 scale->var_values[VAR_IN_H] = scale->var_values[VAR_IH] = inlink->h; in scale_eval_dimensions() 426 scale->var_values[VAR_OUT_W] = scale->var_values[VAR_OW] = NAN; in scale_eval_dimensions() 427 scale->var_values[VAR_OUT_H] = scale->var_values[VAR_OH] = NAN; in scale_eval_dimensions() 428 scale->var_values[VAR_ in scale_eval_dimensions() [all...] |
H A D | vf_scale_qsv.c | 462 double var_values[VARS_NB], res; in qsvscale_config_props() local 466 var_values[VAR_PI] = M_PI; in qsvscale_config_props() 467 var_values[VAR_PHI] = M_PHI; in qsvscale_config_props() 468 var_values[VAR_E] = M_E; in qsvscale_config_props() 469 var_values[VAR_IN_W] = var_values[VAR_IW] = inlink->w; in qsvscale_config_props() 470 var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h; in qsvscale_config_props() 471 var_values[VAR_OUT_W] = var_values[VAR_O in qsvscale_config_props() [all...] |
H A D | vf_drawbox.c | 277 double var_values[VARS_NB], res; in config_input() local 294 var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h; in config_input() 295 var_values[VAR_IN_W] = var_values[VAR_IW] = inlink->w; in config_input() 296 var_values[VAR_SAR] = inlink->sample_aspect_ratio.num ? av_q2d(inlink->sample_aspect_ratio) : 1; in config_input() 297 var_values[VAR_DAR] = (double)inlink->w / inlink->h * var_values[VAR_SAR]; in config_input() 298 var_values[VAR_HSUB] = s->hsub; in config_input() 299 var_values[VAR_VSU in config_input() [all...] |
H A D | vf_rotate.c | 77 double var_values[VAR_VARS_NB]; member 161 double inw = rot->var_values[VAR_IN_W]; in get_rotated_w() 162 double inh = rot->var_values[VAR_IN_H]; in get_rotated_w() 173 double inw = rot->var_values[VAR_IN_W]; in get_rotated_h() 174 double inh = rot->var_values[VAR_IN_H]; in get_rotated_h() 304 rot->var_values[VAR_IN_W] = rot->var_values[VAR_IW] = inlink->w; in config_props() 305 rot->var_values[VAR_IN_H] = rot->var_values[VAR_IH] = inlink->h; in config_props() 306 rot->var_values[VAR_HSU in config_props() [all...] |
H A D | boxblur.c | 55 double var_values[VARS_NB], res; in ff_boxblur_eval_filter_params() local 81 var_values[VAR_W] = inlink->w; in ff_boxblur_eval_filter_params() 82 var_values[VAR_H] = inlink->h; in ff_boxblur_eval_filter_params() 83 var_values[VAR_CW] = cw = w>>(desc->log2_chroma_w); in ff_boxblur_eval_filter_params() 84 var_values[VAR_CH] = ch = h>>(desc->log2_chroma_h); in ff_boxblur_eval_filter_params() 85 var_values[VAR_HSUB] = 1<<(desc->log2_chroma_w); in ff_boxblur_eval_filter_params() 86 var_values[VAR_VSUB] = 1<<(desc->log2_chroma_h); in ff_boxblur_eval_filter_params() 90 ret = av_expr_parse_and_eval(&res, expr, var_names, var_values, \ in ff_boxblur_eval_filter_params()
|
H A D | vf_vpp_qsv.c | 174 i = v = av_expr_eval(e, var_values, NULL); \ in eval_expr() 177 double var_values[VAR_VARS_NB] = { NAN }; in eval_expr() local 192 var_values[VAR_iW] = in eval_expr() 193 var_values[VAR_IN_W] = ctx->inputs[0]->w; in eval_expr() 195 var_values[VAR_iH] = in eval_expr() 196 var_values[VAR_IN_H] = ctx->inputs[0]->h; in eval_expr() 199 CALC_EXPR(cw_expr, var_values[CW], vpp->crop_w); in eval_expr() 200 CALC_EXPR(ch_expr, var_values[CH], vpp->crop_h); in eval_expr() 203 CALC_EXPR(cw_expr, var_values[CW], vpp->crop_w); in eval_expr() 206 var_values[VAR_OUT_ in eval_expr() [all...] |
H A D | vf_scale_npp.c | 162 double var_values[VARS_NB]; member 368 scale->var_values[VAR_IN_W] = scale->var_values[VAR_IW] = inlink->w; in nppscale_eval_dimensions() 369 scale->var_values[VAR_IN_H] = scale->var_values[VAR_IH] = inlink->h; in nppscale_eval_dimensions() 370 scale->var_values[VAR_OUT_W] = scale->var_values[VAR_OW] = NAN; in nppscale_eval_dimensions() 371 scale->var_values[VAR_OUT_H] = scale->var_values[VAR_OH] = NAN; in nppscale_eval_dimensions() 372 scale->var_values[VAR_ in nppscale_eval_dimensions() [all...] |
H A D | vf_drawtext.c | 193 double var_values[VAR_VARS_NB]; member 435 size = av_expr_eval(s->fontsize_pexpr, s->var_values, &s->prng); in update_fontsize() 504 double size = av_expr_eval(s->fontsize_pexpr, s->var_values, &s->prng); in load_font_fontconfig() 877 s->var_values[VAR_w] = s->var_values[VAR_W] = s->var_values[VAR_MAIN_W] = inlink->w; in config_input() 878 s->var_values[VAR_h] = s->var_values[VAR_H] = s->var_values[VAR_MAIN_H] = inlink->h; in config_input() 879 s->var_values[VAR_SA in config_input() [all...] |
H A D | aeval.c | 73 double var_values[VAR_VARS_NB]; member 232 eval->var_values[VAR_S] = eval->sample_rate; in config_props() 233 eval->var_values[VAR_NB_IN_CHANNELS] = NAN; in config_props() 234 eval->var_values[VAR_NB_OUT_CHANNELS] = outlink->ch_layout.nb_channels; in config_props() 296 eval->var_values[VAR_N] = eval->n; in activate() 297 eval->var_values[VAR_T] = eval->var_values[VAR_N] * (double)1/eval->sample_rate; in activate() 301 av_expr_eval(eval->expr[j], eval->var_values, NULL); in activate() 398 eval->nb_in_channels = eval->var_values[VAR_NB_IN_CHANNELS] = inlink->ch_layout.nb_channels; in aeval_config_output() 399 eval->var_values[VAR_NB_OUT_CHANNEL in aeval_config_output() [all...] |
H A D | vf_aspect.c | 94 double var_values[VARS_NB], res; in get_aspect_ratio() local 97 var_values[VAR_W] = inlink->w; in get_aspect_ratio() 98 var_values[VAR_H] = inlink->h; in get_aspect_ratio() 99 var_values[VAR_A] = (double) inlink->w / inlink->h; in get_aspect_ratio() 100 var_values[VAR_SAR] = inlink->sample_aspect_ratio.num ? in get_aspect_ratio() 102 var_values[VAR_DAR] = var_values[VAR_A] * var_values[VAR_SAR]; in get_aspect_ratio() 103 var_values[VAR_HSUB] = 1 << desc->log2_chroma_w; in get_aspect_ratio() 104 var_values[VAR_VSU in get_aspect_ratio() [all...] |
H A D | vf_lut.c | 69 double var_values[VAR_VARS_NB]; member 163 double minval = s->var_values[VAR_MINVAL]; in clip() 164 double maxval = s->var_values[VAR_MAXVAL]; in clip() 176 double val = s->var_values[VAR_CLIPVAL]; in compute_gammaval() 177 double minval = s->var_values[VAR_MINVAL]; in compute_gammaval() 178 double maxval = s->var_values[VAR_MAXVAL]; in compute_gammaval() 189 double val = s->var_values[VAR_CLIPVAL]; in compute_gammaval709() 190 double minval = s->var_values[VAR_MINVAL]; in compute_gammaval709() 191 double maxval = s->var_values[VAR_MAXVAL]; in compute_gammaval709() 224 s->var_values[VAR_ in config_props() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | setts_bsf.c | 94 double var_values[VAR_VARS_NB]; member 149 s->var_values[VAR_STARTPTS] = AV_NOPTS_VALUE; in setts_init() 150 s->var_values[VAR_STARTDTS] = AV_NOPTS_VALUE; in setts_init() 151 s->var_values[VAR_NOPTS] = AV_NOPTS_VALUE; in setts_init() 152 s->var_values[VAR_TB] = ctx->time_base_in.den ? av_q2d(ctx->time_base_in) : 0; in setts_init() 153 s->var_values[VAR_TB_OUT]= ctx->time_base_out.den ? av_q2d(ctx->time_base_out) : 0; in setts_init() 154 s->var_values[VAR_SR] = ctx->par_in->sample_rate; in setts_init() 174 if (s->var_values[VAR_STARTPTS] == AV_NOPTS_VALUE) in setts_filter() 175 s->var_values[VAR_STARTPTS] = s->cur_pkt->pts; in setts_filter() 177 if (s->var_values[VAR_STARTDT in setts_filter() [all...] |
H A D | noise_bsf.c | 72 double var_values[VAR_VARS_NB]; member 117 s->var_values[VAR_TB] = ctx->time_base_out.den ? av_q2d(ctx->time_base_out) : 0; in noise_init() 118 s->var_values[VAR_NOPTS] = AV_NOPTS_VALUE; in noise_init() 119 s->var_values[VAR_STARTPTS] = AV_NOPTS_VALUE; in noise_init() 120 s->var_values[VAR_STARTDTS] = AV_NOPTS_VALUE; in noise_init() 121 s->var_values[VAR_STATE] = 0; in noise_init() 136 s->var_values[VAR_N] = s->pkt_idx++; in noise() 137 s->var_values[VAR_PTS] = pkt->pts; in noise() 138 s->var_values[VAR_DTS] = pkt->dts; in noise() 139 s->var_values[VAR_DURATIO in noise() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | libmodplug.c | 284 snprintf(intbuf, sizeof(intbuf), "%.0f", var_values[idvalue]); \ 297 double var_values[VAR_VARS_NB]; in modplug_read_packet() local 299 var_values[VAR_W ] = modplug->w; in modplug_read_packet() 300 var_values[VAR_H ] = modplug->h; in modplug_read_packet() 301 var_values[VAR_TIME ] = modplug->packet_count * modplug->ts_per_packet; in modplug_read_packet() 302 var_values[VAR_SPEED ] = ModPlug_GetCurrentSpeed (modplug->f); in modplug_read_packet() 303 var_values[VAR_TEMPO ] = ModPlug_GetCurrentTempo (modplug->f); in modplug_read_packet() 304 var_values[VAR_ORDER ] = ModPlug_GetCurrentOrder (modplug->f); in modplug_read_packet() 305 var_values[VAR_PATTERN] = ModPlug_GetCurrentPattern(modplug->f); in modplug_read_packet() 306 var_values[VAR_RO in modplug_read_packet() [all...] |