2 * Copyright (C) 2001 Steve Baker <stevebaker_org@yahoo.co.uk>
4 * gstdparam_smooth.h: Realtime smoothed dynamic parameter
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __GST_DPSMOOTH_H__
23 #define __GST_DPSMOOTH_H__
28 #define GST_TYPE_DPSMOOTH (gst_dpsmooth_get_type ())
29 #define GST_DPSMOOTH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_DPSMOOTH,GstDParamSmooth))
30 #define GST_DPSMOOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_DPSMOOTH,GstDParamSmooth))
31 #define GST_IS_DPSMOOTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_DPSMOOTH))
32 #define GST_IS_DPSMOOTH_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_DPSMOOTH))
33 typedef struct _GstDParamSmoothClass GstDParamSmoothClass;
34 typedef struct _GstDParamSmooth GstDParamSmooth;
36 struct _GstDParamSmooth
42 gint64 duration_interp;
49 gdouble current_double;
53 gfloat slope_delta_float;
54 gdouble slope_delta_double;
56 gboolean need_interp_times;
58 gpointer _gst_reserved[GST_PADDING];
61 struct _GstDParamSmoothClass
63 GstDParamClass parent_class;
65 /* signal callbacks */
66 gpointer _gst_reserved[GST_PADDING];
69 GType gst_dpsmooth_get_type (void);
71 GstDParam *gst_dpsmooth_new (GType type);
74 #endif /* __GST_DPSMOOTH_H__ */