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
d06dfaa5
Commit
d06dfaa5
authored
Jan 18, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: huffyuv: Use EXTERNAL_SSSE3_FAST convenience macro where appropriate
parent
8e9cd81d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
huffyuvdsp.asm
libavcodec/x86/huffyuvdsp.asm
+2
-2
huffyuvdsp_init.c
libavcodec/x86/huffyuvdsp_init.c
+6
-4
No files found.
libavcodec/x86/huffyuvdsp.asm
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
,
dst
,
src
,
w
,
left
cglobal
add_hfyu_left_pred
_unaligned
,
3
,
3
,
7
,
dst
,
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
]
...
...
libavcodec/x86/huffyuvdsp_init.c
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
;
}
}
}
}
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