[deblock] Fix incorrect direction for transform split of tall blocks at the top CTU row also for chroma

This commit is contained in:
Joose Sainio 2022-12-15 10:07:47 +02:00 committed by Marko Viitanen
parent 34aed10ec1
commit 8e4b864e6b

View file

@ -1094,7 +1094,7 @@ static void mark_deblocking(const cu_loc_t* const cu_loc, const cu_loc_t* const
} }
else if (cu_loc->height == 64) { else if (cu_loc->height == 64) {
for (int x = chroma_loc->local_x; x < chroma_loc->local_x + chroma_loc->width; x += SCU_WIDTH) { for (int x = chroma_loc->local_x; x < chroma_loc->local_x + chroma_loc->width; x += SCU_WIDTH) {
LCU_GET_CU_AT_PX(lcu, x, TR_MAX_WIDTH)->chroma_deblocking |= EDGE_VER; LCU_GET_CU_AT_PX(lcu, x, TR_MAX_WIDTH)->chroma_deblocking |= EDGE_HOR;
} }
} }
} }
@ -1123,7 +1123,7 @@ static void mark_deblocking(const cu_loc_t* const cu_loc, const cu_loc_t* const
} }
else if (chroma_loc->height == 64) { else if (chroma_loc->height == 64) {
for (int x = x_local; x < x_local + chroma_loc->chroma_width; x += SCU_WIDTH) { for (int x = x_local; x < x_local + chroma_loc->chroma_width; x += SCU_WIDTH) {
LCU_GET_CU_AT_PX(lcu, x, TR_MAX_WIDTH / 2)->chroma_deblocking |= EDGE_VER; LCU_GET_CU_AT_PX(lcu, x, TR_MAX_WIDTH / 2)->chroma_deblocking |= EDGE_HOR;
} }
} }
} }