ref: f178da11004f7520f5ad868c9cd3a7908856257a
parent: fdb04d0eef2395d46c5e5c6ea428397ea8401849
author: jbuethe <ubuntu@ip-172-31-44-4.ec2.internal>
date: Wed Dec 7 06:29:52 EST 2022
changed ordering of qframe to reverse in dred_rdovae_decode_qframe
--- a/dnn/dred_rdovae_dec.c
+++ b/dnn/dred_rdovae_dec.c
@@ -48,7 +48,7 @@
void dred_rdovae_decode_qframe(
RDOVAEDec *dec_state, /* io: state buffer handle */
- float *qframe, /* o: quadruple feature frame (four concatenated frames) */
+ float *qframe, /* o: quadruple feature frame (four concatenated frames in reverse order) */
const float *input /* i: latent vector */
)
{
@@ -92,11 +92,4 @@
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
--
⑨