diff options
author | James Darnley <jdarnley@obe.tv> | 2017-06-01 15:28:29 +0200 |
---|---|---|
committer | James Darnley <jdarnley@obe.tv> | 2017-06-20 13:34:38 +0200 |
commit | 8781330d80e3cd1bd3af2a2a2c630ae26779dedd (patch) | |
tree | d0a3fbaf8e6751cc6ec9dc12ddf93420c4a43b29 /libavcodec/x86/simple_idct10.asm | |
parent | e3db94302c795a955d97566eaba8a0b0dfef788c (diff) | |
download | ffmpeg-8781330d80e3cd1bd3af2a2a2c630ae26779dedd.tar.gz |
avcodec/x86: cleanup simple_idct10
Use named arguments for the functions so we can remove a define. The
stride/linesize argument is now ptrdiff_t type so we no longer need to
sign extend the register.
Diffstat (limited to 'libavcodec/x86/simple_idct10.asm')
-rw-r--r-- | libavcodec/x86/simple_idct10.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/x86/simple_idct10.asm b/libavcodec/x86/simple_idct10.asm index 5dee533de0..7cfd33eaa3 100644 --- a/libavcodec/x86/simple_idct10.asm +++ b/libavcodec/x86/simple_idct10.asm @@ -68,21 +68,21 @@ CONST_DEC w7_min_w5, W7sh2, -W5sh2 SECTION .text %macro idct_fn 0 -cglobal simple_idct10, 1, 1, 16 +cglobal simple_idct10, 1, 1, 16, block IDCT_FN "", 12, "", 19 RET -cglobal simple_idct10_put, 3, 3, 16 +cglobal simple_idct10_put, 3, 3, 16, pixels, lsize, block IDCT_FN "", 12, "", 19, 0, pw_1023 RET -cglobal simple_idct12, 1, 1, 16 +cglobal simple_idct12, 1, 1, 16, block ; coeffs are already 15bits, adding the offset would cause ; overflow in the input IDCT_FN "", 15, pw_2, 16 RET -cglobal simple_idct12_put, 3, 3, 16 +cglobal simple_idct12_put, 3, 3, 16, pixels, lsize, block ; range isn't known, so the C simple_idct range is used ; Also, using a bias on input overflows, so use the bias ; on output of the first butterfly instead |