summaryrefslogtreecommitdiff
path: root/src/post/deinterlace/plugins/x86-64_macros.inc
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2005-05-27 15:22:52 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2005-05-27 15:22:52 +0000
commitce3c57412188a0edc4d6bd819960bf72bf097e5d (patch)
treefbcc0feca9d6ab0fa70bba503801c6003d6d3449 /src/post/deinterlace/plugins/x86-64_macros.inc
parentf1df8986d6b78198afc52808e9ffa78524ef5978 (diff)
downloadxine-lib-ce3c57412188a0edc4d6bd819960bf72bf097e5d.tar.gz
xine-lib-ce3c57412188a0edc4d6bd819960bf72bf097e5d.tar.bz2
material for xine 1.1: new quality deinterlacer GreedyH from dscaler.
(actually ported dscaler->kdetv->tvtime->xine) obs: i'm not yet considering this feature for 1.0.2 since every time i add new asm code the build gets broken for some specific gcc version or something... CVS patchset: 7563 CVS date: 2005/05/27 15:22:52
Diffstat (limited to 'src/post/deinterlace/plugins/x86-64_macros.inc')
-rw-r--r--src/post/deinterlace/plugins/x86-64_macros.inc81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/post/deinterlace/plugins/x86-64_macros.inc b/src/post/deinterlace/plugins/x86-64_macros.inc
new file mode 100644
index 000000000..3dfd9b63a
--- /dev/null
+++ b/src/post/deinterlace/plugins/x86-64_macros.inc
@@ -0,0 +1,81 @@
+/***************************************************************************
+ KdetvDScalerFilter_x86-64.inc
+ -----------------------------
+ begin : Thu Sep 26 2004
+ copyright : (C) 2004 by Dirk Ziegelmeier
+ email : dziegel@gmx.de
+ ***************************************************************************/
+
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+/*
+ * This file is copied from TVTIME's sources.
+ * Original author: Achim Schneider <batchall@mordor.ch>
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifndef XAX
+
+#if defined (ARCH_X86)
+
+#define XAX "eax"
+#define XBX "ebx"
+#define XCX "ecx"
+#define XDX "edx"
+#define XSI "esi"
+#define XDI "edi"
+#define XSP "esp"
+#define MOVX "movl"
+#define LEAX "leal"
+#define DECX "decl"
+#define PUSHX "pushl"
+#define POPX "popl"
+#define CMPX "cmpl"
+#define ADDX "addl"
+#define SHLX "shll"
+#define SHRX "shrl"
+#define SUBX "subl"
+
+#elif defined (ARCH_X86_64)
+
+#define XAX "rax"
+#define XBX "rbx"
+#define XCX "rcx"
+#define XDX "rdx"
+#define XSI "rsi"
+#define XDI "rdi"
+#define XSP "rsp"
+#define MOVX "movq"
+#define LEAX "leaq"
+#define DECX "decq"
+#define PUSHX "pushq"
+#define POPX "popq"
+#define CMPX "cmpq"
+#define ADDX "addq"
+#define SHLX "shlq"
+#define SHRX "shrq"
+#define SUBX "subq"
+
+#else
+#error Undefined architecture. Define either ARCH_X86 or ARCH_X86_64.
+#endif
+
+#endif