Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Speex
Commits
73dee022
Commit
73dee022
authored
Jun 26, 2009
by
John Ridges
Committed by
Jean-Marc Valin
Jun 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing h1_mem from the encoder state since it wasn't used at all.
parent
e261e59c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
libspeex/sb_celp.c
libspeex/sb_celp.c
+1
-3
libspeex/sb_celp.h
libspeex/sb_celp.h
+1
-1
No files found.
libspeex/sb_celp.c
View file @
73dee022
...
...
@@ -190,7 +190,6 @@ void *sb_encoder_init(const SpeexMode *m)
st
->
high
=
(
spx_word16_t
*
)
speex_alloc
((
st
->
windowSize
-
st
->
frame_size
)
*
sizeof
(
spx_word16_t
));
st
->
h0_mem
=
(
spx_word16_t
*
)
speex_alloc
((
QMF_ORDER
)
*
sizeof
(
spx_word16_t
));
st
->
h1_mem
=
(
spx_word16_t
*
)
speex_alloc
((
QMF_ORDER
)
*
sizeof
(
spx_word16_t
));
st
->
window
=
lpc_window
;
...
...
@@ -241,7 +240,6 @@ void sb_encoder_destroy(void *state)
speex_free
(
st
->
high
);
speex_free
(
st
->
h0_mem
);
speex_free
(
st
->
h1_mem
);
speex_free
(
st
->
old_lsp
);
speex_free
(
st
->
old_qlsp
);
...
...
@@ -418,7 +416,7 @@ int sb_encoder_ctl(void *state, int request, void *ptr)
for
(
i
=
0
;
i
<
st
->
lpcSize
;
i
++
)
st
->
mem_sw
[
i
]
=
st
->
mem_sp
[
i
]
=
st
->
mem_sp2
[
i
]
=
0
;
for
(
i
=
0
;
i
<
QMF_ORDER
;
i
++
)
st
->
h0_mem
[
i
]
=
st
->
h1_mem
[
i
]
=
0
;
st
->
h0_mem
[
i
]
=
0
;
}
break
;
case
SPEEX_SET_SUBMODE_ENCODING
:
...
...
libspeex/sb_celp.h
View file @
73dee022
...
...
@@ -57,7 +57,7 @@ typedef struct SBEncState {
char
*
stack
;
/**< Temporary allocation stack */
spx_word16_t
*
high
;
/**< High-band signal (buffer) */
spx_word16_t
*
h0_mem
,
*
h1_mem
;
spx_word16_t
*
h0_mem
;
const
spx_word16_t
*
window
;
/**< LPC analysis window */
const
spx_word16_t
*
lagWindow
;
/**< Auto-correlation window */
...
...
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