diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2013-10-11 11:19:58 -0700 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2013-10-11 11:19:58 -0700 |
commit | 44195fda71a1784544d797cd331b625c083f6f89 (patch) | |
tree | 6f00ee31c84458d0b1c81772c411cafe64a86ae4 /vp9/common | |
parent | 6e21ca7635d7df38408bd67911a615a6eca684c7 (diff) | |
download | libvpx-44195fda71a1784544d797cd331b625c083f6f89.tar libvpx-44195fda71a1784544d797cd331b625c083f6f89.tar.gz libvpx-44195fda71a1784544d797cd331b625c083f6f89.tar.bz2 libvpx-44195fda71a1784544d797cd331b625c083f6f89.zip |
Adding const to the input argument of all 1D transforms.
Also adding static to iadst16_1d and fadst16 functions.
Change-Id: I13c7df3b776f0f8efc6e80099bdb0a2f6d29edaf
Diffstat (limited to 'vp9/common')
-rw-r--r-- | vp9/common/vp9_idct.c | 14 | ||||
-rw-r--r-- | vp9/common/vp9_idct.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/vp9/common/vp9_idct.c b/vp9/common/vp9_idct.c index 78d10877a..b1aed3084 100644 --- a/vp9/common/vp9_idct.c +++ b/vp9/common/vp9_idct.c @@ -96,7 +96,7 @@ void vp9_iwht4x4_1_add_c(int16_t *in, uint8_t *dest, int dest_stride) { } } -static void idct4_1d(int16_t *input, int16_t *output) { +static void idct4_1d(const int16_t *input, int16_t *output) { int16_t step[4]; int temp1, temp2; // stage 1 @@ -156,7 +156,7 @@ void vp9_idct4x4_1_add_c(int16_t *input, uint8_t *dest, int dest_stride) { } } -static void idct8_1d(int16_t *input, int16_t *output) { +static void idct8_1d(const int16_t *input, int16_t *output) { int16_t step1[8], step2[8]; int temp1, temp2; // stage 1 @@ -238,7 +238,7 @@ void vp9_idct8x8_1_add_c(int16_t *input, uint8_t *dest, int dest_stride) { } } -static void iadst4_1d(int16_t *input, int16_t *output) { +static void iadst4_1d(const int16_t *input, int16_t *output) { int s0, s1, s2, s3, s4, s5, s6, s7; int x0 = input[0]; @@ -311,7 +311,7 @@ void vp9_short_iht4x4_add_c(int16_t *input, uint8_t *dest, int dest_stride, + dest[j * dest_stride + i]); } } -static void iadst8_1d(int16_t *input, int16_t *output) { +static void iadst8_1d(const int16_t *input, int16_t *output) { int s0, s1, s2, s3, s4, s5, s6, s7; int x0 = input[7]; @@ -446,7 +446,7 @@ void vp9_idct8x8_10_add_c(int16_t *input, uint8_t *dest, } } -static void idct16_1d(int16_t *input, int16_t *output) { +static void idct16_1d(const int16_t *input, int16_t *output) { int16_t step1[16], step2[16]; int temp1, temp2; @@ -635,7 +635,7 @@ void vp9_idct16x16_256_add_c(int16_t *input, uint8_t *dest, int dest_stride) { } } -void iadst16_1d(int16_t *input, int16_t *output) { +static void iadst16_1d(const int16_t *input, int16_t *output) { int s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15; int x0 = input[15]; @@ -878,7 +878,7 @@ void vp9_idct16x16_1_add_c(int16_t *input, uint8_t *dest, } } -static void idct32_1d(int16_t *input, int16_t *output) { +static void idct32_1d(const int16_t *input, int16_t *output) { int16_t step1[32], step2[32]; int temp1, temp2; diff --git a/vp9/common/vp9_idct.h b/vp9/common/vp9_idct.h index e85404e7a..e34bbd83e 100644 --- a/vp9/common/vp9_idct.h +++ b/vp9/common/vp9_idct.h @@ -81,7 +81,7 @@ static INLINE int dct_const_round_shift(int input) { return rv; } -typedef void (*transform_1d)(int16_t*, int16_t*); +typedef void (*transform_1d)(const int16_t*, int16_t*); typedef struct { transform_1d cols, rows; // vertical and horizontal |