[FFmpeg-cvslog] r19739 - in trunk/libavcodec: dsputil.h x86/dsputil_mmx.h x86/idct_sse2_xvid.c x86/motion_est_mmx.c x86/simple_idct_mmx.c

mru subversion
Sat Aug 29 18:55:51 CEST 2009


Author: mru
Date: Sat Aug 29 18:55:50 2009
New Revision: 19739

Log:
Move declarations of some mmx functions to dsputil_mmx.h

Modified:
   trunk/libavcodec/dsputil.h
   trunk/libavcodec/x86/dsputil_mmx.h
   trunk/libavcodec/x86/idct_sse2_xvid.c
   trunk/libavcodec/x86/motion_est_mmx.c
   trunk/libavcodec/x86/simple_idct_mmx.c

Modified: trunk/libavcodec/dsputil.h
==============================================================================
--- trunk/libavcodec/dsputil.h	Sat Aug 29 18:55:46 2009	(r19738)
+++ trunk/libavcodec/dsputil.h	Sat Aug 29 18:55:50 2009	(r19739)
@@ -618,10 +618,6 @@ void dsputil_init_vis(DSPContext* c, AVC
 
 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;

Modified: trunk/libavcodec/x86/dsputil_mmx.h
==============================================================================
--- trunk/libavcodec/x86/dsputil_mmx.h	Sat Aug 29 18:55:46 2009	(r19738)
+++ trunk/libavcodec/x86/dsputil_mmx.h	Sat Aug 29 18:55:50 2009	(r19739)
@@ -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 */

Modified: trunk/libavcodec/x86/idct_sse2_xvid.c
==============================================================================
--- trunk/libavcodec/x86/idct_sse2_xvid.c	Sat Aug 29 18:55:46 2009	(r19738)
+++ trunk/libavcodec/x86/idct_sse2_xvid.c	Sat Aug 29 18:55:50 2009	(r19739)
@@ -40,6 +40,7 @@
 
 #include "libavcodec/dsputil.h"
 #include "idct_xvid.h"
+#include "dsputil_mmx.h"
 
 /*!
  * @file libavcodec/x86/idct_sse2_xvid.c

Modified: trunk/libavcodec/x86/motion_est_mmx.c
==============================================================================
--- trunk/libavcodec/x86/motion_est_mmx.c	Sat Aug 29 18:55:46 2009	(r19738)
+++ trunk/libavcodec/x86/motion_est_mmx.c	Sat Aug 29 18:55:50 2009	(r19739)
@@ -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,

Modified: trunk/libavcodec/x86/simple_idct_mmx.c
==============================================================================
--- trunk/libavcodec/x86/simple_idct_mmx.c	Sat Aug 29 18:55:46 2009	(r19738)
+++ trunk/libavcodec/x86/simple_idct_mmx.c	Sat Aug 29 18:55:50 2009	(r19739)
@@ -21,6 +21,7 @@
  */
 #include "libavcodec/dsputil.h"
 #include "libavcodec/simple_idct.h"
+#include "dsputil_mmx.h"
 
 /*
 23170.475006



More information about the ffmpeg-cvslog mailing list