[x264-devel] arm: do not fill mc_weight*_neon tabs for HIGH_BIT_DEPTH

Janne Grunau git at videolan.org
Sun Jan 17 22:17:53 CET 2016


x264 | branch: master | Janne Grunau <janne-x264 at jannau.net> | Wed Nov 18 11:08:22 2015 +0100| [424534537a249dcf913e02560303f6afca423489] | committer: Henrik Gramner

arm: do not fill mc_weight*_neon tabs for HIGH_BIT_DEPTH

The asm is only for 8-bit and function prototypes reflect that. Avoids
numerous warnings with --bit-depth=9/10.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=424534537a249dcf913e02560303f6afca423489
---

 common/arm/mc-c.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/arm/mc-c.c b/common/arm/mc-c.c
index 0ead7b0..c3eec46 100644
--- a/common/arm/mc-c.c
+++ b/common/arm/mc-c.c
@@ -67,6 +67,7 @@ void x264_store_interleave_chroma_neon( pixel *dst, intptr_t i_dst, pixel *srcu,
 void x264_load_deinterleave_chroma_fdec_neon( pixel *dst, pixel *src, intptr_t i_src, int height );
 void x264_load_deinterleave_chroma_fenc_neon( pixel *dst, pixel *src, intptr_t i_src, int height );
 
+#if !HIGH_BIT_DEPTH
 #define MC_WEIGHT(func)\
 void x264_mc_weight_w20##func##_neon( uint8_t *, intptr_t, uint8_t *, intptr_t, const x264_weight_t *, int );\
 void x264_mc_weight_w16##func##_neon( uint8_t *, intptr_t, uint8_t *, intptr_t, const x264_weight_t *, int );\
@@ -87,6 +88,7 @@ MC_WEIGHT()
 MC_WEIGHT(_nodenom)
 MC_WEIGHT(_offsetadd)
 MC_WEIGHT(_offsetsub)
+#endif
 
 void x264_mc_copy_w4_neon ( uint8_t *, intptr_t, uint8_t *, intptr_t, int );
 void x264_mc_copy_w8_neon ( uint8_t *, intptr_t, uint8_t *, intptr_t, int );



More information about the x264-devel mailing list