diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-05-06 17:17:20 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-05-06 17:35:44 -0400 |
commit | a15b66e23dd29ace82b9de218ea243b88d343890 (patch) | |
tree | d6503b5dbc4a0e14ca470fe3d66d5f03237ecfee /gst | |
parent | 72f7b6326839caecc979d64eba3c0e459ddb4af9 (diff) | |
download | farstream-a15b66e23dd29ace82b9de218ea243b88d343890.tar.gz |
videoanyrate: Use the Fs prefix internally too
Diffstat (limited to 'gst')
-rw-r--r-- | gst/fsvideoanyrate/videoanyrate.c | 24 | ||||
-rw-r--r-- | gst/fsvideoanyrate/videoanyrate.h | 37 |
2 files changed, 30 insertions, 31 deletions
diff --git a/gst/fsvideoanyrate/videoanyrate.c b/gst/fsvideoanyrate/videoanyrate.c index 2d73b5d9..6580bd3b 100644 --- a/gst/fsvideoanyrate/videoanyrate.c +++ b/gst/fsvideoanyrate/videoanyrate.c @@ -63,20 +63,20 @@ enum static GstCaps * -gst_videoanyrate_transform_caps (GstBaseTransform *trans, +fs_videoanyrate_transform_caps (GstBaseTransform *trans, GstPadDirection direction, GstCaps *caps, GstCaps *filter); static GstCaps * -gst_videoanyrate_fixate_caps (GstBaseTransform * base, +fs_videoanyrate_fixate_caps (GstBaseTransform * base, GstPadDirection direction, GstCaps * caps, GstCaps * othercaps); -G_DEFINE_TYPE (GstVideoanyrate, gst_videoanyrate, GST_TYPE_BASE_TRANSFORM); +G_DEFINE_TYPE (FsVideoanyrate, fs_videoanyrate, GST_TYPE_BASE_TRANSFORM); static void -gst_videoanyrate_class_init (GstVideoanyrateClass *klass) +fs_videoanyrate_class_init (FsVideoanyrateClass *klass) { GstElementClass *element_class; GstBaseTransformClass *gstbasetransform_class; @@ -100,18 +100,18 @@ gst_videoanyrate_class_init (GstVideoanyrateClass *klass) "Olivier Crete <olivier.crete@collabora.com>"); gstbasetransform_class->transform_caps = - GST_DEBUG_FUNCPTR(gst_videoanyrate_transform_caps); + GST_DEBUG_FUNCPTR (fs_videoanyrate_transform_caps); gstbasetransform_class->fixate_caps = - GST_DEBUG_FUNCPTR(gst_videoanyrate_fixate_caps); + GST_DEBUG_FUNCPTR (fs_videoanyrate_fixate_caps); } static void -gst_videoanyrate_init (GstVideoanyrate *videoanyrate) +fs_videoanyrate_init (FsVideoanyrate *videoanyrate) { } static GstCaps * -gst_videoanyrate_transform_caps (GstBaseTransform *trans, +fs_videoanyrate_transform_caps (GstBaseTransform *trans, GstPadDirection direction, GstCaps *caps, GstCaps *filter) @@ -146,7 +146,7 @@ gst_videoanyrate_transform_caps (GstBaseTransform *trans, } static GstCaps * -gst_videoanyrate_fixate_caps (GstBaseTransform * base, +fs_videoanyrate_fixate_caps (GstBaseTransform * base, GstPadDirection direction, GstCaps * caps, GstCaps * othercaps) { GstStructure *ins, *outs; @@ -186,15 +186,15 @@ gst_videoanyrate_fixate_caps (GstBaseTransform * base, } gboolean -gst_videoanyrate_plugin_init (GstPlugin *plugin) +fs_videoanyrate_plugin_init (GstPlugin *plugin) { return gst_element_register (plugin, "fsvideoanyrate", - GST_RANK_MARGINAL, GST_TYPE_VIDEOANYRATE); + GST_RANK_MARGINAL, FS_TYPE_VIDEOANYRATE); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, fsvideoanyrate, "Videoanyrate", - gst_videoanyrate_plugin_init, VERSION, "LGPL", "Farstream", + fs_videoanyrate_plugin_init, VERSION, "LGPL", "Farstream", "http://www.freedesktop.org/wiki/Software/Farstream") diff --git a/gst/fsvideoanyrate/videoanyrate.h b/gst/fsvideoanyrate/videoanyrate.h index db9dd06e..744523e6 100644 --- a/gst/fsvideoanyrate/videoanyrate.h +++ b/gst/fsvideoanyrate/videoanyrate.h @@ -20,8 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __GST_VIDEOANYRATE_H__ -#define __GST_VIDEOANYRATE_H__ +#ifndef __FS_VIDEOANYRATE_H__ +#define __FS_VIDEOANYRATE_H__ #include <gst/gst.h> #include <gst/base/gstbasetransform.h> @@ -29,35 +29,34 @@ G_BEGIN_DECLS /* #define's don't like whitespacey bits */ -#define GST_TYPE_VIDEOANYRATE \ - (gst_videoanyrate_get_type()) -#define GST_VIDEOANYRATE(obj) \ +#define FS_TYPE_VIDEOANYRATE \ + (fs_videoanyrate_get_type()) +#define FS_VIDEOANYRATE(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), \ - GST_TYPE_VIDEOANYRATE,GstVideoanyrate)) -#define GST_VIDEOANYRATE_CLASS(klass) \ + FS_TYPE_VIDEOANYRATE,FsVideoanyrate)) +#define FS_VIDEOANYRATE_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass), \ - GST_TYPE_VIDEOANYRATE,GstVideoanyrateClass)) -#define GST_IS_VIDEOANYRATE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEOANYRATE)) -#define GST_IS_VIDEOANYRATE_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEOANYRATE)) + FS_TYPE_VIDEOANYRATE,FsVideoanyrateClass)) +#define FS_IS_VIDEOANYRATE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),FS_TYPE_VIDEOANYRATE)) +#define FS_IS_VIDEOANYRATE_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),FS_TYPE_VIDEOANYRATE)) -typedef struct _GstVideoanyrate GstVideoanyrate; -typedef struct _GstVideoanyrateClass GstVideoanyrateClass; -typedef struct _GstVideoanyratePrivate GstVideoanyratePrivate; +typedef struct _FsVideoanyrate FsVideoanyrate; +typedef struct _FsVideoanyrateClass FsVideoanyrateClass; -struct _GstVideoanyrate +struct _FsVideoanyrate { GstBaseTransform parent; }; -struct _GstVideoanyrateClass +struct _FsVideoanyrateClass { GstBaseTransformClass parent_class; }; -GType gst_videoanyrate_get_type (void); +GType fs_videoanyrate_get_type (void); G_END_DECLS -#endif /* __GST_VIDEOANYRATE_H__ */ +#endif /* __FS_VIDEOANYRATE_H__ */ |