| Index: source/libvpx/test/convolve_test.cc
|
| ===================================================================
|
| --- source/libvpx/test/convolve_test.cc (revision 284462)
|
| +++ source/libvpx/test/convolve_test.cc (working copy)
|
| @@ -21,28 +21,28 @@
|
| #include "vpx_ports/mem.h"
|
|
|
| namespace {
|
| -typedef void (*convolve_fn_t)(const uint8_t *src, ptrdiff_t src_stride,
|
| - uint8_t *dst, ptrdiff_t dst_stride,
|
| - const int16_t *filter_x, int filter_x_stride,
|
| - const int16_t *filter_y, int filter_y_stride,
|
| - int w, int h);
|
| +typedef void (*ConvolveFunc)(const uint8_t *src, ptrdiff_t src_stride,
|
| + uint8_t *dst, ptrdiff_t dst_stride,
|
| + const int16_t *filter_x, int filter_x_stride,
|
| + const int16_t *filter_y, int filter_y_stride,
|
| + int w, int h);
|
|
|
| struct ConvolveFunctions {
|
| - ConvolveFunctions(convolve_fn_t h8, convolve_fn_t h8_avg,
|
| - convolve_fn_t v8, convolve_fn_t v8_avg,
|
| - convolve_fn_t hv8, convolve_fn_t hv8_avg)
|
| + ConvolveFunctions(ConvolveFunc h8, ConvolveFunc h8_avg,
|
| + ConvolveFunc v8, ConvolveFunc v8_avg,
|
| + ConvolveFunc hv8, ConvolveFunc hv8_avg)
|
| : h8_(h8), v8_(v8), hv8_(hv8), h8_avg_(h8_avg), v8_avg_(v8_avg),
|
| hv8_avg_(hv8_avg) {}
|
|
|
| - convolve_fn_t h8_;
|
| - convolve_fn_t v8_;
|
| - convolve_fn_t hv8_;
|
| - convolve_fn_t h8_avg_;
|
| - convolve_fn_t v8_avg_;
|
| - convolve_fn_t hv8_avg_;
|
| + ConvolveFunc h8_;
|
| + ConvolveFunc v8_;
|
| + ConvolveFunc hv8_;
|
| + ConvolveFunc h8_avg_;
|
| + ConvolveFunc v8_avg_;
|
| + ConvolveFunc hv8_avg_;
|
| };
|
|
|
| -typedef std::tr1::tuple<int, int, const ConvolveFunctions*> convolve_param_t;
|
| +typedef std::tr1::tuple<int, int, const ConvolveFunctions *> ConvolveParam;
|
|
|
| // Reference 8-tap subpixel filter, slightly modified to fit into this test.
|
| #define VP9_FILTER_WEIGHT 128
|
| @@ -169,7 +169,7 @@
|
| output_width, output_height);
|
| }
|
|
|
| -class ConvolveTest : public ::testing::TestWithParam<convolve_param_t> {
|
| +class ConvolveTest : public ::testing::TestWithParam<ConvolveParam> {
|
| public:
|
| static void SetUpTestCase() {
|
| // Force input_ to be unaligned, output to be 16 byte aligned.
|
|
|