aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vvc/vvc_ctu.c
diff options
context:
space:
mode:
authorNuo Mi <nuomi2021@gmail.com>2024-03-27 21:01:04 +0800
committerNuo Mi <nuomi2021@gmail.com>2024-04-02 20:56:22 +0800
commit4020e68d73562a258c86d7d15164f5e2aa504b82 (patch)
tree7efea138623244a0a2a2ea56e0f3833dd792db47 /libavcodec/vvc/vvc_ctu.c
parent260130aae86bbd95ee269ebf1a8601eb640173da (diff)
downloadffmpeg-4020e68d73562a258c86d7d15164f5e2aa504b82.tar.gz
avcodec/vvcdec: misc, rename x_ctb, y_ctb, ctu_x, ctu_y to rx, ry to avoid misleading
Diffstat (limited to 'libavcodec/vvc/vvc_ctu.c')
-rw-r--r--libavcodec/vvc/vvc_ctu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c
index 05c3e04b83..8ba12c8d9f 100644
--- a/libavcodec/vvc/vvc_ctu.c
+++ b/libavcodec/vvc/vvc_ctu.c
@@ -87,10 +87,10 @@ static int get_qp_y_pred(const VVCLocalContext *lc)
const int min_cb_width = fc->ps.pps->min_cb_width;
const int x_cb = cu->x0 >> sps->min_cb_log2_size_y;
const int y_cb = cu->y0 >> sps->min_cb_log2_size_y;
- const int x_ctb = cu->x0 >> ctb_log2_size;
- const int y_ctb = cu->y0 >> ctb_log2_size;
- const int in_same_ctb_a = ((xQg - 1) >> ctb_log2_size) == x_ctb && (yQg >> ctb_log2_size) == y_ctb;
- const int in_same_ctb_b = (xQg >> ctb_log2_size) == x_ctb && ((yQg - 1) >> ctb_log2_size) == y_ctb;
+ const int rx = cu->x0 >> ctb_log2_size;
+ const int ry = cu->y0 >> ctb_log2_size;
+ const int in_same_ctb_a = ((xQg - 1) >> ctb_log2_size) == rx && (yQg >> ctb_log2_size) == ry;
+ const int in_same_ctb_b = (xQg >> ctb_log2_size) == rx && ((yQg - 1) >> ctb_log2_size) == ry;
int qPy_pred, qPy_a, qPy_b;
if (lc->na.cand_up) {