From 44a822b29f1d901110f383eccd293a1eb9e6dd41 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Tue, 16 Jun 2009 19:41:02 +0200 Subject: effectv: Remove get_unit_size implementations The default on from GstVideoFilter handles this already. --- gst/effectv/gstvertigo.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'gst/effectv/gstvertigo.c') diff --git a/gst/effectv/gstvertigo.c b/gst/effectv/gstvertigo.c index 3c00fd7f..b2996c85 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); } -- cgit