summaryrefslogtreecommitdiffstats
path: root/gst/deinterlace/tvtime/tomsmocomp/SearchLoop0A.inc
diff options
context:
space:
mode:
Diffstat (limited to 'gst/deinterlace/tvtime/tomsmocomp/SearchLoop0A.inc')
-rw-r--r--gst/deinterlace/tvtime/tomsmocomp/SearchLoop0A.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/gst/deinterlace/tvtime/tomsmocomp/SearchLoop0A.inc b/gst/deinterlace/tvtime/tomsmocomp/SearchLoop0A.inc
new file mode 100644
index 00000000..b1d9aeca
--- /dev/null
+++ b/gst/deinterlace/tvtime/tomsmocomp/SearchLoop0A.inc
@@ -0,0 +1,15 @@
+// -*- c++ -*-
+
+// Searches just the center pixel, in both the old
+// and new fields, but takes averages. This is an even
+// pixel address. Any chroma match will be used. (YUY2)
+// We best like finding 0 motion so we will bias everything we found previously
+// up by a little, and adjust later
+
+#ifdef IS_SSE2
+ "paddusb "_ONES", %%xmm7\n\t" // bias toward no motion
+#else
+ "paddusb "_ONES", %%mm7\n\t" // bias toward no motion
+#endif
+
+ MERGE4PIXavg("(%%"XDI", %%"XCX")", "(%%"XSI", %%"XCX")") // center, in old and new