summaryrefslogtreecommitdiff
path: root/libavcodec/x86/x86util.asm
diff options
context:
space:
mode:
authorDaniel Kang <daniel.d.kang@gmail.com>2011-07-03 14:56:09 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2011-07-08 15:59:29 -0700
commitc0483d0c7a8f12564f615dcd73890bcc2f7c2796 (patch)
tree6e3235406090fbfa18849d5eb5a4f4a723629163 /libavcodec/x86/x86util.asm
parent5c391a161a1f71dcdafd3f59b45d80220845f501 (diff)
H.264: Add x86 assembly for 10-bit H.264 predict functions
Mainly ported from 8-bit H.264 predict. Some code ported from x264. LGPL ok by author. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/x86/x86util.asm')
-rw-r--r--libavcodec/x86/x86util.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/x86/x86util.asm b/libavcodec/x86/x86util.asm
index 141e96000c..45196625fe 100644
--- a/libavcodec/x86/x86util.asm
+++ b/libavcodec/x86/x86util.asm
@@ -528,6 +528,14 @@
%endif
%endmacro
+%macro SPLATD 2-3 0
+%if mmsize == 16
+ pshufd %1, %2, (%3)*0x55
+%else
+ pshufw %1, %2, (%3)*0x11 + ((%3)+1)*0x44
+%endif
+%endmacro
+
%macro CLIPW 3 ;(dst, min, max)
pmaxsw %1, %2
pminsw %1, %3