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
a1ee749f
Commit
a1ee749f
authored
Mar 16, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/libvlc.[c,h]: new --(no-)fpu option (mainly for debugging purposes).
parent
732f8f22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/libvlc.c
src/libvlc.c
+3
-0
src/libvlc.h
src/libvlc.h
+6
-0
No files found.
src/libvlc.c
View file @
a1ee749f
...
...
@@ -571,6 +571,9 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
/* p_vlc initialization. FIXME ? */
if
(
!
config_GetInt
(
p_vlc
,
"fpu"
)
)
libvlc
.
i_cpu
&=
~
CPU_CAPABILITY_FPU
;
#if defined( __i386__ )
if
(
!
config_GetInt
(
p_vlc
,
"mmx"
)
)
libvlc
.
i_cpu
&=
~
CPU_CAPABILITY_MMX
;
...
...
src/libvlc.h
View file @
a1ee749f
...
...
@@ -587,6 +587,11 @@ static char *ppsz_clock_descriptions[] =
"These options allow you to enable special CPU optimizations.\n" \
"You should always leave all these enabled." )
#define FPU_TEXT N_("Enable FPU support")
#define FPU_LONGTEXT N_( \
"If your processor has a floating point calculation unit, VLC can take " \
"advantage of it.")
#define MMX_TEXT N_("Enable CPU MMX support")
#define MMX_LONGTEXT N_( \
"If your processor supports the MMX instructions set, VLC can take " \
...
...
@@ -1149,6 +1154,7 @@ vlc_module_begin();
set_category
(
CAT_ADVANCED
);
set_subcategory
(
SUBCAT_ADVANCED_CPU
);
add_category_hint
(
N_
(
"CPU"
),
CPU_CAT_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"fpu"
,
1
,
NULL
,
FPU_TEXT
,
FPU_LONGTEXT
,
VLC_TRUE
);
#if defined( __i386__ )
add_bool
(
"mmx"
,
1
,
NULL
,
MMX_TEXT
,
MMX_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"3dn"
,
1
,
NULL
,
THREE_DN_TEXT
,
THREE_DN_LONGTEXT
,
VLC_TRUE
);
...
...
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