|
Packit Service |
963350 |
/* GStreamer
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Copyright (C) 2007 Sebastian Dröge <slomo@circular-chaos.org>
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* gstinterpolationcontrolsource.h: Control source that provides several
|
|
Packit Service |
963350 |
* interpolation methods
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
963350 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
963350 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
963350 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
963350 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
963350 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
963350 |
* Library General Public License for more details.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
963350 |
* License along with this library; if not, write to the
|
|
Packit Service |
963350 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit Service |
963350 |
* Boston, MA 02110-1301, USA.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#ifndef __GST_INTERPOLATION_CONTROL_SOURCE_H__
|
|
Packit Service |
963350 |
#define __GST_INTERPOLATION_CONTROL_SOURCE_H__
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#include <glib-object.h>
|
|
Packit Service |
963350 |
#include <gst/gst.h>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#include <gst/controller/gsttimedvaluecontrolsource.h>
|
|
Packit Service |
963350 |
#include <gst/controller/controller-enumtypes.h>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_BEGIN_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define GST_TYPE_INTERPOLATION_CONTROL_SOURCE \
|
|
Packit Service |
963350 |
(gst_interpolation_control_source_get_type ())
|
|
Packit Service |
963350 |
#define GST_INTERPOLATION_CONTROL_SOURCE(obj) \
|
|
Packit Service |
963350 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_INTERPOLATION_CONTROL_SOURCE, GstInterpolationControlSource))
|
|
Packit Service |
963350 |
#define GST_INTERPOLATION_CONTROL_SOURCE_CLASS(vtable) \
|
|
Packit Service |
963350 |
(G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_INTERPOLATION_CONTROL_SOURCE, GstInterpolationControlSourceClass))
|
|
Packit Service |
963350 |
#define GST_IS_INTERPOLATION_CONTROL_SOURCE(obj) \
|
|
Packit Service |
963350 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_INTERPOLATION_CONTROL_SOURCE))
|
|
Packit Service |
963350 |
#define GST_IS_INTERPOLATION_CONTROL_SOURCE_CLASS(vtable) \
|
|
Packit Service |
963350 |
(G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_INTERPOLATION_CONTROL_SOURCE))
|
|
Packit Service |
963350 |
#define GST_INTERPOLATION_CONTROL_SOURCE_GET_CLASS(inst) \
|
|
Packit Service |
963350 |
(G_TYPE_INSTANCE_GET_CLASS ((inst), GST_TYPE_INTERPOLATION_CONTROL_SOURCE, GstInterpolationControlSourceClass))
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
typedef struct _GstInterpolationControlSource GstInterpolationControlSource;
|
|
Packit Service |
963350 |
typedef struct _GstInterpolationControlSourceClass GstInterpolationControlSourceClass;
|
|
Packit Service |
963350 |
typedef struct _GstInterpolationControlSourcePrivate GstInterpolationControlSourcePrivate;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/**
|
|
Packit Service |
963350 |
* GstInterpolationMode:
|
|
Packit Service |
963350 |
* @GST_INTERPOLATION_MODE_NONE: steps-like interpolation, default
|
|
Packit Service |
963350 |
* @GST_INTERPOLATION_MODE_LINEAR: linear interpolation
|
|
Packit Service |
963350 |
* @GST_INTERPOLATION_MODE_CUBIC: cubic interpolation (natural), may overshoot
|
|
Packit Service |
963350 |
* the min or max values set by the control point, but is more 'curvy'
|
|
Packit Service |
963350 |
* @GST_INTERPOLATION_MODE_CUBIC_MONOTONIC: monotonic cubic interpolation, will not
|
|
Packit Service |
963350 |
* produce any values outside of the min-max range set by the control points
|
|
Packit Service |
963350 |
* (Since 1.8)
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* The various interpolation modes available.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef enum
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
GST_INTERPOLATION_MODE_NONE,
|
|
Packit Service |
963350 |
GST_INTERPOLATION_MODE_LINEAR,
|
|
Packit Service |
963350 |
GST_INTERPOLATION_MODE_CUBIC,
|
|
Packit Service |
963350 |
GST_INTERPOLATION_MODE_CUBIC_MONOTONIC,
|
|
Packit Service |
963350 |
} GstInterpolationMode;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/**
|
|
Packit Service |
963350 |
* GstInterpolationControlSource:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* The instance structure of #GstControlSource.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
struct _GstInterpolationControlSource {
|
|
Packit Service |
963350 |
GstTimedValueControlSource parent;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*< private >*/
|
|
Packit Service |
963350 |
GstInterpolationControlSourcePrivate *priv;
|
|
Packit Service |
963350 |
gpointer _gst_reserved[GST_PADDING];
|
|
Packit Service |
963350 |
};
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
struct _GstInterpolationControlSourceClass {
|
|
Packit Service |
963350 |
GstTimedValueControlSourceClass parent_class;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*< private >*/
|
|
Packit Service |
963350 |
gpointer _gst_reserved[GST_PADDING];
|
|
Packit Service |
963350 |
};
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_CONTROLLER_API
|
|
Packit Service |
963350 |
GType gst_interpolation_control_source_get_type (void);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* Functions */
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_CONTROLLER_API
|
|
Packit Service |
963350 |
GstControlSource * gst_interpolation_control_source_new (void);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit Service |
963350 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstInterpolationControlSource, gst_object_unref)
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_END_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#endif /* __GST_INTERPOLATION_CONTROL_SOURCE_H__ */
|