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
e985d719
Commit
e985d719
authored
Nov 01, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dirac: fix horizontal_compose_dd97i_ssse3
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
754539a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
dwt.c
libavcodec/x86/dwt.c
+6
-2
dwt_yasm.asm
libavcodec/x86/dwt_yasm.asm
+1
-3
No files found.
libavcodec/x86/dwt.c
View file @
e985d719
...
@@ -119,8 +119,12 @@ COMPOSE_VERTICAL(_sse2, 8)
...
@@ -119,8 +119,12 @@ COMPOSE_VERTICAL(_sse2, 8)
void
ff_horizontal_compose_dd97i_ssse3
(
IDWTELEM
*
b
,
IDWTELEM
*
tmp
,
int
w
);
void
ff_horizontal_compose_dd97i_ssse3
(
IDWTELEM
*
b
,
IDWTELEM
*
tmp
,
int
w
);
void
ff_horizontal_compose_dd97i_end_c
(
IDWTELEM
*
b
,
IDWTELEM
*
tmp
,
int
w2
,
int
x
)
static
void
horizontal_compose_dd97i_ssse3
(
IDWTELEM
*
b
,
IDWTELEM
*
tmp
,
int
w
)
{
{
int
w2
=
w
>>
1
;
int
x
=
w2
-
(
w2
&
7
);
ff_horizontal_compose_dd97i_ssse3
(
b
,
tmp
,
w
);
for
(;
x
<
w2
;
x
++
)
{
for
(;
x
<
w2
;
x
++
)
{
b
[
2
*
x
]
=
(
tmp
[
x
]
+
1
)
>>
1
;
b
[
2
*
x
]
=
(
tmp
[
x
]
+
1
)
>>
1
;
b
[
2
*
x
+
1
]
=
(
COMPOSE_DD97iH0
(
tmp
[
x
-
1
],
tmp
[
x
],
b
[
x
+
w2
],
tmp
[
x
+
1
],
tmp
[
x
+
2
])
+
1
)
>>
1
;
b
[
2
*
x
+
1
]
=
(
COMPOSE_DD97iH0
(
tmp
[
x
-
1
],
tmp
[
x
],
b
[
x
+
w2
],
tmp
[
x
+
1
],
tmp
[
x
+
2
])
+
1
)
>>
1
;
...
@@ -191,7 +195,7 @@ void ff_spatial_idwt_init_mmx(DWTContext *d, enum dwt_type type)
...
@@ -191,7 +195,7 @@ void ff_spatial_idwt_init_mmx(DWTContext *d, enum dwt_type type)
switch
(
type
)
{
switch
(
type
)
{
case
DWT_DIRAC_DD9_7
:
case
DWT_DIRAC_DD9_7
:
//MMXDISABLED d->horizontal_compose = ff_
horizontal_compose_dd97i_ssse3;
d
->
horizontal_compose
=
horizontal_compose_dd97i_ssse3
;
break
;
break
;
}
}
#endif // HAVE_YASM
#endif // HAVE_YASM
...
...
libavcodec/x86/dwt_yasm.asm
View file @
e985d719
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
%include
"x86inc.asm"
%include
"x86inc.asm"
cextern
horizontal_compose_dd97i_end_c
SECTION_RODATA
SECTION_RODATA
pw_1
:
times
8
dw
1
pw_1
:
times
8
dw
1
pw_2
:
times
8
dw
2
pw_2
:
times
8
dw
2
...
@@ -293,7 +291,7 @@ cglobal horizontal_compose_dd97i_ssse3, 3,6,8, b, tmp, w, x, w2, b_w2
...
@@ -293,7 +291,7 @@ cglobal horizontal_compose_dd97i_ssse3, 3,6,8, b, tmp, w, x, w2, b_w2
cmp
xd
,
w2d
cmp
xd
,
w2d
jl
.
highpass_loop
jl
.
highpass_loop
.
end
:
.
end
:
END_HORIZONTAL
horizontal_compose_dd97i_end_c
REP_RET
%ifndef
ARCH_X86_64
%ifndef
ARCH_X86_64
...
...
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