Skip to content

Commit 634cf72

Browse files
committed
[mts] Fix erroneous bitcost estimation
1 parent 2ba348f commit 634cf72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/encode_coding_tree.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ bool uvg_is_mts_allowed(const encoder_state_t * const state, cu_info_t *const pr
5252
{
5353
uint32_t ts_max_size = 1 << state->encoder_control->cfg.trskip_max_size;
5454
const uint32_t max_size = 32; // CU::isIntra(cu) ? MTS_INTRA_MAX_CU_SIZE : MTS_INTER_MAX_CU_SIZE;
55-
const uint32_t cu_width = cu_loc->width;
56-
const uint32_t cu_height = cu_loc->height;
55+
const uint32_t cu_width = 1 << pred_cu->log2_width;
56+
const uint32_t cu_height = 1 << pred_cu->log2_height;
5757
//bool mts_allowed = cu.chType == CHANNEL_TYPE_LUMA && compID == COMPONENT_Y;
5858

5959
uint8_t mts_type = state->encoder_control->cfg.mts;

0 commit comments

Comments
 (0)