libs/gst/controller/gstinterpolation.c: Use gst_util_guint64_to_gdouble for conversions.

Original commit message from CVS:
* libs/gst/controller/gstinterpolation.c: (DEFINE_CUBIC_GET):
Use gst_util_guint64_to_gdouble for conversions.
* win32/common/libgstreamer.def:
Add new exported functions.
This commit is contained in:
Sébastien Moutte 2007-06-07 20:51:35 +00:00
parent 25a11b83e1
commit 45ed0f91b9
3 changed files with 19 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2007-06-07 Sebastien Moutte <sebastien@moutte.net>
* libs/gst/controller/gstinterpolation.c: (DEFINE_CUBIC_GET):
Use gst_util_guint64_to_gdouble for conversions.
* win32/common/libgstreamer.def:
Add new exported functions.
2007-06-07 Tim-Philipp Müller <tim at centricular dot net> 2007-06-07 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstutils.c: * gst/gstutils.c:

View file

@ -403,7 +403,7 @@ _interpolate_cubic_update_cache_##type (GstControlledProperty *prop) \
cp = node->data; \ cp = node->data; \
x_next = cp->timestamp; \ x_next = cp->timestamp; \
y_next = g_value_get_##type (&cp->value); \ y_next = g_value_get_##type (&cp->value); \
h[0] = x_next - x; \ h[0] = gst_util_guint64_to_gdouble (x_next - x); \
\ \
for (i = 1; i < n-1; i++) { \ for (i = 1; i < n-1; i++) { \
/* Shuffle x and y values */ \ /* Shuffle x and y values */ \
@ -416,7 +416,7 @@ _interpolate_cubic_update_cache_##type (GstControlledProperty *prop) \
x_next = cp->timestamp; \ x_next = cp->timestamp; \
y_next = g_value_get_##type (&cp->value); \ y_next = g_value_get_##type (&cp->value); \
\ \
h[i] = x_next - x; \ h[i] = gst_util_guint64_to_gdouble (x_next - x); \
o[i] = h[i-1]; \ o[i] = h[i-1]; \
p[i] = 2.0 * (h[i-1] + h[i]); \ p[i] = 2.0 * (h[i-1] + h[i]); \
q[i] = h[i]; \ q[i] = h[i]; \

View file

@ -79,6 +79,7 @@ EXPORTS
gst_caps_is_subset gst_caps_is_subset
gst_caps_make_writable gst_caps_make_writable
gst_caps_merge gst_caps_merge
gst_caps_merge_structure
gst_caps_new_any gst_caps_new_any
gst_caps_new_empty gst_caps_new_empty
gst_caps_new_full gst_caps_new_full
@ -233,6 +234,7 @@ EXPORTS
gst_element_set_index gst_element_set_index
gst_element_set_locked_state gst_element_set_locked_state
gst_element_set_state gst_element_set_state
gst_element_state_change_return_get_name
gst_element_state_get_name gst_element_state_get_name
gst_element_sync_state_with_parent gst_element_sync_state_with_parent
gst_element_unlink gst_element_unlink
@ -278,6 +280,7 @@ EXPORTS
gst_ghost_pad_get_type gst_ghost_pad_get_type
gst_ghost_pad_new gst_ghost_pad_new
gst_ghost_pad_new_no_target gst_ghost_pad_new_no_target
gst_ghost_pad_new_no_target_from_template
gst_ghost_pad_new_from_template gst_ghost_pad_new_from_template
gst_ghost_pad_set_target gst_ghost_pad_set_target
gst_implements_interface_cast gst_implements_interface_cast
@ -481,6 +484,7 @@ EXPORTS
gst_pad_template_pad_created gst_pad_template_pad_created
gst_pad_unlink gst_pad_unlink
gst_pad_use_fixed_caps gst_pad_use_fixed_caps
gst_param_spec_fraction_get_type
gst_param_spec_mini_object gst_param_spec_mini_object
gst_parse_bin_from_description gst_parse_bin_from_description
gst_parse_error_get_type gst_parse_error_get_type
@ -563,6 +567,8 @@ EXPORTS
gst_registry_feature_filter gst_registry_feature_filter
gst_registry_find_feature gst_registry_find_feature
gst_registry_find_plugin gst_registry_find_plugin
gst_registry_fork_is_enabled
gst_registry_fork_set_enabled
gst_registry_get_default gst_registry_get_default
gst_registry_get_feature_list gst_registry_get_feature_list
gst_registry_get_feature_list_by_plugin gst_registry_get_feature_list_by_plugin
@ -592,6 +598,8 @@ EXPORTS
gst_segment_set_seek gst_segment_set_seek
gst_segment_to_running_time gst_segment_to_running_time
gst_segment_to_stream_time gst_segment_to_stream_time
gst_segtrap_is_enabled
gst_segtrap_set_enabled
gst_state_change_get_type gst_state_change_get_type
gst_state_change_return_get_type gst_state_change_return_get_type
gst_state_get_type gst_state_get_type
@ -626,6 +634,7 @@ EXPORTS
gst_structure_has_name gst_structure_has_name
gst_structure_id_set gst_structure_id_set
gst_structure_id_set_valist gst_structure_id_set_valist
gst_structure_id_set_value
gst_structure_n_fields gst_structure_n_fields
gst_structure_new gst_structure_new
gst_structure_new_valist gst_structure_new_valist
@ -697,6 +706,7 @@ EXPORTS
gst_type_find_probability_get_type gst_type_find_probability_get_type
gst_type_find_register gst_type_find_register
gst_type_find_suggest gst_type_find_suggest
gst_update_registry
gst_uri_construct gst_uri_construct
gst_uri_get_location gst_uri_get_location
gst_uri_get_protocol gst_uri_get_protocol