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
6af2c351
Commit
6af2c351
authored
Aug 23, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: Add missing AltiVec cpuflag detection invocations
parent
de81b6ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
fft_altivec.c
libavcodec/ppc/fft_altivec.c
+4
-0
fmtconvert_altivec.c
libavcodec/ppc/fmtconvert_altivec.c
+4
-0
mpegaudiodsp_altivec.c
libavcodec/ppc/mpegaudiodsp_altivec.c
+4
-0
No files found.
libavcodec/ppc/fft_altivec.c
View file @
6af2c351
...
...
@@ -21,6 +21,7 @@
*/
#include "config.h"
#include "libavutil/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/fft.h"
...
...
@@ -142,6 +143,9 @@ static void imdct_calc_altivec(FFTContext *s, FFTSample *output, const FFTSample
av_cold
void
ff_fft_init_ppc
(
FFTContext
*
s
)
{
#if HAVE_GNU_AS && HAVE_ALTIVEC
if
(
!
(
av_get_cpu_flags
()
&
AV_CPU_FLAG_ALTIVEC
))
return
;
s
->
fft_calc
=
ff_fft_calc_interleave_altivec
;
if
(
s
->
mdct_bits
>=
5
)
{
s
->
imdct_calc
=
imdct_calc_altivec
;
...
...
libavcodec/ppc/fmtconvert_altivec.c
View file @
6af2c351
...
...
@@ -20,6 +20,7 @@
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/mem.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/fmtconvert.h"
...
...
@@ -164,6 +165,9 @@ av_cold void ff_fmt_convert_init_ppc(FmtConvertContext *c,
AVCodecContext
*
avctx
)
{
#if HAVE_ALTIVEC
if
(
!
(
av_get_cpu_flags
()
&
AV_CPU_FLAG_ALTIVEC
))
return
;
c
->
int32_to_float_fmul_scalar
=
int32_to_float_fmul_scalar_altivec
;
if
(
!
(
avctx
->
flags
&
CODEC_FLAG_BITEXACT
))
{
c
->
float_to_int16
=
float_to_int16_altivec
;
...
...
libavcodec/ppc/mpegaudiodsp_altivec.c
View file @
6af2c351
...
...
@@ -21,6 +21,7 @@
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/internal.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/mpegaudiodsp.h"
...
...
@@ -132,6 +133,9 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out,
av_cold
void
ff_mpadsp_init_ppc
(
MPADSPContext
*
s
)
{
#if HAVE_ALTIVEC
if
(
!
(
av_get_cpu_flags
()
&
AV_CPU_FLAG_ALTIVEC
))
return
;
s
->
apply_window_float
=
apply_window_mp3
;
#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