diff options
author | James Zern <jzern@google.com> | 2015-09-23 17:45:27 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2015-09-23 17:45:57 -0700 |
commit | e7c8b71a862806da78ba3ebe90767417be033658 (patch) | |
tree | 293a6af9146b9f325a5422020b4f0e0de79783ed /vp10/encoder/dct.c | |
parent | af631e1f1959cf4961e1abeb7f547d6a9114fbcd (diff) | |
download | libvpx-e7c8b71a862806da78ba3ebe90767417be033658.tar libvpx-e7c8b71a862806da78ba3ebe90767417be033658.tar.gz libvpx-e7c8b71a862806da78ba3ebe90767417be033658.tar.bz2 libvpx-e7c8b71a862806da78ba3ebe90767417be033658.zip |
Revert "remove static from fdct4/8/16/32"
This reverts commit 8903b9fa8345726efbe9b92a759c98cc21c4c14b.
there is no reason for these to be global
Change-Id: I66a31c06f8426aeca348ef12d9b9ab59d6d5e55d
Diffstat (limited to 'vp10/encoder/dct.c')
-rw-r--r-- | vp10/encoder/dct.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/vp10/encoder/dct.c b/vp10/encoder/dct.c index 78f151ebb..80ace06cd 100644 --- a/vp10/encoder/dct.c +++ b/vp10/encoder/dct.c @@ -34,7 +34,7 @@ static INLINE void range_check(const tran_low_t *input, const int size, #endif } -void vp10_fdct4(const tran_low_t *input, tran_low_t *output) { +static void fdct4(const tran_low_t *input, tran_low_t *output) { tran_high_t temp; tran_low_t step[4]; @@ -70,7 +70,7 @@ void vp10_fdct4(const tran_low_t *input, tran_low_t *output) { range_check(output, 4, 13); } -void vp10_fdct8(const tran_low_t *input, tran_low_t *output) { +static void fdct8(const tran_low_t *input, tran_low_t *output) { tran_high_t temp; tran_low_t step[8]; @@ -148,7 +148,7 @@ void vp10_fdct8(const tran_low_t *input, tran_low_t *output) { range_check(output, 8, 14); } -void vp10_fdct16(const tran_low_t *input, tran_low_t *output) { +static void fdct16(const tran_low_t *input, tran_low_t *output) { tran_high_t temp; tran_low_t step[16]; @@ -322,8 +322,7 @@ void vp10_fdct16(const tran_low_t *input, tran_low_t *output) { range_check(output, 16, 16); } -// TODO(angiebird): Unify this with vp10_fwd_txfm.c: vp10_fdct32 -void vp10_fdct32_local(const tran_low_t *input, tran_low_t *output) { +static void fdct32(const tran_low_t *input, tran_low_t *output) { tran_high_t temp; tran_low_t step[32]; @@ -996,24 +995,24 @@ static void fadst16(const tran_low_t *input, tran_low_t *output) { } static const transform_2d FHT_4[] = { - { vp10_fdct4, vp10_fdct4 }, // DCT_DCT = 0 - { fadst4, vp10_fdct4 }, // ADST_DCT = 1 - { vp10_fdct4, fadst4 }, // DCT_ADST = 2 - { fadst4, fadst4 } // ADST_ADST = 3 + { fdct4, fdct4 }, // DCT_DCT = 0 + { fadst4, fdct4 }, // ADST_DCT = 1 + { fdct4, fadst4 }, // DCT_ADST = 2 + { fadst4, fadst4 } // ADST_ADST = 3 }; static const transform_2d FHT_8[] = { - { vp10_fdct8, vp10_fdct8 }, // DCT_DCT = 0 - { fadst8, vp10_fdct8 }, // ADST_DCT = 1 - { vp10_fdct8, fadst8 }, // DCT_ADST = 2 - { fadst8, fadst8 } // ADST_ADST = 3 + { fdct8, fdct8 }, // DCT_DCT = 0 + { fadst8, fdct8 }, // ADST_DCT = 1 + { fdct8, fadst8 }, // DCT_ADST = 2 + { fadst8, fadst8 } // ADST_ADST = 3 }; static const transform_2d FHT_16[] = { - { vp10_fdct16, vp10_fdct16 }, // DCT_DCT = 0 - { fadst16, vp10_fdct16 }, // ADST_DCT = 1 - { vp10_fdct16, fadst16 }, // DCT_ADST = 2 - { fadst16, fadst16 } // ADST_ADST = 3 + { fdct16, fdct16 }, // DCT_DCT = 0 + { fadst16, fdct16 }, // ADST_DCT = 1 + { fdct16, fadst16 }, // DCT_ADST = 2 + { fadst16, fadst16 } // ADST_ADST = 3 }; void vp10_fht4x4_c(const int16_t *input, tran_low_t *output, @@ -1124,7 +1123,7 @@ void vp10_fdct8x8_quant_c(const int16_t *input, int stride, // Rows for (i = 0; i < 8; ++i) { - vp10_fdct8(&intermediate[i * 8], &coeff_ptr[i * 8]); + fdct8(&intermediate[i * 8], &coeff_ptr[i * 8]); for (j = 0; j < 8; ++j) coeff_ptr[j + i * 8] /= 2; } |