gst-indent run on core
[platform/upstream/gstreamer.git] / libs / gst / control / dparam_smooth.h
1 /* GStreamer
2  * Copyright (C) 2001 Steve Baker <stevebaker_org@yahoo.co.uk>
3  *
4  * gstdparam_smooth.h: Realtime smoothed dynamic parameter
5  *
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.
10  *
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.
15  *
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.
20  */
21
22 #ifndef __GST_DPSMOOTH_H__
23 #define __GST_DPSMOOTH_H__
24
25 #include "dparam.h"
26
27 G_BEGIN_DECLS
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;
35
36 struct _GstDParamSmooth
37 {
38   GstDParam dparam;
39
40   gint64 start_interp;
41   gint64 end_interp;
42   gint64 duration_interp;
43
44   gfloat start_float;
45   gfloat diff_float;
46   gfloat current_float;
47   gdouble start_double;
48   gdouble diff_double;
49   gdouble current_double;
50
51   gint64 update_period;
52   gint64 slope_time;
53   gfloat slope_delta_float;
54   gdouble slope_delta_double;
55
56   gboolean need_interp_times;
57
58   gpointer _gst_reserved[GST_PADDING];
59 };
60
61 struct _GstDParamSmoothClass
62 {
63   GstDParamClass parent_class;
64
65   /* signal callbacks */
66   gpointer _gst_reserved[GST_PADDING];
67 };
68
69 GType gst_dpsmooth_get_type (void);
70
71 GstDParam *gst_dpsmooth_new (GType type);
72
73 G_END_DECLS
74 #endif /* __GST_DPSMOOTH_H__ */