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
ef3a19d5
Commit
ef3a19d5
authored
Jan 12, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation with yasm-0.6.2
parent
05577aaf
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
3 deletions
+19
-3
imdct36_sse.asm
libavcodec/x86/imdct36_sse.asm
+4
-0
proresdsp.asm
libavcodec/x86/proresdsp.asm
+2
-0
v210-init.c
libavcodec/x86/v210-init.c
+2
-2
v210.asm
libavcodec/x86/v210.asm
+4
-0
input.asm
libswscale/x86/input.asm
+2
-0
output.asm
libswscale/x86/output.asm
+4
-0
swscale_mmx.c
libswscale/x86/swscale_mmx.c
+1
-1
No files found.
libavcodec/x86/imdct36_sse.asm
View file @
ef3a19d5
...
...
@@ -371,8 +371,10 @@ DEFINE_IMDCT
INIT_XMM
ssse3
DEFINE_IMDCT
%ifdef
HAVE_AVX
INIT_XMM
avx
DEFINE_IMDCT
%endif
INIT_XMM
sse
...
...
@@ -717,5 +719,7 @@ cglobal four_imdct36_float, 5,5,8, out, buf, in, win, tmp
INIT_XMM
sse
DEFINE_FOUR_IMDCT
%ifdef
HAVE_AVX
INIT_XMM
avx
DEFINE_FOUR_IMDCT
%endif
libavcodec/x86/proresdsp.asm
View file @
ef3a19d5
...
...
@@ -306,7 +306,9 @@ INIT_XMM
idct_put_fn
sse2
,
16
INIT_XMM
idct_put_fn
sse4
,
16
%ifdef
HAVE_AVX
INIT_AVX
idct_put_fn
avx
,
16
%endif
%endif
libavcodec/x86/v210-init.c
View file @
ef3a19d5
...
...
@@ -34,14 +34,14 @@ av_cold void v210_x86_init(V210DecContext *s)
if
(
cpu_flags
&
AV_CPU_FLAG_SSSE3
)
s
->
unpack_frame
=
ff_v210_planar_unpack_aligned_ssse3
;
if
(
cpu_flags
&
AV_CPU_FLAG_AVX
)
if
(
HAVE_AVX
&&
cpu_flags
&
AV_CPU_FLAG_AVX
)
s
->
unpack_frame
=
ff_v210_planar_unpack_aligned_avx
;
}
else
{
if
(
cpu_flags
&
AV_CPU_FLAG_SSSE3
)
s
->
unpack_frame
=
ff_v210_planar_unpack_unaligned_ssse3
;
if
(
cpu_flags
&
AV_CPU_FLAG_AVX
)
if
(
HAVE_AVX
&&
cpu_flags
&
AV_CPU_FLAG_AVX
)
s
->
unpack_frame
=
ff_v210_planar_unpack_unaligned_avx
;
}
#endif
...
...
libavcodec/x86/v210.asm
View file @
ef3a19d5
...
...
@@ -76,10 +76,14 @@ cglobal v210_planar_unpack_%1_%2, 5, 5
INIT_XMM
v210_planar_unpack
unaligned
,
ssse3
%ifdef
HAVE_AVX
INIT_AVX
v210_planar_unpack
unaligned
,
avx
%endif
INIT_XMM
v210_planar_unpack
aligned
,
ssse3
%ifdef
HAVE_AVX
INIT_AVX
v210_planar_unpack
aligned
,
avx
%endif
libswscale/x86/input.asm
View file @
ef3a19d5
...
...
@@ -233,6 +233,7 @@ YUYV_TO_UV_FN 3, uyvy
NVXX_TO_UV_FN
5
,
nv12
NVXX_TO_UV_FN
5
,
nv21
%ifdef
HAVE_AVX
INIT_XMM
avx
; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but
; that's not faster in practice
...
...
@@ -240,3 +241,4 @@ YUYV_TO_UV_FN 3, yuyv
YUYV_TO_UV_FN
3
,
uyvy
,
1
NVXX_TO_UV_FN
5
,
nv12
NVXX_TO_UV_FN
5
,
nv21
%endif
libswscale/x86/output.asm
View file @
ef3a19d5
...
...
@@ -265,10 +265,12 @@ yuv2planeX_fn sse4, 9, 7, 5
yuv2planeX_fn
sse4
,
10
,
7
,
5
yuv2planeX_fn
sse4
,
16
,
8
,
5
%ifdef
HAVE_AVX
INIT_AVX
yuv2planeX_fn
avx
,
8
,
10
,
7
yuv2planeX_fn
avx
,
9
,
7
,
5
yuv2planeX_fn
avx
,
10
,
7
,
5
%endif
; %1=outout-bpc, %2=alignment (u/a)
%macro
yuv2plane1_mainloop
2
...
...
@@ -402,8 +404,10 @@ yuv2plane1_fn 16, 6, 3
INIT_XMM
sse4
yuv2plane1_fn
16
,
5
,
3
%ifdef
HAVE_AVX
INIT_XMM
avx
yuv2plane1_fn
8
,
5
,
5
yuv2plane1_fn
9
,
5
,
3
yuv2plane1_fn
10
,
5
,
3
yuv2plane1_fn
16
,
5
,
3
%endif
libswscale/x86/swscale_mmx.c
View file @
ef3a19d5
...
...
@@ -465,7 +465,7 @@ switch(c->dstBpc){ \
c
->
yuv2plane1
=
ff_yuv2plane1_16_sse4
;
}
if
(
cpu_flags
&
AV_CPU_FLAG_AVX
)
{
if
(
HAVE_AVX
&&
cpu_flags
&
AV_CPU_FLAG_AVX
)
{
ASSIGN_VSCALEX_FUNC
(
c
->
yuv2planeX
,
avx
,);
ASSIGN_VSCALE_FUNC
(
c
->
yuv2plane1
,
avx
,
avx
,
1
);
...
...
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