1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avutil/internal: Don't auto-include emms.h

Instead include emms.h wherever it is needed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-09-01 00:23:35 +02:00
parent a39d6e81fa
commit f8503b4c33
43 changed files with 52 additions and 11 deletions

View File

@ -33,6 +33,7 @@
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/crc.h" #include "libavutil/crc.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -28,6 +28,7 @@
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/bprint.h" #include "libavutil/bprint.h"
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/emms.h"
#include "libavutil/fifo.h" #include "libavutil/fifo.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"

View File

@ -21,6 +21,7 @@
*/ */
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"

View File

@ -26,6 +26,7 @@
*/ */
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/emms.h"
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "golomb.h" #include "golomb.h"

View File

@ -19,6 +19,7 @@
*/ */
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/emms.h"
#include "dcaadpcm.h" #include "dcaadpcm.h"
#include "dcadec.h" #include "dcadec.h"
#include "dcadata.h" #include "dcadata.h"

View File

@ -32,6 +32,7 @@
#include "libavutil/bprint.h" #include "libavutil/bprint.h"
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/emms.h"
#include "libavutil/fifo.h" #include "libavutil/fifo.h"
#include "libavutil/frame.h" #include "libavutil/frame.h"
#include "libavutil/hwcontext.h" #include "libavutil/hwcontext.h"

View File

@ -36,6 +36,7 @@
*/ */
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"

View File

@ -29,6 +29,7 @@
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -21,6 +21,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/emms.h"
#include "libavutil/frame.h" #include "libavutil/frame.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"

View File

@ -26,6 +26,7 @@
*/ */
#include "faandct.h" #include "faandct.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/libm.h" #include "libavutil/libm.h"

View File

@ -20,6 +20,7 @@
*/ */
#include "faanidct.h" #include "faanidct.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/emms.h"
/* To allow switching to double. */ /* To allow switching to double. */
typedef float FLOAT; typedef float FLOAT;

View File

@ -26,6 +26,7 @@
*/ */
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/emms.h"
#include "error_resilience.h" #include "error_resilience.h"
#include "avcodec.h" #include "avcodec.h"
#include "h264dec.h" #include "h264dec.h"

View File

@ -30,6 +30,7 @@
#include "config_components.h" #include "config_components.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"

View File

@ -42,6 +42,7 @@
#include "huffyuvdsp.h" #include "huffyuvdsp.h"
#include "lossless_videodsp.h" #include "lossless_videodsp.h"
#include "thread.h" #include "thread.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"

View File

@ -39,6 +39,7 @@
#include "huffyuvencdsp.h" #include "huffyuvencdsp.h"
#include "lossless_videoencdsp.h" #include "lossless_videoencdsp.h"
#include "put_bits.h" #include "put_bits.h"
#include "libavutil/emms.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"

View File

@ -33,6 +33,7 @@
#include "config_components.h" #include "config_components.h"
#include "libavutil/display.h" #include "libavutil/display.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -31,6 +31,7 @@
#include <inttypes.h> #include <inttypes.h>
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"

View File

@ -21,6 +21,7 @@
#include <stdint.h> #include <stdint.h>
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/emms.h"
#include "libavutil/frame.h" #include "libavutil/frame.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "libavutil/motion_vector.h" #include "libavutil/motion_vector.h"

View File

@ -25,6 +25,7 @@
#include "config_components.h" #include "config_components.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/video_enc_params.h" #include "libavutil/video_enc_params.h"

View File

@ -35,6 +35,7 @@
#include <stdint.h> #include <stdint.h>
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intmath.h" #include "libavutil/intmath.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"

View File

@ -26,6 +26,7 @@
*/ */
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "avcodec.h" #include "avcodec.h"

View File

@ -31,6 +31,7 @@
*/ */
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/emms.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h" #include "codec_internal.h"

View File

@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "libavutil/emms.h"
#include "libavutil/intmath.h" #include "libavutil/intmath.h"
#include "libavutil/log.h" #include "libavutil/log.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "libavutil/emms.h"
#include "libavutil/intmath.h" #include "libavutil/intmath.h"
#include "libavutil/libm.h" #include "libavutil/libm.h"
#include "libavutil/log.h" #include "libavutil/log.h"

