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
ac3062f1
Commit
ac3062f1
authored
Mar 18, 2019
by
Lauri Kasanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/ppc: Clean up some mixed decl warnings
parent
0739d5cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
swscale_altivec.c
libswscale/ppc/swscale_altivec.c
+3
-3
swscale_ppc_template.c
libswscale/ppc/swscale_ppc_template.c
+5
-4
swscale_vsx.c
libswscale/ppc/swscale_vsx.c
+3
-3
No files found.
libswscale/ppc/swscale_altivec.c
View file @
ac3062f1
...
...
@@ -43,10 +43,10 @@
#define yuv2planeX_8(d1, d2, l1, src, x, perm, filter) do {\
vector signed short ls;\
vector signed int vf1, vf2, i1, i2;\
GET_LS(l1, x, perm, src);\
vector signed int i1 = vec_mule(filter, ls);\
vector signed int i2 = vec_mulo(filter, ls);\
vector signed int vf1, vf2;\
i1 = vec_mule(filter, ls);\
i2 = vec_mulo(filter, ls);\
vf1 = vec_mergeh(i1, i2);\
vf2 = vec_mergel(i1, i2);\
d1 = vec_add(d1, vf1);\
...
...
libswscale/ppc/swscale_ppc_template.c
View file @
ac3062f1
...
...
@@ -184,16 +184,17 @@ static void FUNC(hScale_real)(SwsContext *c, int16_t *dst, int dstW,
for
(
j
=
0
;
j
<
filterSize
-
15
;
j
+=
16
)
{
vector
unsigned
char
src_v1
,
src_vF
;
vector
signed
short
filter_v1R
,
filter_v2R
,
filter_v0
,
filter_v1
;
vector
signed
short
filter_v1R
,
filter_v2R
,
filter_v0
,
filter_v1
,
src_vA
,
src_vB
;
vector
signed
int
val_acc
;
LOAD_SRCV
(
srcPos
,
j
,
src
,
permS
,
src_v0
,
src_v1
,
src_vF
);
vector
signed
short
src_vA
=
// vec_unpackh sign-extends...
src_vA
=
// vec_unpackh sign-extends...
(
vector
signed
short
)(
VEC_MERGEH
((
vector
unsigned
char
)
vzero
,
src_vF
));
vector
signed
short
src_vB
=
// vec_unpackh sign-extends...
src_vB
=
// vec_unpackh sign-extends...
(
vector
signed
short
)(
VEC_MERGEL
((
vector
unsigned
char
)
vzero
,
src_vF
));
GET_VFD
(
i
,
j
,
filter
,
filter_v0R
,
filter_v1R
,
permF
,
filter_v0
,
0
);
GET_VFD
(
i
,
j
,
filter
,
filter_v1R
,
filter_v2R
,
permF
,
filter_v1
,
16
);
v
ector
signed
int
v
al_acc
=
vec_msums
(
src_vA
,
filter_v0
,
val_v
);
val_acc
=
vec_msums
(
src_vA
,
filter_v0
,
val_v
);
val_v
=
vec_msums
(
src_vB
,
filter_v1
,
val_acc
);
UPDATE_PTR
(
filter_v2R
,
filter_v0R
,
src_v1
,
src_v0
);
}
...
...
libswscale/ppc/swscale_vsx.c
View file @
ac3062f1
...
...
@@ -42,10 +42,10 @@
#define yuv2planeX_8(d1, d2, l1, src, x, perm, filter) do {\
vector signed short ls;\
vector signed int vf1, vf2, i1, i2;\
GET_LS(l1, x, perm, src);\
vector signed int i1 = vec_mule(filter, ls);\
vector signed int i2 = vec_mulo(filter, ls);\
vector signed int vf1, vf2;\
i1 = vec_mule(filter, ls);\
i2 = vec_mulo(filter, ls);\
vf1 = vec_mergeh(i1, i2);\
vf2 = vec_mergel(i1, i2);\
d1 = vec_add(d1, vf1);\
...
...
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