diff options
Diffstat (limited to 'gst/effectv/gstwarp.c')
-rw-r--r-- | gst/effectv/gstwarp.c | 23 |
1 files changed, 0 insertions, 23 deletions
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); } |