[x265] [PATCH 02/12] Move ipfilter primitives into X265_NS

Hari Limaye hari.limaye at arm.com
Fri Aug 30 19:19:08 UTC 2024


Move C implementations of ipfilter primitives into X265_NS, to allow the
symbols to be visible when linking to libx265.
---
 source/common/ipfilter.cpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/source/common/ipfilter.cpp b/source/common/ipfilter.cpp
index 64f659d5f..2140d0e3c 100644
--- a/source/common/ipfilter.cpp
+++ b/source/common/ipfilter.cpp
@@ -34,8 +34,8 @@ using namespace X265_NS;
 #pragma warning(disable: 4127) // conditional expression is constant, typical for templated functions
 #endif
 
-namespace {
-// file local namespace
+namespace X265_NS {
+// x265 private namespace
 
 template<int width, int height>
 void filterPixelToShort_c(const pixel* src, intptr_t srcStride, int16_t* dst, intptr_t dstStride)
@@ -367,10 +367,6 @@ void interp_hv_pp_c(const pixel* src, intptr_t srcStride, pixel* dst, intptr_t d
     interp_horiz_ps_c<N, width, height>(src, srcStride, immed, width, idxX, 1);
     filterVertical_sp_c<N>(immed + (N / 2 - 1) * width, width, dst, dstStride, width, height, idxY);
 }
-}
-
-namespace X265_NS {
-// x265 private namespace
 
 #define CHROMA_420(W, H) \
     p.chroma[X265_CSP_I420].pu[CHROMA_420_ ## W ## x ## H].filter_hpp = interp_horiz_pp_c<4, W, H>; \
-- 
2.42.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Move-ipfilter-primitives-into-X265_NS.patch
Type: text/x-patch
Size: 1658 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20240830/c57c2d4b/attachment.bin>


More information about the x265-devel mailing list