• Home
  • Raw
  • Download

Lines Matching refs:pref

130     struct PreferredCapsInfo *pref);
280 struct PreferredCapsInfo *pref) in gst_v4l2_src_fixate_struct_with_preference() argument
283 gst_structure_fixate_field_nearest_int (s, "width", pref->width); in gst_v4l2_src_fixate_struct_with_preference()
286 gst_structure_fixate_field_nearest_int (s, "height", pref->height); in gst_v4l2_src_fixate_struct_with_preference()
289 gst_structure_fixate_field_nearest_fraction (s, "framerate", pref->fps_n, in gst_v4l2_src_fixate_struct_with_preference()
290 pref->fps_d); in gst_v4l2_src_fixate_struct_with_preference()
314 struct PreferredCapsInfo *pref) in gst_v4l2src_fixed_caps_compare() argument
328 if ((bw < pref->width || bh < pref->height) in gst_v4l2src_fixed_caps_compare()
329 && (aw < pref->width || ah < pref->height)) { in gst_v4l2src_fixed_caps_compare()
335 if (aw < pref->width || ah < pref->height) { in gst_v4l2src_fixed_caps_compare()
341 if (bw < pref->width || bh < pref->height) { in gst_v4l2src_fixed_caps_compare()
347 ad = MAX (1, aw - pref->width) * MAX (1, ah - pref->height); in gst_v4l2src_fixed_caps_compare()
348 bd = MAX (1, bw - pref->width) * MAX (1, bh - pref->height); in gst_v4l2src_fixed_caps_compare()
351 if (aw == pref->width) in gst_v4l2src_fixed_caps_compare()
354 if (ah == pref->height) in gst_v4l2src_fixed_caps_compare()
357 if (bw == pref->width) in gst_v4l2src_fixed_caps_compare()
360 if (bh == pref->height) in gst_v4l2src_fixed_caps_compare()
396 struct PreferredCapsInfo *pref) in gst_v4l2src_fixate() argument
407 GST_DEBUG_OBJECT (basesrc, "Preferred size %ix%i", pref->width, pref->height); in gst_v4l2src_fixate()
415 gst_v4l2_src_fixate_struct_with_preference (s, pref); in gst_v4l2src_fixate()
418 (GCompareDataFunc) gst_v4l2src_fixed_caps_compare, pref); in gst_v4l2src_fixate()
495 struct PreferredCapsInfo *pref) in gst_v4l2src_query_preferred_dv_timings() argument
506 pref->width = bt->width; in gst_v4l2src_query_preferred_dv_timings()
507 pref->height = bt->height; in gst_v4l2src_query_preferred_dv_timings()
514 pref->fps_n = bt->pixelclock; in gst_v4l2src_query_preferred_dv_timings()
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()
521 pref->fps_n /= gcd; 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()
540 struct PreferredCapsInfo *pref) in gst_v4l2src_query_preferred_size() argument
570 return gst_v4l2src_query_preferred_dv_timings (v4l2src, pref); in gst_v4l2src_query_preferred_size()
588 struct PreferredCapsInfo pref = { in gst_v4l2src_negotiate() local
597 have_pref = gst_v4l2src_query_preferred_size (v4l2src, &pref); in gst_v4l2src_negotiate()
633 gst_v4l2_src_fixate_struct_with_preference (pref_s, &pref); in gst_v4l2src_negotiate()
634 gst_v4l2_src_parse_fixed_struct (pref_s, &pref.width, &pref.height, in gst_v4l2src_negotiate()
635 &pref.fps_n, &pref.fps_d); in gst_v4l2src_negotiate()
639 caps = gst_v4l2src_fixate (basesrc, caps, &pref); in gst_v4l2src_negotiate()