|
|
|
@ -390,14 +390,14 @@ static void wma_window(WMACodecContext *s, float *out) |
|
|
|
|
block_len = s->block_len; |
|
|
|
|
bsize = s->frame_len_bits - s->block_len_bits; |
|
|
|
|
|
|
|
|
|
s->fdsp.vector_fmul_add(out, in, s->windows[bsize], |
|
|
|
|
s->fdsp->vector_fmul_add(out, in, s->windows[bsize], |
|
|
|
|
out, block_len); |
|
|
|
|
} else { |
|
|
|
|
block_len = 1 << s->prev_block_len_bits; |
|
|
|
|
n = (s->block_len - block_len) / 2; |
|
|
|
|
bsize = s->frame_len_bits - s->prev_block_len_bits; |
|
|
|
|
|
|
|
|
|
s->fdsp.vector_fmul_add(out + n, in + n, s->windows[bsize], |
|
|
|
|
s->fdsp->vector_fmul_add(out + n, in + n, s->windows[bsize], |
|
|
|
|
out + n, block_len); |
|
|
|
|
|
|
|
|
|
memcpy(out + n + block_len, in + n + block_len, n * sizeof(float)); |
|
|
|
@ -411,7 +411,7 @@ static void wma_window(WMACodecContext *s, float *out) |
|
|
|
|
block_len = s->block_len; |
|
|
|
|
bsize = s->frame_len_bits - s->block_len_bits; |
|
|
|
|
|
|
|
|
|
s->fdsp.vector_fmul_reverse(out, in, s->windows[bsize], block_len); |
|
|
|
|
s->fdsp->vector_fmul_reverse(out, in, s->windows[bsize], block_len); |
|
|
|
|
} else { |
|
|
|
|
block_len = 1 << s->next_block_len_bits; |
|
|
|
|
n = (s->block_len - block_len) / 2; |
|
|
|
@ -419,7 +419,7 @@ static void wma_window(WMACodecContext *s, float *out) |
|
|
|
|
|
|
|
|
|
memcpy(out, in, n * sizeof(float)); |
|
|
|
|
|
|
|
|
|
s->fdsp.vector_fmul_reverse(out + n, in + n, s->windows[bsize], |
|
|
|
|
s->fdsp->vector_fmul_reverse(out + n, in + n, s->windows[bsize], |
|
|
|
|
block_len); |
|
|
|
|
|
|
|
|
|
memset(out + n + block_len, 0, n * sizeof(float)); |
|
|
|
@ -738,7 +738,7 @@ static int wma_decode_block(WMACodecContext *s) |
|
|
|
|
s->channel_coded[0] = 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
s->fdsp.butterflies_float(s->coefs[0], s->coefs[1], s->block_len); |
|
|
|
|
s->fdsp->butterflies_float(s->coefs[0], s->coefs[1], s->block_len); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
next: |
|
|
|
|