Home
last modified time | relevance | path

Searched refs:frame_rate (Results 1 – 25 of 157) sorted by relevance

1234567

/third_party/ffmpeg/libavfilter/
Dvf_framestep.c52 outlink->frame_rate = in config_output_props()
53 av_div_q(inlink->frame_rate, (AVRational){framestep->frame_step, 1}); in config_output_props()
57 inlink->frame_rate.num, inlink->frame_rate.den, av_q2d(inlink->frame_rate), in config_output_props()
58 outlink->frame_rate.num, outlink->frame_rate.den, av_q2d(outlink->frame_rate)); in config_output_props()
Dsrc_avsynctest.c43 AVRational frame_rate; member
74 …{"framerate", "set frame rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="30"}, 0,I…
75 …{"fr", "set frame rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="30"}, 0,I…
139 s->beep_duration = av_rescale(s->sample_rate, s->frame_rate.den, s->frame_rate.num); in aconfig_props()
152 outlink->time_base = av_inv_q(s->frame_rate); in config_props()
153 outlink->frame_rate = s->frame_rate; in config_props()
155 s->delay_min = av_mul_q(s->frame_rate, av_make_q(-1, 2)); in config_props()
212 delta = av_rescale_q(s->vpts, av_make_q(s->sample_rate, 1), s->frame_rate) - s->apts; in audio_frame()
216 … duration[0] = av_rescale_rnd(s->sample_rate, s->frame_rate.den, s->frame_rate.num, AV_ROUND_DOWN); in audio_frame()
217 duration[1] = av_rescale_rnd(s->sample_rate, s->frame_rate.den, s->frame_rate.num, AV_ROUND_UP); in audio_frame()
[all …]
Dvf_framepack.c99 AVRational frame_rate = ctx->inputs[LEFT]->frame_rate; in config_output() local
116 } else if (av_cmp_q(frame_rate, ctx->inputs[RIGHT]->frame_rate) != 0) { in config_output()
119 frame_rate.num, frame_rate.den, in config_output()
120 ctx->inputs[RIGHT]->frame_rate.num, in config_output()
121 ctx->inputs[RIGHT]->frame_rate.den); in config_output()
134 frame_rate.num *= 2; in config_output()
152 outlink->frame_rate = frame_rate; in config_output()
333 …->pts = i == 0 ? pts * 2 : pts * 2 + av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_… in try_push_frame()
Dvsrc_mptestsrc.c55 AVRational frame_rate; member
65 …{ "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, …
66 …{ "r", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, …
266 av_rescale_q(test->duration, AV_TIME_BASE_Q, av_inv_q(test->frame_rate)) : -1; in init()
270 test->frame_rate.num, test->frame_rate.den, in init()
271 test->duration < 0 ? -1 : test->max_pts * av_q2d(av_inv_q(test->frame_rate))); in init()
288 outlink->time_base = av_inv_q(test->frame_rate); in config_props()
289 outlink->frame_rate = test->frame_rate; in config_props()
Dvsrc_sierpinski.c43 AVRational frame_rate; member
62 …{"rate", "set frame rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT…
63 …{"r", "set frame rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT…
150 outlink->time_base = av_inv_q(s->frame_rate); in config_output()
152 outlink->frame_rate = s->frame_rate; in config_output()
Dvsrc_cellauto.c51 AVRational frame_rate; member
68 …{ "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT_…
69 …{ "r", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT_…
203 s->w, s->h, s->frame_rate.num, s->frame_rate.den, in init()
224 outlink->time_base = av_inv_q(s->frame_rate); in config_props()
225 outlink->frame_rate = s->frame_rate; in config_props()
Dbuffersrc.c46 AVRational frame_rate; ///< frame_rate to set in the output link member
115 if (param->frame_rate.num > 0 && param->frame_rate.den > 0) in av_buffersrc_parameters_set()
116 s->frame_rate = param->frame_rate; in av_buffersrc_parameters_set()
280 c->time_base.num, c->time_base.den, c->frame_rate.num, c->frame_rate.den, in init_video()
308 …{ "frame_rate", NULL, OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL, { .db…
464 link->frame_rate = c->frame_rate; in config_props()
Dvf_deinterlace_qsv.c282 if (ctx->inputs[0]->frame_rate.num) { in init_out_session()
283 par.vpp.In.FrameRateExtN = ctx->inputs[0]->frame_rate.num; in init_out_session()
284 par.vpp.In.FrameRateExtD = ctx->inputs[0]->frame_rate.den; in init_out_session()
292 if (ctx->outputs[0]->frame_rate.num) { in init_out_session()
293 par.vpp.Out.FrameRateExtN = ctx->outputs[0]->frame_rate.num; in init_out_session()
294 par.vpp.Out.FrameRateExtD = ctx->outputs[0]->frame_rate.den; in init_out_session()
327 outlink->frame_rate = av_mul_q(inlink->frame_rate, in qsvdeint_config_props()
427 if (ctx->inputs[0]->frame_rate.num) { in submit_frame()
428 qf->surface.Info.FrameRateExtN = ctx->inputs[0]->frame_rate.num; in submit_frame()
429 qf->surface.Info.FrameRateExtD = ctx->inputs[0]->frame_rate.den; in submit_frame()
Davf_abitscope.c35 AVRational frame_rate; member
54 …{ "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT_MAX, F…
55 …{ "r", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT_MAX, F…
109 s->nb_samples = FFMAX(1, av_rescale(inlink->sample_rate, s->frame_rate.den, s->frame_rate.num)); in config_input()
145 outlink->frame_rate = s->frame_rate; in config_output()
Dvf_tpad.c102 s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); in activate()
120 s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); in activate()
164 s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); in activate()
185 … s->pad_start = av_rescale_q(s->start_duration, inlink->frame_rate, av_inv_q(AV_TIME_BASE_Q)); in config_input()
187 s->pad_stop = av_rescale_q(s->stop_duration, inlink->frame_rate, av_inv_q(AV_TIME_BASE_Q)); in config_input()
Dvf_separatefields.c46 outlink->frame_rate.num = inlink->frame_rate.num * 2; in config_props_output()
47 outlink->frame_rate.den = inlink->frame_rate.den; in config_props_output()
Dvf_stack.c198 AVRational frame_rate = ctx->inputs[0]->frame_rate; in config_output() local
384 outlink->frame_rate = frame_rate; in config_output()
389 if (outlink->frame_rate.num != inlink->frame_rate.num || in config_output()
390 outlink->frame_rate.den != inlink->frame_rate.den) { in config_output()
393 outlink->frame_rate = av_make_q(1, 0); in config_output()
Davf_avectorscope.c72 AVRational frame_rate; member
86 …{ "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT_MAX, F…
87 …{ "r", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT_MAX, F…
230 s->nb_samples = FFMAX(1, av_rescale(inlink->sample_rate, s->frame_rate.den, s->frame_rate.num)); in config_input()
242 outlink->frame_rate = s->frame_rate; in config_output()
243 outlink->time_base = av_inv_q(outlink->frame_rate); in config_output()
/third_party/ffmpeg/libavdevice/
Dlibdc1394.c42 int frame_rate; /**< frames per 1000 seconds (fps * 1000) */ member
65 int frame_rate; member
123 dc1394->frame_rate = av_rescale(1000, framerate.num, framerate.den); in dc1394_read_common()
129 for (fps = dc1394_frame_rates; fps->frame_rate; fps++) in dc1394_read_common()
130 if (fps->frame_rate == dc1394->frame_rate) in dc1394_read_common()
133 if (!fps->frame_rate || !fmt->width) { in dc1394_read_common()
135 … width, height, dc1394->frame_rate); in dc1394_read_common()
160 fps->frame_rate, 1000); in dc1394_read_common()
230 av_log(c, AV_LOG_ERROR, "Couldn't set framerate %d \n",fps->frame_rate); in dc1394_read_header()
268 pkt->pts = dc1394->current_frame * 1000000 / dc1394->frame_rate; in dc1394_read_packet()
/third_party/ffmpeg/libavformat/
Dvpcc.c72 static int get_vp9_level(AVCodecParameters *par, AVRational *frame_rate) { in get_vp9_level() argument
77 if (!frame_rate || !frame_rate->den) in get_vp9_level()
80 sample_rate = ((int64_t)picture_size * frame_rate->num) / frame_rate->den; in get_vp9_level()
118 AVRational *frame_rate, VPCC *vpcc) in ff_isom_get_vpcc_features() argument
122 get_vp9_level(par, frame_rate) : par->level; in ff_isom_get_vpcc_features()
Drmenc.c32 AVRational frame_rate; member
103 …v = av_rescale_q_rnd(stream->total_frames, (AVRational){1000, 1}, stream->frame_rate, AV_ROUND_ZER… in rv10_write_header()
179 …av_rescale_q_rnd(stream->total_frames, (AVRational){1000, 1}, stream->frame_rate, AV_ROUND_ZERO)); in rv10_write_header()
255 if (stream->frame_rate.num / stream->frame_rate.den > 65535) { in rv10_write_header()
256 …og(s, AV_LOG_ERROR, "Frame rate %d is too high\n", stream->frame_rate.num / stream->frame_rate.den… in rv10_write_header()
260 … avio_wb16(s, stream->frame_rate.num / stream->frame_rate.den); /* frames per seconds ? */ in rv10_write_header()
262 avio_wb16(s, stream->frame_rate.num / stream->frame_rate.den); /* unknown meaning */ in rv10_write_header()
307 …timestamp = av_rescale_q_rnd(stream->nb_frames, (AVRational){1000, 1}, stream->frame_rate, AV_ROUN… in write_packet_header()
341 stream->frame_rate = (AVRational){par->sample_rate, frame_size}; in rm_write_header()
350 stream->frame_rate = av_inv_q(st->time_base); in rm_write_header()
Dmicrodvddec.c35 AVRational frame_rate; member
154 microdvd->frame_rate = pts_info; in microdvd_read_header()
155 } else if (microdvd->frame_rate.num) { in microdvd_read_header()
157 pts_info = microdvd->frame_rate; in microdvd_read_header()
190 …{ "subfps", "set the movie frame rate fallback", OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL, {.dbl=0…
Daqtitledec.c37 AVRational frame_rate; member
60 avpriv_set_pts_info(st, 64, aqt->frame_rate.den, aqt->frame_rate.num); in aqt_read_header()
127 …{ "subfps", "set the movie frame rate", OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL, {.dbl=25}, 0, IN…
Dsga.c267 AVRational frame_rate; in sga_video_packet() local
280 frame_rate.num = sga->sample_rate; in sga_video_packet()
281 frame_rate.den = sga->first_audio_size; in sga_video_packet()
283 frame_rate.num = 15; in sga_video_packet()
284 frame_rate.den = 1; in sga_video_packet()
286 avpriv_set_pts_info(st, 64, frame_rate.den, frame_rate.num); in sga_video_packet()
Dyop.c65 int frame_rate, ret; in yop_read_header() local
86 frame_rate = avio_r8(pb); in yop_read_header()
100 video_par->bit_rate = 8 * (yop->frame_size - yop->audio_block_length) * frame_rate; in yop_read_header()
111 avpriv_set_pts_info(video_stream, 32, 1, frame_rate); in yop_read_header()
/third_party/ffmpeg/libavcodec/
Dmpeg12framerate.c44 void ff_mpeg12_find_best_frame_rate(AVRational frame_rate, in ff_mpeg12_find_best_frame_rate() argument
58 if (av_cmp_q(frame_rate, ff_mpeg12_frame_rate_tab[c]) == 0) { in ff_mpeg12_find_best_frame_rate()
73 cmp = av_cmp_q(test, frame_rate); in ff_mpeg12_find_best_frame_rate()
82 error = av_div_q(frame_rate, test); in ff_mpeg12_find_best_frame_rate()
84 error = av_div_q(test, frame_rate); in ff_mpeg12_find_best_frame_rate()
Dpcm_rechunk_bsf.c31 AVRational frame_rate; member
52 if (s->frame_rate.num) { in init()
53 min_samples = av_rescale_q_rnd(1, sr, s->frame_rate, AV_ROUND_DOWN); in init()
103 if (s->frame_rate.num) { in get_next_nb_samples()
105 return av_rescale_q(s->n + 1, sr, s->frame_rate) - av_rescale_q(s->n, sr, s->frame_rate); in get_next_nb_samples()
181 …{ "frame_rate", "set number of packets per second", OFFSET(frame_rate), AV_OPT_TYP…
182 …{ "r", "set number of packets per second", OFFSET(frame_rate), AV_OPT_TYP…
Dmpeg2_metadata_bsf.c36 AVRational frame_rate; member
101 if (ctx->frame_rate.num && ctx->frame_rate.den) { in mpeg2_metadata_update_fragment()
104 ff_mpeg12_find_best_frame_rate(ctx->frame_rate, in mpeg2_metadata_update_fragment()
205 OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL,
Ddirac.c144 AVRational frame_rate = { 0, 0 }; in parse_source_parameters() local
187 frame_rate.num = get_interleaved_ue_golomb(gb); in parse_source_parameters()
189 frame_rate.den = get_interleaved_ue_golomb(gb); in parse_source_parameters()
195 frame_rate = ff_mpeg12_frame_rate_tab[dsh->frame_rate_index]; in parse_source_parameters()
198 frame_rate = dirac_frame_rate[dsh->frame_rate_index - 9]; in parse_source_parameters()
200 dsh->framerate = frame_rate; in parse_source_parameters()
/third_party/glfw/tests/
Dtearing.c42 static double frame_rate; variable
59 frame_rate); in update_window_title()
178 frame_rate = 0.0; in main()
204 frame_rate = frame_count / (current_time - last_time); in main()

1234567