mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
ext/speex/: Miscellaneous clean-ups, among other things: speexenc => enc to enhance code readability; change speexenc...
Original commit message from CVS: * ext/speex/gstspeex.c: (plugin_init): * ext/speex/gstspeexenc.c: (gst_speex_enc_get_formats), (gst_speex_enc_setup_interfaces), (gst_speex_enc_base_init), (gst_speex_enc_class_init), (gst_speex_enc_finalize), (gst_speex_enc_sink_setcaps), (gst_speex_enc_convert_src), (gst_speex_enc_convert_sink), (gst_speex_enc_get_query_types), (gst_speex_enc_src_query), (gst_speex_enc_sink_query), (gst_speex_enc_init), (gst_speex_enc_create_metadata_buffer), (gst_speex_enc_set_last_msg), (gst_speex_enc_setup), (gst_speex_enc_buffer_from_data), (gst_speex_enc_push_buffer), (gst_speex_enc_set_header_on_caps), (gst_speex_enc_sinkevent), (gst_speex_enc_chain), (gst_speex_enc_get_property), (gst_speex_enc_set_property), (gst_speex_enc_change_state): * ext/speex/gstspeexenc.h: Miscellaneous clean-ups, among other things: speexenc => enc to enhance code readability; change speexenc => speex_enc; in chain function unref input buffer in case of error; take reference in event function; use boilerplate macro; use gst_pad_query_peer_* convenience functions.
This commit is contained in:
parent
35f4d69dec
commit
afef1cdc2a
4 changed files with 307 additions and 314 deletions
22
ChangeLog
22
ChangeLog
|
@ -1,3 +1,25 @@
|
||||||
|
2006-10-12 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* ext/speex/gstspeex.c: (plugin_init):
|
||||||
|
* ext/speex/gstspeexenc.c: (gst_speex_enc_get_formats),
|
||||||
|
(gst_speex_enc_setup_interfaces), (gst_speex_enc_base_init),
|
||||||
|
(gst_speex_enc_class_init), (gst_speex_enc_finalize),
|
||||||
|
(gst_speex_enc_sink_setcaps), (gst_speex_enc_convert_src),
|
||||||
|
(gst_speex_enc_convert_sink), (gst_speex_enc_get_query_types),
|
||||||
|
(gst_speex_enc_src_query), (gst_speex_enc_sink_query),
|
||||||
|
(gst_speex_enc_init), (gst_speex_enc_create_metadata_buffer),
|
||||||
|
(gst_speex_enc_set_last_msg), (gst_speex_enc_setup),
|
||||||
|
(gst_speex_enc_buffer_from_data), (gst_speex_enc_push_buffer),
|
||||||
|
(gst_speex_enc_set_header_on_caps), (gst_speex_enc_sinkevent),
|
||||||
|
(gst_speex_enc_chain), (gst_speex_enc_get_property),
|
||||||
|
(gst_speex_enc_set_property), (gst_speex_enc_change_state):
|
||||||
|
* ext/speex/gstspeexenc.h:
|
||||||
|
Miscellaneous clean-ups, among other things: speexenc => enc to
|
||||||
|
enhance code readability; change speexenc => speex_enc; in chain
|
||||||
|
function unref input buffer in case of error; take reference in
|
||||||
|
event function; use boilerplate macro; use gst_pad_query_peer_*
|
||||||
|
convenience functions.
|
||||||
|
|
||||||
2006-10-12 Tim-Philipp Müller <tim at centricular dot net>
|
2006-10-12 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/speex/gstspeexenc.c: (gst_speexenc_finalize),
|
* ext/speex/gstspeexenc.c: (gst_speexenc_finalize),
|
||||||
|
|
|
@ -30,7 +30,7 @@ plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "speexenc", GST_RANK_NONE,
|
if (!gst_element_register (plugin, "speexenc", GST_RANK_NONE,
|
||||||
GST_TYPE_SPEEXENC))
|
GST_TYPE_SPEEX_ENC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "speexdec", GST_RANK_PRIMARY,
|
if (!gst_element_register (plugin, "speexdec", GST_RANK_PRIMARY,
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
||||||
/* GStreamer
|
/* GStreamer Speex Encoder
|
||||||
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@ -18,8 +18,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef __GST_SPEEXENC_H__
|
#ifndef __GST_SPEEX_ENC_H__
|
||||||
#define __GST_SPEEXENC_H__
|
#define __GST_SPEEX_ENC_H__
|
||||||
|
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
@ -30,26 +30,26 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_SPEEXENC \
|
#define GST_TYPE_SPEEX_ENC \
|
||||||
(gst_speexenc_get_type())
|
(gst_speex_enc_get_type())
|
||||||
#define GST_SPEEXENC(obj) \
|
#define GST_SPEEX_ENC(obj) \
|
||||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SPEEXENC,GstSpeexEnc))
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SPEEX_ENC,GstSpeexEnc))
|
||||||
#define GST_SPEEXENC_CLASS(klass) \
|
#define GST_SPEEX_ENC_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SPEEXENC,GstSpeexEncClass))
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SPEEX_ENC,GstSpeexEncClass))
|
||||||
#define GST_IS_SPEEXENC(obj) \
|
#define GST_IS_SPEEX_ENC(obj) \
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SPEEXENC))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SPEEX_ENC))
|
||||||
#define GST_IS_SPEEXENC_CLASS(klass) \
|
#define GST_IS_SPEEX_ENC_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SPEEXENC))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SPEEX_ENC))
|
||||||
|
|
||||||
#define MAX_FRAME_SIZE 2000*2
|
#define MAX_FRAME_SIZE 2000*2
|
||||||
#define MAX_FRAME_BYTES 2000
|
#define MAX_FRAME_BYTES 2000
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
GST_SPEEXENC_MODE_AUTO,
|
GST_SPEEX_ENC_MODE_AUTO,
|
||||||
GST_SPEEXENC_MODE_UWB,
|
GST_SPEEX_ENC_MODE_UWB,
|
||||||
GST_SPEEXENC_MODE_WB,
|
GST_SPEEX_ENC_MODE_WB,
|
||||||
GST_SPEEXENC_MODE_NB,
|
GST_SPEEX_ENC_MODE_NB
|
||||||
} GstSpeexMode;
|
} GstSpeexMode;
|
||||||
|
|
||||||
typedef struct _GstSpeexEnc GstSpeexEnc;
|
typedef struct _GstSpeexEnc GstSpeexEnc;
|
||||||
|
@ -117,7 +117,7 @@ struct _GstSpeexEncClass {
|
||||||
void (*frame_encoded) (GstElement *element);
|
void (*frame_encoded) (GstElement *element);
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_speexenc_get_type(void);
|
GType gst_speex_enc_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue