1#ifndef ML_INTRA_CU_DEPTH_PRED_H_
2#define ML_INTRA_CU_DEPTH_PRED_H_
42#define LCU_DEPTH_MAT_SIZE 64
43#define RESTRAINED_FLAG 1
45#define pow2(x) ((x)*(x))
46#define CR_XMAX(x_px, block_size, width) (MIN((x_px) + (block_size), (width)) - (x_px))
47#define CR_YMAX(y_px, block_size, height) (MIN((y_px) + (block_size), (height)) - (y_px))
48#define CR_GET_X_LCU(lcu_id, nb_lcu_width) (((lcu_id) % (nb_lcu_width)) << 6)
49#define CR_GET_Y_LCU(lcu_id, nb_lcu_width) (((lcu_id) / (nb_lcu_width)) << 6)
50#define CR_GET_CU_D3(x, y, depth) ((x)*(1 << (3-depth)) + ((y) << (6 - depth)))
51#define CR_GET_CU_D4(x, y, depth) ((x)*(1 << (4-depth)) + ((y) << (8 - depth)))
52#define CR_GET_DEPTH_MIN(x, y, depth_min_mat) *(depth_min_mat + (x >> 3) + ((y >> 3) << 3))
53#define CR_GET_DEPTH_MAX(x, y, depth_max_mat) *(depth_max_mat + (x >> 3) + ((y >> 3) << 3))
Header that is included in every other header.
This file defines the public API of Kvazaar when used as a library.
uint8_t kvz_pixel
Definition kvazaar.h:95
void kvz_end_ml_intra_depth_const(ml_intra_ctu_pred_t *ml_intra_depth_ctu)
Fee the bufer and structure.
Definition ml_intra_cu_depth_pred.c:858
ml_intra_ctu_pred_t * kvz_init_ml_intra_depth_const(void)
Allocate the structure and buffer.
Definition ml_intra_cu_depth_pred.c:827
void kvz_lcu_luma_depth_pred(ml_intra_ctu_pred_t *ml_intra_depth_ctu, kvz_pixel *luma_px, int8_t qp)
Generate the interval of depth predictions based on the luma samples.
Definition ml_intra_cu_depth_pred.c:1746
int(* tree_predict)(features_s *, double *, double *)
Definition ml_intra_cu_depth_pred.h:96
Definition ml_intra_cu_depth_pred.h:79
double neigh_variance_C
Definition ml_intra_cu_depth_pred.h:88
double var_of_sub_mean
Definition ml_intra_cu_depth_pred.h:89
int qp
Definition ml_intra_cu_depth_pred.h:90
double merge_variance
Definition ml_intra_cu_depth_pred.h:81
double sub_variance_0
Definition ml_intra_cu_depth_pred.h:82
double neigh_variance_A
Definition ml_intra_cu_depth_pred.h:86
double sub_variance_3
Definition ml_intra_cu_depth_pred.h:85
double var_of_sub_var
Definition ml_intra_cu_depth_pred.h:92
double variance
Definition ml_intra_cu_depth_pred.h:80
double sub_variance_1
Definition ml_intra_cu_depth_pred.h:83
double sub_variance_2
Definition ml_intra_cu_depth_pred.h:84
double neigh_variance_B
Definition ml_intra_cu_depth_pred.h:87
Definition ml_intra_cu_depth_pred.h:63
uint8_t * _mat_lower_depth
Definition ml_intra_cu_depth_pred.h:70
int8_t i_nb_addDepth
Definition ml_intra_cu_depth_pred.h:65
bool b_extra_up_exp
Definition ml_intra_cu_depth_pred.h:67
uint8_t * _mat_upper_depth
Definition ml_intra_cu_depth_pred.h:69
Definition ml_intra_cu_depth_pred.h:55
int32_t y
Definition ml_intra_cu_depth_pred.h:57
int32_t x
Definition ml_intra_cu_depth_pred.h:56