licensing, name and description changes
Original commit message from CVS: licensing, name and description changes
This commit is contained in:
parent
59c9b655e1
commit
7b26b4d950
24
ChangeLog
24
ChangeLog
@ -1,3 +1,27 @@
|
|||||||
|
2005-08-14 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* ext/aalib/gstaasink.c:
|
||||||
|
aalib is LGPL, so this plugin can be LGPL
|
||||||
|
* ext/arts/gst_arts.c: (plugin_init):
|
||||||
|
rename, we don't like underscores
|
||||||
|
* ext/audiofile/gstaf.c:
|
||||||
|
* ext/sndfile/gstsf.c:
|
||||||
|
rename, we like a descriptive plugin name
|
||||||
|
* ext/gconf/gstgconfelements.c:
|
||||||
|
change description a little
|
||||||
|
* ext/musicbrainz/gsttrm.c:
|
||||||
|
musicbrainz is LGPL, so plugin can be LGPL
|
||||||
|
* ext/raw1394/gst1394.c:
|
||||||
|
rename, we like all-digit names
|
||||||
|
* gst/equalizer/gstiirequalizer.c:
|
||||||
|
* gst/fdsrc/gstfdsrc.c:
|
||||||
|
* gst/multifilesink/gstmultifilesink.c:
|
||||||
|
rename
|
||||||
|
* gst/virtualdub/gstvirtualdub.c:
|
||||||
|
use GST_PLUGIN_DEFINE
|
||||||
|
* sys/dxr3/dxr3init.c:
|
||||||
|
only uses system headers, and code is LGPL, so plugin is LGPL
|
||||||
|
|
||||||
2005-08-13 Tim-Philipp Müller <tim at centricular dot net>
|
2005-08-13 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/mad/Makefile.am:
|
* ext/mad/Makefile.am:
|
||||||
|
@ -548,4 +548,4 @@ GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"aasink",
|
"aasink",
|
||||||
"ASCII Art video sink",
|
"ASCII Art video sink",
|
||||||
plugin_init, VERSION, "GPL", GST_PACKAGE, GST_ORIGIN)
|
plugin_init, VERSION, "LGPL", GST_PACKAGE, GST_ORIGIN)
|
||||||
|
@ -45,5 +45,5 @@ plugin_init (GstPlugin * plugin)
|
|||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"gconfelements",
|
"gconfelements",
|
||||||
"Plugin contains plugins wrapping the GStreamer/GConf audio/video output settings",
|
"elements wrapping the GStreamer/GConf audio/video output settings",
|
||||||
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)
|
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)
|
||||||
|
@ -38,6 +38,6 @@ plugin_init (GstPlugin * plugin)
|
|||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"gst1394",
|
"1394",
|
||||||
"Source for DV data via IEEE1394 interface",
|
"Source for DV data via IEEE1394 interface",
|
||||||
plugin_init, VERSION, "LGPL", GST_PACKAGE, GST_ORIGIN);
|
plugin_init, VERSION, "LGPL", GST_PACKAGE, GST_ORIGIN);
|
||||||
|
@ -219,8 +219,7 @@ static void
|
|||||||
setup_filter (GstIirEqualizer * equ, SecondOrderFilter * filter, gdouble gain,
|
setup_filter (GstIirEqualizer * equ, SecondOrderFilter * filter, gdouble gain,
|
||||||
gdouble frequency)
|
gdouble frequency)
|
||||||
{
|
{
|
||||||
gdouble q =
|
gdouble q = pow (HIGHEST_FREQ / LOWEST_FREQ,
|
||||||
pow (HIGHEST_FREQ / LOWEST_FREQ,
|
|
||||||
1.0 / (equ->freq_count - 1)) * equ->bandwidth;
|
1.0 / (equ->freq_count - 1)) * equ->bandwidth;
|
||||||
gdouble theta = frequency * 2 * M_PI;
|
gdouble theta = frequency * 2 * M_PI;
|
||||||
|
|
||||||
@ -341,64 +340,64 @@ gst_iir_equalizer_get_property (GObject * object, guint prop_id,
|
|||||||
|
|
||||||
/* start of code that is type specific */
|
/* start of code that is type specific */
|
||||||
|
|
||||||
#define CREATE_OPTIMIZED_FUNCTIONS(TYPE,BIG_TYPE,MIN_VAL,MAX_VAL) \
|
#define CREATE_OPTIMIZED_FUNCTIONS(TYPE,BIG_TYPE,MIN_VAL,MAX_VAL) \
|
||||||
typedef struct { \
|
typedef struct { \
|
||||||
TYPE x1, x2; /* history of input values for a filter */ \
|
TYPE x1, x2; /* history of input values for a filter */ \
|
||||||
TYPE y1, y2; /* history of output values for a filter */ \
|
TYPE y1, y2; /* history of output values for a filter */ \
|
||||||
} SecondOrderHistory ## TYPE; \
|
} SecondOrderHistory ## TYPE; \
|
||||||
\
|
\
|
||||||
static inline TYPE \
|
static inline TYPE \
|
||||||
one_step_ ## TYPE (SecondOrderFilter *filter, \
|
one_step_ ## TYPE (SecondOrderFilter *filter, \
|
||||||
SecondOrderHistory ## TYPE *history, TYPE input) \
|
SecondOrderHistory ## TYPE *history, TYPE input) \
|
||||||
{ \
|
{ \
|
||||||
/* calculate output */ \
|
/* calculate output */ \
|
||||||
TYPE output = filter->alpha * (input - history->x2) + \
|
TYPE output = filter->alpha * (input - history->x2) + \
|
||||||
filter->gamma * history->y1 - filter->beta * history->y2; \
|
filter->gamma * history->y1 - filter->beta * history->y2; \
|
||||||
/* update history */ \
|
/* update history */ \
|
||||||
history->y2 = history->y1; \
|
history->y2 = history->y1; \
|
||||||
history->y1 = output; \
|
history->y1 = output; \
|
||||||
history->x2 = history->x1; \
|
history->x2 = history->x1; \
|
||||||
history->x1 = input; \
|
history->x1 = input; \
|
||||||
\
|
\
|
||||||
return output; \
|
return output; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
static const guint history_size_ ## TYPE = sizeof (SecondOrderHistory ## TYPE); \
|
static const guint \
|
||||||
\
|
history_size_ ## TYPE = sizeof (SecondOrderHistory ## TYPE); \
|
||||||
static void \
|
\
|
||||||
gst_iir_equ_process_ ## TYPE (GstIirEqualizer *equ, guint8 *data, guint size, \
|
static void \
|
||||||
guint channels) \
|
gst_iir_equ_process_ ## TYPE (GstIirEqualizer *equ, guint8 *data, \
|
||||||
{ \
|
guint size, guint channels) \
|
||||||
guint frames = size / channels / sizeof (TYPE); \
|
{ \
|
||||||
guint i, c, f; \
|
guint frames = size / channels / sizeof (TYPE); \
|
||||||
BIG_TYPE cur; \
|
guint i, c, f; \
|
||||||
TYPE val; \
|
BIG_TYPE cur; \
|
||||||
\
|
TYPE val; \
|
||||||
for (i = 0; i < frames; i++) { \
|
\
|
||||||
for (c = 0; c < channels; c++) { \
|
for (i = 0; i < frames; i++) { \
|
||||||
SecondOrderHistory ## TYPE *history = equ->history; \
|
for (c = 0; c < channels; c++) { \
|
||||||
val = *((TYPE *) data); \
|
SecondOrderHistory ## TYPE *history = equ->history; \
|
||||||
cur = 0; \
|
val = *((TYPE *) data); \
|
||||||
for (f = 0; f < equ->freq_count; f++) { \
|
cur = 0; \
|
||||||
SecondOrderFilter *filter = &equ->filter[f]; \
|
for (f = 0; f < equ->freq_count; f++) { \
|
||||||
\
|
SecondOrderFilter *filter = &equ->filter[f]; \
|
||||||
cur += one_step_ ## TYPE (filter, history, val); \
|
\
|
||||||
history++; \
|
cur += one_step_ ## TYPE (filter, history, val); \
|
||||||
} \
|
history++; \
|
||||||
cur += val * 0.25; \
|
} \
|
||||||
cur = CLAMP (cur, MIN_VAL, MAX_VAL); \
|
cur += val * 0.25; \
|
||||||
*((TYPE *) data) = (TYPE) cur; \
|
cur = CLAMP (cur, MIN_VAL, MAX_VAL); \
|
||||||
data += sizeof (TYPE); \
|
*((TYPE *) data) = (TYPE) cur; \
|
||||||
} \
|
data += sizeof (TYPE); \
|
||||||
} \
|
} \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
CREATE_OPTIMIZED_FUNCTIONS (gint16, gint, -32768, 32767)
|
CREATE_OPTIMIZED_FUNCTIONS (gint16, gint, -32768, 32767);
|
||||||
CREATE_OPTIMIZED_FUNCTIONS (gfloat, gfloat, -1.0, 1.0)
|
CREATE_OPTIMIZED_FUNCTIONS (gfloat, gfloat, -1.0, 1.0);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_iir_equalizer_filter_inplace (GstAudiofilter * filter,
|
gst_iir_equalizer_filter_inplace (GstAudiofilter * filter, GstBuffer * buf)
|
||||||
GstBuffer * buf)
|
|
||||||
{
|
{
|
||||||
GstIirEqualizer *equ = GST_IIR_EQUALIZER (filter);
|
GstIirEqualizer *equ = GST_IIR_EQUALIZER (filter);
|
||||||
|
|
||||||
@ -435,6 +434,6 @@ plugin_init (GstPlugin * plugin)
|
|||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"gstequalizer",
|
"equalizer",
|
||||||
"GStreamer equalizers",
|
"GStreamer equalizers",
|
||||||
plugin_init, VERSION, "LGPL", GST_PACKAGE, GST_ORIGIN)
|
plugin_init, VERSION, "LGPL", GST_PACKAGE, GST_ORIGIN)
|
||||||
|
@ -295,6 +295,6 @@ plugin_init (GstPlugin * plugin)
|
|||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"gstfdsrc",
|
"fdsrc",
|
||||||
"A source for fd (file descriptors)",
|
"A source that reads from a file descriptor",
|
||||||
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)
|
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user