summaryrefslogtreecommitdiff
path: root/gst/ivtc
diff options
context:
space:
mode:
authorEdward Hervey <edward@collabora.com>2013-07-29 09:35:08 +0200
committerEdward Hervey <edward@collabora.com>2013-07-29 09:42:12 +0200
commit97426a1caac4abba03f43a5c4b6c6fcff30ba167 (patch)
tree48d2af2f49a72da383a97d2b7a00ae09799e3426 /gst/ivtc
parentbc84cd775fac9f6163526fba55d2f68dc3c067c1 (diff)
downloadgstreamer-plugins-bad-97426a1caac4abba03f43a5c4b6c6fcff30ba167.tar.gz
all: Fix for GST_DISABLE_GST_DEBUG
Where applicable, remove methods that don't do anything different than the default implementation.
Diffstat (limited to 'gst/ivtc')
-rw-r--r--gst/ivtc/gstcombdetect.c90
-rw-r--r--gst/ivtc/gstivtc.c92
2 files changed, 0 insertions, 182 deletions
diff --git a/gst/ivtc/gstcombdetect.c b/gst/ivtc/gstcombdetect.c
index df7de70f9..f69e65671 100644
--- a/gst/ivtc/gstcombdetect.c
+++ b/gst/ivtc/gstcombdetect.c
@@ -49,17 +49,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_comb_detect_debug_category);
/* prototypes */
-static void gst_comb_detect_set_property (GObject * object,
- guint property_id, const GValue * value, GParamSpec * pspec);
-static void gst_comb_detect_get_property (GObject * object,
- guint property_id, GValue * value, GParamSpec * pspec);
-static void gst_comb_detect_dispose (GObject * object);
-static void gst_comb_detect_finalize (GObject * object);
-
static GstCaps *gst_comb_detect_transform_caps (GstBaseTransform * trans,
GstPadDirection direction, GstCaps * caps, GstCaps * filter);
-static gboolean gst_comb_detect_start (GstBaseTransform * trans);
-static gboolean gst_comb_detect_stop (GstBaseTransform * trans);
static gboolean gst_comb_detect_set_info (GstVideoFilter * filter,
GstCaps * incaps, GstVideoInfo * in_info, GstCaps * outcaps,
GstVideoInfo * out_info);
@@ -106,7 +97,6 @@ G_DEFINE_TYPE_WITH_CODE (GstCombDetect, gst_comb_detect, GST_TYPE_VIDEO_FILTER,
static void
gst_comb_detect_class_init (GstCombDetectClass * klass)
{
- GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GstBaseTransformClass *base_transform_class =
GST_BASE_TRANSFORM_CLASS (klass);
GstVideoFilterClass *video_filter_class = GST_VIDEO_FILTER_CLASS (klass);
@@ -122,14 +112,8 @@ gst_comb_detect_class_init (GstCombDetectClass * klass)
"Comb Detect", "Video/Filter", "Detect combing artifacts in video stream",
"David Schleef <ds@schleef.org>");
- gobject_class->set_property = gst_comb_detect_set_property;
- gobject_class->get_property = gst_comb_detect_get_property;
- gobject_class->dispose = gst_comb_detect_dispose;
- gobject_class->finalize = gst_comb_detect_finalize;
base_transform_class->transform_caps =
GST_DEBUG_FUNCPTR (gst_comb_detect_transform_caps);
- base_transform_class->start = GST_DEBUG_FUNCPTR (gst_comb_detect_start);
- base_transform_class->stop = GST_DEBUG_FUNCPTR (gst_comb_detect_stop);
video_filter_class->set_info = GST_DEBUG_FUNCPTR (gst_comb_detect_set_info);
video_filter_class->transform_frame =
GST_DEBUG_FUNCPTR (gst_comb_detect_transform_frame);
@@ -141,59 +125,6 @@ gst_comb_detect_init (GstCombDetect * combdetect)
{
}
-void
-gst_comb_detect_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- GstCombDetect *combdetect = GST_COMB_DETECT (object);
-
- GST_DEBUG_OBJECT (combdetect, "set_property");
-
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- break;
- }
-}
-
-void
-gst_comb_detect_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
-{
- GstCombDetect *combdetect = GST_COMB_DETECT (object);
-
- GST_DEBUG_OBJECT (combdetect, "get_property");
-
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- break;
- }
-}
-
-void
-gst_comb_detect_dispose (GObject * object)
-{
- GstCombDetect *combdetect = GST_COMB_DETECT (object);
-
- GST_DEBUG_OBJECT (combdetect, "dispose");
-
- /* clean up as possible. may be called multiple times */
-
- G_OBJECT_CLASS (gst_comb_detect_parent_class)->dispose (object);
-}
-
-void
-gst_comb_detect_finalize (GObject * object)
-{
- GstCombDetect *combdetect = GST_COMB_DETECT (object);
-
- GST_DEBUG_OBJECT (combdetect, "finalize");
-
- /* clean up object here */
-
- G_OBJECT_CLASS (gst_comb_detect_parent_class)->finalize (object);
-}
static GstCaps *
gst_comb_detect_transform_caps (GstBaseTransform * trans,
@@ -243,27 +174,6 @@ gst_comb_detect_transform_caps (GstBaseTransform * trans,
return othercaps;
}
-static gboolean
-gst_comb_detect_start (GstBaseTransform * trans)
-{
- GstCombDetect *combdetect = GST_COMB_DETECT (trans);
-
- GST_DEBUG_OBJECT (combdetect, "start");
-
- /* initialize processing */
- return TRUE;
-}
-
-static gboolean
-gst_comb_detect_stop (GstBaseTransform * trans)
-{
- GstCombDetect *combdetect = GST_COMB_DETECT (trans);
-
- GST_DEBUG_OBJECT (combdetect, "stop");
-
- /* finalize processing */
- return TRUE;
-}
static gboolean
gst_comb_detect_set_info (GstVideoFilter * filter,
diff --git a/gst/ivtc/gstivtc.c b/gst/ivtc/gstivtc.c
index aaf6c6c63..3ece8e64d 100644
--- a/gst/ivtc/gstivtc.c
+++ b/gst/ivtc/gstivtc.c
@@ -59,21 +59,12 @@ GST_DEBUG_CATEGORY_STATIC (gst_ivtc_debug_category);
/* prototypes */
-static void gst_ivtc_set_property (GObject * object,
- guint property_id, const GValue * value, GParamSpec * pspec);
-static void gst_ivtc_get_property (GObject * object,
- guint property_id, GValue * value, GParamSpec * pspec);
-static void gst_ivtc_dispose (GObject * object);
-static void gst_ivtc_finalize (GObject * object);
-
static GstCaps *gst_ivtc_transform_caps (GstBaseTransform * trans,
GstPadDirection direction, GstCaps * caps, GstCaps * filter);
static GstCaps *gst_ivtc_fixate_caps (GstBaseTransform * trans,
GstPadDirection direction, GstCaps * caps, GstCaps * othercaps);
static gboolean gst_ivtc_set_caps (GstBaseTransform * trans, GstCaps * incaps,
GstCaps * outcaps);
-static gboolean gst_ivtc_start (GstBaseTransform * trans);
-static gboolean gst_ivtc_stop (GstBaseTransform * trans);
static gboolean gst_ivtc_sink_event (GstBaseTransform * trans,
GstEvent * event);
static GstFlowReturn gst_ivtc_transform (GstBaseTransform * trans,
@@ -123,7 +114,6 @@ G_DEFINE_TYPE_WITH_CODE (GstIvtc, gst_ivtc, GST_TYPE_BASE_TRANSFORM,
static void
gst_ivtc_class_init (GstIvtcClass * klass)
{
- GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GstBaseTransformClass *base_transform_class =
GST_BASE_TRANSFORM_CLASS (klass);
@@ -138,16 +128,10 @@ gst_ivtc_class_init (GstIvtcClass * klass)
"Inverse Telecine", "Video/Filter", "Inverse Telecine Filter",
"David Schleef <ds@schleef.org>");
- gobject_class->set_property = gst_ivtc_set_property;
- gobject_class->get_property = gst_ivtc_get_property;
- gobject_class->dispose = gst_ivtc_dispose;
- gobject_class->finalize = gst_ivtc_finalize;
base_transform_class->transform_caps =
GST_DEBUG_FUNCPTR (gst_ivtc_transform_caps);
base_transform_class->fixate_caps = GST_DEBUG_FUNCPTR (gst_ivtc_fixate_caps);
base_transform_class->set_caps = GST_DEBUG_FUNCPTR (gst_ivtc_set_caps);
- base_transform_class->start = GST_DEBUG_FUNCPTR (gst_ivtc_start);
- base_transform_class->stop = GST_DEBUG_FUNCPTR (gst_ivtc_stop);
base_transform_class->sink_event = GST_DEBUG_FUNCPTR (gst_ivtc_sink_event);
base_transform_class->transform = GST_DEBUG_FUNCPTR (gst_ivtc_transform);
}
@@ -157,60 +141,6 @@ gst_ivtc_init (GstIvtc * ivtc)
{
}
-void
-gst_ivtc_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- GstIvtc *ivtc = GST_IVTC (object);
-
- GST_DEBUG_OBJECT (ivtc, "set_property");
-
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- break;
- }
-}
-
-void
-gst_ivtc_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
-{
- GstIvtc *ivtc = GST_IVTC (object);
-
- GST_DEBUG_OBJECT (ivtc, "get_property");
-
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- break;
- }
-}
-
-void
-gst_ivtc_dispose (GObject * object)
-{
- GstIvtc *ivtc = GST_IVTC (object);
-
- GST_DEBUG_OBJECT (ivtc, "dispose");
-
- /* clean up as possible. may be called multiple times */
-
- G_OBJECT_CLASS (gst_ivtc_parent_class)->dispose (object);
-}
-
-void
-gst_ivtc_finalize (GObject * object)
-{
- GstIvtc *ivtc = GST_IVTC (object);
-
- GST_DEBUG_OBJECT (ivtc, "finalize");
-
- /* clean up object here */
-
- G_OBJECT_CLASS (gst_ivtc_parent_class)->finalize (object);
-}
-
static GstCaps *
gst_ivtc_transform_caps (GstBaseTransform * trans,
GstPadDirection direction, GstCaps * caps, GstCaps * filter)
@@ -296,28 +226,6 @@ gst_ivtc_set_caps (GstBaseTransform * trans, GstCaps * incaps,
return TRUE;
}
-/* states */
-static gboolean
-gst_ivtc_start (GstBaseTransform * trans)
-{
- GstIvtc *ivtc = GST_IVTC (trans);
-
- GST_DEBUG_OBJECT (ivtc, "start");
-
- return TRUE;
-}
-
-static gboolean
-gst_ivtc_stop (GstBaseTransform * trans)
-{
- GstIvtc *ivtc = GST_IVTC (trans);
-
- GST_DEBUG_OBJECT (ivtc, "stop");
- gst_ivtc_flush (ivtc);
-
- return TRUE;
-}
-
/* sink and src pad event handlers */
static gboolean
gst_ivtc_sink_event (GstBaseTransform * trans, GstEvent * event)