summaryrefslogtreecommitdiffstats
path: root/gst/deinterlace2/gstdeinterlace2.h
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-16 17:41:37 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-16 17:42:27 +0200
commita32e180155f2d60f939432950f316558eee62796 (patch)
tree32e67a7b55b73b6738a19c25fb930063a17d9629 /gst/deinterlace2/gstdeinterlace2.h
parentffaef58b597dba7a256efe1c6cde5344cee4a6a8 (diff)
downloadgst-plugins-bad-a32e180155f2d60f939432950f316558eee62796.tar.gz
gst-plugins-bad-a32e180155f2d60f939432950f316558eee62796.tar.bz2
gst-plugins-bad-a32e180155f2d60f939432950f316558eee62796.zip
deinterlace2: Rename line_length to row_stride and remove output_stride
Diffstat (limited to 'gst/deinterlace2/gstdeinterlace2.h')
-rw-r--r--gst/deinterlace2/gstdeinterlace2.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gst/deinterlace2/gstdeinterlace2.h b/gst/deinterlace2/gstdeinterlace2.h
index ee40504b..1d2c3e1a 100644
--- a/gst/deinterlace2/gstdeinterlace2.h
+++ b/gst/deinterlace2/gstdeinterlace2.h
@@ -1,7 +1,7 @@
/*
* GStreamer
* Copyright (C) 2005 Martin Eikermann <meiker@upb.de>
- * Copyright (C) 2008 Sebastian Dröge <slomo@collabora.co.uk>
+ * Copyright (C) 2008-2009 Sebastian Dröge <slomo@collabora.co.uk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -187,12 +187,19 @@ typedef enum
GST_DEINTERLACE2_LAYOUT_BFF
} GstDeinterlace2FieldLayout;
+typedef enum {
+ GST_DEINTERLACE2_MODE_AUTO,
+ GST_DEINTERLACE2_MODE_INTERLACED
+} GstDeinterlace2Mode;
+
struct _GstDeinterlace2
{
GstElement parent;
GstPad *srcpad, *sinkpad;
+ GstDeinterlace2Mode mode;
+
GstDeinterlace2FieldLayout field_layout;
guint frame_size;
@@ -215,14 +222,11 @@ struct _GstDeinterlace2
GstPicture field_history[MAX_FIELD_HISTORY];
guint history_count;
- /* Overlay pitch (number of bytes between scanlines). */
- guint output_stride;
-
/* Number of bytes of actual data in each scanline. May be less than
OverlayPitch since the overlay's scanlines might have alignment
requirements. Generally equal to FrameWidth * 2.
*/
- guint line_length;
+ guint row_stride;
/* Number of pixels in each scanline. */
gint frame_width;