diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-06-28 19:14:40 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-06-28 19:14:40 +0000 |
commit | 0fecad09fe036eab15d114e898271b57a5650cc5 (patch) | |
tree | aa3d73ff5a2db192c5f17e39c2b9afc10cdf78ea /libavcodec/x86/vp8dsp.asm | |
parent | a173aa8940282346598c0c1d5068a20c1c62f4c1 (diff) | |
download | ffmpeg-0fecad09fe036eab15d114e898271b57a5650cc5.tar.gz |
Add x86 asm functions for VP8 put_pixels
Originally committed as revision 23858 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86/vp8dsp.asm')
-rw-r--r-- | libavcodec/x86/vp8dsp.asm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libavcodec/x86/vp8dsp.asm b/libavcodec/x86/vp8dsp.asm index dbaac86ad3..f70d0117ef 100644 --- a/libavcodec/x86/vp8dsp.asm +++ b/libavcodec/x86/vp8dsp.asm @@ -810,6 +810,46 @@ cglobal put_vp8_bilinear8_h_ssse3, 7,7,5 jg .nextrow REP_RET +cglobal put_vp8_pixels8_mmx, 5,5 +.nextrow: + movq mm0, [r2+r3*0] + movq mm1, [r2+r3*1] + lea r2, [r2+r3*2] + movq [r0+r1*0], mm0 + movq [r0+r1*1], mm1 + lea r0, [r0+r1*2] + sub r4d, 2 + jg .nextrow + REP_RET + +cglobal put_vp8_pixels16_mmx, 5,5 +.nextrow: + movq mm0, [r2+r3*0+0] + movq mm1, [r2+r3*0+8] + movq mm2, [r2+r3*1+0] + movq mm3, [r2+r3*1+8] + lea r2, [r2+r3*2] + movq [r0+r1*0+0], mm0 + movq [r0+r1*0+8], mm1 + movq [r0+r1*1+0], mm2 + movq [r0+r1*1+8], mm3 + lea r0, [r0+r1*2] + sub r4d, 2 + jg .nextrow + REP_RET + +cglobal put_vp8_pixels16_sse, 5,5,2 +.nextrow: + movups xmm0, [r2+r3*0] + movups xmm1, [r2+r3*1] + lea r2, [r2+r3*2] + movaps [r0+r1*0], xmm0 + movaps [r0+r1*1], xmm1 + lea r0, [r0+r1*2] + sub r4d, 2 + jg .nextrow + REP_RET + ;----------------------------------------------------------------------------- ; IDCT functions: ; |