diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2017-11-21 08:32:01 +0100 |
---|---|---|
committer | Martin Vignali <martin.vignali@gmail.com> | 2017-11-21 09:00:38 +0100 |
commit | 48b7c45b0c6fa8f48eaa265f60bc672489ae97ee (patch) | |
tree | 7f0b4c0125ba5f74d4dba4c66c6e1da3e6876850 /libavcodec/x86 | |
parent | 6a7eb65e1b1f8daae035b7434c64a38865dc6428 (diff) | |
download | ffmpeg-48b7c45b0c6fa8f48eaa265f60bc672489ae97ee.tar.gz |
avcodec/x86/utvideodsp : make macro for func
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/utvideodsp.asm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libavcodec/x86/utvideodsp.asm b/libavcodec/x86/utvideodsp.asm index e44c1ea471..55ef127ccb 100644 --- a/libavcodec/x86/utvideodsp.asm +++ b/libavcodec/x86/utvideodsp.asm @@ -29,11 +29,10 @@ pw_1023: times 8 dw 1023 SECTION .text -INIT_XMM sse2 - ; void restore_rgb_planes(uint8_t *src_r, uint8_t *src_g, uint8_t *src_b, ; ptrdiff_t linesize_r, ptrdiff_t linesize_g, ptrdiff_t linesize_b, ; int width, int height) +%macro RESTORE_RGB_PLANES 0 cglobal restore_rgb_planes, 7 + ARCH_X86_64, 7 + ARCH_X86_64 * 2, 4, src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, w, h, x movsxdifnidn wq, wd add src_rq, wq @@ -68,7 +67,12 @@ DEFINE_ARGS src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, x sub hd, 1 jg .nextrow REP_RET +%endmacro + +INIT_XMM sse2 +RESTORE_RGB_PLANES +%macro RESTORE_RGB_PLANES10 0 cglobal restore_rgb_planes10, 7 + ARCH_X86_64, 7 + ARCH_X86_64 * 2, 5, src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, w, h, x shl wd, 1 shl linesize_rq, 1 @@ -109,3 +113,7 @@ DEFINE_ARGS src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, x sub hd, 1 jg .nextrow REP_RET +%endmacro + +INIT_XMM sse2 +RESTORE_RGB_PLANES10 |