Mercurial > mplayer.hg
comparison libmpcodecs/vf_ivtc.c @ 18104:7b408d60de9e
add support for intel mac. mp3lib is not fixed yet.
author | nplourde |
---|---|
date | Sat, 15 Apr 2006 20:46:54 +0000 |
parents | 20aca9baf5d8 |
children | 6334c14b38eb |
comparison
equal
deleted
inserted
replaced
18103:26ea12332e67 | 18104:7b408d60de9e |
---|---|
3 #include <string.h> | 3 #include <string.h> |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "mp_msg.h" | 6 #include "mp_msg.h" |
7 #include "cpudetect.h" | 7 #include "cpudetect.h" |
8 #include "asmalign.h" | |
8 | 9 |
9 #include "img_format.h" | 10 #include "img_format.h" |
10 #include "mp_image.h" | 11 #include "mp_image.h" |
11 #include "vf.h" | 12 #include "vf.h" |
12 | 13 |
65 "movl $4, %%ecx \n\t" | 66 "movl $4, %%ecx \n\t" |
66 "pxor %%mm4, %%mm4 \n\t" // 4 even difference sums | 67 "pxor %%mm4, %%mm4 \n\t" // 4 even difference sums |
67 "pxor %%mm5, %%mm5 \n\t" // 4 odd difference sums | 68 "pxor %%mm5, %%mm5 \n\t" // 4 odd difference sums |
68 "pxor %%mm7, %%mm7 \n\t" // all zeros | 69 "pxor %%mm7, %%mm7 \n\t" // all zeros |
69 | 70 |
70 ".balign 16 \n\t" | 71 ASMALIGN16 |
71 "1: \n\t" | 72 "1: \n\t" |
72 | 73 |
73 // Even difference | 74 // Even difference |
74 "movq (%%"REG_S"), %%mm0 \n\t" | 75 "movq (%%"REG_S"), %%mm0 \n\t" |
75 "movq (%%"REG_S"), %%mm2 \n\t" | 76 "movq (%%"REG_S"), %%mm2 \n\t" |
125 "movl $4, %%ecx \n\t" | 126 "movl $4, %%ecx \n\t" |
126 "pxor %%mm4, %%mm4 \n\t" // Past spacial noise | 127 "pxor %%mm4, %%mm4 \n\t" // Past spacial noise |
127 "pxor %%mm5, %%mm5 \n\t" // Temporal noise | 128 "pxor %%mm5, %%mm5 \n\t" // Temporal noise |
128 "pxor %%mm6, %%mm6 \n\t" // Current spacial noise | 129 "pxor %%mm6, %%mm6 \n\t" // Current spacial noise |
129 | 130 |
130 ".balign 16 \n\t" | 131 ASMALIGN16 |
131 "2: \n\t" | 132 "2: \n\t" |
132 | 133 |
133 "movq (%%"REG_S"), %%mm0 \n\t" | 134 "movq (%%"REG_S"), %%mm0 \n\t" |
134 "movq (%%"REG_S",%%"REG_a"), %%mm1 \n\t" | 135 "movq (%%"REG_S",%%"REG_a"), %%mm1 \n\t" |
135 "add %%"REG_a", %%"REG_S" \n\t" | 136 "add %%"REG_a", %%"REG_S" \n\t" |
179 "movl $4, %%ecx \n\t" | 180 "movl $4, %%ecx \n\t" |
180 "pxor %%mm4, %%mm4 \n\t" | 181 "pxor %%mm4, %%mm4 \n\t" |
181 "pxor %%mm5, %%mm5 \n\t" | 182 "pxor %%mm5, %%mm5 \n\t" |
182 "pxor %%mm6, %%mm6 \n\t" | 183 "pxor %%mm6, %%mm6 \n\t" |
183 | 184 |
184 ".balign 16 \n\t" | 185 ASMALIGN16 |
185 "3: \n\t" | 186 "3: \n\t" |
186 | 187 |
187 "movq (%%"REG_S"), %%mm0 \n\t" | 188 "movq (%%"REG_S"), %%mm0 \n\t" |
188 "movq (%%"REG_S",%%"REG_a"), %%mm1 \n\t" | 189 "movq (%%"REG_S",%%"REG_a"), %%mm1 \n\t" |
189 "add %%"REG_a", %%"REG_S" \n\t" | 190 "add %%"REG_a", %%"REG_S" \n\t" |