#include <stdio.h>
#include "global.h"
#include "kvazaar.h"
Go to the source code of this file.
|
#define | LCU_DEPTH_MAT_SIZE 64 |
|
#define | RESTRAINED_FLAG 1 |
|
#define | pow2(x) ((x)*(x)) |
|
#define | CR_XMAX(x_px, block_size, width) (MIN((x_px) + (block_size), (width)) - (x_px)) |
|
#define | CR_YMAX(y_px, block_size, height) (MIN((y_px) + (block_size), (height)) - (y_px)) |
|
#define | CR_GET_X_LCU(lcu_id, nb_lcu_width) (((lcu_id) % (nb_lcu_width)) << 6) |
|
#define | CR_GET_Y_LCU(lcu_id, nb_lcu_width) (((lcu_id) / (nb_lcu_width)) << 6) |
|
#define | CR_GET_CU_D3(x, y, depth) ((x)*(1 << (3-depth)) + ((y) << (6 - depth))) |
|
#define | CR_GET_CU_D4(x, y, depth) ((x)*(1 << (4-depth)) + ((y) << (8 - depth))) |
|
#define | CR_GET_DEPTH_MIN(x, y, depth_min_mat) *(depth_min_mat + (x >> 3) + ((y >> 3) << 3)) |
|
#define | CR_GET_DEPTH_MAX(x, y, depth_max_mat) *(depth_max_mat + (x >> 3) + ((y >> 3) << 3)) |
|
◆ CR_GET_CU_D3
#define CR_GET_CU_D3 |
( |
|
x, |
|
|
|
y, |
|
|
|
depth |
|
) |
| ((x)*(1 << (3-depth)) + ((y) << (6 - depth))) |
◆ CR_GET_CU_D4
#define CR_GET_CU_D4 |
( |
|
x, |
|
|
|
y, |
|
|
|
depth |
|
) |
| ((x)*(1 << (4-depth)) + ((y) << (8 - depth))) |
◆ CR_GET_DEPTH_MAX
#define CR_GET_DEPTH_MAX |
( |
|
x, |
|
|
|
y, |
|
|
|
depth_max_mat |
|
) |
| *(depth_max_mat + (x >> 3) + ((y >> 3) << 3)) |
◆ CR_GET_DEPTH_MIN
#define CR_GET_DEPTH_MIN |
( |
|
x, |
|
|
|
y, |
|
|
|
depth_min_mat |
|
) |
| *(depth_min_mat + (x >> 3) + ((y >> 3) << 3)) |
◆ CR_GET_X_LCU
#define CR_GET_X_LCU |
( |
|
lcu_id, |
|
|
|
nb_lcu_width |
|
) |
| (((lcu_id) % (nb_lcu_width)) << 6) |
◆ CR_GET_Y_LCU
#define CR_GET_Y_LCU |
( |
|
lcu_id, |
|
|
|
nb_lcu_width |
|
) |
| (((lcu_id) / (nb_lcu_width)) << 6) |
◆ CR_XMAX
#define CR_XMAX |
( |
|
x_px, |
|
|
|
block_size, |
|
|
|
width |
|
) |
| (MIN((x_px) + (block_size), (width)) - (x_px)) |
◆ CR_YMAX
#define CR_YMAX |
( |
|
y_px, |
|
|
|
block_size, |
|
|
|
height |
|
) |
| (MIN((y_px) + (block_size), (height)) - (y_px)) |
◆ LCU_DEPTH_MAT_SIZE
#define LCU_DEPTH_MAT_SIZE 64 |
◆ pow2
#define pow2 |
( |
|
x | ) |
((x)*(x)) |
◆ RESTRAINED_FLAG
#define RESTRAINED_FLAG 1 |
◆ tree_predict
typedef int(* tree_predict) (features_s *, double *, double *) |
◆ kvz_end_ml_intra_depth_const()
◆ kvz_init_ml_intra_depth_const()
◆ kvz_lcu_luma_depth_pred()