[cleanup] Change all tabs to spaces in the ml classifier code

This commit is contained in:
Marko Viitanen 2022-04-28 21:14:25 +03:00
parent f413e52ddd
commit 45fcac612a
3 changed files with 2136 additions and 2137 deletions

View file

@ -33,7 +33,7 @@
#include "ml_classifier_intra_depth_pred.h" #include "ml_classifier_intra_depth_pred.h"
int tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad) int uvg_tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->merge_variance <= 140.3129) if (p_features->merge_variance <= 140.3129)
{ {
@ -162,7 +162,7 @@ int tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter, double
int tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad) int uvg_tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->merge_variance <= 119.4611) if (p_features->merge_variance <= 119.4611)
{ {
@ -271,7 +271,7 @@ int tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter, double
int tree_predict_merge_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad) int uvg_tree_predict_merge_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->merge_variance <= 80.1487) if (p_features->merge_variance <= 80.1487)
{ {
@ -348,7 +348,7 @@ int tree_predict_merge_depth_3(features_s* p_features, double* p_nb_iter, double
int tree_predict_merge_depth_4(features_s* p_features, double* p_nb_iter, double* p_nb_bad) int uvg_tree_predict_merge_depth_4(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->neigh_variance_C <= 240.2773) if (p_features->neigh_variance_C <= 240.2773)
{ {
@ -421,7 +421,7 @@ int tree_predict_merge_depth_4(features_s* p_features, double* p_nb_iter, double
int tree_predict_split_depth_0(features_s* p_features, double* p_nb_iter, double* p_nb_bad) int uvg_tree_predict_split_depth_0(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->var_of_sub_var <= 12754.7856) if (p_features->var_of_sub_var <= 12754.7856)
{ {
@ -527,7 +527,7 @@ int tree_predict_split_depth_0(features_s* p_features, double* p_nb_iter, double
} }
int tree_predict_split_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad) int uvg_tree_predict_split_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->var_of_sub_var <= 1138.9473) if (p_features->var_of_sub_var <= 1138.9473)
{ {
@ -617,7 +617,7 @@ int tree_predict_split_depth_1(features_s* p_features, double* p_nb_iter, double
} }
int tree_predict_split_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad) int uvg_tree_predict_split_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->var_of_sub_var <= 2597.4529) if (p_features->var_of_sub_var <= 2597.4529)
{ {
@ -712,7 +712,7 @@ int tree_predict_split_depth_2(features_s* p_features, double* p_nb_iter, double
int tree_predict_split_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad) int uvg_tree_predict_split_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->var_of_sub_var <= 818.5173) if (p_features->var_of_sub_var <= 818.5173)
{ {

View file

@ -36,15 +36,15 @@
#include "ml_intra_cu_depth_pred.h" #include "ml_intra_cu_depth_pred.h"
int tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad); int uvg_tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
int tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad); int uvg_tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
int tree_predict_merge_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad); int uvg_tree_predict_merge_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
int tree_predict_merge_depth_4(features_s* p_features, double* p_nb_iter, double* p_nb_bad); int uvg_tree_predict_merge_depth_4(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
int tree_predict_split_depth_0(features_s* p_features, double* p_nb_iter, double* p_nb_bad); int uvg_tree_predict_split_depth_0(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
int tree_predict_split_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad); int uvg_tree_predict_split_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
int tree_predict_split_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad); int uvg_tree_predict_split_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
int tree_predict_split_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad); int uvg_tree_predict_split_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
#endif #endif

View file

@ -33,7 +33,7 @@
#include "ml_intra_cu_depth_pred.h" #include "ml_intra_cu_depth_pred.h"
static int tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad) static int uvg_tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->merge_variance <= 140.3129) if (p_features->merge_variance <= 140.3129)
{ {
@ -161,8 +161,7 @@ static int tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter,
} }
static int uvg_tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
static int tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->merge_variance <= 119.4611) if (p_features->merge_variance <= 119.4611)
{ {
@ -271,7 +270,7 @@ static int tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter,
static int tree_predict_merge_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad) static int uvg_tree_predict_merge_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->merge_variance <= 80.1487) if (p_features->merge_variance <= 80.1487)
{ {
@ -348,7 +347,7 @@ static int tree_predict_merge_depth_3(features_s* p_features, double* p_nb_iter,
static int tree_predict_merge_depth_4(features_s* p_features, double* p_nb_iter, double* p_nb_bad) static int uvg_tree_predict_merge_depth_4(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->neigh_variance_C <= 240.2773) if (p_features->neigh_variance_C <= 240.2773)
{ {
@ -421,7 +420,7 @@ static int tree_predict_merge_depth_4(features_s* p_features, double* p_nb_iter,
static int tree_predict_split_depth_0(features_s* p_features, double* p_nb_iter, double* p_nb_bad) static int uvg_tree_predict_split_depth_0(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->var_of_sub_var <= 12754.7856) if (p_features->var_of_sub_var <= 12754.7856)
{ {
@ -527,7 +526,7 @@ static int tree_predict_split_depth_0(features_s* p_features, double* p_nb_iter,
} }
static int tree_predict_split_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad) static int uvg_tree_predict_split_depth_1(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->var_of_sub_var <= 1138.9473) if (p_features->var_of_sub_var <= 1138.9473)
{ {
@ -617,7 +616,7 @@ static int tree_predict_split_depth_1(features_s* p_features, double* p_nb_iter,
} }
static int tree_predict_split_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad) static int uvg_tree_predict_split_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->var_of_sub_var <= 2597.4529) if (p_features->var_of_sub_var <= 2597.4529)
{ {
@ -712,7 +711,7 @@ static int tree_predict_split_depth_2(features_s* p_features, double* p_nb_iter,
static int tree_predict_split_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad) static int uvg_tree_predict_split_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
{ {
if (p_features->var_of_sub_var <= 818.5173) if (p_features->var_of_sub_var <= 818.5173)
{ {
@ -1415,17 +1414,17 @@ static void ml_os_qt_gen(uint8_t* arr_depthMap, features_s* arr_features_cur, fe
tree_predict predict_func_merge[4] = { tree_predict predict_func_merge[4] = {
tree_predict_merge_depth_1, uvg_tree_predict_merge_depth_1,
tree_predict_merge_depth_2, uvg_tree_predict_merge_depth_2,
tree_predict_merge_depth_3, uvg_tree_predict_merge_depth_3,
tree_predict_merge_depth_4 uvg_tree_predict_merge_depth_4
}; };
tree_predict predict_func_split[4] = { tree_predict predict_func_split[4] = {
tree_predict_split_depth_0, uvg_tree_predict_split_depth_0,
tree_predict_split_depth_1, uvg_tree_predict_split_depth_1,
tree_predict_split_depth_2, uvg_tree_predict_split_depth_2,
tree_predict_split_depth_3 uvg_tree_predict_split_depth_3
}; };
tree_predict prediction_function_merge = predict_func_merge[i_depth - 1]; tree_predict prediction_function_merge = predict_func_merge[i_depth - 1];