[x265] [PATCH] Enable scanPosLast_neon on Apple Silicon and for high bit-depth
George Steed
george.steed at arm.com
Fri Mar 14 15:44:31 UTC 2025
Currently the Neon implementation of scanPosLast is only used for
standard bit-depth and is not used at all on Apple Silicon platforms.
This patch moves the setup such that it is now used on all platforms and
used on both standard and high bit-depth.
---
source/common/aarch64/asm-primitives.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/source/common/aarch64/asm-primitives.cpp b/source/common/aarch64/asm-primitives.cpp
index c1317eb74..7f2f6f09e 100644
--- a/source/common/aarch64/asm-primitives.cpp
+++ b/source/common/aarch64/asm-primitives.cpp
@@ -736,12 +736,11 @@ void setupNeonPrimitives(EncoderPrimitives &p)
p.cu[BLOCK_4x4].psy_cost_pp = PFX(psyCost_4x4_neon);
p.weight_pp = PFX(weight_pp_neon);
-#if !defined(__APPLE__)
- p.scanPosLast = PFX(scanPosLast_neon);
-#endif
p.costCoeffNxN = PFX(costCoeffNxN_neon);
#endif
+ p.scanPosLast = PFX(scanPosLast_neon);
+
// quant
p.quant = PFX(quant_neon);
p.nquant = PFX(nquant_neon);
--
2.34.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enable-scanPosLast_neon-on-Apple-Silicon-and-for-hig.patch
Type: text/x-diff
Size: 1257 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20250314/d2e49463/attachment.patch>
More information about the x265-devel
mailing list