Move declarations of some mmx functions to dsputil_mmx.h
authorMåns Rullgård <mans@mansr.com>
Sat, 29 Aug 2009 16:55:50 +0000 (16:55 +0000)
committerMåns Rullgård <mans@mansr.com>
Sat, 29 Aug 2009 16:55:50 +0000 (16:55 +0000)
Originally committed as revision 19739 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dsputil.h
libavcodec/x86/dsputil_mmx.h
libavcodec/x86/idct_sse2_xvid.c
libavcodec/x86/motion_est_mmx.c
libavcodec/x86/simple_idct_mmx.c

index 1ab4ca28ab95dd61d6f15c4b0f6499077339f263..d029689c873cdbbfb73cf4947133aaa446d477ba 100644 (file)
@@ -618,10 +618,6 @@ void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
 
 extern int mm_flags;
 
-void add_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
-void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
-void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
-
 static inline void emms(void)
 {
     __asm__ volatile ("emms;":::"memory");
@@ -634,8 +630,6 @@ static inline void emms(void)
         emms();\
 }
 
-void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx);
-
 #elif ARCH_ARM
 
 extern int mm_flags;
index 52c5f8dd09037d88239f33987ac423ced4fb0798..c0ef49b306a5946947784602512d616dad606cf7 100644 (file)
@@ -150,5 +150,10 @@ extern const double ff_pd_2[2];
     "psrlw $15, %%" #regd ::)
 
 void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx);
+void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx);
+
+void add_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
+void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
+void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size);
 
 #endif /* AVCODEC_X86_DSPUTIL_MMX_H */
index 4b83a44d1837fa4bb124467ad4e5b63bb793f2d0..81f617b1176fa65fe38b27256f28068cc0727db8 100644 (file)
@@ -40,6 +40,7 @@
 
 #include "libavcodec/dsputil.h"
 #include "idct_xvid.h"
+#include "dsputil_mmx.h"
 
 /*!
  * @file libavcodec/x86/idct_sse2_xvid.c
index 4673ebc853ecfd9a7ca2c0dea7814049396bffdd..079d604cb5dd3e80ff5eaa01023dab254ab1ed11 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "libavutil/x86_cpu.h"
 #include "libavcodec/dsputil.h"
+#include "dsputil_mmx.h"
 
 DECLARE_ASM_CONST(8, uint64_t, round_tab[3])={
 0x0000000000000000ULL,
index 578674451aa83d5dee46f3bcf5db56ca0d501931..5cc1e7469227996414d8efbe84bd7086fcb65703 100644 (file)
@@ -21,6 +21,7 @@
  */
 #include "libavcodec/dsputil.h"
 #include "libavcodec/simple_idct.h"
+#include "dsputil_mmx.h"
 
 /*
 23170.475006