From c74a8e29d4ed7f0ca3887ccc99ab02a4661f4bed Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Fri, 6 Jun 2008 14:59:10 -0600 Subject: [PATCH] Partially inline trellis quantization Inlining trellis into the 4x4/8x8 trellis wrappers increases trellis speed by about 5-10% through constant propagation. --- encoder/rdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/rdo.c b/encoder/rdo.c index 8607e075..8223efd8 100644 --- a/encoder/rdo.c +++ b/encoder/rdo.c @@ -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 ) -- 2.47.3