OLD | NEW |
1 /* | 1 /* |
2 * Musepack decoder | 2 * Musepack decoder |
3 * Copyright (c) 2006 Konstantin Shishkov | 3 * Copyright (c) 2006 Konstantin Shishkov |
4 * | 4 * |
5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
6 * | 6 * |
7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 int last_bits_used; | 58 int last_bits_used; |
59 int oldDSCF[2][BANDS]; | 59 int oldDSCF[2][BANDS]; |
60 Band bands[BANDS]; | 60 Band bands[BANDS]; |
61 int Q[2][MPC_FRAME_SIZE]; | 61 int Q[2][MPC_FRAME_SIZE]; |
62 int cur_frame, frames; | 62 int cur_frame, frames; |
63 uint8_t *bits; | 63 uint8_t *bits; |
64 int buf_size; | 64 int buf_size; |
65 AVLFG rnd; | 65 AVLFG rnd; |
66 int frames_to_skip; | 66 int frames_to_skip; |
67 /* for synthesis */ | 67 /* for synthesis */ |
68 DECLARE_ALIGNED_16(MPA_INT, synth_buf)[MPA_MAX_CHANNELS][512*2]; | 68 DECLARE_ALIGNED(16, MPA_INT, synth_buf)[MPA_MAX_CHANNELS][512*2]; |
69 int synth_buf_offset[MPA_MAX_CHANNELS]; | 69 int synth_buf_offset[MPA_MAX_CHANNELS]; |
70 DECLARE_ALIGNED_16(int32_t, sb_samples)[MPA_MAX_CHANNELS][36][SBLIMIT]; | 70 DECLARE_ALIGNED(16, int32_t, sb_samples)[MPA_MAX_CHANNELS][36][SBLIMIT]; |
71 } MPCContext; | 71 } MPCContext; |
72 | 72 |
73 void ff_mpc_init(void); | 73 void ff_mpc_init(void); |
74 void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, void *dst); | 74 void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, void *dst); |
75 | 75 |
76 #endif /* AVCODEC_MPC_H */ | 76 #endif /* AVCODEC_MPC_H */ |
OLD | NEW |