summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-16 19:41:02 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-16 19:41:02 +0200
commit44a822b29f1d901110f383eccd293a1eb9e6dd41 (patch)
tree74e91ed29eb1b0955acc9b1bb193a05d651014f8
parente040ae4ffcbb17eb4230df6e29890c63f4705351 (diff)
effectv: Remove get_unit_size implementations
The default on from GstVideoFilter handles this already.
-rw-r--r--gst/effectv/gstaging.c23
-rw-r--r--gst/effectv/gstdice.c23
-rw-r--r--gst/effectv/gstedge.c23
-rw-r--r--gst/effectv/gstquark.c23
-rw-r--r--gst/effectv/gstrev.c23
-rw-r--r--gst/effectv/gstshagadelic.c24
-rw-r--r--gst/effectv/gstvertigo.c23
-rw-r--r--gst/effectv/gstwarp.c23
8 files changed, 0 insertions, 185 deletions
diff --git a/gst/effectv/gstaging.c b/gst/effectv/gstaging.c
index 829fa3f0e..4fe1d7768 100644
--- a/gst/effectv/gstaging.c
+++ b/gst/effectv/gstaging.c
@@ -138,28 +138,6 @@ gst_agingtv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_agingtv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstAgingTV *filter = GST_AGINGTV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static inline guint
fastrand (void)
{
@@ -465,7 +443,6 @@ gst_agingtv_class_init (GstAgingTVClass * klass)
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_agingtv_set_caps);
- trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_agingtv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_agingtv_transform);
trans_class->start = GST_DEBUG_FUNCPTR (gst_agingtv_start);
}
diff --git a/gst/effectv/gstdice.c b/gst/effectv/gstdice.c
index 1208ea5d5..fb00907dc 100644
--- a/gst/effectv/gstdice.c
+++ b/gst/effectv/gstdice.c
@@ -115,28 +115,6 @@ gst_dicetv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_dicetv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstDiceTV *filter = GST_DICETV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static inline guint
fastrand (void)
{
@@ -329,7 +307,6 @@ gst_dicetv_class_init (GstDiceTVClass * klass)
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_dicetv_set_caps);
- trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_dicetv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_dicetv_transform);
}
diff --git a/gst/effectv/gstedge.c b/gst/effectv/gstedge.c
index 14afc8b45..debe2a241 100644
--- a/gst/effectv/gstedge.c
+++ b/gst/effectv/gstedge.c
@@ -108,28 +108,6 @@ gst_edgetv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_edgetv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstEdgeTV *filter = GST_EDGETV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static GstFlowReturn
gst_edgetv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out)
{
@@ -269,7 +247,6 @@ gst_edgetv_class_init (GstEdgeTVClass * klass)
gobject_class->finalize = gst_edgetv_finalize;
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_edgetv_set_caps);
- trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_edgetv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_edgetv_transform);
trans_class->start = GST_DEBUG_FUNCPTR (gst_edgetv_start);
}
diff --git a/gst/effectv/gstquark.c b/gst/effectv/gstquark.c
index 6cef1c93e..0f145d86d 100644
--- a/gst/effectv/gstquark.c
+++ b/gst/effectv/gstquark.c
@@ -114,28 +114,6 @@ gst_quarktv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_quarktv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstQuarkTV *filter = GST_QUARKTV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static inline guint
fastrand (void)
{
@@ -320,7 +298,6 @@ gst_quarktv_class_init (GstQuarkTVClass * klass)
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_quarktv_set_caps);
- trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_quarktv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_quarktv_transform);
trans_class->start = GST_DEBUG_FUNCPTR (gst_quarktv_start);
}
diff --git a/gst/effectv/gstrev.c b/gst/effectv/gstrev.c
index 256976889..f0d5302b4 100644
--- a/gst/effectv/gstrev.c
+++ b/gst/effectv/gstrev.c
@@ -126,28 +126,6 @@ gst_revtv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_revtv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstRevTV *filter = GST_REVTV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static GstFlowReturn
gst_revtv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out)
{
@@ -267,7 +245,6 @@ gst_revtv_class_init (GstRevTVClass * klass)
1, 200, 50, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_revtv_set_caps);
- trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_revtv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_revtv_transform);
}
diff --git a/gst/effectv/gstshagadelic.c b/gst/effectv/gstshagadelic.c
index 849944908..30336319b 100644
--- a/gst/effectv/gstshagadelic.c
+++ b/gst/effectv/gstshagadelic.c
@@ -118,28 +118,6 @@ gst_shagadelictv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_shagadelictv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstShagadelicTV *filter = GST_SHAGADELICTV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static inline guint
fastrand (void)
{
@@ -300,8 +278,6 @@ gst_shagadelictv_class_init (GstShagadelicTVClass * klass)
gobject_class->finalize = gst_shagadelictv_finalize;
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_shagadelictv_set_caps);
- trans_class->get_unit_size =
- GST_DEBUG_FUNCPTR (gst_shagadelictv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_shagadelictv_transform);
}
diff --git a/gst/effectv/gstvertigo.c b/gst/effectv/gstvertigo.c
index 3c00fd7fe..b2996c856 100644
--- a/gst/effectv/gstvertigo.c
+++ b/gst/effectv/gstvertigo.c
@@ -119,28 +119,6 @@ gst_vertigotv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_vertigotv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstVertigoTV *filter = GST_VERTIGOTV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static void
gst_vertigotv_set_parms (GstVertigoTV * filter)
{
@@ -334,7 +312,6 @@ gst_vertigotv_class_init (GstVertigoTVClass * klass)
trans_class->start = GST_DEBUG_FUNCPTR (gst_vertigotv_start);
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_vertigotv_set_caps);
- trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_vertigotv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_vertigotv_transform);
}
diff --git a/gst/effectv/gstwarp.c b/gst/effectv/gstwarp.c
index 0a65326ee..b87353719 100644
--- a/gst/effectv/gstwarp.c
+++ b/gst/effectv/gstwarp.c
@@ -130,28 +130,6 @@ gst_warptv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_warptv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstWarpTV *filter = GST_WARPTV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static void
initSinTable (GstWarpTV * filter)
{
@@ -313,7 +291,6 @@ gst_warptv_class_init (GstWarpTVClass * klass)
trans_class->start = GST_DEBUG_FUNCPTR (gst_warptv_start);
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_warptv_set_caps);
- trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_warptv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_warptv_transform);
}