Blame libs/gst/controller/gstinterpolationcontrolsource.h

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