diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-06-16 19:41:02 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-06-16 19:41:02 +0200 |
commit | 44a822b29f1d901110f383eccd293a1eb9e6dd41 (patch) | |
tree | 74e91ed29eb1b0955acc9b1bb193a05d651014f8 /gst/effectv/gstdice.c | |
parent | e040ae4ffcbb17eb4230df6e29890c63f4705351 (diff) |
effectv: Remove get_unit_size implementations
The default on from GstVideoFilter handles this already.
Diffstat (limited to 'gst/effectv/gstdice.c')
-rw-r--r-- | gst/effectv/gstdice.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gst/effectv/gstdice.c b/gst/effectv/gstdice.c index 1208ea5d..fb00907d 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); } |