| OLD | NEW |
| 1 /*********************************************************************** | 1 /*********************************************************************** |
| 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. | 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. |
| 3 Redistribution and use in source and binary forms, with or without | 3 Redistribution and use in source and binary forms, with or without |
| 4 modification, are permitted provided that the following conditions | 4 modification, are permitted provided that the following conditions |
| 5 are met: | 5 are met: |
| 6 - Redistributions of source code must retain the above copyright notice, | 6 - Redistributions of source code must retain the above copyright notice, |
| 7 this list of conditions and the following disclaimer. | 7 this list of conditions and the following disclaimer. |
| 8 - Redistributions in binary form must reproduce the above copyright | 8 - Redistributions in binary form must reproduce the above copyright |
| 9 notice, this list of conditions and the following disclaimer in the | 9 notice, this list of conditions and the following disclaimer in the |
| 10 documentation and/or other materials provided with the distribution. | 10 documentation and/or other materials provided with the distribution. |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 const opus_int16 x1[ MAX_LPC_ORDER ], /* I second v
ector */ | 197 const opus_int16 x1[ MAX_LPC_ORDER ], /* I second v
ector */ |
| 198 const opus_int ifact_Q2, /* I interp.
factor, weight on 2nd vector */ | 198 const opus_int ifact_Q2, /* I interp.
factor, weight on 2nd vector */ |
| 199 const opus_int d /* I number o
f parameters */ | 199 const opus_int d /* I number o
f parameters */ |
| 200 ); | 200 ); |
| 201 | 201 |
| 202 /* LTP tap quantizer */ | 202 /* LTP tap quantizer */ |
| 203 void silk_quant_LTP_gains( | 203 void silk_quant_LTP_gains( |
| 204 opus_int16 B_Q14[ MAX_NB_SUBFR * LTP_ORDER ], /* I
/O (un)quantized LTP gains */ | 204 opus_int16 B_Q14[ MAX_NB_SUBFR * LTP_ORDER ], /* I
/O (un)quantized LTP gains */ |
| 205 opus_int8 cbk_index[ MAX_NB_SUBFR ], /* O
Codebook Index */ | 205 opus_int8 cbk_index[ MAX_NB_SUBFR ], /* O
Codebook Index */ |
| 206 opus_int8 *periodicity_index, /* O
Periodicity Index */ | 206 opus_int8 *periodicity_index, /* O
Periodicity Index */ |
| 207 opus_int32 *sum_gain_dB_Q7,
/* I/O Cumulative max predictio
n gain */ |
| 207 const opus_int32 W_Q18[ MAX_NB_SUBFR*LTP_ORDER*LTP_ORDER ], /* I
Error Weights in Q18 */ | 208 const opus_int32 W_Q18[ MAX_NB_SUBFR*LTP_ORDER*LTP_ORDER ], /* I
Error Weights in Q18 */ |
| 208 opus_int mu_Q9, /* I
Mu value (R/D tradeoff) */ | 209 opus_int mu_Q9, /* I
Mu value (R/D tradeoff) */ |
| 209 opus_int lowComplexity, /* I
Flag for low complexity */ | 210 opus_int lowComplexity, /* I
Flag for low complexity */ |
| 210 const opus_int nb_subfr /* I
number of subframes */ | 211 const opus_int nb_subfr /* I
number of subframes */ |
| 211 ); | 212 ); |
| 212 | 213 |
| 213 /* Entropy constrained matrix-weighted VQ, for a single input data vector */ | 214 /* Entropy constrained matrix-weighted VQ, for a single input data vector */ |
| 214 void silk_VQ_WMat_EC( | 215 void silk_VQ_WMat_EC( |
| 215 opus_int8 *ind, /* O index of
best codebook vector */ | 216 opus_int8 *ind, /* O index of
best codebook vector */ |
| 216 opus_int32 *rate_dist_Q14, /* O best wei
ghted quant error + mu * rate */ | 217 opus_int32 *rate_dist_Q14, /* O best wei
ghted quant error + mu * rate */ |
| 218 opus_int *gain_Q7, /* O sum of a
bsolute LTP coefficients */ |
| 217 const opus_int16 *in_Q14, /* I input ve
ctor to be quantized */ | 219 const opus_int16 *in_Q14, /* I input ve
ctor to be quantized */ |
| 218 const opus_int32 *W_Q18, /* I weightin
g matrix */ | 220 const opus_int32 *W_Q18, /* I weightin
g matrix */ |
| 219 const opus_int8 *cb_Q7, /* I codebook
*/ | 221 const opus_int8 *cb_Q7, /* I codebook
*/ |
| 222 const opus_uint8 *cb_gain_Q7, /* I codebook
effective gain */ |
| 220 const opus_uint8 *cl_Q5, /* I code len
gth for each codebook vector */ | 223 const opus_uint8 *cl_Q5, /* I code len
gth for each codebook vector */ |
| 221 const opus_int mu_Q9, /* I tradeoff
betw. weighted error and rate */ | 224 const opus_int mu_Q9, /* I tradeoff
betw. weighted error and rate */ |
| 225 const opus_int32 max_gain_Q7, /* I maximum
sum of absolute LTP coefficients */ |
| 222 opus_int L /* I number o
f vectors in codebook */ | 226 opus_int L /* I number o
f vectors in codebook */ |
| 223 ); | 227 ); |
| 224 | 228 |
| 225 /************************************/ | 229 /************************************/ |
| 226 /* Noise shaping quantization (NSQ) */ | 230 /* Noise shaping quantization (NSQ) */ |
| 227 /************************************/ | 231 /************************************/ |
| 228 void silk_NSQ( | 232 void silk_NSQ( |
| 229 const silk_encoder_state *psEncC, /* I
/O Encoder State */ | 233 const silk_encoder_state *psEncC, /* I
/O Encoder State */ |
| 230 silk_nsq_state *NSQ, /* I
/O NSQ state */ | 234 silk_nsq_state *NSQ, /* I
/O NSQ state */ |
| 231 SideInfoIndices *psIndices, /* I
/O Quantization Indices */ | 235 SideInfoIndices *psIndices, /* I
/O Quantization Indices */ |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 /* Encoding of various parameters */ | 429 /* Encoding of various parameters */ |
| 426 void silk_encode_indices( | 430 void silk_encode_indices( |
| 427 silk_encoder_state *psEncC, /* I/O Encoder
state */ | 431 silk_encoder_state *psEncC, /* I/O Encoder
state */ |
| 428 ec_enc *psRangeEnc, /* I/O Compress
or data structure */ | 432 ec_enc *psRangeEnc, /* I/O Compress
or data structure */ |
| 429 opus_int FrameIndex, /* I Frame nu
mber */ | 433 opus_int FrameIndex, /* I Frame nu
mber */ |
| 430 opus_int encode_LBRR, /* I Flag ind
icating LBRR data is being encoded */ | 434 opus_int encode_LBRR, /* I Flag ind
icating LBRR data is being encoded */ |
| 431 opus_int condCoding /* I The type
of conditional coding to use */ | 435 opus_int condCoding /* I The type
of conditional coding to use */ |
| 432 ); | 436 ); |
| 433 | 437 |
| 434 #endif | 438 #endif |
| OLD | NEW |