[FFmpeg-soc] [soc]: r3145 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Sun Aug 10 16:37:42 CEST 2008


Author: ramiro
Date: Sun Aug 10 16:37:42 2008
New Revision: 3145

Log:
Inline codebook_bits_* functions.
Is gcc smart enough to propagate direction from codebook_bits() to codebook_bits_offset()?

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 10 16:37:42 2008
@@ -731,7 +731,7 @@ static void no_codebook_bits(MLPEncodeCo
     bo->bitcount = lsb_bits * dp->blocksize;
 }
 
-static void codebook_bits_offset(MLPEncodeContext *ctx, unsigned int substr,
+static inline void codebook_bits_offset(MLPEncodeContext *ctx, unsigned int substr,
                                  unsigned int channel, int codebook,
                                  int32_t min, int32_t max, int16_t offset,
                                  BestOffset *bo, int *pnext, int up)
@@ -786,7 +786,7 @@ static void codebook_bits_offset(MLPEnco
     *pnext       = next;
 }
 
-static void codebook_bits(MLPEncodeContext *ctx, unsigned int substr,
+static inline void codebook_bits(MLPEncodeContext *ctx, unsigned int substr,
                           unsigned int channel, int codebook,
                           int average, int16_t min, int16_t max,
                           BestOffset *bo, int direction)



More information about the FFmpeg-soc mailing list