Home
last modified time | relevance | path

Searched refs:fps_d (Results 1 – 25 of 170) 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()
89 if (tc->config.fps_d == 1001) { 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()
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()
229 guint fps_n, guint fps_d, in gst_video_time_code_init_from_date_time() argument
232 if (!gst_video_time_code_init_from_date_time_full (tc, fps_n, fps_d, dt, in gst_video_time_code_init_from_date_time()
[all …]
Dgstvideotimecode.h70 guint fps_d; member
132 guint fps_d,
149 guint fps_d,
156 guint fps_d,
170 guint fps_d,
182 guint fps_d,
189 guint fps_d,
Dgstvideoutilsprivate.c159 guint fps_n, fps_d; in __gst_video_rawvideo_convert() local
171 fps_d = GST_VIDEO_INFO_FPS_D (&state->info); 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()
189 *dest_format == GST_FORMAT_DEFAULT && fps_d) { 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()
194 *dest_format == GST_FORMAT_BYTES && fps_d && vidsize) { in __gst_video_rawvideo_convert()
197 fps_n * (guint64) vidsize, GST_SECOND * fps_d); in __gst_video_rawvideo_convert()
203 GST_SECOND * fps_d, fps_n * (guint64) vidsize); in __gst_video_rawvideo_convert()
Dvideo-info.c136 info->fps_d = 1; 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()
443 gst_structure_get_fraction (structure, "max-framerate", &fps_n, &fps_d); in gst_video_info_from_caps()
446 info->fps_d = fps_d; in gst_video_info_from_caps()
450 info->fps_d = 1; in gst_video_info_from_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()
1253 int fps_n, fps_d; in gst_video_info_convert() local
1263 fps_d = info->fps_d; in gst_video_info_convert()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/segmentclip/
Dgstvideosegmentclip.c88 self->fps_n = self->fps_d = 0; in gst_video_segment_clip_reset()
102 if (!self->fps_d) { 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()
171 && (fps_d != 0); 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()
176 self->fps_d = fps_d; in gst_video_segment_clip_set_caps()
/third_party/gstreamer/gstplugins_bad/gst/ivfparse/
Dgstivfparse.c122 ivf->fps_d = 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()
191 ivf->fps_d = fps_d; 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()
238 ivf->fps_d, NULL); in gst_ivf_parse_update_src_caps()
262 guint32 fps_d = GST_READ_UINT32_LE (map.data + 20); 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/timecode/
Dgsttimecodestamper.c641 timecodestamper->fps_d = 1; in gst_timecodestamper_stop()
711 timecodestamper->fps_d = 1; in gst_timecodestamper_start()
720 if (timecodestamper->drop_frame && timecodestamper->fps_d == 1001 && in gst_timecodestamper_update_drop_frame()
768 timecodestamper, gint fps_n, gint fps_d, GstVideoTimeCode * timecode, in gst_timecodestamper_update_timecode_framerate() argument
782 if (timecodestamper->drop_frame && timecodestamper->fps_d == 1001 && in gst_timecodestamper_update_timecode_framerate()
788 if (timecode->config.fps_d != 0 || !is_ltc) { in gst_timecodestamper_update_timecode_framerate()
792 GST_SECOND * timecodestamper->fps_d, timecodestamper->fps_n); in gst_timecodestamper_update_timecode_framerate()
798 timecodestamper->fps_d, jam, tc_flags, 0, 0, 0, 0, 0); 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
[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()
361 self->fps_d = 1; in gst_image_sequence_src_init()
445 self->fps_d = gst_value_get_fraction_denominator (value); in gst_image_sequence_src_set_property()
473 self->fps_d = gst_value_get_fraction_denominator (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()
545 gst_util_uint64_scale (GST_SECOND * self->n_frames, self->fps_d, in gst_image_sequence_src_set_duration()
578 gint fps_n, fps_d, start_index, stop_index; in gst_image_sequence_src_create() local
599 fps_d = self->fps_d; in gst_image_sequence_src_create()
[all …]
Dgstmultifilesrc.c129 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()
339 &src->fps_d)) { in gst_multi_file_src_set_property()
341 src->fps_d); in gst_multi_file_src_set_property()
344 src->fps_d = -1; in gst_multi_file_src_set_property()
/third_party/gstreamer/gstplugins_bad/gst/inter/
Dgstintervideosrc.c254 black_info.fps_d = intervideosrc->info.fps_d; in gst_inter_video_src_set_caps()
349 tmp_info.fps_d = intervideosrc->info.fps_d; 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()
400 gst_structure_get_fraction (s, "max-framerate", &fps_n, &fps_d); in gst_inter_video_src_create()
423 fps_d = 1; 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()
432 fps_d); in gst_inter_video_src_create()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecs/
Dgstmpeg2decoder.c57 guint fps_d; member
70 tsg->fps_d = 0; in _pts_init()
76 return gst_util_uint64_scale (num_frames, GST_SECOND * tsg->fps_d, in _pts_get_duration()
87 _pts_set_framerate (PTSGenerator * tsg, guint fps_n, guint fps_d) in _pts_set_framerate() argument
90 tsg->fps_d = fps_d; 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()
457 fps_d = priv->tsg.fps_d; 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/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
247 self->fps_d, NULL); in gst_image_freeze_sink_setcaps()
299 gst_structure_get_fraction (s, "framerate", &fps_n, &fps_d); in gst_image_freeze_sink_setcaps()
300 if (fps_d != 0) { in gst_image_freeze_sink_setcaps()
304 self->fps_d = fps_d; in gst_image_freeze_sink_setcaps()
313 fps_d); in gst_image_freeze_sink_setcaps()
433 gst_util_uint64_scale (src_value, GST_SECOND * self->fps_d, in gst_image_freeze_convert()
449 self->fps_d * GST_SECOND); in gst_image_freeze_convert()
542 GST_SECOND * self->fps_d); in gst_image_freeze_src_query()
[all …]
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Dimagefreeze.c134 i1.fps_d = 1; in GST_START_TEST()
203 i1.fps_d = 1; in GST_START_TEST()
209 i2.fps_d = 1; in GST_START_TEST()
283 i1.fps_d = 1; in GST_START_TEST()
289 i2.fps_d = 1; in GST_START_TEST()
363 i1.fps_d = 1; in GST_START_TEST()
369 i2.fps_d = 1; in GST_START_TEST()
454 i1.fps_d = 1; in GST_START_TEST()
460 i2.fps_d = 1; in GST_START_TEST()
528 i1.fps_d = 1; in GST_START_TEST()
[all …]
Djpegenc.c137 gint fps_d; in GST_START_TEST() local
172 &fps_d)); in GST_START_TEST()
174 fail_unless (fps_d == 1); in GST_START_TEST()
Dvp9enc.c26 gst_caps_new_i420_full (gint width, gint height, gint fps_n, gint fps_d, in gst_caps_new_i420_full() argument
33 GST_VIDEO_INFO_FPS_D (&info) = fps_d; in gst_caps_new_i420_full()
/third_party/gstreamer/gstplugins_good/gst/debugutils/
Dgstnavigationtest.c72 gint fps_n, fps_d; in gst_navigationtest_src_event() local
75 fps_d = GST_VIDEO_INFO_FPS_D (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_good/sys/v4l2/
Dgstv4l2src.c110 gint fps_d; member
290 pref->fps_d); 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()
515 pref->fps_d = tot_width * tot_height; in gst_v4l2src_query_preferred_dv_timings()
518 pref->fps_d /= 2; 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()
522 pref->fps_d /= 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()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgstvc1parse.c279 vc1parse->fps_n = vc1parse->fps_d = 0; in gst_vc1_parse_reset()
858 if (vc1parse->fps_d == 0) { in gst_vc1_parse_make_sequence_layer()
867 ((gdouble) vc1parse->fps_d) + 0.5))); in gst_vc1_parse_make_sequence_layer()
897 if (vc1parse->fps_d != 0) { in gst_vc1_parse_update_caps()
899 vc1parse->fps_d, NULL); in gst_vc1_parse_update_caps()
903 vc1parse->fps_d, vc1parse->fps_n); in gst_vc1_parse_update_caps()
2102 if (fps != 0 && (vc1parse->fps_d == 0 || in gst_vc1_parse_handle_seq_hdr()
2104 vc1parse->fps_d) != 0)) { in gst_vc1_parse_handle_seq_hdr()
2107 vc1parse->fps_d = 1; in gst_vc1_parse_handle_seq_hdr()
2133 if (fps != 0 && (vc1parse->fps_d == 0 || in gst_vc1_parse_handle_seq_hdr()
[all …]
/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()
417 edit_rate->d = fps_d; in mxf_vanc_get_edit_rate()
/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()
461 fps_d = GST_VIDEO_INFO_FPS_D (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_bad/sys/mediafoundation/
Dmediacapturewrapper.cpp150 gint fps_n = 0, fps_d = 1; in Fill() local
171 gst_util_double_to_fraction (framerate, &fps_n, &fps_d); in Fill()
192 if (fps_n > 0 && fps_d > 0) in Fill()
194 "framerate", GST_TYPE_FRACTION, fps_n, fps_d, NULL); in Fill()
799 UINT32 fps_d = 1; in mediaCaptureInitPost() local
825 hr = ratio->get_Denominator (&fps_d); in mediaCaptureInitPost()
837 fps_d); in mediaCaptureInitPost()
851 UINT32 fps_d = 1; in mediaCaptureInitPost() local
886 hr = ratio->get_Denominator (&fps_d); in mediaCaptureInitPost()
891 (gint) fps_d != GST_VIDEO_INFO_FPS_D (&videoInfo)) { in mediaCaptureInitPost()
/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/frei0r/
Dgstfrei0rsrc.c72 gst_util_uint64_scale (self->n_frames, GST_SECOND * self->info.fps_d, in gst_frei0r_src_fill()
79 gst_util_uint64_scale (self->n_frames, GST_SECOND * self->info.fps_d, in gst_frei0r_src_fill()
164 self->info.fps_n, self->info.fps_d * GST_SECOND); in gst_frei0r_src_do_seek()
198 self->info.fps_d * GST_SECOND, 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/gst/y4m/
Dgsty4mdec.c246 return gst_util_uint64_scale (frame_index, GST_SECOND * y4mdec->info.fps_d, in gst_y4m_dec_frames_to_timestamp()
257 GST_SECOND * y4mdec->info.fps_d); in gst_y4m_dec_timestamp_to_frames()
297 gint fps_n = 0, fps_d = 0; in gst_y4m_dec_parse_header() local
354 fps_d = strtoul (header, &end, 10); in gst_y4m_dec_parse_header()
468 if (fps_d == 0) in gst_y4m_dec_parse_header()
469 fps_d = 1; in gst_y4m_dec_parse_header()
476 y4mdec->info.fps_d = fps_d; in gst_y4m_dec_parse_header()
/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
787 *fps_d = gst_value_get_fraction_denominator (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()
1016 gst_util_uint64_scale (GST_SECOND, src->info.fps_d, in gst_video_test_src_query()
1042 * GST_SECOND, src->info.fps_d, src->info.fps_n); in gst_video_test_src_query()
1108 src->info.fps_n, src->info.fps_d * GST_SECOND); in gst_video_test_src_do_seek()
1116 src->info.fps_d * GST_SECOND, src->info.fps_n); in gst_video_test_src_do_seek()
1194 src->info.fps_d * GST_SECOND, src->info.fps_n); in gst_video_test_src_fill()
1198 src->info.fps_d * GST_SECOND, src->info.fps_n); in gst_video_test_src_fill()

1234567