From 4efa891f6f3a4bfc7782506daea17da81a94f8eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 22 Apr 2009 19:43:22 +0200 Subject: deinterlace2: Add documentation and integrate into the build system --- gst/deinterlace2/gstdeinterlace2.c | 108 +++++++++++++++++++++++++++++++++++++ gst/deinterlace2/gstdeinterlace2.h | 2 + 2 files changed, 110 insertions(+) (limited to 'gst') diff --git a/gst/deinterlace2/gstdeinterlace2.c b/gst/deinterlace2/gstdeinterlace2.c index 0440c61a..b293b43e 100644 --- a/gst/deinterlace2/gstdeinterlace2.c +++ b/gst/deinterlace2/gstdeinterlace2.c @@ -19,6 +19,20 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-deinterlace2 + * + * deinterlace2 deinterlaces interlaced video frames to progressive video frames. + * For this different algorithms can be selected which will be described later. + * + * + * Example launch line + * |[ + * gst-launch -v filesrc location=/path/to/file ! decodebin2 ! ffmpegcolorspace ! deinterlace2 ! ffmpegcolorspace ! autovideosink + * ]| This pipeline deinterlaces a video file with the default deinterlacing options. + * + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -482,6 +496,14 @@ gst_deinterlace2_class_init (GstDeinterlace2Class * klass) gobject_class->get_property = gst_deinterlace2_get_property; gobject_class->finalize = gst_deinterlace2_finalize; + /** + * GstDeinterlace2:mode + * + * This selects whether the deinterlacing methods should + * always be applied or if they should only be applied + * on content that has the "interlaced" flag on the caps. + * + */ g_object_class_install_property (gobject_class, PROP_MODE, g_param_spec_enum ("mode", "Mode", @@ -490,6 +512,79 @@ gst_deinterlace2_class_init (GstDeinterlace2Class * klass) DEFAULT_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS) ); + /** + * GstDeinterlace2:method + * + * Selects the different deinterlacing algorithms that can be used. + * These provide different quality and CPU usage. + * + * Some methods provide parameters which can be set by getting + * the "method" child via the #GstChildProxy interface and + * setting the appropiate properties on it. + * + * + * + * + * tomsmocomp + * Motion Adaptive: Motion Search + * + * + * + * + * greedyh + * Motion Adaptive: Advanced Detection + * + * + * + * + * greedyl + * Motion Adaptive: Simple Detection + * + * + * + * + * vfir + * Blur vertical + * + * + * + * + * linear + * Linear interpolation + * + * + * + * + * linearblend + * Linear interpolation in time domain + * + * + * + * + * scalerbob + * Double lines + * + * + * + * + * weave + * Weave + * + * + * + * + * weavetff + * Progressive: Top Field First + * + * + * + * + * weavebff + * Progressive: Bottom Field First + * + * + * + */ g_object_class_install_property (gobject_class, PROP_METHOD, g_param_spec_enum ("method", "Method", @@ -498,6 +593,13 @@ gst_deinterlace2_class_init (GstDeinterlace2Class * klass) DEFAULT_METHOD, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS) ); + /** + * GstDeinterlace2:fields + * + * This selects which fields should be output. If "all" is selected + * the output framerate will be double. + * + */ g_object_class_install_property (gobject_class, PROP_FIELDS, g_param_spec_enum ("fields", "fields", @@ -506,6 +608,12 @@ gst_deinterlace2_class_init (GstDeinterlace2Class * klass) DEFAULT_FIELDS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS) ); + /** + * GstDeinterlace2:layout + * + * This selects which fields is the first in time. + * + */ g_object_class_install_property (gobject_class, PROP_FIELD_LAYOUT, g_param_spec_enum ("tff", "tff", diff --git a/gst/deinterlace2/gstdeinterlace2.h b/gst/deinterlace2/gstdeinterlace2.h index 1d2c3e1a..de63f54e 100644 --- a/gst/deinterlace2/gstdeinterlace2.h +++ b/gst/deinterlace2/gstdeinterlace2.h @@ -198,6 +198,8 @@ struct _GstDeinterlace2 GstPad *srcpad, *sinkpad; + /* */ + GstDeinterlace2Mode mode; GstDeinterlace2FieldLayout field_layout; -- cgit v1.2.1