]> granicus.if.org Git - libx264/commitdiff
Partially inline trellis quantization
authorFiona Glaser <fiona@x264.com>
Fri, 6 Jun 2008 20:59:10 +0000 (14:59 -0600)
committerFiona Glaser <fiona@x264.com>
Sun, 8 Jun 2008 05:04:58 +0000 (23:04 -0600)
Inlining trellis into the 4x4/8x8 trellis wrappers increases trellis speed by about 5-10% through constant propagation.

encoder/rdo.c

index 8607e07579d2a8c4a08c571f6e7a7e559e77dcc7..8223efd85066620ec0d7b0f9a1173e16d7a7190d 100644 (file)
@@ -295,7 +295,7 @@ typedef struct {
 // comparable to the input. so unquant is the direct inverse of quant,
 // and uses the dct scaling factors, not the idct ones.
 
-static void quant_trellis_cabac( x264_t *h, int16_t *dct,
+static inline void quant_trellis_cabac( x264_t *h, int16_t *dct,
                                  const uint16_t *quant_mf, const int *unquant_mf,
                                  const int *coef_weight, const uint8_t *zigzag,
                                  int i_ctxBlockCat, int i_lambda2, int b_ac, int i_coefs )