[FFmpeg-soc] [soc]: r4215 - mlp/mlpenc.c
ramiro
subversion at mplayerhq.hu
Mon Apr 20 04:38:03 CEST 2009
Author: ramiro
Date: Mon Apr 20 04:38:02 2009
New Revision: 4215
Log:
Move number_sbits up so it may be used by other functions.
Modified:
mlp/mlpenc.c
Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c Mon Apr 20 04:36:35 2009 (r4214)
+++ mlp/mlpenc.c Mon Apr 20 04:38:02 2009 (r4215)
@@ -432,6 +432,17 @@ static void default_decoding_params(MLPE
/****************************************************************************/
+/** Calculates the smallest number of bits it takes to encode a given signed
+ * value in two's complement.
+ */
+static int inline number_sbits(int number)
+{
+ if (number < 0)
+ number++;
+
+ return av_log2(FFABS(number)) + 1 + !!number;
+}
+
/** Encodes the third type of channel information for the sync headers.
* TODO This field is not yet fully understood. These values are just copied
* from some samples out in the wild.
@@ -1336,17 +1347,6 @@ static void determine_quant_step_size(ML
dp->quant_step_size[channel] = number_trailing_zeroes(sample_mask[channel]) - mp->shift[channel];
}
-/** Calculates the smallest number of bits it takes to encode a given signed
- * value in two's complement.
- */
-static int inline number_sbits(int number)
-{
- if (number < 0)
- number++;
-
- return av_log2(FFABS(number)) + 1 + !!number;
-}
-
/** Determines the smallest number of bits needed to encode the filter
* coefficients, and if it's possible to right-shift their values without
* losing any precision.
More information about the FFmpeg-soc
mailing list