Remove const from int function parameters in ransac
Change-Id: I0d4003b41125fac5eb5789d1d423ecac739ec1a1
diff --git a/av1/encoder/ransac.c b/av1/encoder/ransac.c
index be1f783..6180f13 100644
--- a/av1/encoder/ransac.c
+++ b/av1/encoder/ransac.c
@@ -34,14 +34,13 @@
typedef int (*FindTransformationFunc)(int points, double *points1,
double *points2, double *params);
typedef void (*ProjectPointsDoubleFunc)(double *mat, double *points,
- double *proj, const int n,
- const int stride_points,
- const int stride_proj);
+ double *proj, int n, int stride_points,
+ int stride_proj);
static void project_points_double_translation(double *mat, double *points,
- double *proj, const int n,
- const int stride_points,
- const int stride_proj) {
+ double *proj, int n,
+ int stride_points,
+ int stride_proj) {
int i;
for (i = 0; i < n; ++i) {
const double x = *(points++), y = *(points++);
@@ -53,9 +52,8 @@
}
static void project_points_double_rotzoom(double *mat, double *points,
- double *proj, const int n,
- const int stride_points,
- const int stride_proj) {
+ double *proj, int n,
+ int stride_points, int stride_proj) {
int i;
for (i = 0; i < n; ++i) {
const double x = *(points++), y = *(points++);
@@ -67,9 +65,8 @@
}
static void project_points_double_affine(double *mat, double *points,
- double *proj, const int n,
- const int stride_points,
- const int stride_proj) {
+ double *proj, int n, int stride_points,
+ int stride_proj) {
int i;
for (i = 0; i < n; ++i) {
const double x = *(points++), y = *(points++);
@@ -374,7 +371,7 @@
static int ransac(const int *matched_points, int npoints,
int *num_inliers_by_motion, MotionModel *params_by_motion,
- int num_desired_motions, const int minpts,
+ int num_desired_motions, int minpts,
IsDegenerateFunc is_degenerate,
FindTransformationFunc find_transformation,
ProjectPointsDoubleFunc projectpoints) {
@@ -555,7 +552,7 @@
static int ransac_double_prec(const double *matched_points, int npoints,
int *num_inliers_by_motion,
MotionModel *params_by_motion,
- int num_desired_motions, const int minpts,
+ int num_desired_motions, int minpts,
IsDegenerateFunc is_degenerate,
FindTransformationFunc find_transformation,
ProjectPointsDoubleFunc projectpoints) {