Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
x264
Commits
a3b97adb
Commit
a3b97adb
authored
Mar 19, 2008
by
Fiona Glaser
Committed by
Loren Merritt
Mar 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
satd_4x4_ssse3
parent
87739884
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
common/pixel.c
common/pixel.c
+4
-4
common/x86/pixel-a.asm
common/x86/pixel-a.asm
+8
-4
No files found.
common/pixel.c
View file @
a3b97adb
...
...
@@ -357,7 +357,7 @@ SATD_X_DECL7()
SATD_X_DECL7
(
_mmxext
)
SATD_X_DECL5
(
_sse2
)
#ifdef HAVE_SSE3
SATD_X_DECL
5
(
_ssse3
)
SATD_X_DECL
7
(
_ssse3
)
#endif
#endif
...
...
@@ -630,9 +630,9 @@ void x264_pixel_init( int cpu, x264_pixel_function_t *pixf )
if
(
cpu
&
X264_CPU_SSSE3
)
{
INIT
5
(
satd
,
_ssse3
);
INIT
5
(
satd_x3
,
_ssse3
);
INIT
5
(
satd_x4
,
_ssse3
);
INIT
7
(
satd
,
_ssse3
);
INIT
7
(
satd_x3
,
_ssse3
);
INIT
7
(
satd_x4
,
_ssse3
);
INIT_ADS
(
_ssse3
);
pixf
->
sa8d
[
PIXEL_16x16
]
=
x264_pixel_sa8d_16x16_ssse3
;
pixf
->
sa8d
[
PIXEL_8x8
]
=
x264_pixel_sa8d_8x8_ssse3
;
...
...
common/x86/pixel-a.asm
View file @
a3b97adb
...
...
@@ -513,19 +513,21 @@ cglobal x264_pixel_satd_8x4_mmxext, 4,6
paddw
mm0
,
mm1
SATD_END_MMX
cglobal
x264_pixel_satd_4x8_mmxext
,
4
,
6
%macro SATD_W4 1
cglobal
x264_pixel_satd_4x8_
%
1
,
4
,
6
SATD_START_MMX
SATD_4x4_MMX
mm0
,
0
,
1
SATD_4x4_MMX
mm1
,
0
,
0
paddw
mm0
,
mm1
SATD_END_MMX
cglobal
x264_pixel_satd_4x4_
mmxext
,
4
,
6
cglobal
x264_pixel_satd_4x4_
%
1
,
4
,
6
SATD_START_MMX
SATD_4x4_MMX
mm0
,
0
,
0
SATD_END_MMX
%endmacro
SATD_W4
mmxext
%macro SATD_START_SSE2 0
pxor
xmm6
,
xmm6
...
...
@@ -1211,10 +1213,11 @@ cglobal x264_intra_satd_x3_8x8c_%1, 0,6
%endmacro
; instantiate satds
; FIXME width4 can benefit from pabsw even if not sse2
%ifndef ARCH_X86_64
cextern
x264_pixel_sa8d_8x8_mmxext
SA8D_16x16_32
mmxext
%endif
%define ABS1 ABS1_MMX
%define ABS2 ABS2_MMX
...
...
@@ -1229,6 +1232,7 @@ SATDS_SSE2 ssse3
SA8D_16x16_32
ss
se3
INTRA_SA8D_SSE2
ss
se3
INTRA_SATDS_MMX
ss
se3
SATD_W4
ss
se3
; mmx, but uses pabsw from ssse3.
%endif
...
...
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