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
c4fd283a
Commit
c4fd283a
authored
May 24, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: use emms_c().
parent
e9735572
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
utils.c
libswscale/utils.c
+2
-4
swscale_template.c
libswscale/x86/swscale_template.c
+1
-1
No files found.
libswscale/utils.c
View file @
c4fd283a
...
...
@@ -193,8 +193,7 @@ static int initFilter(int16_t **outFilter, int16_t **filterPos, int *outFilterSi
const
int64_t
fone
=
1LL
<<
54
;
int
ret
=
-
1
;
if
(
HAVE_MMX
&&
cpu_flags
&
AV_CPU_FLAG_MMX
)
__asm__
volatile
(
"emms
\n\t
"
:::
"memory"
);
//FIXME this should not be required but it IS (even for non-MMX versions)
emms_c
();
//FIXME this should not be required but it IS (even for non-MMX versions)
// NOTE: the +1 is for the MMX scaler which reads over the end
FF_ALLOC_OR_GOTO
(
NULL
,
*
filterPos
,
(
dstW
+
1
)
*
sizeof
(
int16_t
),
fail
);
...
...
@@ -757,8 +756,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
cpu_flags
=
av_get_cpu_flags
();
flags
=
c
->
flags
;
if
(
HAVE_MMX
&&
cpu_flags
&
AV_CPU_FLAG_MMX
)
__asm__
volatile
(
"emms
\n\t
"
:::
"memory"
);
emms_c
();
if
(
!
rgb15to16
)
sws_rgb2rgb_init
();
unscaled
=
(
srcW
==
dstW
&&
srcH
==
dstH
);
...
...
libswscale/x86/swscale_template.c
View file @
c4fd283a
...
...
@@ -2494,7 +2494,7 @@ static int RENAME(swScale)(SwsContext *c, const uint8_t* src[], int srcStride[],
fillPlane
(
dst
[
3
],
dstStride
[
3
],
dstW
,
dstY
-
lastDstY
,
lastDstY
,
255
);
if
(
COMPILE_TEMPLATE_MMX2
)
__asm__
volatile
(
"sfence"
:::
"memory"
);
__asm__
volatile
(
"emms"
:::
"memory"
);
emms_c
(
);
/* store changed local vars back in the context */
c
->
dstY
=
dstY
;
...
...
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