mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
[cleanup] Change all tabs to spaces in the ml classifier code
This commit is contained in:
parent
f413e52ddd
commit
45fcac612a
|
@ -33,7 +33,7 @@
|
|||
#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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -36,15 +36,15 @@
|
|||
#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 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 tree_predict_merge_depth_4(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 uvg_tree_predict_merge_depth_2(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 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 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 tree_predict_split_depth_3(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 uvg_tree_predict_split_depth_1(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 uvg_tree_predict_split_depth_3(features_s* p_features, double* p_nb_iter, double* p_nb_bad);
|
||||
|
||||
#endif
|
|
@ -33,7 +33,7 @@
|
|||
#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)
|
||||
{
|
||||
|
@ -161,8 +161,7 @@ static int tree_predict_merge_depth_1(features_s* p_features, double* p_nb_iter,
|
|||
}
|
||||
|
||||
|
||||
|
||||
static int tree_predict_merge_depth_2(features_s* p_features, double* p_nb_iter, double* p_nb_bad)
|
||||
static 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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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_merge_depth_1,
|
||||
tree_predict_merge_depth_2,
|
||||
tree_predict_merge_depth_3,
|
||||
tree_predict_merge_depth_4
|
||||
uvg_tree_predict_merge_depth_1,
|
||||
uvg_tree_predict_merge_depth_2,
|
||||
uvg_tree_predict_merge_depth_3,
|
||||
uvg_tree_predict_merge_depth_4
|
||||
};
|
||||
|
||||
tree_predict predict_func_split[4] = {
|
||||
tree_predict_split_depth_0,
|
||||
tree_predict_split_depth_1,
|
||||
tree_predict_split_depth_2,
|
||||
tree_predict_split_depth_3
|
||||
uvg_tree_predict_split_depth_0,
|
||||
uvg_tree_predict_split_depth_1,
|
||||
uvg_tree_predict_split_depth_2,
|
||||
uvg_tree_predict_split_depth_3
|
||||
};
|
||||
|
||||
tree_predict prediction_function_merge = predict_func_merge[i_depth - 1];
|
||||
|
|
Loading…
Reference in a new issue