Cleanup: Remove const for params passed by value
BUG=aomedia:448
Change-Id: Ieff977fca8a5033ddef2871a194870f59301ad8f
diff --git a/test/av1_convolve_optimz_test.cc b/test/av1_convolve_optimz_test.cc
index 85edb2d..fd0f6db 100644
--- a/test/av1_convolve_optimz_test.cc
+++ b/test/av1_convolve_optimz_test.cc
@@ -24,12 +24,12 @@
typedef void (*ConvInit)();
typedef void (*conv_filter_t)(const uint8_t *, int, uint8_t *, int, int, int,
- const InterpFilterParams, const int, int,
+ const InterpFilterParams, int, int,
ConvolveParams *);
#if CONFIG_HIGHBITDEPTH
typedef void (*hbd_conv_filter_t)(const uint16_t *, int, uint16_t *, int, int,
- int, const InterpFilterParams, const int, int,
- int, int);
+ int, const InterpFilterParams, int, int, int,
+ int);
#endif
// Test parameter list:
diff --git a/test/av1_quantize_test.cc b/test/av1_quantize_test.cc
index 43acd6f..b5d1531 100644
--- a/test/av1_quantize_test.cc
+++ b/test/av1_quantize_test.cc
@@ -26,7 +26,7 @@
const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr,
const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr,
tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr,
- const int16_t *scan, const int16_t *iscan, const int log_scale);
+ const int16_t *scan, const int16_t *iscan, int log_scale);
struct QuantizeFuncParams {
QuantizeFuncParams(QuantizeFpFunc qF = NULL, QuantizeFpFunc qRefF = NULL,
diff --git a/test/avg_test.cc b/test/avg_test.cc
index 529672d..b040f6a 100644
--- a/test/avg_test.cc
+++ b/test/avg_test.cc
@@ -213,7 +213,7 @@
for (int i = 0; i < satd_size_; ++i) src_[i] = rnd_.Rand16();
}
- void Check(const int expected) {
+ void Check(int expected) {
int total;
ASM_REGISTER_STATE_CHECK(total = satd_func_(src_, satd_size_));
EXPECT_EQ(expected, total);
diff --git a/test/encode_test_driver.cc b/test/encode_test_driver.cc
index a9e1f70..80f155a 100644
--- a/test/encode_test_driver.cc
+++ b/test/encode_test_driver.cc
@@ -120,11 +120,10 @@
passes_ = 1;
}
-static bool compare_plane(const uint8_t *const buf1, const int stride1,
- const uint8_t *const buf2, const int stride2,
- const int w, const int h, int *const mismatch_row,
- int *const mismatch_col, int *const mismatch_pix1,
- int *const mismatch_pix2) {
+static bool compare_plane(const uint8_t *const buf1, int stride1,
+ const uint8_t *const buf2, int stride2, int w, int h,
+ int *const mismatch_row, int *const mismatch_col,
+ int *const mismatch_pix1, int *const mismatch_pix2) {
int r, c;
for (r = 0; r < h; ++r) {