diff options
author | Jim Bankoski <jimbankoski@google.com> | 2016-07-15 08:27:34 -0700 |
---|---|---|
committer | Jim Bankoski <jimbankoski@google.com> | 2016-07-15 08:27:34 -0700 |
commit | 0dc69c70f70bb320101064fa0dc0643e3d266f57 (patch) | |
tree | 0e809b8bb0bbdb227fd2a4cad3954e3730f25590 /vpx_dsp/mips | |
parent | 7eec1f31b50e05f6fe06bccda8db08d75a6ff0f2 (diff) | |
download | libvpx-0dc69c70f70bb320101064fa0dc0643e3d266f57.tar libvpx-0dc69c70f70bb320101064fa0dc0643e3d266f57.tar.gz libvpx-0dc69c70f70bb320101064fa0dc0643e3d266f57.tar.bz2 libvpx-0dc69c70f70bb320101064fa0dc0643e3d266f57.zip |
postproc : fix function parameters for noise functions.
Change-Id: I582b6307f28bfc987dcf8910379a52c6f679173c
Diffstat (limited to 'vpx_dsp/mips')
-rw-r--r-- | vpx_dsp/mips/add_noise_msa.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/vpx_dsp/mips/add_noise_msa.c b/vpx_dsp/mips/add_noise_msa.c index 366770c0d..c66c93c58 100644 --- a/vpx_dsp/mips/add_noise_msa.c +++ b/vpx_dsp/mips/add_noise_msa.c @@ -11,17 +11,16 @@ #include <stdlib.h> #include "./macros_msa.h" -void vpx_plane_add_noise_msa(uint8_t *start_ptr, char *noise, - char blackclamp[16], char whiteclamp[16], - char bothclamp[16], uint32_t width, - uint32_t height, int32_t pitch) { +void vpx_plane_add_noise_msa(uint8_t *start_ptr, const int8_t *noise, + int blackclamp, int whiteclamp, + int width, int height, int32_t pitch) { uint32_t i, j; for (i = 0; i < height / 2; ++i) { uint8_t *pos0_ptr = start_ptr + (2 * i) * pitch; - int8_t *ref0_ptr = (int8_t *)(noise + (rand() & 0xff)); + const int8_t *ref0_ptr = noise + (rand() & 0xff); uint8_t *pos1_ptr = start_ptr + (2 * i + 1) * pitch; - int8_t *ref1_ptr = (int8_t *)(noise + (rand() & 0xff)); + const int8_t *ref1_ptr = noise + (rand() & 0xff); for (j = width / 16; j--;) { v16i8 temp00_s, temp01_s; v16u8 temp00, temp01, black_clamp, white_clamp; @@ -32,8 +31,8 @@ void vpx_plane_add_noise_msa(uint8_t *start_ptr, char *noise, ref0 = LD_UB(ref0_ptr); pos1 = LD_UB(pos1_ptr); ref1 = LD_UB(ref1_ptr); - black_clamp = (v16u8)__msa_fill_b(blackclamp[0]); - white_clamp = (v16u8)__msa_fill_b(whiteclamp[0]); + black_clamp = (v16u8)__msa_fill_b(blackclamp); + white_clamp = (v16u8)__msa_fill_b(whiteclamp); temp00 = (pos0 < black_clamp); pos0 = __msa_bmnz_v(pos0, black_clamp, temp00); temp01 = (pos1 < black_clamp); |