mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-01 01:33:52 +00:00
libs/gst/controller/gstinterpolation.c: whitespace prices have crashed, we should feel free to use some now use gst_g...
Original commit message from CVS: * libs/gst/controller/gstinterpolation.c: whitespace prices have crashed, we should feel free to use some now use gst_guint64_to_gdouble
This commit is contained in:
parent
fab88aed9f
commit
00b670d9a2
2 changed files with 56 additions and 46 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* libs/gst/controller/gstinterpolation.c:
|
||||
whitespace prices have crashed, we should feel free to use some now
|
||||
use gst_guint64_to_gdouble
|
||||
|
||||
2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* libs/gst/controller/gstcontroller.c:
|
||||
|
|
|
@ -109,13 +109,15 @@ interpolate_none_get_##type##_value_array (GstControlledProperty * prop, \
|
|||
return (TRUE); \
|
||||
}
|
||||
|
||||
DEFINE_NONE_GET (int)
|
||||
DEFINE_NONE_GET (uint)
|
||||
DEFINE_NONE_GET (long)
|
||||
DEFINE_NONE_GET (ulong)
|
||||
DEFINE_NONE_GET (float)
|
||||
DEFINE_NONE_GET (double)
|
||||
DEFINE_NONE_GET (boolean)
|
||||
DEFINE_NONE_GET (int);
|
||||
DEFINE_NONE_GET (uint);
|
||||
DEFINE_NONE_GET (long);
|
||||
|
||||
DEFINE_NONE_GET (ulong);
|
||||
DEFINE_NONE_GET (float);
|
||||
DEFINE_NONE_GET (double);
|
||||
|
||||
DEFINE_NONE_GET (boolean);
|
||||
|
||||
static gboolean
|
||||
interpolate_none_get_enum_value_array (GstControlledProperty * prop,
|
||||
|
@ -218,7 +220,7 @@ _interpolate_linear_get_##type (GstControlledProperty * prop, GstClockTime times
|
|||
\
|
||||
tv2 = node->data; \
|
||||
\
|
||||
timediff = (gdouble)(tv2->timestamp - tv1->timestamp); \
|
||||
timediff = gst_guint64_to_gdouble (tv2->timestamp - tv1->timestamp); \
|
||||
value1 = g_value_get_##type (&tv1->value); \
|
||||
value2 = g_value_get_##type (&tv2->value); \
|
||||
valuediff = (gdouble) (value2 - value1); \
|
||||
|
@ -255,12 +257,14 @@ interpolate_linear_get_##type##_value_array (GstControlledProperty * prop, \
|
|||
return (TRUE); \
|
||||
}
|
||||
|
||||
DEFINE_LINEAR_GET (int)
|
||||
DEFINE_LINEAR_GET (uint)
|
||||
DEFINE_LINEAR_GET (long)
|
||||
DEFINE_LINEAR_GET (ulong)
|
||||
DEFINE_LINEAR_GET (float)
|
||||
DEFINE_LINEAR_GET (double)
|
||||
DEFINE_LINEAR_GET (int);
|
||||
|
||||
DEFINE_LINEAR_GET (uint);
|
||||
DEFINE_LINEAR_GET (long);
|
||||
|
||||
DEFINE_LINEAR_GET (ulong);
|
||||
DEFINE_LINEAR_GET (float);
|
||||
DEFINE_LINEAR_GET (double);
|
||||
|
||||
static GstInterpolateMethod interpolate_linear = {
|
||||
interpolate_linear_get_int,
|
||||
|
|
Loading…
Reference in a new issue