Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
205fdd4e
Commit
205fdd4e
authored
Jun 05, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: Fix runtime CPU detection for apedsp, huffyuvdsp, svq1enc
parent
f121dbd9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
apedsp_altivec.c
libavcodec/ppc/apedsp_altivec.c
+5
-0
huffyuvdsp_altivec.c
libavcodec/ppc/huffyuvdsp_altivec.c
+5
-0
svq1enc_altivec.c
libavcodec/ppc/svq1enc_altivec.c
+5
-0
No files found.
libavcodec/ppc/apedsp_altivec.c
View file @
205fdd4e
...
...
@@ -24,6 +24,8 @@
#endif
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavcodec/apedsp.h"
...
...
@@ -72,6 +74,9 @@ static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1,
av_cold
void
ff_apedsp_init_ppc
(
APEDSPContext
*
c
)
{
#if HAVE_ALTIVEC
if
(
!
PPC_ALTIVEC
(
av_get_cpu_flags
()))
return
;
c
->
scalarproduct_and_madd_int16
=
scalarproduct_and_madd_int16_altivec
;
#endif
/* HAVE_ALTIVEC */
}
libavcodec/ppc/huffyuvdsp_altivec.c
View file @
205fdd4e
...
...
@@ -26,6 +26,8 @@
#endif
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/huffyuvdsp.h"
...
...
@@ -52,6 +54,9 @@ static void add_bytes_altivec(uint8_t *dst, uint8_t *src, int w)
av_cold
void
ff_huffyuvdsp_init_ppc
(
HuffYUVDSPContext
*
c
)
{
#if HAVE_ALTIVEC
if
(
!
PPC_ALTIVEC
(
av_get_cpu_flags
()))
return
;
c
->
add_bytes
=
add_bytes_altivec
;
#endif
/* HAVE_ALTIVEC */
}
libavcodec/ppc/svq1enc_altivec.c
View file @
205fdd4e
...
...
@@ -26,6 +26,8 @@
#endif
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/svq1enc.h"
...
...
@@ -75,6 +77,9 @@ static int ssd_int8_vs_int16_altivec(const int8_t *pix1, const int16_t *pix2,
av_cold
void
ff_svq1enc_init_ppc
(
SVQ1EncContext
*
c
)
{
#if HAVE_ALTIVEC
if
(
!
PPC_ALTIVEC
(
av_get_cpu_flags
()))
return
;
c
->
ssd_int8_vs_int16
=
ssd_int8_vs_int16_altivec
;
#endif
/* HAVE_ALTIVEC */
}
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