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
02c39f05
Commit
02c39f05
authored
Apr 02, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: Add/remove a number of const qualifiers to fix related warnings.
parent
b073819b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
gmc_altivec.c
libavcodec/ppc/gmc_altivec.c
+1
-1
int_altivec.c
libavcodec/ppc/int_altivec.c
+2
-1
yuv2rgb_altivec.c
libswscale/ppc/yuv2rgb_altivec.c
+5
-5
No files found.
libavcodec/ppc/gmc_altivec.c
View file @
02c39f05
...
...
@@ -48,7 +48,7 @@ void ff_gmc1_altivec(uint8_t *dst /* align 8 */, uint8_t *src /* align1 */, int
unsigned
long
dst_odd
=
(
unsigned
long
)
dst
&
0x0000000F
;
unsigned
long
src_really_odd
=
(
unsigned
long
)
src
&
0x0000000F
;
tempA
=
vec_ld
(
0
,
(
unsigned
short
*
)
ABCD
);
tempA
=
vec_ld
(
0
,
(
const
unsigned
short
*
)
ABCD
);
Av
=
vec_splat
(
tempA
,
0
);
Bv
=
vec_splat
(
tempA
,
1
);
Cv
=
vec_splat
(
tempA
,
2
);
...
...
libavcodec/ppc/int_altivec.c
View file @
02c39f05
...
...
@@ -79,7 +79,8 @@ static int ssd_int8_vs_int16_altivec(const int8_t *pix1, const int16_t *pix2,
return
u
.
score
[
3
];
}
static
int32_t
scalarproduct_int16_altivec
(
const
int16_t
*
v1
,
const
int16_t
*
v2
,
int
order
,
const
int
shift
)
static
int32_t
scalarproduct_int16_altivec
(
int16_t
*
v1
,
const
int16_t
*
v2
,
int
order
,
const
int
shift
)
{
int
i
;
LOAD_ZERO
;
...
...
libswscale/ppc/yuv2rgb_altivec.c
View file @
02c39f05
...
...
@@ -300,7 +300,7 @@ static int altivec_ ## name(SwsContext *c, const unsigned char **in, \
vector signed short R1, G1, B1; \
vector unsigned char R, G, B; \
\
vector unsigned char *y1ivP, *y2ivP, *uivP, *vivP;
\
const vector unsigned char *y1ivP, *y2ivP, *uivP, *vivP;
\
vector unsigned char align_perm; \
\
vector signed short lCY = c->CY; \
...
...
@@ -335,10 +335,10 @@ static int altivec_ ## name(SwsContext *c, const unsigned char **in, \
vec_dstst(oute, (0x02000002 | (((w * 3 + 32) / 32) << 16)), 1); \
\
for (j = 0; j < w / 16; j++) { \
y1ivP = (
vector unsigned char *) y1i;
\
y2ivP = (
vector unsigned char *) y2i;
\
uivP = (
vector unsigned char *) ui;
\
vivP = (
vector unsigned char *) vi;
\
y1ivP = (
const vector unsigned char *) y1i;
\
y2ivP = (
const vector unsigned char *) y2i;
\
uivP = (
const vector unsigned char *) ui;
\
vivP = (
const vector unsigned char *) vi;
\
\
align_perm = vec_lvsl(0, y1i); \
y0 = (vector unsigned char) \
...
...
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