2001-12-23 17:27:58 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2001 Steve Baker <stevebaker_org@yahoo.co.uk>
|
|
|
|
*
|
|
|
|
* gstdplinearinterp.c: linear interpolation dynamic parameter
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2002-04-12 09:24:37 +00:00
|
|
|
#include "dplinearinterp.h"
|
2001-12-23 17:27:58 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
static void gst_dp_linint_class_init (GstDParamClass * klass);
|
|
|
|
static void gst_dp_linint_base_class_init (GstDParamClass * klass);
|
|
|
|
static void gst_dp_linint_init (GstDParam * dp_linint);
|
2001-12-23 17:27:58 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
GType
|
|
|
|
gst_dp_linint_get_type (void)
|
|
|
|
{
|
|
|
|
static GType dp_linint_type = 0;
|
2001-12-23 17:27:58 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
if (!dp_linint_type) {
|
|
|
|
static const GTypeInfo dp_linint_info = {
|
|
|
|
sizeof (GstDParamClass),
|
|
|
|
(GBaseInitFunc) gst_dp_linint_base_class_init,
|
|
|
|
NULL,
|
|
|
|
(GClassInitFunc) gst_dp_linint_class_init,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
sizeof (GstDParam),
|
|
|
|
0,
|
|
|
|
(GInstanceInitFunc) gst_dp_linint_init,
|
|
|
|
};
|
2004-03-15 19:27:17 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
dp_linint_type =
|
2004-03-15 19:27:17 +00:00
|
|
|
g_type_register_static (GST_TYPE_DPARAM, "GstDParamLinInterp",
|
|
|
|
&dp_linint_info, 0);
|
2004-03-13 15:27:01 +00:00
|
|
|
}
|
|
|
|
return dp_linint_type;
|
2001-12-23 17:27:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2004-03-13 15:27:01 +00:00
|
|
|
gst_dp_linint_base_class_init (GstDParamClass * klass)
|
2001-12-23 17:27:58 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2004-03-13 15:27:01 +00:00
|
|
|
gst_dp_linint_class_init (GstDParamClass * klass)
|
2001-12-23 17:27:58 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2004-03-13 15:27:01 +00:00
|
|
|
gst_dp_linint_init (GstDParam * dp_linint)
|
2001-12-23 17:27:58 +00:00
|
|
|
{
|
2004-03-13 15:27:01 +00:00
|
|
|
g_return_if_fail (dp_linint != NULL);
|
2001-12-23 17:27:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gst_dp_linint_new:
|
|
|
|
* @type: the type that this dp_linint will store
|
|
|
|
*
|
|
|
|
* Returns: a new instance of GstDParam
|
|
|
|
*/
|
2004-03-13 15:27:01 +00:00
|
|
|
GstDParam *
|
2001-12-23 17:27:58 +00:00
|
|
|
gst_dp_linint_new (GType type)
|
|
|
|
{
|
2004-03-13 15:27:01 +00:00
|
|
|
GstDParam *dparam;
|
|
|
|
GstDParamLinInterp *dp_linint;
|
|
|
|
|
|
|
|
dp_linint = g_object_new (gst_dp_linint_get_type (), NULL);
|
|
|
|
dparam = GST_DPARAM (dp_linint);
|
2001-12-23 17:27:58 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
return dparam;
|
2001-12-23 17:27:58 +00:00
|
|
|
}
|