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
0a12d6fd
Commit
0a12d6fd
authored
Jul 05, 2002
by
Falk Hüffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement clear_blocks_axp.
Originally committed as revision 722 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
02da51ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
dsputil_alpha.c
libavcodec/alpha/dsputil_alpha.c
+20
-0
No files found.
libavcodec/alpha/dsputil_alpha.c
View file @
0a12d6fd
...
...
@@ -105,6 +105,24 @@ void add_pixels_clamped_mvi(const DCTELEM *block, uint8_t *pixels,
}
#endif
static
void
clear_blocks_axp
(
DCTELEM
*
blocks
)
{
uint64_t
*
p
=
(
uint64_t
*
)
blocks
;
int
n
=
sizeof
(
DCTELEM
)
*
6
*
64
;
do
{
p
[
0
]
=
0
;
p
[
1
]
=
0
;
p
[
2
]
=
0
;
p
[
3
]
=
0
;
p
[
4
]
=
0
;
p
[
5
]
=
0
;
p
[
6
]
=
0
;
p
[
7
]
=
0
;
p
+=
8
;
n
-=
8
*
8
;
}
while
(
n
);
}
static
inline
uint64_t
avg2_no_rnd
(
uint64_t
a
,
uint64_t
b
)
{
return
(
a
&
b
)
+
(((
a
^
b
)
&
BYTE_VEC
(
0xfe
))
>>
1
);
...
...
@@ -259,6 +277,8 @@ void dsputil_init_alpha(void)
avg_no_rnd_pixels_tab
[
2
]
=
avg_no_rnd_pixels_y2_axp
;
avg_no_rnd_pixels_tab
[
3
]
=
avg_no_rnd_pixels_xy2_axp
;
clear_blocks
=
clear_blocks_axp
;
/* amask clears all bits that correspond to present features. */
if
(
amask
(
AMASK_MVI
)
==
0
)
{
put_pixels_clamped
=
put_pixels_clamped_mvi_asm
;
...
...
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