Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
be5d9107
Commit
be5d9107
authored
Sep 22, 2009
by
Rémi Denis-Courmont
Browse files
Use <vlc_cpu.h>
parent
1f133a02
Changes
27
Hide whitespace changes
Inline
Side-by-side
include/vlc_common.h
View file @
be5d9107
...
...
@@ -785,27 +785,7 @@ VLC_EXPORT( int, __vlc_execve, ( vlc_object_t *p_object, int i_argc, char *const
/* dir wrappers (defined in src/extras/libc.c) */
VLC_EXPORT
(
int
,
vlc_wclosedir
,
(
void
*
_p_dir
));
/*****************************************************************************
* CPU capabilities
*****************************************************************************/
#define CPU_CAPABILITY_NONE 0
#define CPU_CAPABILITY_MMX (1<<3)
#define CPU_CAPABILITY_3DNOW (1<<4)
#define CPU_CAPABILITY_MMXEXT (1<<5)
#define CPU_CAPABILITY_SSE (1<<6)
#define CPU_CAPABILITY_SSE2 (1<<7)
#define CPU_CAPABILITY_SSE3 (1<<8)
#define CPU_CAPABILITY_SSSE3 (1<<9)
#define CPU_CAPABILITY_SSE4 (1<<10)
#define CPU_CAPABILITY_ALTIVEC (1<<16)
#define CPU_CAPABILITY_NEON (1<<24)
#define CPU_CAPABILITY_FPU (1<<31)
VLC_EXPORT
(
unsigned
,
vlc_CPU
,
(
void
)
);
typedef
void
*
(
*
vlc_memcpy_t
)
(
void
*
tgt
,
const
void
*
src
,
size_t
n
);
typedef
void
*
(
*
vlc_memset_t
)
(
void
*
tgt
,
int
c
,
size_t
n
);
VLC_EXPORT
(
void
,
vlc_fastmem_register
,
(
vlc_memcpy_t
cpy
,
vlc_memset_t
set
)
);
/* Fast large memory copy and memory set */
VLC_EXPORT
(
void
*
,
vlc_memcpy
,
(
void
*
,
const
void
*
,
size_t
)
);
VLC_EXPORT
(
void
*
,
vlc_memset
,
(
void
*
,
int
,
size_t
)
);
...
...
modules/audio_filter/converter/mpgatofixed32.c
View file @
be5d9107
...
...
@@ -38,6 +38,7 @@
#include <vlc_aout.h>
#include <vlc_block.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
/*****************************************************************************
* Local prototypes
...
...
modules/audio_filter/converter/neon.c
View file @
be5d9107
...
...
@@ -25,6 +25,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_aout.h>
#include <vlc_cpu.h>
static
int
Open
(
vlc_object_t
*
);
...
...
modules/audio_output/alsa.c
View file @
be5d9107
...
...
@@ -38,6 +38,7 @@
#include <vlc_dialog.h>
#include <vlc_aout.h>
#include <vlc_cpu.h>
/* ALSA part
Note: we use the new API which is available since 0.9.0beta10a. */
...
...
modules/audio_output/pulse.c
View file @
be5d9107
...
...
@@ -31,6 +31,7 @@
#include <vlc_plugin.h>
#include <vlc_aout.h>
#include <vlc_cpu.h>
#include <pulse/pulseaudio.h>
...
...
modules/codec/avcodec/avcodec.c
View file @
be5d9107
...
...
@@ -33,6 +33,7 @@
#include <vlc_plugin.h>
#include <vlc_codec.h>
#include <vlc_avcodec.h>
#include <vlc_cpu.h>
/* ffmpeg header */
#define HAVE_MMX 1
...
...
modules/codec/avcodec/encoder.c
View file @
be5d9107
...
...
@@ -38,6 +38,7 @@
#include <vlc_codec.h>
#include <vlc_dialog.h>
#include <vlc_avcodec.h>
#include <vlc_cpu.h>
/* ffmpeg header */
#define HAVE_MMX 1
...
...
modules/codec/faad.c
View file @
be5d9107
...
...
@@ -31,6 +31,7 @@
#include <vlc_input.h>
#include <vlc_aout.h>
#include <vlc_codec.h>
#include <vlc_cpu.h>
#include <faad.h>
...
...
modules/codec/fluidsynth.c
View file @
be5d9107
...
...
@@ -27,6 +27,7 @@
#include <vlc_plugin.h>
#include <vlc_aout.h>
#include <vlc_codec.h>
#include <vlc_cpu.h>
/* On Win32, we link statically */
#ifdef WIN32
...
...
modules/codec/libmpeg2.c
View file @
be5d9107
...
...
@@ -34,6 +34,7 @@
#include <vlc_plugin.h>
#include <vlc_codec.h>
#include <vlc_block_helper.h>
#include <vlc_cpu.h>
#include "../codec/cc.h"
#include <mpeg2.h>
...
...
modules/codec/x264.c
View file @
be5d9107
...
...
@@ -33,6 +33,7 @@
#include <vlc_sout.h>
#include <vlc_codec.h>
#include <vlc_charset.h>
#include <vlc_cpu.h>
#ifdef PTW32_STATIC_LIB
#include <pthread.h>
...
...
modules/codec/xvmc/xxmc.c
View file @
be5d9107
...
...
@@ -33,6 +33,7 @@
#include <vlc_plugin.h>
#include <vlc_codec.h>
#include <vlc_codec_synchro.h>
#include <vlc_cpu.h>
#include <unistd.h>
#ifdef __GLIBC__
...
...
modules/misc/memcpy/memcpy.c
View file @
be5d9107
...
...
@@ -31,6 +31,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_cpu.h>
#undef HAVE_MMX
#undef HAVE_MMX2
...
...
modules/misc/memcpy/memcpyaltivec.c
View file @
be5d9107
...
...
@@ -33,6 +33,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_cpu.h>
#ifdef HAVE_ALTIVEC_H
# include <altivec.h>
...
...
modules/stream_out/switcher.c
View file @
be5d9107
...
...
@@ -35,6 +35,7 @@
#include <vlc_sout.h>
#include <vlc_avcodec.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#include <vlc_block.h>
...
...
modules/video_chroma/i420_rgb.c
View file @
be5d9107
...
...
@@ -35,6 +35,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#include "i420_rgb.h"
#if defined (MODULE_NAME_IS_i420_rgb)
...
...
modules/video_chroma/i420_ymga.c
View file @
be5d9107
...
...
@@ -34,6 +34,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#define SRC_FOURCC "I420,IYUV,YV12"
#define DEST_FOURCC "YMGA"
...
...
modules/video_chroma/i420_yuy2.c
View file @
be5d9107
...
...
@@ -33,6 +33,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#if defined (MODULE_NAME_IS_i420_yuy2_altivec) && defined(HAVE_ALTIVEC_H)
# include <altivec.h>
...
...
modules/video_chroma/i422_yuy2.c
View file @
be5d9107
...
...
@@ -33,6 +33,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#include "i422_yuy2.h"
...
...
modules/video_chroma/neon.c
View file @
be5d9107
...
...
@@ -25,6 +25,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
static
int
Open
(
vlc_object_t
*
);
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment