]> git.sesse.net Git - x264/commitdiff
arm: do not fill mc_weight*_neon tabs for HIGH_BIT_DEPTH
authorJanne Grunau <janne-x264@jannau.net>
Wed, 18 Nov 2015 10:08:22 +0000 (11:08 +0100)
committerHenrik Gramner <henrik@gramner.com>
Sun, 20 Dec 2015 17:40:11 +0000 (18:40 +0100)
The asm is only for 8-bit and function prototypes reflect that. Avoids
numerous warnings with --bit-depth=9/10.

common/arm/mc-c.c

index 0ead7b02c9defe1169e46fadeaa9fc4fceb91852..c3eec46e5696b62e6a99be266a558e348b61900a 100644 (file)
@@ -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 );