OLD | NEW |
1 /* Copyright (c) 2007-2008 CSIRO | 1 /* Copyright (c) 2007-2008 CSIRO |
2 Copyright (c) 2007-2009 Xiph.Org Foundation | 2 Copyright (c) 2007-2009 Xiph.Org Foundation |
3 Written by Jean-Marc Valin */ | 3 Written by Jean-Marc Valin */ |
4 /* | 4 /* |
5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
6 modification, are permitted provided that the following conditions | 6 modification, are permitted provided that the following conditions |
7 are met: | 7 are met: |
8 | 8 |
9 - Redistributions of source code must retain the above copyright | 9 - Redistributions of source code must retain the above copyright |
10 notice, this list of conditions and the following disclaimer. | 10 notice, this list of conditions and the following disclaimer. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 /** Compute the pulse allocation, i.e. how many pulses will go in each | 89 /** Compute the pulse allocation, i.e. how many pulses will go in each |
90 * band. | 90 * band. |
91 @param m mode | 91 @param m mode |
92 @param offsets Requested increase or decrease in the number of bits for | 92 @param offsets Requested increase or decrease in the number of bits for |
93 each band | 93 each band |
94 @param total Number of bands | 94 @param total Number of bands |
95 @param pulses Number of pulses per band (returned) | 95 @param pulses Number of pulses per band (returned) |
96 @return Total number of bits allocated | 96 @return Total number of bits allocated |
97 */ | 97 */ |
98 int compute_allocation(const CELTMode *m, int start, int end, const int *offsets
, const int *cap, int alloc_trim, int *intensity, int *dual_stero, | 98 int compute_allocation(const CELTMode *m, int start, int end, const int *offsets
, const int *cap, int alloc_trim, int *intensity, int *dual_stero, |
99 opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_
priority, int C, int LM, ec_ctx *ec, int encode, int prev); | 99 opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_
priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth); |
100 | 100 |
101 #endif | 101 #endif |
OLD | NEW |