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
1169f0d0
Commit
1169f0d0
authored
Sep 04, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: more specific checks for availability of required assembly capabilities
parent
8cb7ed55
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
dnxhdenc.c
libavcodec/x86/dnxhdenc.c
+4
-4
lpc.c
libavcodec/x86/lpc.c
+4
-4
mpegaudiodec.c
libavcodec/x86/mpegaudiodec.c
+5
-4
swscale.c
libswscale/swscale.c
+1
-1
No files found.
libavcodec/x86/dnxhdenc.c
View file @
1169f0d0
...
...
@@ -24,7 +24,7 @@
#include "libavutil/x86/asm.h"
#include "libavcodec/dnxhdenc.h"
#if HAVE_
INLINE_ASM
#if HAVE_
SSE2_INLINE
static
void
get_pixels_8x4_sym_sse2
(
DCTELEM
*
block
,
const
uint8_t
*
pixels
,
int
line_size
)
{
...
...
@@ -52,14 +52,14 @@ static void get_pixels_8x4_sym_sse2(DCTELEM *block, const uint8_t *pixels, int l
);
}
#endif
/* HAVE_
INLINE_ASM
*/
#endif
/* HAVE_
SSE2_INLINE
*/
void
ff_dnxhdenc_init_x86
(
DNXHDEncContext
*
ctx
)
{
#if HAVE_
INLINE_ASM
#if HAVE_
SSE2_INLINE
if
(
av_get_cpu_flags
()
&
AV_CPU_FLAG_SSE2
)
{
if
(
ctx
->
cid_table
->
bit_depth
==
8
)
ctx
->
get_pixels_8x4_sym
=
get_pixels_8x4_sym_sse2
;
}
#endif
/* HAVE_
INLINE_ASM
*/
#endif
/* HAVE_
SSE2_INLINE
*/
}
libavcodec/x86/lpc.c
View file @
1169f0d0
...
...
@@ -24,7 +24,7 @@
#include "libavutil/internal.h"
#include "libavcodec/lpc.h"
#if HAVE_
INLINE_ASM
#if HAVE_
SSE2_INLINE
static
void
lpc_apply_welch_window_sse2
(
const
int32_t
*
data
,
int
len
,
double
*
w_data
)
...
...
@@ -139,16 +139,16 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
}
}
#endif
/* HAVE_
INLINE_ASM
*/
#endif
/* HAVE_
SSE2_INLINE
*/
av_cold
void
ff_lpc_init_x86
(
LPCContext
*
c
)
{
#if HAVE_SSE2_INLINE
int
mm_flags
=
av_get_cpu_flags
();
#if HAVE_INLINE_ASM
if
(
mm_flags
&
(
AV_CPU_FLAG_SSE2
|
AV_CPU_FLAG_SSE2SLOW
))
{
c
->
lpc_apply_welch_window
=
lpc_apply_welch_window_sse2
;
c
->
lpc_compute_autocorr
=
lpc_compute_autocorr_sse2
;
}
#endif
/* HAVE_
INLINE_ASM
*/
#endif
/* HAVE_
SSE2_INLINE
*/
}
libavcodec/x86/mpegaudiodec.c
View file @
1169f0d0
...
...
@@ -36,7 +36,7 @@ void ff_four_imdct36_float_avx(float *out, float *buf, float *in, float *win,
DECLARE_ALIGNED
(
16
,
static
float
,
mdct_win_sse
)[
2
][
4
][
4
*
40
];
#if HAVE_
INLINE_ASM
#if HAVE_
SSE2_INLINE
#define MACS(rt, ra, rb) rt+=(ra)*(rb)
#define MLSS(rt, ra, rb) rt-=(ra)*(rb)
...
...
@@ -180,7 +180,7 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out,
*
out
=
sum
;
}
#endif
/* HAVE_
INLINE_ASM
*/
#endif
/* HAVE_
SSE2_INLINE
*/
#if HAVE_YASM
#define DECL_IMDCT_BLOCKS(CPU1, CPU2) \
...
...
@@ -240,11 +240,12 @@ void ff_mpadsp_init_mmx(MPADSPContext *s)
}
}
#if HAVE_
INLINE_ASM
#if HAVE_
SSE2_INLINE
if
(
mm_flags
&
AV_CPU_FLAG_SSE2
)
{
s
->
apply_window_float
=
apply_window_mp3
;
}
#endif
/* HAVE_INLINE_ASM */
#endif
/* HAVE_SSE2_INLINE */
#if HAVE_YASM
if
(
mm_flags
&
AV_CPU_FLAG_AVX
&&
HAVE_AVX
)
{
s
->
imdct36_blocks_float
=
imdct36_blocks_avx
;
...
...
libswscale/swscale.c
View file @
1169f0d0
...
...
@@ -661,7 +661,7 @@ static int swScale(SwsContext *c, const uint8_t *src[],
if
(
isPlanar
(
dstFormat
)
&&
isALPHA
(
dstFormat
)
&&
!
alpPixBuf
)
fillPlane
(
dst
[
3
],
dstStride
[
3
],
dstW
,
dstY
-
lastDstY
,
lastDstY
,
255
);
#if HAVE_MMXEXT
&& HAVE_INLINE_ASM
#if HAVE_MMXEXT
_INLINE
if
(
av_get_cpu_flags
()
&
AV_CPU_FLAG_MMXEXT
)
__asm__
volatile
(
"sfence"
:::
"memory"
);
#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