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
c87130e6
Commit
c87130e6
authored
Jan 16, 2004
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/libmpeg2.c:
+ The libmpeg2 plugin honours the --no-mmx, --no-altivec, etc. flags.
parent
0e7ed503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+33
-1
No files found.
modules/codec/libmpeg2.c
View file @
c87130e6
...
...
@@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: libmpeg2.c,v 1.4
1 2003/12/24 09:46:08 gbazin
Exp $
* $Id: libmpeg2.c,v 1.4
2 2004/01/16 09:39:57 sam
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -100,6 +100,7 @@ static int OpenDecoder( vlc_object_t *p_this )
{
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_sys_t
*
p_sys
;
uint32_t
i_accel
=
0
;
if
(
p_dec
->
fmt_in
.
i_codec
!=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
)
&&
p_dec
->
fmt_in
.
i_codec
!=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'1'
)
&&
...
...
@@ -134,6 +135,37 @@ static int OpenDecoder( vlc_object_t *p_this )
p_sys
->
b_slice_i
=
0
;
p_sys
->
b_skip
=
0
;
#if defined( __i386__ )
if
(
p_dec
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_MMX
)
{
i_accel
|=
MPEG2_ACCEL_X86_MMX
;
}
if
(
p_dec
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_3DNOW
)
{
i_accel
|=
MPEG2_ACCEL_X86_3DNOW
;
}
if
(
p_dec
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_MMXEXT
)
{
i_accel
|=
MPEG2_ACCEL_X86_MMXEXT
;
}
#elif defined( __powerpc__ ) || defined( SYS_DARWIN )
if
(
p_dec
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_ALTIVEC
)
{
i_accel
|=
MPEG2_ACCEL_PPC_ALTIVEC
;
}
#else
/* If we do not know this CPU, trust libmpeg2's feature detection */
i_accel
=
MPEG2_ACCEL_DETECT
;
#endif
/* Set CPU acceleration features */
mpeg2_accel
(
i_accel
);
/* Initialize decoder */
p_sys
->
p_mpeg2dec
=
mpeg2_init
();
if
(
p_sys
->
p_mpeg2dec
==
NULL
)
...
...
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