mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
frei0r: Remove custom get_unit_size implementation
This is already handled by the default one from GstVideoFilter
This commit is contained in:
parent
ab0a9e3694
commit
abffe58d43
2 changed files with 2 additions and 18 deletions
|
@ -45,8 +45,8 @@ AC_LIBTOOL_WIN32_DLL
|
||||||
AM_PROG_LIBTOOL
|
AM_PROG_LIBTOOL
|
||||||
|
|
||||||
dnl *** required versions of GStreamer stuff ***
|
dnl *** required versions of GStreamer stuff ***
|
||||||
GST_REQ=0.10.23
|
GST_REQ=0.10.23.1
|
||||||
GSTPB_REQ=0.10.23
|
GSTPB_REQ=0.10.23.1
|
||||||
|
|
||||||
dnl *** autotools stuff ****
|
dnl *** autotools stuff ****
|
||||||
|
|
||||||
|
|
|
@ -35,20 +35,6 @@ typedef struct
|
||||||
GstFrei0rFuncTable ftable;
|
GstFrei0rFuncTable ftable;
|
||||||
} GstFrei0rFilterClassData;
|
} GstFrei0rFilterClassData;
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gst_frei0r_filter_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
|
|
||||||
guint * size)
|
|
||||||
{
|
|
||||||
GstVideoFormat fmt;
|
|
||||||
gint width, height;
|
|
||||||
|
|
||||||
if (!gst_video_format_parse_caps (caps, &fmt, &width, &height))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
*size = gst_video_format_get_size (fmt, width, height);
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_frei0r_filter_set_caps (GstBaseTransform * trans, GstCaps * incaps,
|
gst_frei0r_filter_set_caps (GstBaseTransform * trans, GstCaps * incaps,
|
||||||
GstCaps * outcaps)
|
GstCaps * outcaps)
|
||||||
|
@ -199,8 +185,6 @@ gst_frei0r_filter_class_init (GstFrei0rFilterClass * klass,
|
||||||
templ = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, caps);
|
templ = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, caps);
|
||||||
gst_element_class_add_pad_template (gstelement_class, templ);
|
gst_element_class_add_pad_template (gstelement_class, templ);
|
||||||
|
|
||||||
gsttrans_class->get_unit_size =
|
|
||||||
GST_DEBUG_FUNCPTR (gst_frei0r_filter_get_unit_size);
|
|
||||||
gsttrans_class->set_caps = GST_DEBUG_FUNCPTR (gst_frei0r_filter_set_caps);
|
gsttrans_class->set_caps = GST_DEBUG_FUNCPTR (gst_frei0r_filter_set_caps);
|
||||||
gsttrans_class->stop = GST_DEBUG_FUNCPTR (gst_frei0r_filter_stop);
|
gsttrans_class->stop = GST_DEBUG_FUNCPTR (gst_frei0r_filter_stop);
|
||||||
gsttrans_class->transform = GST_DEBUG_FUNCPTR (gst_frei0r_filter_transform);
|
gsttrans_class->transform = GST_DEBUG_FUNCPTR (gst_frei0r_filter_transform);
|
||||||
|
|
Loading…
Reference in a new issue