changeset 34198:064be070d8c8

cpudetect: clean up libavutil #includes libavutil/x86_cpu.h is not used directly in cpudetect.h, so remove it from there and #include it directly in files that need it. This avoids libavutil headers appearing in #include cascades in loader/ and causing problems for e.g. Doxygen.
author diego
date Thu, 03 Nov 2011 13:24:46 +0000
parents 0fc1835211d1
children bac52e3ddd04
files cpudetect.c cpudetect.h libmpcodecs/pullup.c libmpcodecs/vf_decimate.c libmpcodecs/vf_divtc.c libmpcodecs/vf_filmdint.c libmpcodecs/vf_fspp.c libmpcodecs/vf_ilpack.c libmpcodecs/vf_ivtc.c libmpcodecs/vf_noise.c libmpcodecs/vf_tfields.c libmpcodecs/vf_yadif.c
diffstat 12 files changed, 12 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/cpudetect.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/cpudetect.c	Thu Nov 03 13:24:46 2011 +0000
@@ -16,6 +16,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "libavutil/x86_cpu.h"
 #include "config.h"
 #include "cpudetect.h"
 #include "mp_msg.h"
--- a/cpudetect.h	Wed Nov 02 13:03:20 2011 +0000
+++ b/cpudetect.h	Thu Nov 03 13:24:46 2011 +0000
@@ -19,15 +19,11 @@
 #ifndef MPLAYER_CPUDETECT_H
 #define MPLAYER_CPUDETECT_H
 
-#include "config.h"
-
 #define CPUTYPE_I386    3
 #define CPUTYPE_I486    4
 #define CPUTYPE_I586    5
 #define CPUTYPE_I686    6
 
-#include "libavutil/x86_cpu.h"
-
 typedef struct cpucaps_s {
     int cpuType;
     int cpuModel;
--- a/libmpcodecs/pullup.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/pullup.c	Thu Nov 03 13:24:46 2011 +0000
@@ -19,9 +19,10 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+
+#include "libavutil/x86_cpu.h"
 #include "config.h"
 #include "pullup.h"
-#include "cpudetect.h"
 
 
 
--- a/libmpcodecs/vf_decimate.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_decimate.c	Thu Nov 03 13:24:46 2011 +0000
@@ -27,7 +27,7 @@
 #include "img_format.h"
 #include "mp_image.h"
 #include "vf.h"
-
+#include "libavutil/x86_cpu.h"
 #include "libvo/fastmemcpy.h"
 
 
--- a/libmpcodecs/vf_divtc.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_divtc.c	Thu Nov 03 13:24:46 2011 +0000
@@ -26,6 +26,7 @@
 #include "mp_msg.h"
 #include "cpudetect.h"
 #include "libavutil/common.h"
+#include "libavutil/x86_cpu.h"
 #include "mpbswap.h"
 
 #include "img_format.h"
--- a/libmpcodecs/vf_filmdint.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_filmdint.c	Thu Nov 03 13:24:46 2011 +0000
@@ -30,7 +30,7 @@
 #include "vd.h"
 #include "vf.h"
 #include "cmmx.h"
-
+#include "libavutil/x86_cpu.h"
 #include "libvo/fastmemcpy.h"
 
 #define NUM_STORED 4
--- a/libmpcodecs/vf_fspp.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_fspp.c	Thu Nov 03 13:24:46 2011 +0000
@@ -51,6 +51,7 @@
 #include "libavutil/internal.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/mem.h"
+#include "libavutil/x86_cpu.h"
 #include "libavcodec/avcodec.h"
 #include "libavcodec/dsputil.h"
 
--- a/libmpcodecs/vf_ilpack.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_ilpack.c	Thu Nov 03 13:24:46 2011 +0000
@@ -29,6 +29,7 @@
 #include "mp_image.h"
 #include "vf.h"
 #include "libavutil/attributes.h"
+#include "libavutil/x86_cpu.h"
 
 typedef void (pack_func_t)(unsigned char *dst, unsigned char *y,
     unsigned char *u, unsigned char *v, int w, int us, int vs);
--- a/libmpcodecs/vf_ivtc.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_ivtc.c	Thu Nov 03 13:24:46 2011 +0000
@@ -27,7 +27,7 @@
 #include "img_format.h"
 #include "mp_image.h"
 #include "vf.h"
-
+#include "libavutil/x86_cpu.h"
 #include "libvo/fastmemcpy.h"
 
 
--- a/libmpcodecs/vf_noise.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_noise.c	Thu Nov 03 13:24:46 2011 +0000
@@ -37,6 +37,7 @@
 #include "vf.h"
 #include "libvo/fastmemcpy.h"
 #include "libavutil/mem.h"
+#include "libavutil/x86_cpu.h"
 
 #define MAX_NOISE 4096
 #define MAX_SHIFT 1024
--- a/libmpcodecs/vf_tfields.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_tfields.c	Thu Nov 03 13:24:46 2011 +0000
@@ -27,7 +27,7 @@
 #include "img_format.h"
 #include "mp_image.h"
 #include "vf.h"
-
+#include "libavutil/x86_cpu.h"
 #include "libmpdemux/demuxer.h"
 #include "libvo/fastmemcpy.h"
 
--- a/libmpcodecs/vf_yadif.c	Wed Nov 02 13:03:20 2011 +0000
+++ b/libmpcodecs/vf_yadif.c	Thu Nov 03 13:24:46 2011 +0000
@@ -34,6 +34,7 @@
 #include "libmpdemux/demuxer.h"
 #include "libvo/fastmemcpy.h"
 #include "libavutil/common.h"
+#include "libavutil/x86_cpu.h"
 
 //===========================================================================//