Compression of a single coding tree unit (CTU).
More...
#include "cu.h"
#include "encoderstate.h"
#include "global.h"
#include "image.h"
#include "constraint.h"
Go to the source code of this file.
|
void | kvz_sort_modes (int8_t *__restrict modes, double *__restrict costs, uint8_t length) |
| Sort modes and costs to ascending order according to costs.
|
|
void | kvz_sort_keys_by_cost (unit_stats_map_t *__restrict map) |
| Sort keys (indices) to ascending order according to costs.
|
|
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.
|
|
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.
|
|
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) |
|
void | kvz_lcu_fill_trdepth (lcu_t *lcu, int x_px, int y_px, int depth, int tr_depth) |
|
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) |
|
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) |
|
◆ KVZ_CHROMA_MULT
◆ KVZ_LUMA_MULT
◆ MAX_UNIT_STATS_MAP_SIZE
◆ unit_stats_map_t
The intended use is to collect statistics of the
searched coding/prediction units. Data related to
a specific unit is found at index i. The arrays
should be indexed by elements of the "keys" array
that will be sorted by the RD costs of the units.
◆ kvz_cu_rd_cost_chroma()
◆ kvz_cu_rd_cost_luma()
- Returns
- Cost of block
- Parameters
-
ref_cu | CU used for prediction parameters. |
Calculates the RDO cost of a single CU that will not be split further. Takes into account SSD of reconstruction and the cost of encoding whatever prediction unit data needs to be coded.
◆ kvz_intra_recon_lcu_chroma()
◆ kvz_intra_recon_lcu_luma()
◆ kvz_lcu_fill_trdepth()
◆ kvz_search_lcu()
- Best mode gets copied to current picture.
◆ kvz_sort_keys_by_cost()
◆ kvz_sort_modes()