Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
391ecc96
Commit
391ecc96
authored
Dec 30, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: mpegvideoenc: Change SIMD optimization name suffixes to lowercase
parent
c6698dfe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
mpegvideoenc.c
libavcodec/x86/mpegvideoenc.c
+15
-15
mpegvideoenc_template.c
libavcodec/x86/mpegvideoenc_template.c
+1
-1
No files found.
libavcodec/x86/mpegvideoenc.c
View file @
391ecc96
...
...
@@ -34,8 +34,8 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64];
#define COMPILE_TEMPLATE_MMXEXT 0
#define COMPILE_TEMPLATE_SSE2 0
#define COMPILE_TEMPLATE_SSSE3 0
#define RENAME(a)
a ## _MMX
#define RENAME
l
(a) a ## _mmx
#define RENAME(a)
a ## _mmx
#define RENAME
_FDCT
(a) a ## _mmx
#include "mpegvideoenc_template.c"
#endif
/* HAVE_MMX_INLINE */
...
...
@@ -47,9 +47,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64];
#define COMPILE_TEMPLATE_SSE2 0
#define COMPILE_TEMPLATE_SSSE3 0
#undef RENAME
#undef RENAME
l
#define RENAME(a)
a ## _MMXEXT
#define RENAME
l
(a) a ## _mmxext
#undef RENAME
_FDCT
#define RENAME(a)
a ## _mmxext
#define RENAME
_FDCT
(a) a ## _mmxext
#include "mpegvideoenc_template.c"
#endif
/* HAVE_MMXEXT_INLINE */
...
...
@@ -61,9 +61,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64];
#define COMPILE_TEMPLATE_SSE2 1
#define COMPILE_TEMPLATE_SSSE3 0
#undef RENAME
#undef RENAME
l
#define RENAME(a)
a ## _SSE
2
#define RENAME
l
(a) a ## _sse2
#undef RENAME
_FDCT
#define RENAME(a)
a ## _sse
2
#define RENAME
_FDCT
(a) a ## _sse2
#include "mpegvideoenc_template.c"
#endif
/* HAVE_SSE2_INLINE */
...
...
@@ -75,9 +75,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64];
#define COMPILE_TEMPLATE_SSE2 1
#define COMPILE_TEMPLATE_SSSE3 1
#undef RENAME
#undef RENAME
l
#define RENAME(a)
a ## _SSSE
3
#define RENAME
l
(a) a ## _sse2
#undef RENAME
_FDCT
#define RENAME(a)
a ## _ssse
3
#define RENAME
_FDCT
(a) a ## _sse2
#include "mpegvideoenc_template.c"
#endif
/* HAVE_SSSE3_INLINE */
...
...
@@ -205,23 +205,23 @@ av_cold void ff_MPV_encode_init_x86(MpegEncContext *s)
#if HAVE_MMX_INLINE
int
cpu_flags
=
av_get_cpu_flags
();
if
(
INLINE_MMX
(
cpu_flags
))
{
s
->
dct_quantize
=
dct_quantize_
MMX
;
s
->
dct_quantize
=
dct_quantize_
mmx
;
s
->
denoise_dct
=
denoise_dct_mmx
;
}
#endif
#if HAVE_MMXEXT_INLINE
if
(
INLINE_MMXEXT
(
cpu_flags
))
s
->
dct_quantize
=
dct_quantize_
MMXEXT
;
s
->
dct_quantize
=
dct_quantize_
mmxext
;
#endif
#if HAVE_SSE2_INLINE
if
(
INLINE_SSE2
(
cpu_flags
))
{
s
->
dct_quantize
=
dct_quantize_
SSE
2
;
s
->
dct_quantize
=
dct_quantize_
sse
2
;
s
->
denoise_dct
=
denoise_dct_sse2
;
}
#endif
#if HAVE_SSSE3_INLINE
if
(
INLINE_SSSE3
(
cpu_flags
))
s
->
dct_quantize
=
dct_quantize_
SSSE
3
;
s
->
dct_quantize
=
dct_quantize_
ssse
3
;
#endif
}
}
libavcodec/x86/mpegvideoenc_template.c
View file @
391ecc96
...
...
@@ -109,7 +109,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
assert
((
7
&
(
int
)(
&
temp_block
[
0
]))
==
0
);
//did gcc align it correctly?
//s->fdct (block);
RENAME
l
(
ff_fdct
)
(
block
);
//
cannot be anything else ...
RENAME
_FDCT
(
ff_fdct
)(
block
);
//
cannot be anything else ...
if
(
s
->
dct_error_sum
)
s
->
denoise_dct
(
s
,
block
);
...
...
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