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
a1d0b6a2
Commit
a1d0b6a2
authored
Oct 02, 2007
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: Fix AltiVec spelling.
Originally committed as revision 10639 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6006a689
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
optimization.txt
doc/optimization.txt
+2
-2
dsputil_altivec.c
libavcodec/ppc/dsputil_altivec.c
+1
-1
dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.c
+1
-1
mpegvideo_ppc.c
libavcodec/ppc/mpegvideo_ppc.c
+2
-2
snow_altivec.c
libavcodec/ppc/snow_altivec.c
+1
-1
No files found.
doc/optimization.txt
View file @
a1d0b6a2
...
@@ -168,10 +168,10 @@ http://download.intel.com/design/intelxscale/27347302.pdf
...
@@ -168,10 +168,10 @@ http://download.intel.com/design/intelxscale/27347302.pdf
PowerPC-specific:
PowerPC-specific:
PowerPC32/Alti
v
ec PIM:
PowerPC32/Alti
V
ec PIM:
www.freescale.com/files/32bit/doc/ref_manual/ALTIVECPEM.pdf
www.freescale.com/files/32bit/doc/ref_manual/ALTIVECPEM.pdf
PowerPC32/Alti
v
ec PEM:
PowerPC32/Alti
V
ec PEM:
www.freescale.com/files/32bit/doc/ref_manual/ALTIVECPIM.pdf
www.freescale.com/files/32bit/doc/ref_manual/ALTIVECPIM.pdf
CELL/SPU:
CELL/SPU:
...
...
libavcodec/ppc/dsputil_altivec.c
View file @
a1d0b6a2
...
@@ -216,7 +216,7 @@ int sad16_xy2_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int
...
@@ -216,7 +216,7 @@ int sad16_xy2_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int
pix3iv
=
vec_perm
(
tv
[
0
],
tv
[
1
],
vec_lvsl
(
0
,
&
pix3
[
1
]));
pix3iv
=
vec_perm
(
tv
[
0
],
tv
[
1
],
vec_lvsl
(
0
,
&
pix3
[
1
]));
/*
/*
Note that Alti
v
ec does have vec_avg, but this works on vector pairs
Note that Alti
V
ec does have vec_avg, but this works on vector pairs
and rounds up. We could do avg(avg(a,b),avg(c,d)), but the rounding
and rounds up. We could do avg(avg(a,b),avg(c,d)), but the rounding
would mean that, for example, avg(3,0,0,1) = 2, when it should be 1.
would mean that, for example, avg(3,0,0,1) = 2, when it should be 1.
Instead, we have to split the pixel vectors into vectors of shorts,
Instead, we have to split the pixel vectors into vectors of shorts,
...
...
libavcodec/ppc/dsputil_ppc.c
View file @
a1d0b6a2
...
@@ -257,7 +257,7 @@ static void prefetch_ppc(void *mem, int stride, int h)
...
@@ -257,7 +257,7 @@ static void prefetch_ppc(void *mem, int stride, int h)
void
dsputil_init_ppc
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
void
dsputil_init_ppc
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
{
// Common optimizations whether Alti
v
ec is available or not
// Common optimizations whether Alti
V
ec is available or not
c
->
prefetch
=
prefetch_ppc
;
c
->
prefetch
=
prefetch_ppc
;
switch
(
check_dcbzl_effect
())
{
switch
(
check_dcbzl_effect
())
{
case
32
:
case
32
:
...
...
libavcodec/ppc/mpegvideo_ppc.c
View file @
a1d0b6a2
...
@@ -51,14 +51,14 @@ void MPV_common_init_ppc(MpegEncContext *s)
...
@@ -51,14 +51,14 @@ void MPV_common_init_ppc(MpegEncContext *s)
(((
long
)(
s
->
q_inter_matrix
)
&
0x0f
)
!=
0
))
(((
long
)(
s
->
q_inter_matrix
)
&
0x0f
)
!=
0
))
{
{
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Internal Error: q-matrix blocks must be 16-byte aligned "
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Internal Error: q-matrix blocks must be 16-byte aligned "
"to use Alti
vec DCT. Reverting to non-altiv
ec version.
\n
"
);
"to use Alti
Vec DCT. Reverting to non-AltiV
ec version.
\n
"
);
return
;
return
;
}
}
if
(((
long
)(
s
->
intra_scantable
.
inverse
)
&
0x0f
)
!=
0
)
if
(((
long
)(
s
->
intra_scantable
.
inverse
)
&
0x0f
)
!=
0
)
{
{
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Internal Error: scan table blocks must be 16-byte aligned "
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Internal Error: scan table blocks must be 16-byte aligned "
"to use Alti
vec DCT. Reverting to non-altiv
ec version.
\n
"
);
"to use Alti
Vec DCT. Reverting to non-AltiV
ec version.
\n
"
);
return
;
return
;
}
}
...
...
libavcodec/ppc/snow_altivec.c
View file @
a1d0b6a2
/*
/*
* Alti
vec
optimized snow DSP utils
* Alti
Vec-
optimized snow DSP utils
* Copyright (c) 2006 Luca Barbato <lu_zero@gentoo.org>
* Copyright (c) 2006 Luca Barbato <lu_zero@gentoo.org>
*
*
* This file is part of FFmpeg.
* This file is part of FFmpeg.
...
...
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