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 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; 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);