Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
0627e6d7
Commit
0627e6d7
authored
Sep 22, 2022
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/lpc: zero the middle odd sample in the output
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
c8c4a162
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
lpc.c
libavcodec/lpc.c
+1
-0
lpc.asm
libavcodec/x86/lpc.asm
+7
-3
No files found.
libavcodec/lpc.c
View file @
0627e6d7
...
...
@@ -53,6 +53,7 @@ static void lpc_apply_welch_window_c(const int32_t *data, ptrdiff_t len,
w_data
[
i
]
=
data
[
i
]
*
w
;
w_data
[
len
-
1
-
i
]
=
data
[
len
-
1
-
i
]
*
w
;
}
w_data
[
n2
]
=
0
.
0
;
return
;
}
...
...
libavcodec/x86/lpc.asm
View file @
0627e6d7
...
...
@@ -37,7 +37,7 @@ SECTION .text
%macro
APPLY_WELCH_FN
0
cglobal
lpc_apply_welch_window
,
3
,
5
,
8
,
data
,
len
,
out
,
off1
,
off2
cmp
lenq
,
0
je
.
end
je
.
end
_e
cmp
lenq
,
2
je
.
two
cmp
lenq
,
1
...
...
@@ -104,7 +104,7 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
add
lend
,
(
mmsize
/
4
-
1
)
cmp
lend
,
0
je
.
end
je
.
end
_o
sub
lenq
,
(
mmsize
/
4
-
1
)
.
scalar_o
:
...
...
@@ -135,6 +135,10 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
sub
lenq
,
2
jg
.
loop_o_scalar
.
end_o
:
xorpd
xm3
,
xm3
movlpd
[
outq
+
off1q
*
2
]
,
xm3
RET
.
even
:
...
...
@@ -233,7 +237,7 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
.
one
:
xorpd
xm0
,
xm0
movhpd
[outq],
xm0
.
end
:
.
end
_e
:
RET
%endmacro
...
...
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