Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
be5d9107
Commit
be5d9107
authored
Sep 22, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use <vlc_cpu.h>
parent
1f133a02
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
29 additions
and
22 deletions
+29
-22
include/vlc_common.h
include/vlc_common.h
+1
-21
modules/audio_filter/converter/mpgatofixed32.c
modules/audio_filter/converter/mpgatofixed32.c
+1
-0
modules/audio_filter/converter/neon.c
modules/audio_filter/converter/neon.c
+1
-0
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+1
-0
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+1
-0
modules/codec/avcodec/avcodec.c
modules/codec/avcodec/avcodec.c
+1
-0
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+1
-0
modules/codec/faad.c
modules/codec/faad.c
+1
-0
modules/codec/fluidsynth.c
modules/codec/fluidsynth.c
+1
-0
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+1
-0
modules/codec/x264.c
modules/codec/x264.c
+1
-0
modules/codec/xvmc/xxmc.c
modules/codec/xvmc/xxmc.c
+1
-0
modules/misc/memcpy/memcpy.c
modules/misc/memcpy/memcpy.c
+1
-0
modules/misc/memcpy/memcpyaltivec.c
modules/misc/memcpy/memcpyaltivec.c
+1
-0
modules/stream_out/switcher.c
modules/stream_out/switcher.c
+1
-0
modules/video_chroma/i420_rgb.c
modules/video_chroma/i420_rgb.c
+1
-0
modules/video_chroma/i420_ymga.c
modules/video_chroma/i420_ymga.c
+1
-0
modules/video_chroma/i420_yuy2.c
modules/video_chroma/i420_yuy2.c
+1
-0
modules/video_chroma/i422_yuy2.c
modules/video_chroma/i422_yuy2.c
+1
-0
modules/video_chroma/neon.c
modules/video_chroma/neon.c
+1
-0
modules/video_filter/deinterlace.c
modules/video_filter/deinterlace.c
+1
-0
modules/video_filter/postproc.c
modules/video_filter/postproc.c
+1
-0
modules/video_filter/swscale.c
modules/video_filter/swscale.c
+1
-0
src/audio_output/output.c
src/audio_output/output.c
+2
-0
src/libvlc.c
src/libvlc.c
+1
-0
src/misc/cpu.c
src/misc/cpu.c
+2
-1
src/modules/modules.c
src/modules/modules.c
+1
-0
No files found.
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
*
);
...
...
modules/video_filter/deinterlace.c
View file @
be5d9107
...
...
@@ -40,6 +40,7 @@
#include <vlc_vout.h>
#include <vlc_sout.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#ifdef CAN_COMPILE_MMXEXT
# include "mmx.h"
...
...
modules/video_filter/postproc.c
View file @
be5d9107
...
...
@@ -30,6 +30,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#include "filter_picture.h"
...
...
modules/video_filter/swscale.c
View file @
be5d9107
...
...
@@ -32,6 +32,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#ifdef HAVE_LIBSWSCALE_SWSCALE_H
# include <libswscale/swscale.h>
...
...
src/audio_output/output.c
View file @
be5d9107
...
...
@@ -30,6 +30,8 @@
#include <vlc_common.h>
#include <vlc_aout.h>
#include <vlc_cpu.h>
#include "aout_internal.h"
/*****************************************************************************
...
...
src/libvlc.c
View file @
be5d9107
...
...
@@ -86,6 +86,7 @@
#include "audio_output/aout_internal.h"
#include <vlc_charset.h>
#include <vlc_cpu.h>
#include "libvlc.h"
...
...
src/misc/cpu.c
View file @
be5d9107
...
...
@@ -31,6 +31,7 @@
#endif
#include <vlc_common.h>
#include <vlc_cpu.h>
#include <sys/types.h>
#ifndef WIN32
...
...
@@ -81,7 +82,7 @@ static bool check_OS_capability( const char *psz_capability, pid_t pid )
*****************************************************************************/
uint32_t
CPUCapabilities
(
void
)
{
uint32_t
i_capabilities
=
CPU_CAPABILITY_NONE
;
uint32_t
i_capabilities
=
0
;
#if defined( __i386__ ) || defined( __x86_64__ )
unsigned
int
i_eax
,
i_ebx
,
i_ecx
,
i_edx
;
...
...
src/modules/modules.c
View file @
be5d9107
...
...
@@ -80,6 +80,7 @@
#include "vlc_charset.h"
#include "vlc_arrays.h"
#include <vlc_cpu.h>
#include "modules/modules.h"
...
...
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