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
79811694
Commit
79811694
authored
Oct 28, 2001
by
Nick Kurshev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfence
Originally committed as revision 2514 to
svn://svn.mplayerhq.hu/mplayer/trunk/postproc
parent
18224bc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
rgb2rgb.c
postproc/rgb2rgb.c
+7
-0
rgb2rgb_template.c
postproc/rgb2rgb_template.c
+7
-0
No files found.
postproc/rgb2rgb.c
View file @
79811694
...
...
@@ -23,6 +23,10 @@
#define MOVNTQ "movq"
#endif
#ifdef HAVE_MMX2
#define SFENCE "sfence"
#endif
void
rgb24to32
(
uint8_t
*
src
,
uint8_t
*
dst
,
uint32_t
src_size
)
{
uint8_t
*
dest
=
dst
;
...
...
@@ -65,6 +69,9 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
dest
+=
16
;
s
+=
12
;
}
#ifdef SFENCE
__asm
__volatile
(
SFENCE
:::
"memory"
);
#endif
__asm
__volatile
(
EMMS
:::
"memory"
);
#endif
while
(
s
<
end
)
...
...
postproc/rgb2rgb_template.c
View file @
79811694
...
...
@@ -23,6 +23,10 @@
#define MOVNTQ "movq"
#endif
#ifdef HAVE_MMX2
#define SFENCE "sfence"
#endif
void
rgb24to32
(
uint8_t
*
src
,
uint8_t
*
dst
,
uint32_t
src_size
)
{
uint8_t
*
dest
=
dst
;
...
...
@@ -65,6 +69,9 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
dest
+=
16
;
s
+=
12
;
}
#ifdef SFENCE
__asm
__volatile
(
SFENCE
:::
"memory"
);
#endif
__asm
__volatile
(
EMMS
:::
"memory"
);
#endif
while
(
s
<
end
)
...
...
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