forked from len0rd/rockbox
Remove a couple of redundant array copy operations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15747 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e2e287d80e
commit
e7988b8d88
2 changed files with 4 additions and 10 deletions
|
@ -1081,11 +1081,9 @@ static void nb_decode_lost(DecState *st, spx_word16_t *out, char *stack)
|
|||
speex_rand(noise_gain, &st->seed);
|
||||
}
|
||||
|
||||
for (i=0;i<st->frameSize;i++)
|
||||
out[i]=st->exc[i-st->subframeSize];
|
||||
bw_lpc(QCONST16(.98,15), st->interp_qlpc, st->interp_qlpc, st->lpcSize);
|
||||
iir_mem16(out, st->interp_qlpc, out, st->frameSize, st->lpcSize,
|
||||
st->mem_sp, stack);
|
||||
iir_mem16(&st->exc[-st->subframeSize], st->interp_qlpc, out,
|
||||
st->frameSize, st->lpcSize, st->mem_sp, stack);
|
||||
highpass(out, out, st->frameSize, HIGHPASS_NARROWBAND|HIGHPASS_OUTPUT, st->mem_hp);
|
||||
|
||||
st->first = 0;
|
||||
|
@ -1238,10 +1236,8 @@ int nb_decode(void *state, SpeexBits *bits, void *vout)
|
|||
|
||||
st->first=1;
|
||||
|
||||
for (i=0;i<st->frameSize;i++)
|
||||
out[i] = st->exc[i];
|
||||
/* Final signal synthesis from excitation */
|
||||
iir_mem16(out, lpc, out, st->frameSize, st->lpcSize, st->mem_sp, stack);
|
||||
iir_mem16(st->exc, lpc, out, st->frameSize, st->lpcSize, st->mem_sp, stack);
|
||||
|
||||
st->count_lost=0;
|
||||
return 0;
|
||||
|
|
|
@ -1098,9 +1098,7 @@ int sb_decode(void *state, SpeexBits *bits, void *vout)
|
|||
innov_save[2*i]=EXTRACT16(PSHR32(exc[i],SIG_SHIFT));
|
||||
}
|
||||
|
||||
for (i=0;i<st->subframeSize;i++)
|
||||
sp[i]=st->excBuf[i];
|
||||
iir_mem16(sp, st->interp_qlpc, sp, st->subframeSize, st->lpcSize,
|
||||
iir_mem16(st->excBuf, st->interp_qlpc, sp, st->subframeSize, st->lpcSize,
|
||||
st->mem_sp, stack);
|
||||
for (i=0;i<st->subframeSize;i++)
|
||||
st->excBuf[i]=EXTRACT16(PSHR32(exc[i],SIG_SHIFT));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue