diff options
author | James Almer <jamrial@gmail.com> | 2014-06-23 17:01:03 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-23 22:11:18 +0200 |
commit | 476bd3c7e41f4e9cc96a4d4f7a9e4f8a8237a48c (patch) | |
tree | b883bdc1ed0905cd737d7ee7528770fcf2c86547 /libavcodec/x86/bswapdsp.asm | |
parent | d7463c681363d6057601e705d0bf775738529841 (diff) | |
download | ffmpeg-476bd3c7e41f4e9cc96a4d4f7a9e4f8a8237a48c.tar.gz |
x86/dsputil: move put_signed_pixels_clamped out of bswapdsp.asm
It's still a dsputil function
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/bswapdsp.asm')
-rw-r--r-- | libavcodec/x86/bswapdsp.asm | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/libavcodec/x86/bswapdsp.asm b/libavcodec/x86/bswapdsp.asm index df02970710..ec060c93b6 100644 --- a/libavcodec/x86/bswapdsp.asm +++ b/libavcodec/x86/bswapdsp.asm @@ -138,53 +138,3 @@ BSWAP32_BUF INIT_XMM ssse3 BSWAP32_BUF - -;-------------------------------------------------------------------------- -;void ff_put_signed_pixels_clamped(const int16_t *block, uint8_t *pixels, -; int line_size) -;-------------------------------------------------------------------------- - -%macro PUT_SIGNED_PIXELS_CLAMPED_HALF 1 - mova m1, [blockq+mmsize*0+%1] - mova m2, [blockq+mmsize*2+%1] -%if mmsize == 8 - mova m3, [blockq+mmsize*4+%1] - mova m4, [blockq+mmsize*6+%1] -%endif - packsswb m1, [blockq+mmsize*1+%1] - packsswb m2, [blockq+mmsize*3+%1] -%if mmsize == 8 - packsswb m3, [blockq+mmsize*5+%1] - packsswb m4, [blockq+mmsize*7+%1] -%endif - paddb m1, m0 - paddb m2, m0 -%if mmsize == 8 - paddb m3, m0 - paddb m4, m0 - movq [pixelsq+lsizeq*0], m1 - movq [pixelsq+lsizeq*1], m2 - movq [pixelsq+lsizeq*2], m3 - movq [pixelsq+lsize3q ], m4 -%else - movq [pixelsq+lsizeq*0], m1 - movhps [pixelsq+lsizeq*1], m1 - movq [pixelsq+lsizeq*2], m2 - movhps [pixelsq+lsize3q ], m2 -%endif -%endmacro - -%macro PUT_SIGNED_PIXELS_CLAMPED 1 -cglobal put_signed_pixels_clamped, 3, 4, %1, block, pixels, lsize, lsize3 - mova m0, [pb_80] - lea lsize3q, [lsizeq*3] - PUT_SIGNED_PIXELS_CLAMPED_HALF 0 - lea pixelsq, [pixelsq+lsizeq*4] - PUT_SIGNED_PIXELS_CLAMPED_HALF 64 - RET -%endmacro - -INIT_MMX mmx -PUT_SIGNED_PIXELS_CLAMPED 0 -INIT_XMM sse2 -PUT_SIGNED_PIXELS_CLAMPED 3 |