mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
b47469722f
Original commit message from CVS: reviewed by: Stefan Kost <ensonic@users.sf.net> * libs/gst/controller/Makefile.am: * libs/gst/controller/gstlfocontrolsource.c: (_calculate_pos), (gst_lfo_waveform_get_type), (gst_lfo_control_source_reset), (gst_lfo_control_source_new), (gst_lfo_control_source_set_waveform), (gst_lfo_control_source_bind), (gst_lfo_control_source_init), (gst_lfo_control_source_finalize), (gst_lfo_control_source_dispose), (gst_lfo_control_source_set_property), (gst_lfo_control_source_get_property), (gst_lfo_control_source_class_init): * libs/gst/controller/gstlfocontrolsource.h: * libs/gst/controller/gstlfocontrolsourceprivate.h: API: Add GstLFOControlSource, a control source that gives values for specific timestamps based on several periodic waveforms. Fixes #459717. * tests/check/libs/controller.c: (GST_START_TEST), (gst_controller_suite): * docs/libs/gstreamer-libs-docs.sgml: * docs/libs/gstreamer-libs-sections.txt: * docs/libs/gstreamer-libs.types: Add documentation and unit tests for GstLFOControlSource.
64 lines
2.3 KiB
C
64 lines
2.3 KiB
C
/* GStreamer
|
|
*
|
|
* Copyright (C) 2007 Sebastian Dröge <slomo@circular-chaos.org>
|
|
*
|
|
* gstlfocontrolsourceprivate.h: Private declarations for the
|
|
* GstLFOControlSource
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __GST_LFO_CONTROL_SOURCE_PRIVATE_H__
|
|
#define __GST_LFO_CONTROL_SOURCE_PRIVATE_H__
|
|
|
|
typedef struct _GstWaveformImplementation
|
|
{
|
|
GstControlSourceGetValue get_int;
|
|
GstControlSourceGetValueArray get_int_value_array;
|
|
GstControlSourceGetValue get_uint;
|
|
GstControlSourceGetValueArray get_uint_value_array;
|
|
GstControlSourceGetValue get_long;
|
|
GstControlSourceGetValueArray get_long_value_array;
|
|
GstControlSourceGetValue get_ulong;
|
|
GstControlSourceGetValueArray get_ulong_value_array;
|
|
GstControlSourceGetValue get_int64;
|
|
GstControlSourceGetValueArray get_int64_value_array;
|
|
GstControlSourceGetValue get_uint64;
|
|
GstControlSourceGetValueArray get_uint64_value_array;
|
|
GstControlSourceGetValue get_float;
|
|
GstControlSourceGetValueArray get_float_value_array;
|
|
GstControlSourceGetValue get_double;
|
|
GstControlSourceGetValueArray get_double_value_array;
|
|
} GstWaveformImplementation;
|
|
|
|
struct _GstLFOControlSourcePrivate
|
|
{
|
|
GType type; /* type of the handled property */
|
|
GType base; /* base-type of the handled property */
|
|
|
|
GValue minimum_value; /* min value for the handled property */
|
|
GValue maximum_value; /* max value for the handled property */
|
|
|
|
GstLFOWaveform waveform;
|
|
gdouble frequency;
|
|
GstClockTime period;
|
|
GstClockTime timeshift;
|
|
GValue amplitude;
|
|
GValue offset;
|
|
};
|
|
|
|
#endif /* __GST_LFO_CONTROL_SOURCE_PRIVATE_H__ */
|
|
|