From db4afa6bd284d0e6a36151002d077a627c1ec5c3 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 14 May 2015 19:34:53 -0700 Subject: [PATCH 1/3] vpx_config.c: add vpx_codec include silences a missing prototype warning Change-Id: I31a11c8390ae58e9a99ecc7cdf2a36334fac3f65 --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index a8ff1aed7..310c42a50 100755 --- a/configure +++ b/configure @@ -726,6 +726,7 @@ CONFIGURE_ARGS="$@" process "$@" print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" cat <> ${BUILD_PFX}vpx_config.c +#include "vpx/vpx_codec.h" static const char* const cfg = "$CONFIGURE_ARGS"; const char *vpx_codec_build_config(void) {return cfg;} EOF From 26453e7b6776cbd09f62d581d6847c0a1b892823 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 14 May 2015 19:37:27 -0700 Subject: [PATCH 2/3] md5_utils.c: make a function static silences a missing prototype warning Change-Id: I982c9c70e0e9f94a5201559300cadb8bd22441f9 --- md5_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md5_utils.c b/md5_utils.c index 8fb26e208..f4f893a2d 100644 --- a/md5_utils.c +++ b/md5_utils.c @@ -24,7 +24,7 @@ #include "md5_utils.h" -void +static void byteSwap(UWORD32 *buf, unsigned words) { md5byte *p; From c47d868d995c1d214f8d0b93364a8f1372315b64 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 14 May 2015 19:38:34 -0700 Subject: [PATCH 3/3] fdct8x8_test: move functions to an anonymous namespace silences missing declaration warnings Change-Id: I9486c13c973df3d25fcdc2c3de9a0da783ce8fd6 --- test/fdct8x8_test.cc | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/test/fdct8x8_test.cc b/test/fdct8x8_test.cc index 4679516f4..5c0b09bb3 100644 --- a/test/fdct8x8_test.cc +++ b/test/fdct8x8_test.cc @@ -24,8 +24,27 @@ #include "vpx/vpx_integer.h" #include "vpx_ports/mem.h" +using libvpx_test::ACMRandom; + +namespace { + const int kNumCoeffs = 64; const double kPi = 3.141592653589793238462643383279502884; + +const int kSignBiasMaxDiff255 = 1500; +const int kSignBiasMaxDiff15 = 10000; + +typedef void (*FdctFunc)(const int16_t *in, tran_low_t *out, int stride); +typedef void (*IdctFunc)(const tran_low_t *in, uint8_t *out, int stride); +typedef void (*FhtFunc)(const int16_t *in, tran_low_t *out, int stride, + int tx_type); +typedef void (*IhtFunc)(const tran_low_t *in, uint8_t *out, int stride, + int tx_type); + +typedef std::tr1::tuple Dct8x8Param; +typedef std::tr1::tuple Ht8x8Param; +typedef std::tr1::tuple Idct8x8Param; + void reference_8x8_dct_1d(const double in[8], double out[8], int stride) { const double kInvSqrt2 = 0.707106781186547524400844362104; for (int k = 0; k < 8; k++) { @@ -60,23 +79,6 @@ void reference_8x8_dct_2d(const int16_t input[kNumCoeffs], } } -using libvpx_test::ACMRandom; - -namespace { - -const int kSignBiasMaxDiff255 = 1500; -const int kSignBiasMaxDiff15 = 10000; - -typedef void (*FdctFunc)(const int16_t *in, tran_low_t *out, int stride); -typedef void (*IdctFunc)(const tran_low_t *in, uint8_t *out, int stride); -typedef void (*FhtFunc)(const int16_t *in, tran_low_t *out, int stride, - int tx_type); -typedef void (*IhtFunc)(const tran_low_t *in, uint8_t *out, int stride, - int tx_type); - -typedef std::tr1::tuple Dct8x8Param; -typedef std::tr1::tuple Ht8x8Param; -typedef std::tr1::tuple Idct8x8Param; void fdct8x8_ref(const int16_t *in, tran_low_t *out, int stride, int tx_type) { vp9_fdct8x8_c(in, out, stride);