Home
last modified time | relevance | path

Searched refs:fps_n (Results 1 – 25 of 172) sorted by relevance

1234567

/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dgstvideotimecode.c72 if (tc->config.fps_n == 0 || tc->config.fps_d == 0) in gst_video_time_code_is_valid()
83 fr = (tc->config.fps_n + (tc->config.fps_d >> 1)) / tc->config.fps_d; in gst_video_time_code_is_valid()
84 if (tc->frames >= fr && (tc->config.fps_n != 0 || tc->config.fps_d != 1)) in gst_video_time_code_is_valid()
90 if (tc->config.fps_n != 30000 && tc->config.fps_n != 60000 && in gst_video_time_code_is_valid()
91 tc->config.fps_n != 24000) in gst_video_time_code_is_valid()
93 } else if (tc->config.fps_n % tc->config.fps_d != 0) { in gst_video_time_code_is_valid()
100 if (tc->config.fps_d != 1001 || (tc->config.fps_n != 30000 in gst_video_time_code_is_valid()
101 && tc->config.fps_n != 60000)) in gst_video_time_code_is_valid()
189 gst_util_fraction_to_double (tc->frames * tc->config.fps_d, tc->config.fps_n, in gst_video_time_code_to_date_time()
195 gst_util_fraction_to_double (tc->config.fps_d, 2 * tc->config.fps_n, in gst_video_time_code_to_date_time()
[all …]
Dgstvideotimecode.h69 guint fps_n; member
131 GstVideoTimeCode * gst_video_time_code_new (guint fps_n,
148 GstVideoTimeCode * gst_video_time_code_new_from_date_time (guint fps_n,
155 GstVideoTimeCode * gst_video_time_code_new_from_date_time_full (guint fps_n,
169 guint fps_n,
181 guint fps_n,
188 guint fps_n,
Dgstvideoutilsprivate.c159 guint fps_n, fps_d; in __gst_video_rawvideo_convert() local
170 fps_n = GST_VIDEO_INFO_FPS_N (&state->info); in __gst_video_rawvideo_convert()
184 *dest_format == GST_FORMAT_TIME && fps_n) { in __gst_video_rawvideo_convert()
186 *dest_value = gst_util_uint64_scale (src_value, GST_SECOND * fps_d, fps_n); in __gst_video_rawvideo_convert()
191 *dest_value = gst_util_uint64_scale (src_value, fps_n, GST_SECOND * fps_d); in __gst_video_rawvideo_convert()
197 fps_n * (guint64) vidsize, GST_SECOND * fps_d); in __gst_video_rawvideo_convert()
200 *dest_format == GST_FORMAT_TIME && fps_n && vidsize) { in __gst_video_rawvideo_convert()
203 GST_SECOND * fps_d, fps_n * (guint64) vidsize); in __gst_video_rawvideo_convert()
Dvideo-info.c135 info->fps_n = 0; in gst_video_info_init()
397 gint fps_n, fps_d; in gst_video_info_from_caps() local
438 if (gst_structure_get_fraction (structure, "framerate", &fps_n, &fps_d)) { in gst_video_info_from_caps()
439 if (fps_n == 0) { in gst_video_info_from_caps()
443 gst_structure_get_fraction (structure, "max-framerate", &fps_n, &fps_d); in gst_video_info_from_caps()
445 info->fps_n = fps_n; in gst_video_info_from_caps()
449 info->fps_n = 0; in gst_video_info_from_caps()
772 if (info->flags & GST_VIDEO_FLAG_VARIABLE_FPS && info->fps_n != 0) { in gst_video_info_to_caps()
775 "max-framerate", GST_TYPE_FRACTION, info->fps_n, info->fps_d, NULL); in gst_video_info_to_caps()
779 info->fps_n, info->fps_d, NULL); in gst_video_info_to_caps()
[all …]
Dvideo-info.h328 gint fps_n; member
378 #define GST_VIDEO_INFO_FPS_N(i) ((i)->fps_n)
381 (i)->fps_n * 2 : (i)->fps_n)
/third_party/gstreamer/gstplugins_bad/gst/ivfparse/
Dgstivfparse.c121 ivf->fps_n = 0; in gst_ivf_parse_reset()
186 gst_ivf_parse_set_framerate (GstIvfParse * ivf, guint fps_n, guint fps_d) in gst_ivf_parse_set_framerate() argument
188 if (ivf->fps_n != fps_n || ivf->fps_d != fps_d) { in gst_ivf_parse_set_framerate()
189 GST_INFO_OBJECT (ivf, "framerate changed to %u/%u", fps_n, fps_d); in gst_ivf_parse_set_framerate()
190 ivf->fps_n = fps_n; in gst_ivf_parse_set_framerate()
234 if (ivf->fps_n > 0 && ivf->fps_d > 0) { in gst_ivf_parse_update_src_caps()
236 ivf->fps_n, ivf->fps_d, 0, 0); in gst_ivf_parse_update_src_caps()
237 gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION, ivf->fps_n, in gst_ivf_parse_update_src_caps()
261 guint32 fps_n = GST_READ_UINT32_LE (map.data + 16); in gst_ivf_parse_handle_frame_start() local
278 gst_ivf_parse_set_framerate (ivf, fps_n, fps_d); in gst_ivf_parse_handle_frame_start()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/segmentclip/
Dgstvideosegmentclip.c88 self->fps_n = self->fps_d = 0; in gst_video_segment_clip_reset()
121 if (self->fps_n == 0) { in gst_video_segment_clip_clip_buffer()
129 duration = gst_util_uint64_scale (GST_SECOND, self->fps_d, self->fps_n); in gst_video_segment_clip_clip_buffer()
166 gint fps_n, fps_d; in gst_video_segment_clip_set_caps() local
170 ret = gst_structure_get_fraction (s, "framerate", &fps_n, &fps_d) in gst_video_segment_clip_set_caps()
174 GST_DEBUG_OBJECT (self, "Configured framerate %d/%d", fps_n, fps_d); in gst_video_segment_clip_set_caps()
175 self->fps_n = fps_n; in gst_video_segment_clip_set_caps()
/third_party/gstreamer/gstplugins_bad/gst/timecode/
Dgsttimecodestamper.c640 timecodestamper->fps_n = 0; in gst_timecodestamper_stop()
710 timecodestamper->fps_n = 0; in gst_timecodestamper_start()
721 (timecodestamper->fps_n == 30000 || timecodestamper->fps_n == 60000)) { in gst_timecodestamper_update_drop_frame()
768 timecodestamper, gint fps_n, gint fps_d, GstVideoTimeCode * timecode, in gst_timecodestamper_update_timecode_framerate() argument
783 (timecodestamper->fps_n == 30000 || timecodestamper->fps_n == 60000)) in gst_timecodestamper_update_timecode_framerate()
792 GST_SECOND * timecodestamper->fps_d, timecodestamper->fps_n); in gst_timecodestamper_update_timecode_framerate()
797 gst_video_time_code_init (timecode, timecodestamper->fps_n, in gst_timecodestamper_update_timecode_framerate()
802 nframes = gst_util_uint64_scale (time, fps_n, GST_SECOND * fps_d); in gst_timecodestamper_update_timecode_framerate()
810 gint fps_n, gint fps_d) in gst_timecodestamper_update_framerate() argument
813 if (fps_n == timecodestamper->fps_n && fps_d == timecodestamper->fps_d) in gst_timecodestamper_update_framerate()
[all …]
Dgstavwait.c506 && self->vinfo.fps_n != 0) { in gst_avwait_set_property()
507 self->tc->config.fps_n = self->vinfo.fps_n; in gst_avwait_set_property()
519 if (self->tc && self->tc->config.fps_n == 0 in gst_avwait_set_property()
521 GST_VIDEO_FORMAT_UNKNOWN && self->vinfo.fps_n != 0) { in gst_avwait_set_property()
522 self->tc->config.fps_n = self->vinfo.fps_n; in gst_avwait_set_property()
533 if (self->end_tc && self->end_tc->config.fps_n == 0 in gst_avwait_set_property()
535 GST_VIDEO_FORMAT_UNKNOWN && self->vinfo.fps_n != 0) { in gst_avwait_set_property()
536 self->end_tc->config.fps_n = self->vinfo.fps_n; in gst_avwait_set_property()
736 if (self->tc && self->tc->config.fps_n == 0 && self->vinfo.fps_n != 0) { in gst_avwait_vsink_event()
737 self->tc->config.fps_n = self->vinfo.fps_n; in gst_avwait_vsink_event()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/inter/
Dgstintervideosrc.c253 black_info.fps_n = intervideosrc->info.fps_n; in gst_inter_video_src_set_caps()
348 tmp_info.fps_n = intervideosrc->info.fps_n; in gst_inter_video_src_create()
390 gint fps_n = 0, fps_d = 1; in gst_inter_video_src_create() local
398 gst_structure_get_fraction (s, "framerate", &fps_n, &fps_d); in gst_inter_video_src_create()
399 if (fps_n == 0) in gst_inter_video_src_create()
400 gst_structure_get_fraction (s, "max-framerate", &fps_n, &fps_d); in gst_inter_video_src_create()
421 if (fps_n == 0) { in gst_inter_video_src_create()
422 fps_n = 30; in gst_inter_video_src_create()
429 gst_structure_set (s, "framerate", GST_TYPE_FRACTION, fps_n, fps_d, NULL); in gst_inter_video_src_create()
431 gst_structure_fixate_field_nearest_fraction (s, "framerate", fps_n, in gst_inter_video_src_create()
Dgstintersubsink.c124 intersubsink->fps_n = 1; in gst_inter_sub_sink_init()
183 if (intersubsink->fps_n > 0) { in gst_inter_sub_sink_get_times()
186 intersubsink->fps_n); in gst_inter_sub_sink_get_times()
/third_party/gstreamer/gstplugins_good/gst/imagefreeze/
Dgstimagefreeze.c223 self->fps_n = self->fps_d = 0; in gst_image_freeze_reset()
234 gint fps_n, fps_d; in gst_image_freeze_sink_setcaps() local
246 gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION, self->fps_n, in gst_image_freeze_sink_setcaps()
299 gst_structure_get_fraction (s, "framerate", &fps_n, &fps_d); in gst_image_freeze_sink_setcaps()
303 self->fps_n = fps_n; in gst_image_freeze_sink_setcaps()
312 GST_WARNING_OBJECT (pad, "Invalid caps with framerate %d/%d", fps_n, in gst_image_freeze_sink_setcaps()
429 if (self->fps_n == 0) in gst_image_freeze_convert()
434 self->fps_n); in gst_image_freeze_convert()
448 gst_util_uint64_scale (src_value, self->fps_n, in gst_image_freeze_convert()
541 gst_util_uint64_scale (duration, self->fps_n, in gst_image_freeze_src_query()
[all …]
/third_party/gstreamer/gstplugins_good/gst/multifile/
Dgstimagesequencesrc.c240 if ((self->n_frames != 0) && (self->fps_n) && (self->fps_d)) in is_seekable()
260 segment->position * self->fps_n / (self->fps_d * GST_SECOND); in do_seek()
360 self->fps_n = 30; in gst_image_sequence_src_init()
444 self->fps_n = gst_value_get_fraction_numerator (value); in gst_image_sequence_src_set_property()
472 self->fps_n = gst_value_get_fraction_numerator (value); in gst_image_sequence_src_get_property()
475 self->fps_n, self->fps_d); in gst_image_sequence_src_get_property()
523 gst_value_set_fraction (&fps, self->fps_n, self->fps_d); in gst_image_sequence_src_set_caps()
546 self->fps_n); in gst_image_sequence_src_set_duration()
578 gint fps_n, fps_d, start_index, stop_index; in gst_image_sequence_src_create() local
598 fps_n = self->fps_n; in gst_image_sequence_src_create()
[all …]
Dgstmultifilesrc.c101 if (mfs->fps_n != -1) in is_seekable()
127 if (src->fps_n) { in do_seek()
129 src->fps_n, src->fps_d * GST_SECOND); in do_seek()
211 multifilesrc->fps_n = multifilesrc->fps_d = -1; in gst_multi_file_src_init()
338 && gst_structure_get_fraction (st, "framerate", &src->fps_n, in gst_multi_file_src_set_property()
340 GST_INFO_OBJECT (src, "Setting framerate to %d/%d", src->fps_n, in gst_multi_file_src_set_property()
343 src->fps_n = -1; in gst_multi_file_src_set_property()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecs/
Dgstmpeg2decoder.c56 guint fps_n; member
69 tsg->fps_n = 0; in _pts_init()
77 tsg->fps_n); in _pts_get_duration()
87 _pts_set_framerate (PTSGenerator * tsg, guint fps_n, guint fps_d) in _pts_set_framerate() argument
89 tsg->fps_n = fps_n; in _pts_set_framerate()
112 _pts_get_duration (tsg, 1) - 1, tsg->fps_n, GST_SECOND * tsg->fps_d); in _pts_sync()
453 gint fps_d = 1, fps_n = 0; in gst_mpeg2_decoder_set_latency() local
455 if (priv->tsg.fps_d > 0 && priv->tsg.fps_n > 0) { in gst_mpeg2_decoder_set_latency()
456 fps_n = priv->tsg.fps_n; in gst_mpeg2_decoder_set_latency()
462 if (gst_structure_get_fraction (structure, "framerate", &fps_n, &fps_d)) { in gst_mpeg2_decoder_set_latency()
[all …]
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Dimagefreeze.c133 i1.fps_n = 25; in GST_START_TEST()
202 i1.fps_n = 25; in GST_START_TEST()
208 i2.fps_n = 25; in GST_START_TEST()
282 i1.fps_n = 25; in GST_START_TEST()
288 i2.fps_n = 25; in GST_START_TEST()
362 i1.fps_n = 25; in GST_START_TEST()
368 i2.fps_n = 25; in GST_START_TEST()
453 i1.fps_n = 25; in GST_START_TEST()
459 i2.fps_n = 25; in GST_START_TEST()
527 i1.fps_n = 25; in GST_START_TEST()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/frei0r/
Dgstfrei0rsrc.c73 self->info.fps_n); in gst_frei0r_src_fill()
80 self->info.fps_n) - GST_BUFFER_TIMESTAMP (buf); in gst_frei0r_src_fill()
162 if (self->info.fps_n) { in gst_frei0r_src_do_seek()
164 self->info.fps_n, self->info.fps_d * GST_SECOND); in gst_frei0r_src_do_seek()
196 if (self->info.fps_n) { in gst_frei0r_src_query()
198 self->info.fps_d * GST_SECOND, self->info.fps_n); in gst_frei0r_src_query()
211 if (self->info.fps_n) { in gst_frei0r_src_query()
213 self->info.fps_n, self->info.fps_d * GST_SECOND); in gst_frei0r_src_query()
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dgstccconverter.c477 guint fps_n, fps_d; member
507 cdp_fps_entry_from_fps (guint fps_n, guint fps_d) in cdp_fps_entry_from_fps() argument
511 if (cdp_fps_table[i].fps_n == fps_n && cdp_fps_table[i].fps_d == fps_d) in cdp_fps_entry_from_fps()
528 if (!gst_util_fraction_multiply (in_fps_entry->fps_d, in_fps_entry->fps_n, in get_framerate_output_scale()
550 if (!tc || tc->config.fps_n == 0) in interpolate_time_code_with_framerate()
564 out_fps_n = tc->config.fps_n; in interpolate_time_code_with_framerate()
875 if (!in_fps_entry || in_fps_entry->fps_n == 0) { in fit_and_scale_cc_data()
877 if (!in_fps_entry || in_fps_entry->fps_n == 0) in fit_and_scale_cc_data()
884 if (tc && tc->config.fps_n != 0) in fit_and_scale_cc_data()
885 interpolate_time_code_with_framerate (self, tc, out_fps_entry->fps_n, in fit_and_scale_cc_data()
[all …]
/third_party/gstreamer/gstplugins_base/gst/videotestsrc/
Dgstvideotestsrc.c769 gint * width, gint * height, gint * fps_n, gint * fps_d, in gst_video_test_src_parse_caps() argument
786 *fps_n = gst_value_get_fraction_numerator (framerate); in gst_video_test_src_parse_caps()
908 &info.fps_n, &info.fps_d, &info.colorimetry, &x_inv, &y_inv)) in gst_video_test_src_setcaps()
950 info.width, info.height, info.fps_n, info.fps_d); in gst_video_test_src_setcaps()
1012 if (src->info.fps_n > 0) { in gst_video_test_src_query()
1017 src->info.fps_n); in gst_video_test_src_query()
1040 if (src->info.fps_n) { in gst_video_test_src_query()
1042 * GST_SECOND, src->info.fps_d, src->info.fps_n); in gst_video_test_src_query()
1106 if (src->info.fps_n) { in gst_video_test_src_do_seek()
1108 src->info.fps_n, src->info.fps_d * GST_SECOND); in gst_video_test_src_do_seek()
[all …]
/third_party/gstreamer/gstplugins_good/sys/v4l2/
Dgstv4l2src.c109 gint fps_n; member
289 gst_structure_fixate_field_nearest_fraction (s, "framerate", pref->fps_n, in gst_v4l2_src_fixate_struct_with_preference()
299 gint * width, gint * height, gint * fps_n, gint * fps_d) in gst_v4l2_src_parse_fixed_struct() argument
307 if (gst_structure_has_field (s, "framerate") && fps_n && fps_d) in gst_v4l2_src_parse_fixed_struct()
308 gst_structure_get_fraction (s, "framerate", fps_n, fps_d); in gst_v4l2_src_parse_fixed_struct()
514 pref->fps_n = bt->pixelclock; in gst_v4l2src_query_preferred_dv_timings()
520 gcd = gst_util_greatest_common_divisor (pref->fps_n, pref->fps_d); in gst_v4l2src_query_preferred_dv_timings()
521 pref->fps_n /= gcd; in gst_v4l2src_query_preferred_dv_timings()
533 pref->width, pref->height, pref->fps_n, pref->fps_d); in gst_v4l2src_query_preferred_dv_timings()
635 &pref.fps_n, &pref.fps_d); in gst_v4l2src_negotiate()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/msdk/
Dgstmsdkvpputil.c451 gint fps_n = 0, fps_d; in fixate_frame_rate() local
455 gst_structure_get (outs, "framerate", GST_TYPE_FRACTION, &fps_n, &fps_d, in fixate_frame_rate()
459 if (!fps_n) { in fixate_frame_rate()
460 fps_n = GST_VIDEO_INFO_FPS_N (vinfo); in fixate_frame_rate()
467 if (!gst_util_fraction_multiply (fps_n, fps_d, 1, 1, &fps_n, &fps_d)) in fixate_frame_rate()
470 gst_structure_set (outs, "framerate", GST_TYPE_FRACTION, fps_n, fps_d, NULL); in fixate_frame_rate()
/third_party/gstreamer/gstplugins_base/gst/subparse/
Dgstsubparse.h44 gint fps_n, fps_d; /* used by frame based parsers */ member
90 gint fps_n, fps_d; member
/third_party/gstreamer/gstplugins_bad/gst/mxf/
Dmxfvanc.c373 gint fps_n, fps_d; in mxf_vanc_get_descriptor() local
384 gst_structure_get_fraction (s, "framerate", &fps_n, &fps_d); in mxf_vanc_get_descriptor()
410 gint fps_n, fps_d; in mxf_vanc_get_edit_rate() local
413 if (!gst_structure_get_fraction (s, "framerate", &fps_n, &fps_d)) in mxf_vanc_get_edit_rate()
416 edit_rate->n = fps_n; in mxf_vanc_get_edit_rate()
/third_party/gstreamer/gstplugins_good/gst/debugutils/
Dgstnavigationtest.c72 gint fps_n, fps_d; in gst_navigationtest_src_event() local
74 fps_n = GST_VIDEO_INFO_FPS_N (info); in gst_navigationtest_src_event()
86 click->images_left = (fps_n + fps_d - 1) / fps_d; in gst_navigationtest_src_event()
97 click->images_left = (fps_n + fps_d - 1) / fps_d; in gst_navigationtest_src_event()
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgstvc1parse.c279 vc1parse->fps_n = vc1parse->fps_d = 0; in gst_vc1_parse_reset()
866 ((guint32) (((gdouble) vc1parse->fps_n) / in gst_vc1_parse_make_sequence_layer()
898 gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION, vc1parse->fps_n, in gst_vc1_parse_update_caps()
901 if (vc1parse->fps_n > 0) in gst_vc1_parse_update_caps()
903 vc1parse->fps_d, vc1parse->fps_n); in gst_vc1_parse_update_caps()
2103 gst_util_fraction_compare (fps, 1, vc1parse->fps_n, in gst_vc1_parse_handle_seq_hdr()
2106 vc1parse->fps_n = fps; in gst_vc1_parse_handle_seq_hdr()
2134 gst_util_fraction_compare (fps, 1, vc1parse->fps_n, in gst_vc1_parse_handle_seq_hdr()
2137 vc1parse->fps_n = fps; in gst_vc1_parse_handle_seq_hdr()
2167 gint fps_n = 0, fps_d = 0; in gst_vc1_parse_handle_seq_hdr() local
[all …]

1234567