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
090481f4
Commit
090481f4
authored
Oct 06, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/postprocess.c: altivec CPU detection.
parent
1b6136ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/codec/ffmpeg/postprocess.c
modules/codec/ffmpeg/postprocess.c
+10
-1
No files found.
modules/codec/ffmpeg/postprocess.c
View file @
090481f4
...
...
@@ -2,7 +2,7 @@
* postprocess.c: video postprocessing using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id
: postprocess.c,v 1.7 2004/01/25 18:20:12 bigben Exp
$
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -43,6 +43,10 @@
# include <libpostproc/postprocess.h>
#endif
#ifndef PP_CPU_CAPS_ALTIVEC
# define PP_CPU_CAPS_ALTIVEC 0
#endif
/*****************************************************************************
* video_postproc_sys_t : ffmpeg video postprocessing descriptor
*****************************************************************************/
...
...
@@ -121,6 +125,7 @@ int E_(InitPostproc)( decoder_t *p_dec, void *p_data,
int32_t
i_cpu
=
p_dec
->
p_libvlc
->
i_cpu
;
int
i_flags
=
0
;
/* Set CPU capabilities */
if
(
i_cpu
&
CPU_CAPABILITY_MMX
)
{
i_flags
|=
PP_CPU_CAPS_MMX
;
...
...
@@ -133,6 +138,10 @@ int E_(InitPostproc)( decoder_t *p_dec, void *p_data,
{
i_flags
|=
PP_CPU_CAPS_3DNOW
;
}
if
(
i_cpu
&
CPU_CAPABILITY_ALTIVEC
)
{
i_flags
|=
PP_CPU_CAPS_ALTIVEC
;
}
switch
(
pix_fmt
)
{
...
...
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