mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
fix correct chroma cost calculation
This commit is contained in:
parent
d531d77b75
commit
5cd0554a7d
|
@ -563,7 +563,7 @@ static double cu_rd_cost_tr_split_accurate(const encoder_state_t* const state,
|
||||||
const int chroma_width = (depth <= MAX_DEPTH) ? LCU_WIDTH >> (depth + 1) : LCU_WIDTH >> depth;
|
const int chroma_width = (depth <= MAX_DEPTH) ? LCU_WIDTH >> (depth + 1) : LCU_WIDTH >> depth;
|
||||||
int8_t scan_order = kvz_get_scan_order(pred_cu->type, pred_cu->intra.mode_chroma, depth);
|
int8_t scan_order = kvz_get_scan_order(pred_cu->type, pred_cu->intra.mode_chroma, depth);
|
||||||
const unsigned index = xy_to_zorder(LCU_WIDTH_C, lcu_px.x, lcu_px.y);
|
const unsigned index = xy_to_zorder(LCU_WIDTH_C, lcu_px.x, lcu_px.y);
|
||||||
if(pred_cu->joint_cb_cr != 0) {
|
if(pred_cu->joint_cb_cr == 0) {
|
||||||
if (!state->encoder_control->cfg.lossless) {
|
if (!state->encoder_control->cfg.lossless) {
|
||||||
int index = lcu_px.y * LCU_WIDTH_C + lcu_px.x;
|
int index = lcu_px.y * LCU_WIDTH_C + lcu_px.x;
|
||||||
unsigned ssd_u = kvz_pixels_calc_ssd(&lcu->ref.u[index], &lcu->rec.u[index],
|
unsigned ssd_u = kvz_pixels_calc_ssd(&lcu->ref.u[index], &lcu->rec.u[index],
|
||||||
|
|
Loading…
Reference in a new issue