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
4efab893
Commit
4efab893
authored
Jan 14, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: Use *_FAST/*_SLOW CPU feature detection macros where appropriate
parent
0a39c9ac
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
13 deletions
+17
-13
ac3dsp_init.c
libavcodec/x86/ac3dsp_init.c
+8
-5
h264_qpel.c
libavcodec/x86/h264_qpel.c
+6
-5
lpc.c
libavcodec/x86/lpc.c
+1
-1
vp8dsp_init.c
libavcodec/x86/vp8dsp_init.c
+2
-2
No files found.
libavcodec/x86/ac3dsp_init.c
View file @
4efab893
...
...
@@ -223,16 +223,19 @@ av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c, int bit_exact)
c
->
float_to_fixed24
=
ff_float_to_fixed24_sse2
;
c
->
compute_mantissa_size
=
ff_ac3_compute_mantissa_size_sse2
;
c
->
extract_exponents
=
ff_ac3_extract_exponents_sse2
;
if
(
!
(
cpu_flags
&
AV_CPU_FLAG_SSE2SLOW
))
{
c
->
ac3_lshift_int16
=
ff_ac3_lshift_int16_sse2
;
c
->
ac3_rshift_int32
=
ff_ac3_rshift_int32_sse2
;
}
if
(
bit_exact
)
{
c
->
apply_window_int16
=
ff_apply_window_int16_sse2
;
}
else
if
(
!
(
cpu_flags
&
AV_CPU_FLAG_SSE2SLOW
))
{
}
}
if
(
EXTERNAL_SSE2_FAST
(
cpu_flags
))
{
c
->
ac3_lshift_int16
=
ff_ac3_lshift_int16_sse2
;
c
->
ac3_rshift_int32
=
ff_ac3_rshift_int32_sse2
;
if
(
!
bit_exact
)
{
c
->
apply_window_int16
=
ff_apply_window_int16_round_sse2
;
}
}
if
(
EXTERNAL_SSSE3
(
cpu_flags
))
{
c
->
ac3_max_msb_abs_int16
=
ff_ac3_max_msb_abs_int16_ssse3
;
if
(
cpu_flags
&
AV_CPU_FLAG_ATOM
)
{
...
...
libavcodec/x86/h264_qpel.c
View file @
4efab893
...
...
@@ -566,11 +566,6 @@ av_cold void ff_h264qpel_init_x86(H264QpelContext *c, int bit_depth)
}
if
(
EXTERNAL_SSE2
(
cpu_flags
))
{
if
(
!
(
cpu_flags
&
AV_CPU_FLAG_SSE2SLOW
)
&&
!
high_bit_depth
)
{
// these functions are slower than mmx on AMD, but faster on Intel
H264_QPEL_FUNCS
(
0
,
0
,
sse2
);
}
if
(
!
high_bit_depth
)
{
H264_QPEL_FUNCS
(
0
,
1
,
sse2
);
H264_QPEL_FUNCS
(
0
,
2
,
sse2
);
...
...
@@ -597,6 +592,12 @@ av_cold void ff_h264qpel_init_x86(H264QpelContext *c, int bit_depth)
}
}
if
(
EXTERNAL_SSE2_FAST
(
cpu_flags
))
{
if
(
!
high_bit_depth
)
{
H264_QPEL_FUNCS
(
0
,
0
,
sse2
);
}
}
if
(
EXTERNAL_SSSE3
(
cpu_flags
))
{
if
(
!
high_bit_depth
)
{
H264_QPEL_FUNCS
(
1
,
0
,
ssse3
);
...
...
libavcodec/x86/lpc.c
View file @
4efab893
...
...
@@ -152,7 +152,7 @@ av_cold void ff_lpc_init_x86(LPCContext *c)
#if HAVE_SSE2_INLINE
int
cpu_flags
=
av_get_cpu_flags
();
if
(
INLINE_SSE2
(
cpu_flags
)
&&
(
cpu_flags
&
AV_CPU_FLAG_SSE2SLOW
))
{
if
(
INLINE_SSE2
_SLOW
(
cpu_flags
))
{
c
->
lpc_apply_welch_window
=
lpc_apply_welch_window_sse2
;
c
->
lpc_compute_autocorr
=
lpc_compute_autocorr_sse2
;
}
...
...
libavcodec/x86/vp8dsp_init.c
View file @
4efab893
...
...
@@ -346,7 +346,7 @@ av_cold void ff_vp78dsp_init_x86(VP8DSPContext *c)
c
->
put_vp8_bilinear_pixels_tab
[
0
][
0
][
0
]
=
ff_put_vp8_pixels16_sse
;
}
if
(
EXTERNAL_SSE2
(
cpu_flags
)
&&
(
cpu_flags
&
AV_CPU_FLAG_SSE2SLOW
))
{
if
(
EXTERNAL_SSE2
_SLOW
(
cpu_flags
))
{
VP8_LUMA_MC_FUNC
(
0
,
16
,
sse2
);
VP8_MC_FUNC
(
1
,
8
,
sse2
);
VP8_BILINEAR_MC_FUNC
(
0
,
16
,
sse2
);
...
...
@@ -416,7 +416,7 @@ av_cold void ff_vp8dsp_init_x86(VP8DSPContext *c)
c
->
vp8_luma_dc_wht
=
ff_vp8_luma_dc_wht_sse
;
}
if
(
EXTERNAL_SSE2
(
cpu_flags
)
&&
(
cpu_flags
&
AV_CPU_FLAG_SSE2SLOW
))
{
if
(
EXTERNAL_SSE2
_SLOW
(
cpu_flags
))
{
c
->
vp8_v_loop_filter_simple
=
ff_vp8_v_loop_filter_simple_sse2
;
c
->
vp8_v_loop_filter16y_inner
=
ff_vp8_v_loop_filter16y_inner_sse2
;
...
...
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