summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-10-08 03:15:51 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-10-08 03:15:51 +0000
commitd9fb26125bf23c92f87ff6f9be2a074adac15bb6 (patch)
tree5c0655af4920a36414cc526115fc98f0cba856de /src
parent27b806d47a9255561e2cebe33ff6106118a0ca14 (diff)
downloadxine-lib-d9fb26125bf23c92f87ff6f9be2a074adac15bb6.tar.gz
xine-lib-d9fb26125bf23c92f87ff6f9be2a074adac15bb6.tar.bz2
- add scalerbob method (drop half of the lines and let the hardware/vo driver
do the scaling) - add cheap mode. no image format conversion, less cpu usage, not 100% accurate CVS patchset: 5469 CVS date: 2003/10/08 03:15:51
Diffstat (limited to 'src')
-rw-r--r--src/post/deinterlace/plugins/Makefile.am3
-rw-r--r--src/post/deinterlace/plugins/scalerbob.c49
2 files changed, 51 insertions, 1 deletions
diff --git a/src/post/deinterlace/plugins/Makefile.am b/src/post/deinterlace/plugins/Makefile.am
index ff605dd6d..f08fa250a 100644
--- a/src/post/deinterlace/plugins/Makefile.am
+++ b/src/post/deinterlace/plugins/Makefile.am
@@ -15,7 +15,8 @@ libdeinterlaceplugins_la_SOURCES = \
linearblend.c \
vfir.c \
weave.c \
- greedy2frame.c
+ greedy2frame.c \
+ scalerbob.c
libdeinterlaceplugins_la_LIBADD = $(XINE_LIB)
libdeinterlaceplugins_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@
diff --git a/src/post/deinterlace/plugins/scalerbob.c b/src/post/deinterlace/plugins/scalerbob.c
new file mode 100644
index 000000000..a4e785edd
--- /dev/null
+++ b/src/post/deinterlace/plugins/scalerbob.c
@@ -0,0 +1,49 @@
+/**
+ * Dummy plugin for 'scalerbob' support.
+ *
+ * Copyright (C) 2002 Billy Biggs <vektor@dumbterm.net>.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <stdio.h>
+#include "speedy.h"
+#include "deinterlace.h"
+
+static deinterlace_method_t scalerbobmethod =
+{
+ DEINTERLACE_PLUGIN_API_VERSION,
+ "Overlay Bob",
+ "OverlayBob",
+ 1,
+ 0,
+ 1,
+ 0,
+ 0,
+ 1,
+ 0,
+ 0,
+ 0
+};
+
+#ifdef BUILD_TVTIME_PLUGINS
+void deinterlace_plugin_init( void )
+#else
+void scalerbob_plugin_init( void )
+#endif
+{
+ register_deinterlace_method( &scalerbobmethod );
+}
+