Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
d06dfaa5
Commit
d06dfaa5
authored
9 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
x86: huffyuv: Use EXTERNAL_SSSE3_FAST convenience macro where appropriate
parent
8e9cd81d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/x86/huffyuvdsp.asm
+2
-2
2 additions, 2 deletions
libavcodec/x86/huffyuvdsp.asm
libavcodec/x86/huffyuvdsp_init.c
+6
-4
6 additions, 4 deletions
libavcodec/x86/huffyuvdsp_init.c
with
8 additions
and
6 deletions
libavcodec/x86/huffyuvdsp.asm
+
2
−
2
View file @
d06dfaa5
...
@@ -146,8 +146,8 @@ cglobal add_hfyu_left_pred, 3,3,7, dst, src, w, left
...
@@ -146,8 +146,8 @@ cglobal add_hfyu_left_pred, 3,3,7, dst, src, w, left
psllq
m0
,
56
psllq
m0
,
56
ADD_HFYU_LEFT_LOOP
1
,
1
ADD_HFYU_LEFT_LOOP
1
,
1
INIT_XMM
ss
e4
INIT_XMM
ss
se3
cglobal
add_hfyu_left_pred
,
3
,
3
,
7
,
ds
t
,
src
,
w
,
left
cglobal
add_hfyu_left_pred
_unaligned
,
3
,
3
,
7
,
ds
t
,
src
,
w
,
left
mova
m5
,
[
pb_f
]
mova
m5
,
[
pb_f
]
mova
m6
,
[
pb_zzzzzzzz77777777
]
mova
m6
,
[
pb_zzzzzzzz77777777
]
mova
m4
,
[
pb_zzzz3333zzzzbbbb
]
mova
m4
,
[
pb_zzzz3333zzzzbbbb
]
...
...
This diff is collapsed.
Click to expand it.
libavcodec/x86/huffyuvdsp_init.c
+
6
−
4
View file @
d06dfaa5
...
@@ -31,8 +31,8 @@ void ff_add_hfyu_median_pred_mmxext(uint8_t *dst, const uint8_t *top,
...
@@ -31,8 +31,8 @@ void ff_add_hfyu_median_pred_mmxext(uint8_t *dst, const uint8_t *top,
int
ff_add_hfyu_left_pred_ssse3
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
int
ff_add_hfyu_left_pred_ssse3
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
int
w
,
int
left
);
int
w
,
int
left
);
int
ff_add_hfyu_left_pred_
sse4
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
int
ff_add_hfyu_left_pred_
unaligned_ssse3
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
int
w
,
int
left
);
int
w
,
int
left
);
#if HAVE_INLINE_ASM
#if HAVE_INLINE_ASM
...
@@ -124,7 +124,9 @@ av_cold void ff_huffyuvdsp_init_x86(HuffYUVDSPContext *c)
...
@@ -124,7 +124,9 @@ av_cold void ff_huffyuvdsp_init_x86(HuffYUVDSPContext *c)
if
(
EXTERNAL_SSSE3
(
cpu_flags
))
{
if
(
EXTERNAL_SSSE3
(
cpu_flags
))
{
c
->
add_hfyu_left_pred
=
ff_add_hfyu_left_pred_ssse3
;
c
->
add_hfyu_left_pred
=
ff_add_hfyu_left_pred_ssse3
;
if
(
cpu_flags
&
AV_CPU_FLAG_SSE4
)
// not really SSE4, just slow on Conroe
}
c
->
add_hfyu_left_pred
=
ff_add_hfyu_left_pred_sse4
;
if
(
EXTERNAL_SSSE3_FAST
(
cpu_flags
))
{
c
->
add_hfyu_left_pred
=
ff_add_hfyu_left_pred_unaligned_ssse3
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment