[FFmpeg-soc] [soc]: r3615 - mlp/mlpenc.c
ramiro
subversion at mplayerhq.hu
Mon Aug 25 21:32:27 CEST 2008
Author: ramiro
Date: Mon Aug 25 21:32:26 2008
New Revision: 3615
Log:
Rename parameter to codebook_bits_offset().
Modified:
mlp/mlpenc.c
Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c (original)
+++ mlp/mlpenc.c Mon Aug 25 21:32:26 2008
@@ -1413,8 +1413,8 @@ static void no_codebook_bits(MLPEncodeCo
*/
static inline void codebook_bits_offset(MLPEncodeContext *ctx,
unsigned int channel, int codebook,
- int32_t min, int32_t max, int16_t offset,
- BestOffset *bo, int *pnext, int up)
+ int32_t sample_min, int32_t sample_max,
+ int16_t offset, BestOffset *bo, int *pnext, int up)
{
int32_t codebook_min = codebook_extremes[codebook][0];
int32_t codebook_max = codebook_extremes[codebook][1];
@@ -1427,13 +1427,13 @@ static inline void codebook_bits_offset(
int unsign, mask;
int i;
- min -= offset;
- max -= offset;
+ sample_min -= offset;
+ sample_max -= offset;
- while (min < codebook_min || max > codebook_max) {
+ while (sample_min < codebook_min || sample_max > codebook_max) {
lsb_bits++;
- min >>= 1;
- max >>= 1;
+ sample_min >>= 1;
+ sample_max >>= 1;
}
unsign = 1 << lsb_bits;
More information about the FFmpeg-soc
mailing list