Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1081b213
Commit
1081b213
authored
Aug 19, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Obsolete thread-unsafe command line options for CPU capabilities
parent
9b05547a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
82 deletions
+10
-82
src/libvlc-module.c
src/libvlc-module.c
+10
-60
src/libvlc.c
src/libvlc.c
+0
-22
No files found.
src/libvlc-module.c
View file @
1081b213
...
...
@@ -1081,56 +1081,6 @@ static const char *const ppsz_clock_descriptions[] =
"These options allow you to enable special CPU optimizations. " \
"You should always leave all these enabled." )
#define MMX_TEXT N_("Enable CPU MMX support")
#define MMX_LONGTEXT N_( \
"If your processor supports the MMX instructions set, VLC can take " \
"advantage of them.")
#define THREE_DN_TEXT N_("Enable CPU 3D Now! support")
#define THREE_DN_LONGTEXT N_( \
"If your processor supports the 3D Now! instructions set, VLC can take " \
"advantage of them.")
#define MMXEXT_TEXT N_("Enable CPU MMX EXT support")
#define MMXEXT_LONGTEXT N_( \
"If your processor supports the MMX EXT instructions set, VLC can take " \
"advantage of them.")
#define SSE_TEXT N_("Enable CPU SSE support")
#define SSE_LONGTEXT N_( \
"If your processor supports the SSE instructions set, VLC can take " \
"advantage of them.")
#define SSE2_TEXT N_("Enable CPU SSE2 support")
#define SSE2_LONGTEXT N_( \
"If your processor supports the SSE2 instructions set, VLC can take " \
"advantage of them.")
#define SSE3_TEXT N_("Enable CPU SSE3 support")
#define SSE3_LONGTEXT N_( \
"If your processor supports the SSE3 instructions set, VLC can take " \
"advantage of them.")
#define SSSE3_TEXT N_("Enable CPU SSSE3 support")
#define SSSE3_LONGTEXT N_( \
"If your processor supports the SSSE3 instructions set, VLC can take " \
"advantage of them.")
#define SSE4_1_TEXT N_("Enable CPU SSE4.1 support")
#define SSE4_1_LONGTEXT N_( \
"If your processor supports the SSE4.1 instructions set, VLC can take " \
"advantage of them.")
#define SSE4_2_TEXT N_("Enable CPU SSE4.2 support")
#define SSE4_2_LONGTEXT N_( \
"If your processor supports the SSE4.2 instructions set, VLC can take " \
"advantage of them.")
#define ALTIVEC_TEXT N_("Enable CPU AltiVec support")
#define ALTIVEC_LONGTEXT N_( \
"If your processor supports the AltiVec instructions set, VLC can take " \
"advantage of them.")
// DEPRECATED
#define MISC_CAT_LONGTEXT N_( \
"These options allow you to select default modules. Leave these " \
...
...
@@ -2051,18 +2001,18 @@ vlc_module_begin ()
add_category_hint
(
N_
(
"CPU"
),
CPU_CAT_LONGTEXT
,
true
)
add_obsolete_bool
(
"fpu"
)
#if defined( __i386__ ) || defined( __x86_64__ )
add_
bool
(
"mmx"
,
1
,
MMX_TEXT
,
MMX_LONGTEXT
,
true
)
add_
bool
(
"3dn"
,
1
,
THREE_DN_TEXT
,
THREE_DN_LONGTEXT
,
true
)
add_
bool
(
"mmxext"
,
1
,
MMXEXT_TEXT
,
MMXEXT_LONGTEXT
,
true
)
add_
bool
(
"sse"
,
1
,
SSE_TEXT
,
SSE_LONGTEXT
,
true
)
add_
bool
(
"sse2"
,
1
,
SSE2_TEXT
,
SSE2_LONGTEXT
,
true
)
add_
bool
(
"sse3"
,
1
,
SSE3_TEXT
,
SSE3_LONGTEXT
,
true
)
add_
bool
(
"ssse3"
,
1
,
SSSE3_TEXT
,
SSSE3_LONGTEXT
,
true
)
add_
bool
(
"sse41"
,
1
,
SSE4_1_TEXT
,
SSE4_1_LONGTEXT
,
true
)
add_
bool
(
"sse42"
,
1
,
SSE4_2_TEXT
,
SSE4_2_LONGTEXT
,
true
)
add_
obsolete_bool
(
"mmx"
)
/* since 1.2.0 */
add_
obsolete_bool
(
"3dn"
)
/* since 1.2.0 */
add_
obsolete_bool
(
"mmxext"
)
/* since 1.2.0 */
add_
obsolete_bool
(
"sse"
)
/* since 1.2.0 */
add_
obsolete_bool
(
"sse2"
)
/* since 1.2.0 */
add_
obsolete_bool
(
"sse3"
)
/* since 1.2.0 */
add_
obsolete_bool
(
"ssse3"
)
/* since 1.2.0 */
add_
obsolete_bool
(
"sse41"
)
/* since 1.2.0 */
add_
obsolete_bool
(
"sse42"
)
/* since 1.2.0 */
#endif
#if defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc64__ )
add_
bool
(
"altivec"
,
1
,
ALTIVEC_TEXT
,
ALTIVEC_LONGTEXT
,
true
)
add_
obsolete_bool
(
"altivec"
)
/* since 1.2.0 */
#endif
/* Misc options */
...
...
src/libvlc.c
View file @
1081b213
...
...
@@ -677,25 +677,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
p_capabilities
[
0
]
=
'\0'
;
#if defined( __i386__ ) || defined( __x86_64__ )
if
(
!
var_InheritBool
(
p_libvlc
,
"mmx"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_MMX
;
if
(
!
var_InheritBool
(
p_libvlc
,
"3dn"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_3DNOW
;
if
(
!
var_InheritBool
(
p_libvlc
,
"mmxext"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_MMXEXT
;
if
(
!
var_InheritBool
(
p_libvlc
,
"sse"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_SSE
;
if
(
!
var_InheritBool
(
p_libvlc
,
"sse2"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_SSE2
;
if
(
!
var_InheritBool
(
p_libvlc
,
"sse3"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_SSE3
;
if
(
!
var_InheritBool
(
p_libvlc
,
"ssse3"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_SSSE3
;
if
(
!
var_InheritBool
(
p_libvlc
,
"sse41"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_SSE4_1
;
if
(
!
var_InheritBool
(
p_libvlc
,
"sse42"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_SSE4_2
;
PRINT_CAPABILITY
(
CPU_CAPABILITY_MMX
,
"MMX"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_3DNOW
,
"3DNow!"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_MMXEXT
,
"MMXEXT"
);
...
...
@@ -708,9 +689,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
PRINT_CAPABILITY
(
CPU_CAPABILITY_SSE4A
,
"SSE4A"
);
#elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc64__ )
if
(
!
var_InheritBool
(
p_libvlc
,
"altivec"
)
)
cpu_flags
&=
~
CPU_CAPABILITY_ALTIVEC
;
PRINT_CAPABILITY
(
CPU_CAPABILITY_ALTIVEC
,
"AltiVec"
);
#elif defined( __arm__ )
...
...
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