File: SearchLoop0A.inc

package info (click to toggle)
transcode 3%3A1.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 11,644 kB
  • sloc: ansic: 116,927; sh: 11,468; xml: 2,849; makefile: 1,891; perl: 1,492; pascal: 526; php: 191; python: 144; sed: 43
file content (15 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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("(%%edi, %%ecx)", "(%%esi, %%ecx)")  // center, in old and new