47#define MAX_UNIT_STATS_MAP_SIZE MAX(MAX_REF_PIC_COUNT, MRG_MAX_NUM_CANDS)
51# define KVZ_LUMA_MULT 0.8
54#ifndef KVZ_CHROMA_MULT
55# define KVZ_CHROMA_MULT 1.5
76void kvz_sort_modes(int8_t *__restrict modes,
double *__restrict costs, uint8_t length);
82 const int x_px,
const int y_px,
const int depth,
86 const int x_px,
const int y_px,
const int depth,
Coding Unit data structure and related functions.
Top level of the encoder implementation.
Header that is included in every other header.
A reference counted YUV pixel buffer.
#define MAX_UNIT_STATS_MAP_SIZE
Definition search.h:47
void kvz_sort_keys_by_cost(unit_stats_map_t *__restrict map)
Sort keys (indices) to ascending order according to costs.
Definition search.c:611
void kvz_sort_modes(int8_t *__restrict modes, double *__restrict costs, uint8_t length)
Sort modes and costs to ascending order according to costs.
Definition search.c:587
double kvz_cu_rd_cost_luma(const encoder_state_t *const state, const int x_px, const int y_px, const int depth, const cu_info_t *const pred_cu, lcu_t *const lcu)
Calculate RD cost for a Coding Unit.
Definition search.c:241
struct unit_stats_map_t unit_stats_map_t
Data collected during search processes.
void kvz_intra_recon_lcu_chroma(encoder_state_t *const state, int x, int y, int depth, int8_t intra_mode, cu_info_t *cur_cu, lcu_t *lcu)
void kvz_search_lcu(encoder_state_t *state, int x, int y, const yuv_t *hor_buf, const yuv_t *ver_buf)
Search LCU for modes.
Definition search.c:1188
double kvz_cu_rd_cost_chroma(const encoder_state_t *const state, const int x_px, const int y_px, const int depth, const cu_info_t *const pred_cu, lcu_t *const lcu)
Definition search.c:348
void kvz_lcu_fill_trdepth(lcu_t *lcu, int x_px, int y_px, int depth, int tr_depth)
Definition search.c:124
void kvz_intra_recon_lcu_luma(encoder_state_t *const state, int x, int y, int depth, int8_t intra_mode, cu_info_t *cur_cu, lcu_t *lcu)
Struct for CU info.
Definition cu.h:130
Definition encoderstate.h:274
Data collected during search processes.
Definition search.h:67
int size
number of active elements in the lists
Definition search.h:73
double bits[(((16)>(5))?(16):(5))]
list of matching bit costs
Definition search.h:71
int8_t keys[(((16)>(5))?(16):(5))]
list of keys (indices) to elements in the other arrays
Definition search.h:72
double cost[(((16)>(5))?(16):(5))]
list of matching RD costs
Definition search.h:70
cu_info_t unit[(((16)>(5))?(16):(5))]
list of searched units
Definition search.h:69