Skip to content
Snippets Groups Projects
Commit 818a0496 authored by Jan Buethe's avatar Jan Buethe
Browse files

added re-ordering to dred_rdovae_decode_qframe (frames now in correct order)

parent 23bb11dd
No related branches found
No related tags found
Loading
......@@ -102,4 +102,11 @@ void dred_rdovae_decode_qframe(
output_index += DEC_DENSE8_OUT_SIZE;
_lpcnet_compute_dense(&dec_final, qframe, buffer);
/* restore correct order of frames */
memmove(buffer, qframe, 4 * DRED_NUM_FEATURES * sizeof(*qframe));
memmove(qframe + 0 * DRED_NUM_FEATURES, buffer + 3 * DRED_NUM_FEATURES, DRED_NUM_FEATURES * sizeof(*qframe));
memmove(qframe + 1 * DRED_NUM_FEATURES, buffer + 2 * DRED_NUM_FEATURES, DRED_NUM_FEATURES * sizeof(*qframe));
memmove(qframe + 2 * DRED_NUM_FEATURES, buffer + 1 * DRED_NUM_FEATURES, DRED_NUM_FEATURES * sizeof(*qframe));
memmove(qframe + 3 * DRED_NUM_FEATURES, buffer + 0 * DRED_NUM_FEATURES, DRED_NUM_FEATURES * sizeof(*qframe));
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment