From 976563156ca6891fdcfc7fc0160a22c6f3b58891 Mon Sep 17 00:00:00 2001 From: Gunwoo Kim Date: Mon, 9 Nov 2026 15:19:39 +0900 Subject: [PATCH] perf(hevc): skip the tile lookup for single-tile neighbours Signed-off-by: Gunwoo Kim --- crates/coreav-hevc/src/reconstruction/syntax.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/coreav-hevc/src/reconstruction/syntax.rs b/crates/coreav-hevc/src/reconstruction/syntax.rs index 277d08d0..ae754b8d 100644 --- a/crates/coreav-hevc/src/reconstruction/syntax.rs +++ b/crates/coreav-hevc/src/reconstruction/syntax.rs @@ -933,7 +933,9 @@ impl Walker<'_, '_, '_> { } let raster = (y as u32 >> self.input.sps.ctb_log2) * self.input.layout.width + (x as u32 >> self.input.sps.ctb_log2); - if self.input.layout.at_raster(raster)?.tile != self.location.tile { + if (self.input.pps.tile_columns > 1 || self.input.pps.tile_rows > 1) + && self.input.layout.at_raster(raster)?.tile != self.location.tile + { return Ok(None); } Ok(Some(cell))