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
c3e83ad3
Commit
c3e83ad3
authored
Jan 11, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: hpeldsp: Use EXTERNAL_SSE2_FAST where appropriate
parent
1dfc3cf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
hpeldsp_init.c
libavcodec/x86/hpeldsp_init.c
+6
-9
No files found.
libavcodec/x86/hpeldsp_init.c
View file @
c3e83ad3
...
...
@@ -229,15 +229,12 @@ static void hpeldsp_init_3dnow(HpelDSPContext *c, int flags, int cpu_flags)
#endif
/* HAVE_AMD3DNOW_EXTERNAL */
}
static
void
hpeldsp_init_sse2
(
HpelDSPContext
*
c
,
int
flags
,
int
cpu_flags
)
static
void
hpeldsp_init_sse2
_fast
(
HpelDSPContext
*
c
,
int
flags
,
int
cpu_flags
)
{
#if HAVE_SSE2_EXTERNAL
if
(
!
(
cpu_flags
&
AV_CPU_FLAG_SSE2SLOW
))
{
// these functions are slower than mmx on AMD, but faster on Intel
c
->
put_pixels_tab
[
0
][
0
]
=
ff_put_pixels16_sse2
;
c
->
put_no_rnd_pixels_tab
[
0
][
0
]
=
ff_put_pixels16_sse2
;
c
->
avg_pixels_tab
[
0
][
0
]
=
ff_avg_pixels16_sse2
;
}
c
->
put_pixels_tab
[
0
][
0
]
=
ff_put_pixels16_sse2
;
c
->
put_no_rnd_pixels_tab
[
0
][
0
]
=
ff_put_pixels16_sse2
;
c
->
avg_pixels_tab
[
0
][
0
]
=
ff_avg_pixels16_sse2
;
#endif
/* HAVE_SSE2_EXTERNAL */
}
...
...
@@ -254,8 +251,8 @@ av_cold void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags)
if
(
EXTERNAL_MMXEXT
(
cpu_flags
))
hpeldsp_init_mmxext
(
c
,
flags
,
cpu_flags
);
if
(
EXTERNAL_SSE2
(
cpu_flags
))
hpeldsp_init_sse2
(
c
,
flags
,
cpu_flags
);
if
(
EXTERNAL_SSE2
_FAST
(
cpu_flags
))
hpeldsp_init_sse2
_fast
(
c
,
flags
,
cpu_flags
);
if
(
CONFIG_VP3_DECODER
)
ff_hpeldsp_vp3_init_x86
(
c
,
cpu_flags
,
flags
);
...
...
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