View File

@ -26,6 +26,7 @@
* http://www.pcisys.net/~melanson/codecs/ * http://www.pcisys.net/~melanson/codecs/
*/ */
#include "libavutil/emms.h"
#include "avcodec.h" #include "avcodec.h"
#include "codec_internal.h" #include "codec_internal.h"
#include "encode.h" #include "encode.h"

View File

@ -37,6 +37,7 @@
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"

View File

@ -30,6 +30,7 @@
#include "config.h" #include "config.h"
#include "libavcodec/me_cmp.h" #include "libavcodec/me_cmp.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"

View File

@ -35,6 +35,7 @@
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"

View File

@ -53,6 +53,7 @@
#include "internal.h" #include "internal.h"
#include "video.h" #include "video.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/emms.h"
#include "libavutil/file_open.h" #include "libavutil/file_open.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -35,6 +35,7 @@
* project, and ported by Arwa Arif for FFmpeg. * project, and ported by Arwa Arif for FFmpeg.
*/ */
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -32,6 +32,7 @@
* Dither it back to 8bit. * Dither it back to 8bit.
*/ */
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"

View File

@ -31,6 +31,7 @@
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/emms.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -24,6 +24,7 @@
* Rich Felker. * Rich Felker.
*/ */
#include "libavutil/emms.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "libavutil/pixelutils.h" #include "libavutil/pixelutils.h"

View File

@ -24,6 +24,7 @@
* noise generator * noise generator
*/ */
#include "libavutil/emms.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"

View File

@ -27,6 +27,7 @@
* project, and ported by Arwa Arif for FFmpeg. * project, and ported by Arwa Arif for FFmpeg.
*/ */
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -19,6 +19,7 @@
*/ */
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"

View File

@ -31,6 +31,7 @@
* ported by Clément Bœsch for FFmpeg. * ported by Clément Bœsch for FFmpeg.
*/ */
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

View File

@ -16,12 +16,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef AVUTIL_X86_EMMS_H #ifndef AVUTIL_EMMS_H
#define AVUTIL_X86_EMMS_H #define AVUTIL_EMMS_H
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#if ARCH_X86
void avpriv_emms_asm(void); void avpriv_emms_asm(void);
#if HAVE_MMX_INLINE #if HAVE_MMX_INLINE
@ -55,4 +57,10 @@ static av_always_inline void emms_c(void)
# define emms_c avpriv_emms_asm # define emms_c avpriv_emms_asm
#endif /* HAVE_MMX_INLINE */ #endif /* HAVE_MMX_INLINE */
#endif /* AVUTIL_X86_EMMS_H */ #endif /* ARCH_X86 */
#ifndef emms_c
# define emms_c() do {} while(0)
#endif
#endif /* AVUTIL_EMMS_H */

View File

@ -43,14 +43,6 @@
#include "macros.h" #include "macros.h"
#include "pixfmt.h" #include "pixfmt.h"
#if ARCH_X86
# include "x86/emms.h"
#endif
#ifndef emms_c
# define emms_c() do {} while(0)
#endif
#ifndef attribute_align_arg #ifndef attribute_align_arg
#if ARCH_X86_32 && AV_GCC_VERSION_AT_LEAST(4,2) #if ARCH_X86_32 && AV_GCC_VERSION_AT_LEAST(4,2)
# define attribute_align_arg __attribute__((force_align_arg_pointer)) # define attribute_align_arg __attribute__((force_align_arg_pointer))

View File

@ -26,6 +26,7 @@
#include "libavutil/bswap.h" #include "libavutil/bswap.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/emms.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h" #include "libavutil/mem_internal.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"

View File

@ -40,6 +40,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/libm.h" #include "libavutil/libm.h"

View File

@ -37,6 +37,7 @@
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/timer.h" #include "libavutil/timer.h"

View File

@ -24,6 +24,7 @@
#include "libavcodec/vp9data.h" #include "libavcodec/vp9data.h"
#include "libavcodec/vp9.h" #include "libavcodec/vp9.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"