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
441e8fe9
Commit
441e8fe9
authored
Oct 09, 2006
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add_bytes passes tests
Originally committed as revision 6600 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5bbe2a52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
dsputil_altivec.c
libavcodec/ppc/dsputil_altivec.c
+4
-7
No files found.
libavcodec/ppc/dsputil_altivec.c
View file @
441e8fe9
...
...
@@ -637,12 +637,12 @@ void add_bytes_altivec(uint8_t *dst, uint8_t *src, int w) {
register
vector
unsigned
char
vdst
,
vsrc
;
/* dst and src are 16 bytes-aligned (guaranteed) */
for
(
i
=
0
;
(
i
+
15
)
<
w
;
i
+
+
)
for
(
i
=
0
;
(
i
+
15
)
<
w
;
i
+
=
16
)
{
vdst
=
vec_ld
(
i
<<
4
,
(
unsigned
char
*
)
dst
);
vsrc
=
vec_ld
(
i
<<
4
,
(
unsigned
char
*
)
src
);
vdst
=
vec_ld
(
i
,
(
unsigned
char
*
)
dst
);
vsrc
=
vec_ld
(
i
,
(
unsigned
char
*
)
src
);
vdst
=
vec_add
(
vsrc
,
vdst
);
vec_st
(
vdst
,
i
<<
4
,
(
unsigned
char
*
)
dst
);
vec_st
(
vdst
,
i
,
(
unsigned
char
*
)
dst
);
}
/* if w is not a multiple of 16 */
for
(;
(
i
<
w
)
;
i
++
)
...
...
@@ -1839,10 +1839,7 @@ void dsputil_init_altivec(DSPContext* c, AVCodecContext *avctx)
c
->
pix_sum
=
pix_sum_altivec
;
c
->
diff_pixels
=
diff_pixels_altivec
;
c
->
get_pixels
=
get_pixels_altivec
;
// next one disabled as it's untested.
#if 0
c
->
add_bytes
=
add_bytes_altivec
;
#endif /* 0 */
c
->
put_pixels_tab
[
0
][
0
]
=
put_pixels16_altivec
;
/* the two functions do the same thing, so use the same code */
c
->
put_no_rnd_pixels_tab
[
0
][
0
]
=
put_pixels16_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