Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
03c9f357
Commit
03c9f357
authored
Jul 31, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: idctdsp: Immediately return if no AltiVec is available
This is how all the other init functions operate.
parent
706208ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
idctdsp.c
libavcodec/ppc/idctdsp.c
+9
-8
No files found.
libavcodec/ppc/idctdsp.c
View file @
03c9f357
...
...
@@ -231,14 +231,15 @@ av_cold void ff_idctdsp_init_ppc(IDCTDSPContext *c, AVCodecContext *avctx,
unsigned
high_bit_depth
)
{
#if HAVE_ALTIVEC
if
(
PPC_ALTIVEC
(
av_get_cpu_flags
()))
{
if
(
!
high_bit_depth
)
{
if
((
avctx
->
idct_algo
==
FF_IDCT_AUTO
)
||
(
avctx
->
idct_algo
==
FF_IDCT_ALTIVEC
))
{
c
->
idct_add
=
idct_add_altivec
;
c
->
idct_put
=
idct_put_altivec
;
c
->
perm_type
=
FF_IDCT_PERM_TRANSPOSE
;
}
if
(
!
PPC_ALTIVEC
(
av_get_cpu_flags
()))
return
;
if
(
!
high_bit_depth
)
{
if
((
avctx
->
idct_algo
==
FF_IDCT_AUTO
)
||
(
avctx
->
idct_algo
==
FF_IDCT_ALTIVEC
))
{
c
->
idct_add
=
idct_add_altivec
;
c
->
idct_put
=
idct_put_altivec
;
c
->
perm_type
=
FF_IDCT_PERM_TRANSPOSE
;
}
}
#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