• Home
  • Raw
  • Download

Lines Matching refs:in_value

708 _halve_value (GValue * out, const GValue * in_value)  in _halve_value()  argument
711 if (G_VALUE_HOLDS_INT (in_value)) { in _halve_value()
713 g_value_set_int (out, MAX (g_value_get_int (in_value) / 2, 1)); in _halve_value()
714 } else if (GST_VALUE_HOLDS_FRACTION (in_value)) { in _halve_value()
716 num = gst_value_get_fraction_numerator (in_value); in _halve_value()
717 den = gst_value_get_fraction_denominator (in_value); in _halve_value()
725 } else if (GST_VALUE_HOLDS_INT_RANGE (in_value)) { in _halve_value()
726 gint range_min = gst_value_get_int_range_min (in_value); in _halve_value()
727 gint range_max = gst_value_get_int_range_max (in_value); in _halve_value()
728 gint range_step = gst_value_get_int_range_step (in_value); in _halve_value()
736 } else if (GST_VALUE_HOLDS_FRACTION_RANGE (in_value)) { in _halve_value()
739 const GValue *range_min = gst_value_get_fraction_range_min (in_value); in _halve_value()
740 const GValue *range_max = gst_value_get_fraction_range_max (in_value); in _halve_value()
747 } else if (GST_VALUE_HOLDS_LIST (in_value)) { in _halve_value()
750 for (i = 0; i < gst_value_list_get_size (in_value); i++) { in _halve_value()
754 entry = gst_value_list_get_value (in_value, i); in _halve_value()
774 const GValue *in_value = gst_structure_get_value (in, field_name); in _halve_structure_field() local
777 if (G_UNLIKELY (in_value == NULL)) in _halve_structure_field()
780 if (!_halve_value (&tmp, in_value)) in _halve_structure_field()
793 _double_value (GValue * out, const GValue * in_value) in _double_value() argument
796 if (G_VALUE_HOLDS_INT (in_value)) { in _double_value()
797 gint n = g_value_get_int (in_value); in _double_value()
803 } else if (GST_VALUE_HOLDS_FRACTION (in_value)) { in _double_value()
805 num = gst_value_get_fraction_numerator (in_value); in _double_value()
806 den = gst_value_get_fraction_denominator (in_value); in _double_value()
814 } else if (GST_VALUE_HOLDS_INT_RANGE (in_value)) { in _double_value()
815 gint range_min = gst_value_get_int_range_min (in_value); in _double_value()
816 gint range_max = gst_value_get_int_range_max (in_value); in _double_value()
817 gint range_step = gst_value_get_int_range_step (in_value); in _double_value()
829 } else if (GST_VALUE_HOLDS_FRACTION_RANGE (in_value)) { in _double_value()
832 const GValue *range_min = gst_value_get_fraction_range_min (in_value); in _double_value()
833 const GValue *range_max = gst_value_get_fraction_range_max (in_value); in _double_value()
840 } else if (GST_VALUE_HOLDS_LIST (in_value)) { in _double_value()
843 for (i = 0; i < gst_value_list_get_size (in_value); i++) { in _double_value()
847 entry = gst_value_list_get_value (in_value, i); in _double_value()
867 const GValue *in_value = gst_structure_get_value (in, field_name); in _double_structure_field() local
870 if (G_UNLIKELY (in_value == NULL)) in _double_structure_field()
873 if (!_double_value (&tmp, in_value)) in _double_structure_field()