1 /* 2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved 3 * 4 * This source code is subject to the terms of the BSD 2 Clause License and 5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License 6 * was not distributed with this source code in the LICENSE file, you can 7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open 8 * Media Patent License 1.0 was not distributed with this source code in the 9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent. 10 */ 11 12 #ifndef AOM_AV1_ENCODER_RANSAC_H_ 13 #define AOM_AV1_ENCODER_RANSAC_H_ 14 15 #include <stdio.h> 16 #include <stdlib.h> 17 #include <math.h> 18 #include <memory.h> 19 20 #include "av1/common/warped_motion.h" 21 #include "av1/encoder/global_motion.h" 22 23 typedef int (*RansacFunc)(int *matched_points, int npoints, 24 int *num_inliers_by_motion, 25 MotionModel *params_by_motion, int num_motions); 26 typedef int (*RansacFuncDouble)(double *matched_points, int npoints, 27 int *num_inliers_by_motion, 28 MotionModel *params_by_motion, int num_motions); 29 RansacFunc av1_get_ransac_type(TransformationType type); 30 RansacFuncDouble av1_get_ransac_double_prec_type(TransformationType type); 31 #endif // AOM_AV1_ENCODER_RANSAC_H_ 32