From b27eca7c37c2697b569ae451a513f6c5971ffe45 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Wed, 21 Dec 2022 13:45:56 +0200 Subject: [PATCH] [deblock] fix width and height to correct order --- src/filter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/filter.c b/src/filter.c index 3b41bd44..cabc75e3 100644 --- a/src/filter.c +++ b/src/filter.c @@ -838,9 +838,9 @@ static void filter_deblock_edge_luma(encoder_state_t * const state, int tu_size_q_side = 0; if (cu_q->type == CU_INTRA && cu_q->intra.isp_mode != ISP_MODE_NO_ISP) { if (cu_q->intra.isp_mode == ISP_MODE_VER && dir == EDGE_VER) { - tu_size_q_side = MAX(4, cu_height >> 2); - } else if (cu_q->intra.isp_mode == ISP_MODE_HOR && dir == EDGE_HOR) { tu_size_q_side = MAX(4, cu_width >> 2); + } else if (cu_q->intra.isp_mode == ISP_MODE_HOR && dir == EDGE_HOR) { + tu_size_q_side = MAX(4, cu_height >> 2); } else { tu_size_q_side = dir == EDGE_HOR ? MIN(1 << cu_q->log2_height, TR_MAX_WIDTH) : @@ -855,9 +855,9 @@ static void filter_deblock_edge_luma(encoder_state_t * const state, int tu_size_p_side = 0; if (cu_p->type == CU_INTRA && cu_p->intra.isp_mode != ISP_MODE_NO_ISP) { if (cu_p->intra.isp_mode == ISP_MODE_VER && dir == EDGE_VER) { - tu_size_p_side = MAX(4, (1 << cu_p->log2_height) >> 2); - } else if (cu_p->intra.isp_mode == ISP_MODE_HOR && dir == EDGE_HOR) { tu_size_p_side = MAX(4, (1 << cu_p->log2_width) >> 2); + } else if (cu_p->intra.isp_mode == ISP_MODE_HOR && dir == EDGE_HOR) { + tu_size_p_side = MAX(4, (1 << cu_p->log2_height) >> 2); } else { tu_size_p_side = dir == EDGE_HOR ? MIN(1 << cu_p->log2_height, TR_MAX_WIDTH) :