Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
8f735381
Commit
8f735381
authored
Jan 29, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/vlc_common.h:
* defined a CPU_CAPABILITY_SSE2 src/libvlc.(c|h): * implemented --see2/--no-sse2
parent
afd56ce5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
include/vlc_common.h
include/vlc_common.h
+2
-1
src/libvlc.c
src/libvlc.c
+4
-1
src/libvlc.h
src/libvlc.h
+7
-1
No files found.
include/vlc_common.h
View file @
8f735381
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
* Collection of useful common types and macros definitions
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc_common.h,v 1.10
6 2004/01/26 20:48:09 fenrir
Exp $
* $Id: vlc_common.h,v 1.10
7 2004/01/29 14:39:08 sigmunau
Exp $
*
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
@@ -794,6 +794,7 @@ VLC_EXPORT( char *, vlc_wraptext, ( const char *, int, vlc_bool_t ) );
...
@@ -794,6 +794,7 @@ VLC_EXPORT( char *, vlc_wraptext, ( const char *, int, vlc_bool_t ) );
#define CPU_CAPABILITY_3DNOW (1<<4)
#define CPU_CAPABILITY_3DNOW (1<<4)
#define CPU_CAPABILITY_MMXEXT (1<<5)
#define CPU_CAPABILITY_MMXEXT (1<<5)
#define CPU_CAPABILITY_SSE (1<<6)
#define CPU_CAPABILITY_SSE (1<<6)
#define CPU_CAPABILITY_SSE2 (1<<7)
#define CPU_CAPABILITY_ALTIVEC (1<<16)
#define CPU_CAPABILITY_ALTIVEC (1<<16)
#define CPU_CAPABILITY_FPU (1<<31)
#define CPU_CAPABILITY_FPU (1<<31)
...
...
src/libvlc.c
View file @
8f735381
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libvlc.c: main libvlc source
* libvlc.c: main libvlc source
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2004 VideoLAN
* Copyright (C) 1998-2004 VideoLAN
* $Id: libvlc.c,v 1.11
3 2004/01/25 17:16:05 zorglub
Exp $
* $Id: libvlc.c,v 1.11
4 2004/01/29 14:39:08 sigmunau
Exp $
*
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -529,6 +529,8 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
...
@@ -529,6 +529,8 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
libvlc
.
i_cpu
&=
~
CPU_CAPABILITY_MMXEXT
;
libvlc
.
i_cpu
&=
~
CPU_CAPABILITY_MMXEXT
;
if
(
!
config_GetInt
(
p_vlc
,
"sse"
)
)
if
(
!
config_GetInt
(
p_vlc
,
"sse"
)
)
libvlc
.
i_cpu
&=
~
CPU_CAPABILITY_SSE
;
libvlc
.
i_cpu
&=
~
CPU_CAPABILITY_SSE
;
if
(
!
config_GetInt
(
p_vlc
,
"sse2"
)
)
libvlc
.
i_cpu
&=
~
CPU_CAPABILITY_SSE2
;
#endif
#endif
#if defined( __powerpc__ ) || defined( SYS_DARWIN )
#if defined( __powerpc__ ) || defined( SYS_DARWIN )
if
(
!
config_GetInt
(
p_vlc
,
"altivec"
)
)
if
(
!
config_GetInt
(
p_vlc
,
"altivec"
)
)
...
@@ -551,6 +553,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
...
@@ -551,6 +553,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
PRINT_CAPABILITY
(
CPU_CAPABILITY_3DNOW
,
"3DNow!"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_3DNOW
,
"3DNow!"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_MMXEXT
,
"MMXEXT"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_MMXEXT
,
"MMXEXT"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_SSE
,
"SSE"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_SSE
,
"SSE"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_SSE2
,
"SSE2"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_ALTIVEC
,
"AltiVec"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_ALTIVEC
,
"AltiVec"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_FPU
,
"FPU"
);
PRINT_CAPABILITY
(
CPU_CAPABILITY_FPU
,
"FPU"
);
msg_Dbg
(
p_vlc
,
"CPU has capabilities %s"
,
p_capabilities
);
msg_Dbg
(
p_vlc
,
"CPU has capabilities %s"
,
p_capabilities
);
...
...
src/libvlc.h
View file @
8f735381
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libvlc.h: main libvlc header
* libvlc.h: main libvlc header
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* Copyright (C) 1998-2002 VideoLAN
* $Id: libvlc.h,v 1.13
0 2004/01/25 13:50:33 zorglub
Exp $
* $Id: libvlc.h,v 1.13
1 2004/01/29 14:39:08 sigmunau
Exp $
*
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -466,6 +466,11 @@ static char *ppsz_align_descriptions[] = { N_("Center"),
...
@@ -466,6 +466,11 @@ static char *ppsz_align_descriptions[] = { N_("Center"),
"If your processor supports the SSE instructions set, VLC can take " \
"If your processor supports the SSE instructions set, VLC can take " \
"advantage of them.")
"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 ALTIVEC_TEXT N_("Enable CPU AltiVec support")
#define ALTIVEC_TEXT N_("Enable CPU AltiVec support")
#define ALTIVEC_LONGTEXT N_( \
#define ALTIVEC_LONGTEXT N_( \
"If your processor supports the AltiVec instructions set, VLC can take " \
"If your processor supports the AltiVec instructions set, VLC can take " \
...
@@ -814,6 +819,7 @@ vlc_module_begin();
...
@@ -814,6 +819,7 @@ vlc_module_begin();
add_bool
(
"3dn"
,
1
,
NULL
,
THREE_DN_TEXT
,
THREE_DN_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"3dn"
,
1
,
NULL
,
THREE_DN_TEXT
,
THREE_DN_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"mmxext"
,
1
,
NULL
,
MMXEXT_TEXT
,
MMXEXT_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"mmxext"
,
1
,
NULL
,
MMXEXT_TEXT
,
MMXEXT_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sse"
,
1
,
NULL
,
SSE_TEXT
,
SSE_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sse"
,
1
,
NULL
,
SSE_TEXT
,
SSE_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sse2"
,
1
,
NULL
,
SSE2_TEXT
,
SSE2_LONGTEXT
,
VLC_TRUE
);
#endif
#endif
#if defined( __powerpc__ ) || defined( SYS_DARWIN )
#if defined( __powerpc__ ) || defined( SYS_DARWIN )
add_bool
(
"altivec"
,
1
,
NULL
,
ALTIVEC_TEXT
,
ALTIVEC_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"altivec"
,
1
,
NULL
,
ALTIVEC_TEXT
,
ALTIVEC_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