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
fe07c9c6
Commit
fe07c9c6
authored
Jun 19, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: Only use optimizations with cmov if the CPU supports the instruction
parent
65345a5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+2
-1
h264_intrapred_init.c
libavcodec/x86/h264_intrapred_init.c
+2
-1
h264dsp_mmx.c
libavcodec/x86/h264dsp_mmx.c
+2
-1
No files found.
libavcodec/x86/dsputil_mmx.c
View file @
fe07c9c6
...
...
@@ -2829,7 +2829,8 @@ static void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx,
c
->
vorbis_inverse_coupling
=
vorbis_inverse_coupling_3dnow
;
#if HAVE_7REGS
c
->
add_hfyu_median_prediction
=
add_hfyu_median_prediction_cmov
;
if
(
mm_flags
&
AV_CPU_FLAG_CMOV
)
c
->
add_hfyu_median_prediction
=
add_hfyu_median_prediction_cmov
;
#endif
}
...
...
libavcodec/x86/h264_intrapred_init.c
View file @
fe07c9c6
...
...
@@ -188,7 +188,8 @@ void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth
if
(
chroma_format_idc
==
1
)
h
->
pred8x8
[
PLANE_PRED8x8
]
=
ff_pred8x8_plane_mmx
;
if
(
codec_id
==
CODEC_ID_SVQ3
)
{
h
->
pred16x16
[
PLANE_PRED8x8
]
=
ff_pred16x16_plane_svq3_mmx
;
if
(
mm_flags
&
AV_CPU_FLAG_CMOV
)
h
->
pred16x16
[
PLANE_PRED8x8
]
=
ff_pred16x16_plane_svq3_mmx
;
}
else
if
(
codec_id
==
CODEC_ID_RV40
)
{
h
->
pred16x16
[
PLANE_PRED8x8
]
=
ff_pred16x16_plane_rv40_mmx
;
}
else
{
...
...
libavcodec/x86/h264dsp_mmx.c
View file @
fe07c9c6
...
...
@@ -361,7 +361,8 @@ void ff_h264dsp_init_x86(H264DSPContext *c, const int bit_depth, const int chrom
if
(
chroma_format_idc
==
1
)
c
->
h264_idct_add8
=
ff_h264_idct_add8_8_mmx
;
c
->
h264_idct_add16intra
=
ff_h264_idct_add16intra_8_mmx
;
c
->
h264_luma_dc_dequant_idct
=
ff_h264_luma_dc_dequant_idct_mmx
;
if
(
mm_flags
&
AV_CPU_FLAG_CMOV
)
c
->
h264_luma_dc_dequant_idct
=
ff_h264_luma_dc_dequant_idct_mmx
;
if
(
mm_flags
&
AV_CPU_FLAG_MMX2
)
{
c
->
h264_idct_dc_add
=
ff_h264_idct_dc_add_8_mmx2
;
...
...
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