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
fba18ef8
Commit
fba18ef8
authored
Jun 22, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/dsputil_mmx: support 4 sample edges
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
15bde060
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+20
-1
No files found.
libavcodec/x86/dsputil_mmx.c
View file @
fba18ef8
...
...
@@ -807,7 +807,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height,
:
"+r"
(
ptr
)
:
"r"
((
x86_reg
)
wrap
),
"r"
((
x86_reg
)
width
),
"r"
(
ptr
+
wrap
*
height
)
);
}
else
{
}
else
if
(
w
==
16
)
{
__asm__
volatile
(
"1:
\n\t
"
"movd (%0), %%mm0
\n\t
"
...
...
@@ -828,6 +828,25 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height,
:
"+r"
(
ptr
)
:
"r"
((
x86_reg
)
wrap
),
"r"
((
x86_reg
)
width
),
"r"
(
ptr
+
wrap
*
height
)
);
}
else
{
av_assert1
(
w
==
4
);
__asm__
volatile
(
"1:
\n\t
"
"movd (%0), %%mm0
\n\t
"
"punpcklbw %%mm0, %%mm0
\n\t
"
"punpcklwd %%mm0, %%mm0
\n\t
"
"movd %%mm0, -4(%0)
\n\t
"
"movd -4(%0, %2), %%mm1
\n\t
"
"punpcklbw %%mm1, %%mm1
\n\t
"
"punpckhwd %%mm1, %%mm1
\n\t
"
"punpckhdq %%mm1, %%mm1
\n\t
"
"movd %%mm1, (%0, %2)
\n\t
"
"add %1, %0
\n\t
"
"cmp %3, %0
\n\t
"
"jb 1b
\n\t
"
:
"+r"
(
ptr
)
:
"r"
((
x86_reg
)
wrap
),
"r"
((
x86_reg
)
width
),
"r"
(
ptr
+
wrap
*
height
)
);
}
/* top and bottom (and hopefully also the corners) */
...
...
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